Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nickmqb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
nickmqb
8y ago
Good point, I agree that's a bit of an awkward case. It's something I'm planning to keep an eye on. If this becomes a problem in practice, we can do something about it.
62.
▲
by
nickmqb
8y ago
There's quite a bit of overlap with Zig (and maybe even more with V, which recently appeared on HN). Some differences between Muon and Zig: - Syntax/ergonomics: Muon has return type inference, Go-like syntax/no semicolons, no
63.
▲
by
nickmqb
8y ago
Thanks for the kind words! Correct, the initial compiler is built using the C# interpreter; the compiler can then be used to compile the next version of itself. Bugs and backwards incompatible language changes can be a problem though. For t
64.
▲
by
nickmqb
8y ago
Ah, good question. Rust could definitely be in that list as well! It's a more mature language (so that's why I didn't mention it in the list), but conceptually it very much fits.
65.
▲
by
nickmqb
8y ago
Correct, tagged pointers are just for pointer unions, a value union could be emulated using the transmute builtin function. A more general mechanism for discriminated unions is on the roadmap. It would have been nice to include it for the i
66.
▲
by
nickmqb
8y ago
That's a fair point. It's the reason that I've marked significant whitespace as "experimental" in the documentation. Since the language is in an early stage, I think it's OK to try some slightly more experiment
67.
▲
by
nickmqb
8y ago
Right now, you'd have to use OS-specific threading APIs for that (via foreign function declarations). I'm planning to add threading support to the standard library to make it easier to write cross-platform multi-threaded code. Als
68.
▲
by
nickmqb
8y ago
Yes, one of the goals for Muon is to make it easy to use Muon code from another language. There's a recent wave of new languages in the same spirit as Muon, like Zig, Kit, Jai and V (the last two have not yet been released). But since
69.
▲
Show HN: Muon, a low-level programming language inspired by C, C# and Go
(github.com)
175 points
by
nickmqb
8y ago
|
114 comments