Syntax aside, how does this compare to Nim? Nim does similar, I think Crystal does as well? Not entirely sure about Crystal tbh. I guess Nim and Vala, since I believe both transpile to C, so you really get "like C" output from both.
Zen-C: Write like a high-level language, run like C
151–159 of 159 posts
Re: Zen-C: Write like a high-level language, run like C
#152Earlier quoted context omitted.
Mutability is distinct from variability. In Javascript only because it's a pretty widely known syntax: const f = (x) => { const y = x + 1; return y + 1; } y is an immutable variable. In f(3), y is 4, and in f(7), y is 8. I've only glanced at this Zen-C thing but I presume it's the same story.
"immutable variable" is an oxymoron. Just because Javascript did it does not mean every new language has to do it the same way.
f x = let y = x + 1 in y + 1
Same deal. In (f 3), y = 4, in (f 7), y = 8. y varies but cannot mutate. Should be a true enough Scottsman.Re: Zen-C: Write like a high-level language, run like C
#153Earlier quoted context omitted.
Could be bots.
It’s not, it’s just how hackernews works. You’ll see new projects hit 1k-10k stars in a matter of a day. You can have the best project, best article to you but if everyone else doesn’t think so it’ll always be at the bottom. Some luck involved too. Bots upvoting a post not organically I doubt is gonna live long on first page.
Re: Zen-C: Write like a high-level language, run like C
#154Earlier quoted context omitted.
man I haven't heard anything about Vala in ages . is it still actively developed/used? how is it?
Vala is still being developed and used in the GNOME ecosystem. Boo, on the other hand, is pretty dead.
Re: Zen-C: Write like a high-level language, run like C
#155Earlier quoted context omitted.
Vala is still being developed and used in the GNOME ecosystem. Boo, on the other hand, is pretty dead.
I thought Boo was a .net/mono clr thing? whats the relationship
Re: Zen-C: Write like a high-level language, run like C
#156Re: Zen-C: Write like a high-level language, run like C
#157Re: Zen-C: Write like a high-level language, run like C
#158Re: Zen-C: Write like a high-level language, run like C
#159Earlier quoted context omitted.
Same. I've been using Julia for almost everything for a long time now, and it's an amazing language. Very understated.
What has kept me from Julia is the abysmal start-up time (~3 sec from memory)
That said, julia startup times definitely were a painpoint, but have improved quite a bit over the last few years.