Nim and Crystal feel like they are in exactly the same space? GC, fast, single executable compilation without runtime (I would also throw Go into this list).
Nim's new ARC gc, which will be default soon-ish in 2.0, does not have a "runtime" as commonly understood.
It is fully deterministic, so it simply injects alloc/free calls in the generated code at compile time. It even has an option that can show you where the calls are injected.
Everything has a runtime nowadays. Even C, even if it isn't all that large (including for example the memory structures necessary to keep malloc and free working).
Pony does stricter sharing semantics than Rust (multicore) with actors and allegedly one of the fastest GCs ever developed. Its community is even smaller than Crystal's. Pony was developed essentially as a PoC to demonstrate the GC.
You can ditch Nims GC and runtime and bring your own if you want. Of course you'd lose access to most of the stdlib but this is why Nim can be used and is popular for embedded / bare metal.
Tmk Crystal still lacks Windows support as well and probably other os's / archs's compared to Nim
cultofmetatron|3 years ago
auxym|3 years ago
It is fully deterministic, so it simply injects alloc/free calls in the generated code at compile time. It even has an option that can show you where the calls are injected.
https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc...
yxhuvud|3 years ago
heynowheynow|3 years ago
hahaitsfunny|3 years ago
Tmk Crystal still lacks Windows support as well and probably other os's / archs's compared to Nim
bovermyer|3 years ago
https://github.com/crystal-lang/crystal/issues/5430
zw963|3 years ago
https://crystal-lang.org/reference/1.4/syntax_and_semantics/...
Of course, same as Nim, you lose access to most of the stdlib.