[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: JAI.png (21 KB, 819x703)
21 KB PNG
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.
>>
>>110514730
Niggerllicious
>>
>>110514730
this is not very different from unhygenic macros lol
none 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.
>>
>>110515206
Dismissing 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
>>
>>110515301
language 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.
>>
File: GOAT.jpg (134 KB, 1200x680)
134 KB JPG
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.
>>
>>110514730
jai hind
>>
>>110514730
why would I want this? this shit is so retarded, like now I will do more mental gymnastics than with retarded OOP codebases
just 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
>>
>>110514730
been doing this in my lang
scopes, bilateral explicitness, ubiquitous state model, [...]
>>
>>110515382
>this kind of syntactic sugar is for humans writing code
Metaprogramming 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
>>
>>110515561
this isn't metaprogramming. it's just macros.
>>
>>110515382
>this kind of syntactic sugar
Kind 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 :3
I'm gonna continue using Odin.
>>
>>110514730
link the beta
>>
>>110515669
That's not how Jai works.
>>
>>110515993
wdym
how do i compile with jai
>>
>>110515646
Odin is for low level game engine dev?
>>
>>110516021
yes, though beyond surface level syntax, they're two wildly different languages
>>
File: izumiteasmug.gif (683 KB, 498x280)
683 KB GIF
>>110514730
coolbrah dont care cuz this language will never come out. its been 12 years brah
>>
>>110515382
wtf are you talking about are you seriously so retarded you don't write code?
>>
basically >>110515164
it's garbage design to reduce boilerplate, in an era where it doesn't matter
>>
File: 1784182404646635.png (1.75 MB, 1519x891)
1.75 MB PNG
>>110514730
>here's that indie game and compiler dev I was telling you about
>>
>>110516691
why doesn't he have real guns?
>>
>>110516762
they are real, the airsofts thing is for twitch's sake
>>
>>110514730
>syntax is full of unnecessary symbols
has C++ taught people nothing
>>
>>110515565
macros are metaprogramming
>>
File: 1775674888332.jpg (99 KB, 904x864)
99 KB JPG
>>110514730
Why would I ever want to get on Jai, when its bus factor = 1, and the author is a unpragmatic ideologically-driven narcissistic sperg?
>>
>>110516804
most people don't have experience with languages outside the family.
at least it's not verbose algol-like crap
>>
>>110514730
Also, 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
>>
>>110516857
the :: 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...
>>
>>110517031
hmm, 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?
>>
>>110515164

I agree. That is too niggerlicious. It's too much voodoo
>>
File: 1734289142011897.jpg (169 KB, 1075x1329)
169 KB JPG
>>110514730
WHY WOULD I EVERRRRR WANT TO DO THIS? IS HE INSANE?
>>
>>110515646
>use the language with go-style syntax
no, i don't think i will
>>
File: file.jpg (49 KB, 990x682)
49 KB JPG
>>110515164
>>110514730
>>
>>110514730
took him 10 years to reinvent dynamic scoping and unhygienic macros
what a waste
>>
/v/ are saying that order of the sinking star was code that self modifies at runtime!
>>
>>110514730
Unironically, 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
>>
>>110516691
there is no way the guy doesn't reugularly use this website
hello Jonathan I hope you are doing well :]
>>
>>110514730
So many buzzwords. So little meaning. Where to even start?
>scopes
If 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 citizens
Only 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.
>>
>>110515400
Checked and keked.
>>
>>110519921
I hope every-bodies enjoying the game!
>>
>>110514730
Cool, I am sure Claude will appreciate this cuz I ain't writing code by hand no more.
>>
>>110516762
more importantly why doesn't he have a screwdriver at home?

I even have a small portable one in my backpack
>>
>>110516883
why? 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 metaprogramming
ig jai releasing after the game was done was a lie
this is going to take another decade
>>
File: sippy.png (40 KB, 900x805)
40 KB PNG
>>110523544
yandere simulator the language
>>
>>110514730
are these scopes dynamic? looks like fake news, desu.
>>
File: floop.png (14 KB, 324x295)
14 KB PNG
>>110514730
Impressive. Almost as impressive as FLOOP.
>>
>>110522132
its regular but its shit
>>
>>110515382
truth nuclear weapon
>>
>>110515396
kek
>>
File: jon_shotgun.png (1.96 MB, 2733x1532)
1.96 MB PNG
>>110516691
heard 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 trusted
what's the matter, blowboy, afraid you might compile something?
>>
File: file.png (80 KB, 457x438)
80 KB PNG
we're going in
>>
>>110514730
Throw more buzzwords at me, you filthy whore.
>>
>>110515164
I came to this thread to ask
>what the hell is this disgusting looking shit
but this expresses it better
>>
>>110526801
tetelindagata @ boxmail1 . name
send it here if you're serious
>>
>>110526598
sorry sir
>>
>>110527000
>send it here if you're serious
enjoy
>>
wow crazy how after all this time the language still doesn't exist!
>>
>>110523544
odin beating jai to 1.0 is necessary for jblow's humiliation
>>
>>110527128
neither one is all that impressive desu. just the status quo codified with meager refinements found along the way.
>>
>>110527150
What's an impressive language then?
>>
>>110527184
Ada
>>
>>110527232
Explain...
>>
>>110527184
Cosmos
>>
>>110527316
There'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 expansion
Maybe I'm wrong and I don't get it thoughoverbeit
>>
>>110527184
you'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.
>>
>>110527792
What's wrong with LLVM
>>
>>110527477
accessing the scopes can be useful in macros. i have no clue how macros work in jai though.
>>
>>110527807
i 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 done
That's innovation
Nobody wants some revolutionary new programming language that doesn't work the way they're used to, they want what they're used to but better
It'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?
>>
>>110527930
That doesn't matter to the end user
>>
>>110527932
these scopes are not closures. you're making a wrong assumption.
>>
>>110515382
You can immediately spot the unemployed retards trying to refute this lmao
>>
>>110514730
This is how CSS will look in 3 years
>>
>>110514730
doesn'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
>>
>>110528492
doesnt really matter if it is or isnt. this prinicple was a natural evolution because people found out that such junctions lead to spaghetti. IMHO
>>
>>110528506
It doesn't matter if it breaches OO principles if it's not OO?
It's for writing macros



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.