New Jai beta just dropped and it's huge. Code scopes are first class citizens now, and macro system is completely revamp to utilize this. The screenshot is just a tiny glimpse into what's possible now.I don't think there is a native language that can do this.
>When you say c1.value, we search for 'value' using normal identifier resolution, recursing upward.>(In the future we may add the ability to search only that specific scope, without looking upward).The parenthetical statement is a huge red flag.
>>110514730Niggerllicious
>>110514730this is not very different from unhygenic macros lolnone of this stuff matters anyway now that agents are writing the vast majority of code.
So it's like you can front all of the variables in a given scope to another function without having to pass them as arguments. Sounds interesting but the lack of explicitness is troubling, and it seems limited to cases where those specific scoped variables are available. You could subdivide top-level functions this way but that's not a massive leap from where we are.
>>110515206Dismissing language work because agents write a lot of code is like dismissing CPU architecture or memory hierarchy design because most people use high-level frameworks
>>110515301language work that would matter for agents is stuff like formal methods. this kind of syntactic sugar is for humans writing code, which is quickly becoming an irrelevant use case.
JAI is revolutionary , a new software paradigm,I don't thing people understand whats happening.Anons still don't understand what you're dealing with, do you? The perfect organism. Its structural perfection is matched only by its hostility.I admire his purity. A survivor... unclouded by conscience, remorse, or delusions of morality.
>>110514730jai hind
>>110514730why would I want this? this shit is so retarded, like now I will do more mental gymnastics than with retarded OOP codebasesjust give me FP or procedures
>>110515206>none of this stuff matters anyway now that agents are writing the vast majority of code.until that number is 100% (and it never will be) it still matters
>>110514730been doing this in my langscopes, bilateral explicitness, ubiquitous state model, [...]
>>110515382>this kind of syntactic sugar is for humans writing codeMetaprogramming isn't syntax sugar and no it isn't. Less boilerplate = fewer tokens spent. We finally have easy to use tools and you dumb fucks still can't get it right. Holy shit I could throttle you for being so retarded.
>>110515164/thread nobody cares about retarded memelangs
>>110515561this isn't metaprogramming. it's just macros.
>>110515382>this kind of syntactic sugarKind of matter, actually. It could reduce boilerplate code, less output tokens, when the code is produced, less input tokens, when the code is analyzed, less money spent.
I have no idea which replies in this thread are serious and which are ironic :3I'm gonna continue using Odin.
>>110514730link the beta
>>110515669That's not how Jai works.
>>110515993wdymhow do i compile with jai
>>110515646Odin is for low level game engine dev?
>>110516021yes, though beyond surface level syntax, they're two wildly different languages
>>110514730coolbrah dont care cuz this language will never come out. its been 12 years brah
>>110515382wtf are you talking about are you seriously so retarded you don't write code?
basically >>110515164it's garbage design to reduce boilerplate, in an era where it doesn't matter
>>110514730>here's that indie game and compiler dev I was telling you about
>>110516691why doesn't he have real guns?
>>110516762they are real, the airsofts thing is for twitch's sake
>>110514730>syntax is full of unnecessary symbolshas C++ taught people nothing
>>110515565macros are metaprogramming
>>110514730Why would I ever want to get on Jai, when its bus factor = 1, and the author is a unpragmatic ideologically-driven narcissistic sperg?
>>110516804most people don't have experience with languages outside the family.at least it's not verbose algol-like crap
>>110514730Also, this is one of the most ad-hoc niggerlicious syntax in a programming language that I have seen. I knew he was full of shit, back when he was claiming at the beginning how the syntax will improve over time and isn't important to think about. Yet, it only has gotten worse and worse since its first debut.
>>110516857>the syntax will improve over time and isn't important to think about.the syntax is one of the first things you need to think about when you design a language
>>110516857the :: and := definitely trigger me. I've used other languages that do it, and it could be argued that C style syntax is too ambiguous / easy to screw up compared to what came before but it's also just so much easier to type and read that I don't think the tradeoffs are worth it.
>>110516883:: and := are fine, honestly; at least I don't see issues with it. It's easy enough to infer the meaning, that the first means a constant, while the latter is an assignment with an automatic type inference; it's consistent in the meaning. It's all these retarded all over the place #niggerlicious_directives. It looks fucking ugly, used very inconsistently, and carry context and location dependent rules; per each directive. And these directives are often chained, holy fuck. And the switch statement (if ==, iirc) is also vomit inducing...
>>110517031hmm, I have less issue with the directive things because they don't come across as 'every day' syntax' type things (just like normal directives) so them standing out and looking awkward is almost a good thing as it's like a warning
What's the usecase?
>>110515164I agree. That is too niggerlicious. It's too much voodoo
>>110514730WHY WOULD I EVERRRRR WANT TO DO THIS? IS HE INSANE?
>>110515646>use the language with go-style syntaxno, i don't think i will
>>110515164>>110514730
>>110514730took him 10 years to reinvent dynamic scoping and unhygienic macroswhat a waste
/v/ are saying that order of the sinking star was code that self modifies at runtime!
>>110514730Unironically, what's the use-case?I would never want to work on a Jai project with other people, and have to reverse-engineer their overly-clever nested macros
>>110516691there is no way the guy doesn't reugularly use this websitehello Jonathan I hope you are doing well :]
>>110514730So many buzzwords. So little meaning. Where to even start?>scopesIf you had to say that again, without using the word "scopes," would you be able to? If not, that means you don't know what the word means in the first place and thus should not be using it.>are first class citizensOnly humans can be citizens.>is completely revamp to utilize this.I believe you meant to say "revamped". Note the matching tenses.Also, replace "utilize" with "use" unless you *want* to appear as a pretentious person.Perhaps you do not have sufficient background knowledge to start a thread on this matter.
>>110515400Checked and keked.
>>110519921I hope every-bodies enjoying the game!
>>110514730Cool, I am sure Claude will appreciate this cuz I ain't writing code by hand no more.
>>110516762more importantly why doesn't he have a screwdriver at home?I even have a small portable one in my backpack
>>110516883why? it's done like this so that the syntax is regular. :: is always to define a thing (function,macro,constant), and := is to declare a variable (short for x:type=value, where type is inferred)it's 100% regular and not shit like C family, where you have to do parser hacks to determine what is it you're parsing.C, despite being made to be compiled on 70s computers, is surprisingly difficult to parse, you need to be aware of symbols to even be able to parse it.
so jai is redoing their metaprogrammingig jai releasing after the game was done was a liethis is going to take another decade
>>110523544yandere simulator the language
>>110514730are these scopes dynamic? looks like fake news, desu.
>>110514730Impressive. Almost as impressive as FLOOP.
>>110522132its regular but its shit
>>110515382truth nuclear weapon
>>110515396kek
>>110516691heard you fucks are talking shit about my language
could some beta faggot (pun not intended) leak it, I want to play with it.
>>110526618>could some beta faggot (pun not intended) leak it, I want to play with it.sure, post an email I'll forward it to you
>>110526840>clod cannot be trustedwhat's the matter, blowboy, afraid you might compile something?
we're going in
>>110514730Throw more buzzwords at me, you filthy whore.
>>110515164I came to this thread to ask>what the hell is this disgusting looking shitbut this expresses it better
>>110526801tetelindagata @ boxmail1 . namesend it here if you're serious
>>110526598sorry sir
>>110527000>send it here if you're seriousenjoy
wow crazy how after all this time the language still doesn't exist!
>>110523544odin beating jai to 1.0 is necessary for jblow's humiliation
>>110527128neither one is all that impressive desu. just the status quo codified with meager refinements found along the way.
>>110527150What's an impressive language then?
>>110527184Ada
>>110527232Explain...
>>110527184Cosmos
>>110527316There's much better ways to promote your language than randomly posting it as a reply in 4chan threads
So basically it means you can reference a scope as its own environment and access its variables. I don’t see how it’s useful considering each scope is pretty much unique in a code base, meaning this is just non-reusable code expansionMaybe I'm wrong and I don't get it thoughoverbeit
>>110527184you're presupposing there is a new impressive public language. there isn't one, and you didn't actually specify "new", so i said an ancient yet genuinely impressive language u could use right now that not even Rust has caught up to yet in terms of all-around safety coverage (without resolving to a Fil-C -like method). amusingly Nvidia adopted Ada+SPARK only a few years ago, which means they deliberately chose it over Rust. it's even grown in popularity internally. also something like D already encompasses most of what these new C-alts are doing. and while actual C & C++ are moving over to a new MLIR-based compiler, many of the new langs are stuck complaining about perpetually relying on LLVM and inheriting a bunch of C-isms, kek. if there's anything impressive, it's the other MLIR or other new IR-based langs trying to meet the demands of frontier tech and solving what comes out of that. i could say more but i'd be spoiling the story.
>>110527792What's wrong with LLVM
>>110527477accessing the scopes can be useful in macros. i have no clue how macros work in jai though.
>>110527807i don't personally see a problem with LLVM if it serves the purpose of your lang. but the latest lang designers make a big fuss about becoming independent from it, and regretting that they stuck to it. and you asked for something impressive. it's not that impressive if there's no true innovation. the latest C-alts aren't innovating; they're mostly replicating C with opinionated niceties, picked from among what has already been done. like choosing your C theme, or its equivalent of ricing your WM. like i said, D already did a lot of the C-like advancing. and Ada has been offering its answers but happily playing in its own sandbox for awhile.
>>110527905>the latest C-alts aren't innovating; they're mostly replicating C with opinionated niceties, picked from among what has already been doneThat's innovationNobody wants some revolutionary new programming language that doesn't work the way they're used to, they want what they're used to but betterIt's not like ricing, these languages can offer real productivity gains
>>110527807>why dont you enjoy massive, slow dependencies in your project
>zomg!!! a closure!can't you already do this in any lisp, including javascript, the most popular lisp of all time?
>>110527930That doesn't matter to the end user
>>110527932these scopes are not closures. you're making a wrong assumption.
>>110515382You can immediately spot the unemployed retards trying to refute this lmao
>>110514730This is how CSS will look in 3 years
>>110514730doesn't this infringe on OO principles? you implicitly bind the whole chain to the context of main making each function non reusable on it's own. you can hate on OO but this is on of the most fundamental laws in programming.
>>110528487>doesn't this infringe on OO principles?It's not OO
>>110528492doesnt really matter if it is or isnt. this prinicple was a natural evolution because people found out that such junctions lead to spaghetti. IMHO
>>110528506It doesn't matter if it breaches OO principles if it's not OO?It's for writing macros