3 ms·
Exciting to see ORC being the focus for 2.0! We’re using ARC (pure reference counting, minus the cycle collector) for our embedded firmware, and it’s been prett
by girvo 4y ago
Exciting to see ORC being the focus for 2.0! We’re using ARC (pure reference counting, minus the cycle collector) for our embedded firmware, and it’s been pretty excellent. Sink and Lent are great, as is the adoption of destructors/RAII-like approaches. Combined with Nims awesome compile time and meta programming features (for truely zero cost abstractions — nothing better than have the compiler help us write correct firmware code and have all those fancy types and checks disappear in the C output!), it’s been awesome. There’s some rough edges here and there, mostly due to the interplay of ESP-IDF having a pretty buggy malloc implementation, but being able to ask Nim to expandArc and tell me where the destructors are being put to track down accidental cycles or leaks has been handy — and it’ll only get better and easier as Nim adopts even more powerful tools :)
It’s a remarkably pragmatic language in a lot of ways, at least in my opinion. Can’t wait for the rest of the talks!
- deleted 4y ago[deleted]
- pietroppeter 4y agoso nice to hear :). nim looks really great for embedded. this nim conf it seems we missed the embedded talk (was elcritch working on one?). are there pointers on stuff you are doing or you can share the name of your company?
- girvo 4y agoYeah elcritch was I thought but I also think he was super busy sadly :( https://www.venturi.io/ https://www.venturi.io/ That’s us! I’m hoping that now we have some devices out in the field in customers hands I can take some time to write some things up on it all — that’s if adding CANBUS support doesn’t kill me first anyway
- pietroppeter 4y agoyeah that happens, no worries. he will catch up on next occasion (next one might be Fosdem in February but it will be in person and so a bit out of reach for him, likely also for you?). Nice site! Looking forward for a write up (especially since that would have meant you survived support)