Live data from Hacker News

Focus: A simple and fast text editor written in Jai

github.com

81–90 of 105 posts

Re: Focus: A simple and fast text editor written in Jai

#81
post #22

Earlier quoted context omitted.

Jai has a few unique features that are quite interesting. You can think of it as C with extremelly powerful metaprogramming, compile-time codegen and reflection, and strong template systems, plus a few extra niceties like native bump allocator support or things like easily creating custom iterators. There is nothing quite like it.

So, it is like Nim? Templates, metaprogramming, custom iterators, Nim's comp-time is also powerful, but I heard that 100% of Jai is available at compile time? How good is interop with other languages? Does Jai's syntax have some nice features? Syntax sugar like Nim's UFCS or list comprehension (collect macro in nim)? effects system? Functional paradigm support?

Yup if I would pick a language that’s closest to Jai I would choose Nim. Both have a bytecode-VM interpreter to run comp-time code (unlike with Zig where it still tree-walks the AST), have similar template codegen systems (though Nim also has AST macros), and has good interop with existing C/C++ code.

The one issue with Nim I had while trying it out is that there is an incredibly rich amount of features but many of them seem half-baked and it’s constantly being changed, so you’re always a bit unsure what’s a feature stable and safe to use or is “experimental”. But at least it’s been public for quite some time and you can actually use it right away…

Re: Focus: A simple and fast text editor written in Jai

#82

Earlier quoted context omitted.

A good number of your bullet points are factually incorrect and inflammatory. But to reply in the style of Blow: what have _you_ released in the past ten years to talk all this smack?

I'd say my work has gone in the hands of a few million people and made their lives (mostly) better, along with what all of my coworkers did. But most importantly, I'm not out there telling people that they suck, they're bad programmers. I'm not the one out there telling people that GC bad, memory ownership bad but also you're stupid if you can't free() memory properly. I'm not the one out there rejecting decades of P…

Don't they get tired of being wrong, too? I've used software from these types of people and their stuff crashes and segfaults as much or more than their equivalents, certainly than the rust equivalents I use.

Re: Focus: A simple and fast text editor written in Jai

#83
post #42
post #12

Jai is an amazing language to work with, I highly recommend checking it out once it becomes publicly released. It's elegant, simple, performant, takes all the best parts of Zig minus the annoying parts (like errors on unused local variables) and adds a bunch of super useful game development libraries as well as a built-in string type (which I really missed in Zig). Oh, and the compile times are just a joy, almost no…

What is annoying with errors in Zig?

They seem to be specifically referring to the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...

Re: Focus: A simple and fast text editor written in Jai

#84
post #65

Earlier quoted context omitted.

Please don't adopt this line of reasoning. Anyone's argument doesn't have to stand on their personal achievements and public works. Just because you're not a chef doesn't mean you can't call one out if they put rat poison in your food.

They did not provide an argument, but a barrage of accusations without evidence. I think in that case, it is fair to ask: Who are you, anyway?

I still don't see why it matters who the person is. Why not ask for evidence instead?

Re: Focus: A simple and fast text editor written in Jai

#85
post #84

Earlier quoted context omitted.

They did not provide an argument, but a barrage of accusations without evidence. I think in that case, it is fair to ask: Who are you, anyway?

I still don't see why it matters who the person is. Why not ask for evidence instead?

These aren't the kinds of things where evidence is readily available. If you have a reputation to stake on certain claims, that makes me more inclined to give you the benefit of the doubt.

Re: Focus: A simple and fast text editor written in Jai

#87
post #42

Earlier quoted context omitted.

What is annoying with errors in Zig?

They seem to be specifically referring to the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...

Yeesh, that's good to know. With the dev response basically doubling down on ideology and ignoring reasonable protest, that's definitely an ecosystem to not sink time into.

Re: Focus: A simple and fast text editor written in Jai

#88
post #42

Earlier quoted context omitted.

What is annoying with errors in Zig?

They seem to be specifically referring to the compiler error (as in, prevents compilation) for unused local variables. See discussion here: https://github.com/ziglang/zig/issues/335#issuecomment-10011...

You're right. I read too fast. Coming from Go, I'm used to errors on unused local variables, and like that Zig does the same.

Re: Focus: A simple and fast text editor written in Jai

#90
post #84

Earlier quoted context omitted.

They did not provide an argument, but a barrage of accusations without evidence. I think in that case, it is fair to ask: Who are you, anyway?

I still don't see why it matters who the person is. Why not ask for evidence instead?

I didn't ask for evidence because I know for a fact that he is lying or misinterpreting things to an extent to be considered lying.

Getting into the beta has nothing to do with being a good or bad programmer. It's not about Blow's ego or criticizing the language, it's about keeping a modicum of respect about a decade's worth of work and not being an ass.

If the ad-homimem's didn't disqualify his whole post, the smell of his butt-hurt would.

PS. As a factual contradiction, documentation is provided with every compiler version and it currently stands at ~32K lines of very well commented example code touching almost every feature of the language.

Post reply on HN