Re:Show HN: Muon, a low-level programming language inspired ...
by xixixao on Sunday April 07, 2019 @04:47PM
(#19599750)
Have you seen Nim?
[ Parent
| on HN ]
Re:Show HN: Muon, a low-level programming language inspired ...
by azhenley on Sunday April 07, 2019 @04:56PM
(#19599815)
I second taking a look at Nim: https://nim-lang.org/
Some people will argue it isn't a contender for C though since it defaults to using garbage collection.
Re:Show HN: Muon, a low-level programming language inspired ...
by lasagnaphil on Monday April 08, 2019 @05:34AM
(#19603611)
But 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.)
Re:Show HN: Muon, a low-level programming language inspired ...
by nimmer on Monday April 08, 2019 @06:27AM
(#19603839)
Only 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.
Re:Show HN: Muon, a low-level programming language inspired ...
by gizmo on Sunday April 07, 2019 @04:54PM
(#19599798)
I'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.