6 ms·
Learning Jai via Advent of Code
- nilamo 3y ago[flagged]
- grzm 3y ago> "Why use a fake language? By fake, I mean, you can't use it for anything. ... Just... why?" Can it not just be something that's done for fun? https://news.ycombinator.com/item?id=38334373 https://news.ycombinator.com/item?id=38334373
- JaiFanClub 3y agoHow is Jai ‘fake’ and what qualifies a language as ‘real’? Jai is in development and the creator is building a game engine with it. It’s very demonstrable in its capabilities (see the Sokoban game progress) and as for documentation and end-user availability it’s so early in development that a lot of language features aren’t finalised so it’s not necessarily worth doing to an incredibly detailed level yet.
- mustache_kimono 3y agoThis may not have much of an impact on u/JaiFanClub but I can understand what the commenter was saying and I'm not sure she/he deserves the downvote. For AoC, I understand giving Jai a whirl. For just about anything else, I can understand being reticent to build too much on the shifting sands of an unreleased, beta language. See the blog post: > Q: Would I use Jai in production? > A: No, of course not! It's an unfinished language. The compiler is not for distribution. It's not ready for production. I've even seen a few articles, on this site, asking Qs like "Which C++ successor are we going to pick?" and including unreleased languages like Circle and Jai. It's more than a little ridiculous.
- mustache_kimono 3y ago> like Circle and Jai Sorry, I meant Carbon! Circle is way more real than Jai or Carbon.
- TulliusCicero 3y agoThat's a pretty bizarre definition of 'fake'. Why use misleading terminology in your comment?
- nilamo 3y agoIf I can't use it, it is not real to me. If it is not real to me, it is, by definition, fake. Why is that bizarre?
- alpaca128 3y agoFake is more the opposite of genuine. The language isn't fake just because it's not accessible.
- Kranar 3y agoYou can't use the SpaceX Starship either, so is it also fake? https://en.wikipedia.org/wiki/SpaceX_Starship https://en.wikipedia.org/wiki/SpaceX_Starship
- lmm 3y agoIt's "fake" in the sense that you can't rely on it. Maybe it will one day be real, but I certainly wouldn't start e.g. planning a mission schedule based on their declared payload numbers. That said, ultimately I believe, based on available information, Starship will likely fly in something close to its envisioned form. I don't believe Jai will ever be publicly released in a way that remotely delivers on what it's been claimed to offer. It's vaporware in the classic sense, and a few demo videos do not change that.
- Xeamek 3y agoThis is just factually wrong. Across thousands of hours of Blow's streams, massive amounts of codebase, both from jai itself as well as the game that it is used to develop, has been shown. You are free to not care about it until it's public,even be skeptical. And that's perfectly fair aproach. But saying it is a vaporwave as if it's all promises and no substance is just objectively wrong.
- failrate 3y agoJon Blow is making his own language, because he is sick of working in C++ is what I have gleaned.
- password54321 3y agoHe is sick of anything that's not his own.
- CyberDildonics 3y agoIf you ever see his stream, it seems like jon blow is sick of everything, including every language, every game, every programmer and all of his viewers.
- armchairhacker 3y agoI'd agree if you were writing your next $1 million program in Jai, but this is Advent of Code. Learning new esoteric languages, by teaching you new esoteric concepts, can make you a better programmer in existing ones.
- itishappy 3y agoDid we read the same article? The one where the author is using Jai for something, talking about Jai, and showing others how to use Jai? The one that clearly explains the limitations of Jai's beta, and covers features that could trivially be used to make libraries? The article that begins with paragraphs dedicated to answering your question? (It's because it has neat features.)
- Hammershaft 3y agoJai has the most impressive metaprogramming of any imperative language I've seen, but outside of gamedev I make my bones with lisp (clojure). Going from homoiconic metaprogramming in lisp to generating code from strings is still going to be a massive step down. Other than that , I appreciate the focus on code being self contained, straightforward, and simple to read. It feels like Jonathon Blow has been working on Jai now for almost a decade, so I wonder has the ideas behind the lang have evolved over so many years of iteration. EDIT: looks like I tabled the post right before it got to the good stuff! You can walk the abstract syntax tree & generate type safe code, not quite homoiconic but color me impressed!
- Rochus 3y agoIt would be nice if there was a language specification so that all of this would become a little more concrete.
- mariusor 3y agoI think Blow hasn't finished designing the language yet, so a language specification is probably not in the cards. Also I doubt that it will ever be, as the current compiler will most likely be the only implementation.
- WillPostForFood 3y agoGoing from homoiconic metaprogramming in lisp to generating code from strings is still going to be a massive step down. Do you think this is just a necessary trade-off when you are trying to be a performance oriented game programming language like Jai?
- __loam 3y agowhat does that mean?
- blueberry87 3y agothat's not how compile time works buddy
- kris-s 3y agoSeems like Jonathan Blow, the creator of Jai, releases a game every decade or so. I wonder if the plan is to release his next game in a couple of years. Presumably it is written in this new language? Maybe the compiler will be released at the same time under the guise of “hey this is so production ready we have already shipped a game with it.”
- deleted 3y ago[deleted]
- CodeLikeHell 3y agoHe’s currently developing a Sokoban game in Jai and often streams on Twitch.
- wsc981 3y agoI believe he intends to ship the game for free with the language, as a demonstration of how to write games using jai.
- Xeamek 3y agoThat's exactly the idea. They even plan to release the source for the engine for the game as the 'example' project along with the language.
- dang 3y agoRelated: Learning Jai via Advent of Code - https://news.ycombinator.com/item?id=34805622 https://news.ycombinator.com/item?id=34805622 - Feb 2023 (2 comments) Learning Jai via Advent of Code - https://news.ycombinator.com/item?id=34785826 https://news.ycombinator.com/item?id=34785826 - Feb 2023 (1 comment) (Reposts are fine on HN if the story hasn't had significant attention yet. These links are just for people who might be interested.)
- chairhairair 3y ago“Wait wouldn’t that feature allow you to do X horrific unsafe thing?” Jai: “Yes, don’t do that terrible thing.” Refreshing philosophy. Sharp tools have their place, even if they are dangerous.
- deleted 3y ago[deleted]
- tialaramex 3y agoJon has a lot of opinions about how this is stupid or he'd never hire anybody who does that and so on, and yet Jon does these things anyway, because he's human and humans are fallible. This is less obnoxious than it might be because at least Jon is self-aware enough to identify that e.g., this code written by "an idiot" was in fact written by J. Blow himself which suggests maybe he's an idiot. But his resistance to adjusting Jai in light of these observations is a (modest but non-trivial) problem with the language. The necessity of sharp tools doesn't excuse needlessly dangerous edges.
- Ygg2 3y agoIf that's the case, just use C then.
- pitched 3y agoIs the compiler available yet to mere mortals like myself or just a handful of friends still? I love the philosophy and would absolutely take a day off work to play with it but being a private developed publicly makes it feel a bit too marketing/advertisement to go out and ask for it.
- mariusor 3y agoIt is available for mere mortals, however I think you need to prove you have an interest more than just using it for a day. (ie, track the email Jon has set up for the language, write an email asking for access, make it a half decent request/justification, etc).
- airstrike 3y agoI can't be the only one puzzled by the notion of only offering a closed beta for a programming language...
- deleted 3y ago[deleted]
- kamikaz1k 3y agoTaking your question at face value, it’s so people not invited don’t feel entitled to input for design decisions. Jon is creating the language with a particular audience in mind so he is only taking feedback from people who he feels are most representative of that audience.
- CyberDildonics 3y agoJai has a lot of interesting and clever design ideas but I would never use it for anything serious, even if it was actually released. Jon Blow is probably the worst person possible to be in charge of a programming language. He seems to be disgusted by everyone and everything and have complete disdain for anything that didn't come directly from him. The fact that he still hasn't released this language after over half a decade shows that he just doesn't create things for other people non commercially.
- wredue 3y agoHe certainly doesn’t like shitty programs… which seems to be the vast majority of software today. You can shit on him and Muratori all you like for this push they are doing, but ultimately, they have both put their money where their mouth is.
- CyberDildonics 3y agofor this push they are doing, I know about the handmade hero website and love it in theory, but how does an unreleased language that no one can use because the author looks down on everyone help anyone?
- Xeamek 3y ago>no one can use because the author looks down on everyone help anyone. Citation needed. Blow has different aproach when it comes to building the language (it's project driven, as he is working in it alongside his bug commercial game), but that's it. Nothing about looking down on others
- Ygg2 3y agoAs much as I like Muratori, making sweeping statements about performance overlooks that vast majority of people prefer performance penalties over feature penalties. How software is used and maintained should dictate how you develop it. Is it some software that thrives on features being delivered fast (office suite, image editors)? Perf can suffer, bugs are acceptable. Is it something that needs to be safe at all cost (critical car safety, medical software)? Perf must be tolerable but bugs are no go. Is it something that has no hard perf requirements but will be maintained for decades. Make code clean, treat performance as non-issue.
- flykespice 3y agoI remember hearing about this language almost a decade ago as a kid and never since then.