08-12-2023, 02:49 PM
Agreed but Aurel is also trying to improve micro(A).
I don't know what he's going toward. But I'm afraid I made too many demands. I guess I was used to an interpreter that could handle files either in sequential access for text, or in random access for "array data". Also coming across an interpreter which has only one loop construct which cannot be "taught" to count and could only test at the top. It's strange now he's asking for help about how to do a loop which tests at the bottom?
I don't think improving micro(A) should rely on JavaScript or any other programming language source. Is any portion of the project being done with Oxygen BASIC? If it requires recalling anything in JavaScript then it's a serious conflict. I can understand where sometimes code needs to be "borrowed" from another language. But in the examples displayed there are too many holes: what does "getToken()" function do? Why show only a high-level function?
I'm sorry if this sounds like a criticism, but we could expect micro(A) to be improved. It will depend on the exuberance of the author.
A thought just came to me. Does Oxygen BASIC have an "import" feature which doesn't include DLL or SO, which allows to look at "foreign" code? Something like doing "dot-H" files in QB64 with C/C++ code. Oh well but I guess such a trick could only be done by a front end for its target. In other words, Oxygen BASIC isn't creating code internally for JavaScript which then has to produce an EXE file.
That case might require compiling to a separate shared library anyway which has to be "summoned" by code in Oxygen BASIC.
micro(A) already has to load a "scilexer.dll" that seems to be closed source.
I don't know what he's going toward. But I'm afraid I made too many demands. I guess I was used to an interpreter that could handle files either in sequential access for text, or in random access for "array data". Also coming across an interpreter which has only one loop construct which cannot be "taught" to count and could only test at the top. It's strange now he's asking for help about how to do a loop which tests at the bottom?
I don't think improving micro(A) should rely on JavaScript or any other programming language source. Is any portion of the project being done with Oxygen BASIC? If it requires recalling anything in JavaScript then it's a serious conflict. I can understand where sometimes code needs to be "borrowed" from another language. But in the examples displayed there are too many holes: what does "getToken()" function do? Why show only a high-level function?
I'm sorry if this sounds like a criticism, but we could expect micro(A) to be improved. It will depend on the exuberance of the author.
A thought just came to me. Does Oxygen BASIC have an "import" feature which doesn't include DLL or SO, which allows to look at "foreign" code? Something like doing "dot-H" files in QB64 with C/C++ code. Oh well but I guess such a trick could only be done by a front end for its target. In other words, Oxygen BASIC isn't creating code internally for JavaScript which then has to produce an EXE file.
That case might require compiling to a separate shared library anyway which has to be "summoned" by code in Oxygen BASIC.
micro(A) already has to load a "scilexer.dll" that seems to be closed source.