Live data from Hacker News

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

yet-another-blog.com

131–140 of 264 posts

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

#131
post #127

Earlier quoted context omitted.

> LDC LDC for Windows is an awkward experience: https://github.com/ldc-developers/ldc/issues/4047

I'm not seeing a major problem here, you just need to install MSVC++ alongside it.

Its an extra requirement, thats not imposed by many other languages.

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

#132
post #129

Earlier quoted context omitted.

> input for a large community is extremely valuable In the early stages, everyone has a thousand opinions and it’s not clear even to those working in jai daily what exactly the language wants to become and which patterns should be supported. From what I understand, Blow intends to gradually open things up as the project matures, which I think is 100% the right approach for something fairly experimental and with a lot…

It's 8 years old

For a volunteer developed programming language, that's almost certainly early stages.

Calendar years is not a good measure of how much work has gone into a language. Think in terms of person-hours instead.

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

#133
post #61

Earlier quoted context omitted.

Right that makes sense. I’m curious if the gaming industry will switch languages, it feels like with the current game engines that it’s heavily entrenched in C and C++. Feels like something like Carbon has the best chance to break in.

A chunk has already switched to C# with Unity. Most other engines (proprietary, Unreal, etc) have decades of C++ that would require too much effort to migrate to anything new.

Unity is still written in C++. It's fairly common to write the core engine in C++ and use a language like Lua, or as is more common in AAA, some proprietary scripting language for gameplay code.

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

#134

Earlier quoted context omitted.

I think that Jai / Zig / Odin all started around the same time. D is closer to C++ than C, in my opinion. I suspect that Jai was an inspiration for Zig and Odin. Many developers in gamedev circles are still using C or orthodox C++ (C++ without most of the bullshit) but are frustrated by many features and gaps. Short compilation time is one of the big goals, as it is crucial for fast iteration. The goal is simply to h…

> D is closer to C++ than C, in my opinion. In terms of what the language allows you to do, yes. However, if you're a C programmer, you can pretty much just keep writing the same code you've always written (minus the preprocessor, thankfully). You can even compile C code with the D compiler and call those functions from your D code without doing anything further. That's definitely not the case with C++.

Oh, come on now. I'm no C++ apologist, but you can do both of those things in C++ as well as in D.

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

#135
post #130
post #83

Earlier quoted context omitted.

I mean this is a little pedantic. It's true he never said that only games are able to use his language as if it were some kind of law, but he did say that his language is being designed to address issues that video game developers face and that was his main, and almost exclusively his only concern. If other domains benefit from that, he's not going to actively bar them from using his language, but he also won't give…

It's just false, i'm in the closed beta and there are a lot of people that use it for other things than games. When they find a bug or have a suggestion he give them the same consideration as anyone.

What people use it for and what it's meant for are two different things.

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

#136
Very interesting! Apparently a lot of information on the Internet about the Jai language is outdated which makes me curious about the follow up post!

I don't know if OP is the blog owner. If yes, I'd love to have an option to subscribe to an email list. I've installed an RSS feed but email is still my preference. Thanks!

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

#137
post #6

I'm really interested to see Jai in the wild, but I have to say I find the Jai v.s. Rust comparison here...unconvincing to say to least. It's particularly funny to be excited about "being able to do anything during compilation" using Jai and then complain to that the #1 problem in programming is "culturally tolerated and even encouraged complexity."

Complexity often arises from restrictions on "anything", rather than people actually doing anything.

I'm curious - what you think of as a good example? I think of C++ templates & macros, which I would not describe as arising from restrictions?

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

#138

I wrote an extremely hard and complex program in which I had to use c++ metaprogramming throughout. Not my decision. I do not understand why you could possibly need more metaprogramming than C++ provides. This is a problematic feature to begin with. Not worthless but not worth much. The debugging was difficult. Many problems show up buried in literally thousands of compiler error messages.

That's the issue with C++ metaprogramming. It's so unwieldy and complex that the benefits are difficult to see and the occasions to be worthwhile limited. When the language has better (i.e. simpler) facilities for meta-programming like D, it will open big venues where it makes sense to use it. It is like programming object oriented in C, it is possible to do but so unwieldy and requiring discipline and verbose boiler…

I disagree. Object-oriented programming is very easy in C even though the syntax itself doesn't guide you. Essentially, all C code I write is object-oriented. Perhaps you are thinking about dynamic dispatch which indeed is very annoying to implement correctly in C?

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

#139
post #114

Earlier quoted context omitted.

I don’t think Go was ever especially over-hyped, and it has been pretty wildly successful in its “niche” (server side programming, CLI tools, daemons, etc). There was some controversy because someone said it was for “systems programming” by which the author seems to have meant “distributed/networked systems” rather than “operating systems” or whatever most people mean when they use the (very imprecise) term “systems…

"virtually the entire container ecosystem" An entire area of software that is completely unnecessary, but because the gods at Google gifted it to us, people have to pretend it's amazing

Of course, this is nonsense and people use containers because they deliver real value, not because of Google marketing or name recognition (most don’t even know containers come from Google, but would likely attribute them to Docker). I’m not a container purist—eventually micro VMs and unikernels will eat a lot of their market share (that’s my prediction, anyway), but until we get there containers are invaluable and criticism like yours is devoid of substance.

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

#140
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.

I'm not sure Blow cares that much about widespread adoption; he seems more concerned with quality. Personally I'd love an open beta, but I can understand why he might want to reserve the right to make drastic changes to the language before he releases it.
Post reply on HN