4 ms·
Have you seen Nim?
by xixixao 8y ago
Have you seen Nim?
- gizmo 8y agoI've used it for some hobby projects a year or two ago. Unfortunately the compiler was very unstable back then and linking Nim into existing projects turned out to be pretty painful, in part because of the gc/threading model. There is a lot to like about Nim, but I think it tries to do too much.
- azhenley 8y agoI second taking a look at Nim: https://nim-lang.org/ https://nim-lang.org/ Some people will argue it isn't a contender for C though since it defaults to using garbage collection.
- lasagnaphil 8y agoBut you can turn off the GC and use it as a ‘better C’ (Nim supports raw pointers by the way.) Although you have to ditch most of Nim’s standard library, you can still import C libraries, including libc (I’ve heard you can also do this for the D language.)
- nimmer 8y agoOnly part of the stdlib depends on GC. Also the GC runs independently in each thread and can work with deadlines, making it harmless in most use-cases.