Live data from Hacker News

Porting 58k lines of D and C++ to Jai

yet-another-blog.com

31–40 of 264 posts

Re: Porting 58k lines of D and C++ to Jai

#31
post #8

I don’t understand how this language is planning on ever seeing adoption when it’s been restricted from open use since it’s inception. Seems like vaporware.

Over the past decade, I watched HN's and Reddit's hype waves cycle through server-side JavaScript, Golang, Haskell, and now Rust. With plenty of secondary favorites in the mix like Julia, Nim, Zig, etc. A lot of these things do find some modest niche to survive in. But none really take over the world as originally forecast by the hype wave. Ultimately, you either enjoy tinkering with programming languages for persona…

I’ve also observed these waves, but never about a language that you can’t actually go pick up a compiler or interpreter for. Jai is unique in that sense.

Who’s actually getting into these closed betas?

Re: Porting 58k lines of D and C++ to Jai

#33
post #15

Earlier quoted context omitted.

> Supports x86 architecture only No native macOS then? > No virtual functions > Jai is less dogmatic okay

> No native macOS then? Or Pi, or iOS, or practically all Android hardware… Kind of a non-starter IMO. Maybe this was marginally acceptable when the language started in '14 but it becomes less so every year.

It has an LLVM backend so adding support for other architectures is not difficult.

JB already ported the compiler to Nintendo Switch several years ago.

https://old.reddit.com/r/NintendoSwitch/comments/cixsoy/jona...

Re: Porting 58k lines of D and C++ to Jai

#35

I find the "slow compile time" complaint of D interesting; overall I find ldc2 to be one of the faster compilers out there. I suppose the combination of features and metaprogramming used by the author is responsible for the 3-minute compile times in debug mode. While jai is evidently expected to be substantially faster (author estimates 5 sec for this codebase???), other choices like Rust would be far, far slower tha…

To get best compile times with D it's important not go over board with CTFE and templates.

Re: Porting 58k lines of D and C++ to Jai

#36
post #8

I don’t understand how this language is planning on ever seeing adoption when it’s been restricted from open use since it’s inception. Seems like vaporware.

Over the past decade, I watched HN's and Reddit's hype waves cycle through server-side JavaScript, Golang, Haskell, and now Rust. With plenty of secondary favorites in the mix like Julia, Nim, Zig, etc. A lot of these things do find some modest niche to survive in. But none really take over the world as originally forecast by the hype wave. Ultimately, you either enjoy tinkering with programming languages for persona…

You don't think JavaScript is widely used in day jobs?

Re: Porting 58k lines of D and C++ to Jai

#37
post #30
post #29

Earlier quoted context omitted.

People have been believing that for close to a decade now.

Yup, and it keeps steadily winning a small stream of converts and additional projects from C. So I didn't believe it before, but it's starting to seem more plausible. Of course, it'll take a very long time. There's a lot of C code out there. :D

[deleted]

Re: Porting 58k lines of D and C++ to Jai

#38

Earlier quoted context omitted.

Over the past decade, I watched HN's and Reddit's hype waves cycle through server-side JavaScript, Golang, Haskell, and now Rust. With plenty of secondary favorites in the mix like Julia, Nim, Zig, etc. A lot of these things do find some modest niche to survive in. But none really take over the world as originally forecast by the hype wave. Ultimately, you either enjoy tinkering with programming languages for persona…

You don't think JavaScript is widely used in day jobs?

Go as well seems to be pretty big nowadays.

Re: Porting 58k lines of D and C++ to Jai

#39

I'd love to see more about Jai. I don't understand why they are not working in the open, this is a tool, not a game, input for a large community is extremely valuable. But as brilliant as Jon Blow is, he is at least equally as stubborn. Fast compilation and nice, easy to read syntax with good default is exactly what I am looking for. I can understand the hype about metaprogramming, and its potential usefulness, but I…

It’s hard to find any material on Jai.

It seems to be a “better C”.

Isn’t that what D / Zig try to do? What’s the advantage?

Re: Porting 58k lines of D and C++ to Jai

#40
post #33

Earlier quoted context omitted.

> No native macOS then? Or Pi, or iOS, or practically all Android hardware… Kind of a non-starter IMO. Maybe this was marginally acceptable when the language started in '14 but it becomes less so every year.

It has an LLVM backend so adding support for other architectures is not difficult. JB already ported the compiler to Nintendo Switch several years ago. https://old.reddit.com/r/NintendoSwitch/comments/cixsoy/jona...

Most of the work is in the compiler's backend but you still need to set it up to generate the right object files and C ABI etc etc.
Post reply on HN