3 ms·
I 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
by azhenley 8y ago
I 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.