Re:Nim Programming Language v0.17.0 released
by joseluisq on Thursday May 18, 2017 @04:15AM
(#14365621)
Nim is looking really good!
It deserves a chance definitely!
[ Parent
| on HN ]
Re:Nim Programming Language v0.17.0 released
by squarefoot on Thursday May 18, 2017 @09:45AM
(#14367114)
All it needs is a killer app, or more appropriately a killer port. Make the compiler generate code for the ESP32 and it gets world fame in no time.
(https://en.wikipedia.org/wiki/ESP32 - for those living under a rock during the past year or so :^)
I have been wanting to play with wrapping the ESP-IDF for Nim (using the excellent c2nim tool), but ... it appears to be a fairly hefty job. Although I am sure Araq could do it in no time :)
Re:Nim Programming Language v0.17.0 released
by mixedCase on Thursday May 18, 2017 @10:22AM
(#14367425)
Nim compiles to C source code. Isn't the ESP32 SDK just C?
Re:Nim Programming Language v0.17.0 released
by squarefoot on Thursday May 18, 2017 @08:21PM
(#14372145)
I believe so, but on a ucontroller it also needs to know the machine data types, memory structure, internal peripherals etc, where is this or that pin, how to start a timer or read the ADC etc. Probably all it needs is a good set of .h files to generate appropriate code.
Just as a sidenote, there is:
https://github.com/xyz32/boneIO
...and a while back I played too with:
https://github.com/gokr/ardunimo
Nim is quite perfect for these things since it compiles via C/C++ which makes it go anywhere.