-
Hi maintainers, I've forked this project and I'm implementing support to develop applications for |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
I don't think a fork is need to improve support for Arduino, probably you want just to make a separate library and request features or potential fixes to improve the Nelua compiler usage with Arduino. Regarding the pull requests, Nelua is not a language for any specific platforms, just like C/Lua isn't, so I probably wouldn't merge specific APIs/modules/tools for Arduino, as the language try to remain platform agnostic. But I would merge fixes and improved flexibility to make coding on platforms such as Arduino easier. In any case it would depend very much on the pull request. |
Beta Was this translation helpful? Give feedback.
-
@edubart ,
This changes were applied because Arduino Uno architecture (8 bits) is not compatible with nelua. So, is it possible to send my modifications for this context, not harming the project completely (creating a conditional for this context)? |
Beta Was this translation helpful? Give feedback.
-
@edubart , thank you. I adjusting according your suggestions and I could revert my modifications. In this case I'll create a separeted library for arduino development. |
Beta Was this translation helpful? Give feedback.
-
I'm interested in using nelua for microcontrollers too, but maybe without Arduino. I see plenty of examples of how to call C functions, but are there any examples of setting memory locations directly? I have some code that directly manipulates ports like |
Beta Was this translation helpful? Give feedback.
-
@technomancy At the time you tried the above Nelua support for AVR was not in good shape and since you asked I've made many improvements to make the compiler to work better with AVR. Now AVR passed all possible test from the test suite, the --cpu-bits=16 flag is not needed anymore and you should not get errors with "Nelua and C disagree on type size or align" anymore. Also many parts of Nelua standard library are more freestanding, that is, they use very few functions from lib C now, because AVR does not support some lib C functions. |
Beta Was this translation helpful? Give feedback.
I don't think a fork is need to improve support for Arduino, probably you want just to make a separate library and request features or potential fixes to improve the Nelua compiler usage with Arduino.
But you are free to fork and do whatever you want as the project is open source.
Regarding the pull requests, Nelua is not a language for any specific platforms, just like C/Lua isn't, so I probably wouldn't merge specific APIs/modules/tools for Arduino, as the language try to remain platform agnostic. But I would merge fixes and improved flexibility to make coding on platforms such as Arduino easier. In any case it would depend very much on the pull request.