> Bye bye! Hope you never use the JavaScript language and libuv.

Don't take people not liking JS personally, it's no knock on you. JS is an 
important technology right now, even if there's disagreements on it being the 
best technology. JS and Nim are pretty much at opposite ends of the spectrum in 
language design, so it's not hugely surprising some on the Nim forum aren't 
fans of JS. Isn't that half the point of Nim having JS as a target - so you can 
output JS in Nim with all it's strong typing and metaprogramming, rather than 
having to use plain JS?

Back on topic.

Regarding IoT, I see a lot of embedded stuff using tiny JS engines. I know 
people have used Nim for embedded stuff but I would imagine Nim could get 
better performance to memory overhead than a JS interpretter running on an 
embedded platform. I'd like to see any projects related to that. One query I 
have is the memory overhead required with GC. I don't expect it's much, but can 
you fit a Nim program on an Arduino using the GC?

For reference for those who haven't seen it here's a simple project with GC 
turned off on Arduino: 
[http://disconnected.systems/posts/nim-on-adruino](http://disconnected.systems/posts/nim-on-adruino)/

I think Arduino has between 2-30kb of memory.

This also interests me because I do some embedded work in C and, well... C can 
be trying sometimes, however it doesn't get much leaner in terms of memory 
usage. I often look at 1000 lines of C code and think that it could probably be 
done in about 2-300 lines of Nim and be far less error prone. So how does Nim 
stand up with 256/512kb ram (which is what I get to play with)? Pretty fat for 
embedded, right?! Thinking Nim should be able to run on that without any 
problems, but not certain.

In terms of Electron as x-platform framework. Personally I too am not a fan of 
web tech on desktops but it does serve the cross-platform goal. I used to think 
it was slow and bloated but VSCode has changed my opinion of that, it's become 
one of my favourite editors, and has awesome Nim support. However can't see me 
using Electron in personal projects. I'm quite tempted by nimx though.

The Rust OS, well that's a great way of testing the metal of low level access 
and performance. It'd be nice to see an expansion of dom96's Nim OS just to see 
if it brings to light any weak areas in very low level code, but to my mind 
what we really need is some big useful technology stuff that people can say 
"here's an example of Nim tech", and OS are generally proof of concepts rather 
than usable tech, unless backed by truly massive companies (some counter 
examples to this?)

Reply via email to