Oh my, I always thought it was neighter, pronounced it as Jai...
@sqlexp Жыл бұрын
Jai ≠ Jai ?
@peezieforestem5078 Жыл бұрын
You mean Jay, not J?
@zrIywcN8XJdHaY13K3tx Жыл бұрын
@@peezieforestem5078 He means Jai, not Jai or Jai. Just Jai.
@anthonyewell3470 Жыл бұрын
My favorite part about jai is the fact that during Jon's first demo of the language he made it so that the language required you to play a game "well enough" to compile. He then continued on the demo and completely forgot to remove the code requiring you to play the game and the game's requirement, tried to compile, opened the game, instinctively closed the game window as he already had to close it 5 times before this happened, and was met with a message about how he was terrible after he realized what he had done XD.
@Cakez77 Жыл бұрын
What lol, so you have a clip of that. Sounds funny as hell
@@tech6hutch Usually they have a thing in the dashboard that allows the creator to show links if they so choose to let them through. Unless if they removed the option to verify links, it'd be up to him whether or not he saw it.
@tech6hutch Жыл бұрын
idk, but there were "2 replies" and I only saw one, hence why I said something (since I'd also like to see this lol)@@anthonyewell3470
@Kniffel101 Жыл бұрын
3:33 Reason it's called "The Language" (even if it's a third party tool), is because officially Jai doesn't have a name yet, so Jon only refers to it as "This programming language", "our language" or just "the language". =P
@Cakez77 Жыл бұрын
Huh interesting, always thought it was Jai. Wonder what happens if he renames the language lol
@PhyloGenesis8 ай бұрын
Omg thank you. I looked everywhere for how to pronounce it and finally was like, there's no way. He has to be doing this on purpose! Drives me crazy. Just say it once! >.< Is it Jai or Jai???
@seannewell3977 ай бұрын
"our language" **marxism intensifies**
@Argoon19816 ай бұрын
Jai stands for "Just An Idea" at lest that was the initial reason for the word.
@Kniffel1016 ай бұрын
@@Argoon1981 Nope, Jonathan _never_ said anything like that about the name. There is no official name for the language and there never was.
@irisacademyofficial Жыл бұрын
Build systems ain't the reason that build times in C++ are that slow, it's the compilation model of C++ based on generating a translation unit per file given to the compiler that makes the build times slow, and certain features, like templates, concepts, SFINAE & constraints, partial template specialization, and specially, optimizations...
@felixmuhlenberend7919 Жыл бұрын
Came here to say this. Also C is not problematic because you can't break out of two for loops. And having to include external libraries to write a game in a general purpose programming language is also not a problem (what might be problematic is that dependency management is not part of C itself).
@llothar68 Жыл бұрын
And dont forget the clean code recommendations that you need a single file just for every class, no matter how small (even enums) and that you need to include the header as the first include in the source (to make sure headers are self contained) which eliminate the ability to use precompiled headers. Also so many things could be implemented if we had whole file compilation and made the linker to do a little more (like the Objective-C linker does).
@nextlifeonearth Жыл бұрын
Partial template specialisation is not much slower than just a new class/procedure. It's an instance when you use it, for each compilation unit, that the template is instantiated that takes the most time. Especially stuff like variadic templates often call more templates, cascading into an enormous amount of generated code, that may well be duplicated in another compilation unit. Why you should just ignore people that say you should use make_unique and just use new, for instance. And forward declare all the things. I recommend actually profiling the build to find out what is taking all that time. You can do that in clang with -ftime-trace and dropping the json in some flame graphing program.
@panstromek8 ай бұрын
This is a fair point, but build systems and especially CMake add another layer of problems on top of that. CMake behaviour is often not intuitive, so It's very easy to accidentaly introduce spurious dependencies or duplicate jobs. In my experience, the compilation model of C++, combined with the way it's configured through CMake is where everything breaks. e.g. build fails because you included a header file from different target - oops, so you add the cpp file into your target and suddenly that file is built twice (even though you'd think CMake will build it once and cache it). Or, you already know about this problem, so you link the other target with your target instead, but now your target can't start building cpp files until the other completes, because CMake adds the dependency edge on full build, not on link step. I've found a ton of issues like this in the build at my previous job, 60% of the build time was basically wasted on nonsense like this.
@boshi96 ай бұрын
Includes. You often include tens or hundreds of thousands of lines of code into every .cpp file. You end up having to compile the same code over and over again.
@m4rt_ Жыл бұрын
6:40 you can use the double if in other languages too, but it looks different. For example C: if (some_condition) switch (some_stuff) { // .... it's just inline, and since the switch/match syntax is "if thing ==" it looks like that.
@rafaelbordoni516 Жыл бұрын
I thought it came with SDL2 as a lib, not that it had it's own functions to create windows and render stuff on a basic level like that, that's really good!
@Cakez77 Жыл бұрын
Yeah, I was surprised too, but I also saw the SDL2 lib, so that does exist
@Z3r0XoL10 ай бұрын
its using glfw3
@minerscale Жыл бұрын
> you can't break out of two for loops easily I don't understand why everyone hates goto. It's the correct solution. You whack a label at the bottom of the for loop, with an optional spot just before the label for the case when you don't break out of the for loop.
@andreffrosa7 ай бұрын
Or simply break ; and it breaks out of the loop
@minerscale7 ай бұрын
@@andreffrosa Hey that's just goto designed to appease people told never to use goto.
@MrAbrazildo6 ай бұрын
That was my last use of goto. But since C++11's lambda feature, I never touched goto again.
6 ай бұрын
People are simply not good developers
@asdfghyter6 ай бұрын
@@minerscale that's what all constrained control flow keywords are. the point is that they're constrained, so when you see the keyword, you know that there are only a limited number of things it can do
@m4rt_ Жыл бұрын
Welcome to the Jai beta btw. I've been using it for a little over half a year now, and I'm loving it so far. There are some small things that I would like to be slightly easier to do, but it isn't necessary, and in most cases you can easily implement it yourself using the meta programing, or the normal language features. Also, Jai is pronounced with an A not and E.
@Cakez77 Жыл бұрын
Thanks, would really like to see those metaprogramming features your talking about. I have never used anything like it even in c++
@roberthickman4092 Жыл бұрын
@@Cakez77 the compiler is an event loop that can be hooked into to control everything the compiler is doing.
@VACatholic Жыл бұрын
Is there a way for non-personality non-game devs to get access? I'm an ML person who is frustrated with some tools and curious if/how jai solves them.
@Muskar29 ай бұрын
@@VACatholic If you haven't already considered it, have you tried Odin? It doesn't have the metaprogramming, but it has many similarities and shared philosophies. Unfortunately, JB has said that the public interest in Jai is far too strong at the moment (they're getting spammed with requests), so we're discouraged from sharing how to get on right now. On another note, JB has recently said his game is getting closer to release, which I think means between 6-24 months, and if he sticks to the original plan, the language will be made mature and open relatively soon after the game is in production with low maintenance.
@VACatholic9 ай бұрын
@@Muskar2 Fair enough. I have a day job, so it'd just be a hobby anyway.
@LoneIgadzra Жыл бұрын
Lots of comparisons to things that are dumb about C++ that are not problems in any other languages. :D A module system should be a given. I've watched a lot of videos about this language, and Jonathan is always going on about how the main goal is just reducing friction when developing a game. Fast compilation speed, syntax that makes refactoring as easy as cut and paste ("if if" seems like an example of that), with compile time execution as a unique cherry on top (which other languages are just starting to see the benefit of as well). I'd be interested to hear how this plays out in a larger project.
@fleaspoon Жыл бұрын
Very nice, I will like to see more in depth videos about jai
@Cakez77 Жыл бұрын
Noted, glad you like it. I actually have one more comming
@Little-bird-told-me10 ай бұрын
Looks like Jai (2014)will remain in close beta for another 10 years meanwhile ODIN (2017) is going full steam ahead with real time game rendering.
@Cakez7710 ай бұрын
I will try out Odin soon, but it sounds really good man
@deanrumsby Жыл бұрын
I've never used c++ but started to learn c recently... Your first statement about the nested for loops... Can't you use a goto statement to break out of the inner loop?
@indiesigi7807 Жыл бұрын
indeed.
@Cakez77 Жыл бұрын
Yeah you can use go-to, bot I found that it makes the code harder to read unfortunately
@vyyr Жыл бұрын
you can absolutely do that, and its common practice when working on kernels or drivers.
@SergeyLergDev Жыл бұрын
Hey! I'm enjoying Jai as well and find it very efficient to work with. I still would like a few more syntax sugar things like struct methods or 2d array overloads. I'm currently in process of making a video on Jai + Sokol but it's taking me a very long time, the project is ready but editing the video is very time consuming. Good luck to you and your game! Be sure to port it over to Jai. And I think Sokol might be actually a nice choice for your game.
@bricebrosig2912 Жыл бұрын
Stoked for this!
@MenkoDany Жыл бұрын
Subbed, waiting for that jai vid
@SergeyLergDev Жыл бұрын
@@MenkoDany thanks guys!
@m4rt_ Жыл бұрын
15:20 I tend to just check if it is down in the event loop and just have some variables with booleans and just set them on/off using that. For example: if event.key_code == { case #char "W"; move_up = xx event.key_pressed; case #char "A"; move_left = xx event.key_pressed; case #char "S"; move_down = xx event.key_pressed; case #char "D"; move_right = xx event.key_pressed; case .SPACEBAR; jump = xx it.key_pressed; } Another way of doing it that I think Jon is doing is to call out to different functions inside the event loop so you for example have a function for handling player events, etc. for event: events_this_frame { player_handle_event(event); // ... if event.type == { case .QUIT; isRunning = false; case .KEYBOARD; if event.key_pressed if event.key_code == { case .ESCAPE; isRunning = false; case .F11; // fullscreen stuff } } }
@Cakez77 Жыл бұрын
Seems quite coupled with the update loop of the engine tho. But maybe that's good?
@rafaelkuhn10 ай бұрын
LOL from every one of C++ terrible problems, this dude really went for "you can't quit a double for loop" c'mon dude that's a simple goto statement
@m4rt_ Жыл бұрын
when looking for functions in Jai I tend to use grep manually for example: grep -rn 'read_entire_file.*::' (I use ".*" or " *" because I have seen some instances where the :: is padded weirdly, or there is more at the end of the function name)
@MenkoDany Жыл бұрын
I just want JBlow to release it already ;_;
@Cakez77 Жыл бұрын
Don't worry, it will be out in 3023 👍
@MenkoDany Жыл бұрын
@@Cakez77 how did you get into the beta? Just emailed jblow? I would email him but I'm scared of rejection since I work in the financial sector now and the last game I worked on was before 2020
@REMOX922 ай бұрын
@@Cakez77 there are any way to try Jai before 3024 ? please..
@Supakills101 Жыл бұрын
Would be interested in your opinion on Odin, whcih is publically available.
@Cakez77 Жыл бұрын
Okay looks like that is what I'm doing next
@kgnet8831 Жыл бұрын
Nice👍 Almost made me want to start a jai project.
@Cakez77 Жыл бұрын
Hey that's great to hear, glad I could inspire you
@m4rt_10 ай бұрын
fun fact, you can do this foo := (a: int) -> int { /* ... */ } which essentially is a function pointer thing, and to make a function pointer with no default function you do something like this: foo : #type (int) -> int;
@Jutastre6 ай бұрын
Oh god, will the js brainrot of always making pointers to anonymous functions spread to jai?
@m4rt_3 ай бұрын
@@Jutastre Just because you can do something, it doesn't mean that you have to do it. Also, function pointers is a thing in a lot of languages, not just JS. Btw, C++ has this: auto foo = [](int a) { return a * 2; }; Jai just has a nicer way to do it. So you can have a function that can't be reassigned inside a function: foo :: () { bar :: () { } bar(); } or you can make it so it can be reassigned foo :: () { bar := () {} baz :: () {} bar(); bar = baz; bar(); }
@martin128 Жыл бұрын
Pretty good video as it gives an idea how it would be to use Jay language
@ulrich-tonmoy Жыл бұрын
Who will come on top Zig || Odin || Jai
@Cakez77 Жыл бұрын
Haven't tried the other two, but Jai was really good
@delphicdescant Жыл бұрын
My bet's on Zig, and it's not even close imo. I think the other two are *waaay* farther away from hitting any sort of critical mass.
@Cakez77 Жыл бұрын
What makes Zig so good?
@ulrich-tonmoy Жыл бұрын
@@Cakez77 @delphicdescant i guess so just for the case that it comes with c/c++ compilers and build system so like we already have big code base that cant be rewritten so they might try the build system as a start then might start using zig along with their prev code base thats where Zig even comes on top of Rust its just its not yet prod ready v1
@alal7946 Жыл бұрын
@@Cakez77its comptime Feature and low-level-support (combined with the ability to use C Code)
@AdrianMRyan Жыл бұрын
Very interesting video. I agree with you on how you learn programming, just going and exploring is my favorite way as well. I also usually find that I don't actually understand the "how-to" docs until I've already gone through and figured out enough of the language myself anyway. Bc they're written by people who already understand the language, they usually don't do a good job of explaining it to folks who don't already. The name:type syntax seems to be gaining steam across a number of modern programming languages, from TypeScript to Rust to Go. My understanding is that it's easier for the compiler to parse, especially for languages that do a lot of type inference. It's also more in line with mathy algebraic type systems, and thus is common in the ML family of languages (Haskell, OCaml, etc), which these languages (especially TS & Rust) are directly inspired by. I am not sure how much Jai takes influence from them other than in the basic syntax. I personally have found that once I got used to it, I prefer it. I am curious, given the "function names are constants" thing, whether Jai has strong support for higher-order functions? I know its metaprogramming story is strong (and is similar to Zig's compile time programming, if I recall?), but I haven't seen anyone talk about functional programming paradigm support in Jai.
@Cakez77 Жыл бұрын
The proper way of learning yep also more fun
@Cakez77 Жыл бұрын
I don't know about the higher order functions tho, I'm not that involved yet
@GaryChike Жыл бұрын
I like the pronunciation J-eye as in Chai. Jai just jives with me.
@Cakez77 Жыл бұрын
It's just how I say it lol, most be my German seeping in
@snbv5real6 ай бұрын
You can return multiple values in C++ with structured bindings.
@WhoLeb7 Жыл бұрын
Randy is programming Arcane in jai, really recommend his channel, he’s a fun guy
@Cakez77 Жыл бұрын
I'm actually watching his videos on that yeah, been a lot of fun
@AdrianMRyan Жыл бұрын
What videos are these? Would love to see more.
@maxrinehart4177 Жыл бұрын
Would love a link to his channel. I found channel by name randy who is a game dev but his videos are shorts and more show case oriented than programming.
@AntonioNoack Жыл бұрын
@4:04 looks like you didn't clone the repository recursively
@Cakez77 Жыл бұрын
It's just a .zip file to download. As far as I know there is no "cloning"
@FaranAiki Жыл бұрын
@@Cakez77I guess they meant to use the command `git clone --recursive`
@CODEDSTUDIO Жыл бұрын
What about Odin Lang? can you compare them, odin, C++ and Jai
@Cakez77 Жыл бұрын
Yeah, thanks for the suggestion. I will try out Zig and Odin too and then make a comparison
@jumpman120 Жыл бұрын
I really like jonathan blow and this langage
@MrPoselsky Жыл бұрын
I wonder how he achieved those build times in less than a second.
@Cakez77 Жыл бұрын
Yeah me too, I think it's building it as a unity build internally. I get similar build times with c++ where using unity build
@cyanmargh Жыл бұрын
There are 3 main reasons for this: 1) comparing to c++, jai is designed much easier to analyze (especially metaprogramming part) 2) it doesn't do a lot of crazy optimizations stuff, that gcc does and instead gives user easy way to optimize their code with "modern" techniques like allocator switching. 3) there are no incremental building by default
@EidasMusic4 ай бұрын
The Jonathan Artificial Intelligence language for videogames.
@m4rt_ Жыл бұрын
4:45 I didn't expect to see my example code thing for OpenGL in Jai here lol. ... it's weird to see people use my code to learn themselves... but it's nice too.
@Cakez77 Жыл бұрын
oh lol it was your code? Well yeah it was very helpful to get started. In my opinion it should be part of the examples
@A404M4 ай бұрын
Actually you can break from two for-loops easily by just one simple `goto` statement (And yes goto isn't that evil just like anything else)
@delphicdescant Жыл бұрын
As someone writing large projects in Zig already, it's going to be much more difficult for a language like Jai to pull me away than it would have been to pull me away from C++...
@Cakez77 Жыл бұрын
Sounds interesting, what makes it so good compared to c++? Maybe I should really try it out
@androth1502 Жыл бұрын
@@Cakez77 the c/c++ interop alone makes it one of the best languages for people coming over from the (C)lan
@ViaConDias Жыл бұрын
I agree. With Zig out to replace C, Odin aimed at game dev, and Nim being so amazingly easy, fast, and compiling to C/C++, Objective-C, and JavaScript, Jai is late to the party and really has to stand out to gain traction.
@filipg4 Жыл бұрын
There's no difference in Jai. You can use any C library and even generate bindings automatically @ev3rybodygets177
@wiktorwektor123 Жыл бұрын
@@Cakez77 No macros, Zig uses code execution during compilation to do generics and other fancy stuff. I don't have to learn CMake, premake, Ninja etc... Zig build system is written in Zig and is inside: "build.zig" file, which compiler reads and executes during compilation of your program/library. Zig can compile C better than C compiler (it has LTO enabled by default). You can import C headers directly (no bindings required), you can look at Raylib "src" directory for "build.zig", because official Raylib binaries are compiled by Zig. This leads to another point: Zig is cross compiler, this means I can compile Zig code and C code from one platform like Windows or Linux or Mac to any other platform. I don't have to switch systems, running VMs, buying new hardware (in case of Mac). That's from the top of my head is experience of using Zig for 3 months. Zig is also simple, you can learn it within one week or faster (depending on how much time you put into), while learning C++ is equal to years of dedication.
@Jaqopx Жыл бұрын
What is the software appears at 11:16 minutes
@Cakez77 Жыл бұрын
Oh, it's called RenderDoc, it allows you to inspect graphics applications
@Jaqopx Жыл бұрын
Thank you @@Cakez77
@nextlifeonearth Жыл бұрын
"you can't break out of two for loops easily" Goto: "am I a joke to you?"
@PedroAbreu-im4sd11 ай бұрын
i also thought about this
@kinetic93 Жыл бұрын
I’d bet the explicit char call in the character binding has to do with UTF encoding and languages. Keys like esc or return are common keyboard keys where’s as letters are language dependent. Not my speciality but that was ringing some Go similarity bells in my head
@franklemanschik_de Жыл бұрын
Amazing
@PolarisMyWay10 ай бұрын
It's really hard to understand the people waiting for Jai release if Odin lang is ready ...
@Cakez7710 ай бұрын
I will try out Odin soon, I wonder if it's good
@maxrinehart417710 ай бұрын
@@Cakez77 Odin took a lot of inspirations from jai, the first thing that you would notice is how similar the syntax is. Also Odin is used in production, there's this company called gangafx which Bill (odin creator) work in, wrote its flagship real-time volumetric fluid simulation tool in Odin, EmberGen, they also WIP two new software, GeoGen for terrain generation and LiguiGen for liquid simulation. EmberGen used widely in Hollywood and some game development studies use it too.
@ivanbraidi Жыл бұрын
The answer: yes.
@Cakez77 Жыл бұрын
We will see, seems like there is Zig as well
@Pspet10 ай бұрын
I would pay money to see JBlow react to the first 10 seconds of this video lol
@Cakez7710 ай бұрын
Would the intro trigger him? :O
@Pspet10 ай бұрын
@@Cakez77He advocates that C++ is a really terrible language, but it does somethings right that most other languages fail to do, so that's why we use it in games. This comes in complete contrast with your opening statement lol, and then you go on to say that it has some problems and the first thing you mention is that yoi can't break out of 2 for loops, and i laughed because he would consider this reason such a trivial not even worth mentioning shortcoming of the language, that's why I said it lol. You may want to watch his 2018 talk "Jon Blow's Design decisions on creating Jai a new language for game programmers", I find that interesting
@sdstorm5 ай бұрын
Wait, were able to set woosync in the end?
@lolcat694 күн бұрын
You can exit out of two for loops with a goto....
@microdavid7098 Жыл бұрын
Can jai be used for mobile?
@Cakez77 Жыл бұрын
The goal is to support mobile, but as it stands I don't think it's supported
@ESPkenner487 ай бұрын
Im not into making games but Im into repacing c++ could it be used for general programming?
@OxygenMagnet Жыл бұрын
0:08 goto???
@matthewpeterson5159 Жыл бұрын
so how exactly do i get access to Jai? i've wanted access for like half a decade at least lol
@Cakez77 Жыл бұрын
You have to ask Jonathan Blow for access. Write him an E-Mail with who you are and what you would like to do
@benjaminpedersen9548 Жыл бұрын
@@Cakez77 Is that how you got access? My impression is that most get access by getting a key from someone already in the beta.
@felixp5353 ай бұрын
@@benjaminpedersen9548 I litteraly just asked Jon by email and got into the beta. Most people just don't go that far so it seems to be enough. At least at the time it was
@nikkehtine6 ай бұрын
Jai is the most based lang we've got in recent years
@Jack-b4s3g2 күн бұрын
You can break 2 for loops by goto
@AnimeGIFfy9 ай бұрын
C++ and javascript had a baby, but after a few years, it was found out that the real father is python
@nanthilrodriguez Жыл бұрын
J is a programming language. Jai is also a programming language. J is pronounced "J". Jai is pronounced "J-eye"
@EmberDRG Жыл бұрын
"you get modules which are the C++ libraries" "that are otherwise very difficult in C++ without a library" "that is a huge benefit of Jai" what????
@cristhofermarques6880 Жыл бұрын
Try odin sometime, its like jai at some point
@Cakez77 Жыл бұрын
Second time I hear this, will do yeah. Sounds interesting
@monsieuralexandergulbu367811 ай бұрын
Broz there not language called "J"
@nadeekathusharidayananda4094 Жыл бұрын
You should try odin next, its like jai too
@Cakez77 Жыл бұрын
I have never heard of it, 🤔
@encapsulatio Жыл бұрын
@@Cakez77 Odin is more ergonomic than Zig and also has inbuilt features that makes it easier to do gaming, VFX type development. Odin has the best error handling when compared to Zig, Go(and even something fancy as Rust) according to Rickard Andersson who was so impressed by the language and how the features work together that he made a whole Odin programming playlist on youtube.
@raymonskjrtenhansen9119 Жыл бұрын
Returning a tuple with a success bool. Almost an Option/Maybe type from functional programming. So close, but alas. :)
@m4rt_ Жыл бұрын
You can implement your Option/Maybe using a struct with an enum or bool and a polymorphic variable inside, and some functions if you don't want to check it manually.
@teddykayy6 ай бұрын
Is it really cross platform?
@Cakez776 ай бұрын
Yeah
@teddykayy6 ай бұрын
@@Cakez77 damn, that's impressive. I simply MUST get access to the beta to try for myself
@owenpalmer8242 Жыл бұрын
Why do you call it Jay?
@Cakez77 Жыл бұрын
Because that's how I say it? Dunno
@anon_y_mousse7 ай бұрын
If I watch enough of these videos on Jai, eventually I might just write a compiler for it and release it before Jon Blow does. Although, I do think he went in the wrong direction with a lot of the constructs. I don't like the way he handles switches, both the casing syntax and breaking versus falling through. The Pascal style typing has gotten out of hand with newer languages, and the way he does constants. I don't like the import syntax, especially if it requires those quotes and doesn't allow for a comma separated list. The fact that it does allow namespacing a given import is cool, but the way it does so annoys me. I went in a lot of completely different directions than he did for my own language. If he doesn't release Jai before I release my own language...
@JaeDakes-g8i4 ай бұрын
Keegan Mission
@DickensEmma-u7r3 ай бұрын
Nolan Ville
@RafaelCapati11 ай бұрын
How can one get access?
@MrAbrazildo Жыл бұрын
9:44, I hate any char separating the variable name and its type, specially if it requires pressing shift. I won't even use Carbon, if they won't change that s** syntax! However, the if with no ( ) was nice. Does this hit compilation time?
@benjaminpedersen9548 Жыл бұрын
Well, the developer's own machine compiles 250,000 lines per second and he wants to hit 1 million once it is more feature stable.
@lucasmontecАй бұрын
Everything looks so good except for that type after. dang, I hate languages declaring the type after the name.
@HowardCheatham-x1c4 ай бұрын
Monica Cliff
@Alexander_Sannikov6 ай бұрын
gamedev graphics library should not be a part of any standard library. it's just too volatile, and its entire pipeline keeps evolving much faster than any language can ever hope to maintain. even first party graphics libraries like vulkan constantly suffer from "we're evolving too fast" problems. building a language with built-in vulkan support is a non-starter.
@rallokkcaz Жыл бұрын
Jai! Not J,
@rallokkcaz Жыл бұрын
Ja-eye
@Cakez77 Жыл бұрын
Lol
@zanagi7 ай бұрын
15:04 lmao wtf
@TheBlackMaster Жыл бұрын
what do you think about rust ? I think that language can replace c++
@Cakez77 Жыл бұрын
I think the problem of rust is the borrow checker but I have never used it so I have to try it first to know for sure
@TheBlackMaster Жыл бұрын
@@Cakez77 Garbage collection vs borrow checker.
@u9vata Жыл бұрын
@@TheBlackMaster Its not GC vs BC. I actually have a language idea in my mind that does not do borrow checking, but neither GC and in memory safety its not as good as rust, but handles 99% of cases (and only error in remaining 1% if you are noob) - all while its much-much more simple and let a lot of valid and safe programs through that rust does not. For me rust is so much productivity pain for useless gain (I do not make those issues anyways in modern cpp) that I rather use modern C++ and code faster...
@SandraLopez-s9v4 ай бұрын
Friesen Spur
@androth1502 Жыл бұрын
jai was "released" in beta 4 years ago and it's still vapor. a huge number of what would have been jai adopters have already gone to odin and zig.
@Cakez77 Жыл бұрын
But they could come back if the language is good when it releases, you never know
@androth1502 Жыл бұрын
@@Cakez77 I think it would have to be a lot better than what they are currently using to entice them to make the switch. and honestly from what I've seen it's not better than either of the two I mentioned.
@FaithEdits Жыл бұрын
Assuming Jon Blow even wants such attention like that
@dandymcgee Жыл бұрын
If you've ever followed *any* of Jon's projects you'll know he doesn't rush things out to beat the competition. That's not his strategy and never will be. He doesn't care about winning the short-term race, he cares about making the best goddamn language he can, and so far, he's doing a pretty fine job of it IMO. But yeah.. it totally sucks that not everybody has easy access to it, and I can understand how it feels dead if you're not in the beta and getting the weekly release notes of the insane amount of stuff being improved and changed. He's also the CEO of a company that's building quite a few other projects right now (Braid: Anniversary Edition just got a release date announced, and he constantly streams his Sokoban game's development on twitch, plus other, yet-unannounced projects). Building great things takes time.
@androth1502 Жыл бұрын
@@dandymcgee zig and Odin aren't being 'rushed' either, yet those are two great products that are on par or better than jai that people can use right now. the reason jai isn't out now is because Jon is an elitist and his ego can't take getting criticisms, or suggestions from people he considers to be beneath him.
@Reichstaubenminister6 ай бұрын
Not reading the docs and just jumping into it is even more German than your accent.
@Cakez776 ай бұрын
Lol
@ktappdev Жыл бұрын
They borrowed good things from Golang
@Cakez77 Жыл бұрын
And those things would be? Never tried golang
@georgeokello8620 Жыл бұрын
Golang is garbage collected. Just stop
@snatvb6 ай бұрын
dynamic laguages should be illegal
@Renni-kg6vf Жыл бұрын
Like the idea, not a big fan of the syntax
@sanjacobs62612 ай бұрын
I don't know about calling C++ "great"... It's mid at best. Header files and needing forward declaration at this point is only pain.
@MrMastrsushi9 ай бұрын
I admire you for challenging Blow with these videos. There's a lot of worshippers who just follow every idea he comes up with and it's pretty dangerous.
@DegradationDomain_stuff3 ай бұрын
Nah, this language is way too incomplete at this point in time. I'll check it out in 10 years.
@Calypso6945 ай бұрын
C++ is outdated and needs to die or evolve but nobody wants to do it. The games industry is so held back by still using C++.
@richardcsernus68452 ай бұрын
what why
@Calypso6942 ай бұрын
@@richardcsernus6845 because its outdated? Sure its fast as hell bu its only getting more complex as people update it. Its still a needlessly abstract language that while others are slow still do garbage collection and other features that C++ does not. the games industry for example could migrate to another language and people wouldnt knwo the difference. Having to rely on strict memory management like before isnt needed anymore when you have game engines that do it for you.
@doBobro Жыл бұрын
If an ability to create a window in a one line is a single plus it's not a very good language TBH. sdl/raylib/whatever allows to make it in any language in more cross-platform way. At this point I think the whole video is big fat sarcasm rant about jai forever beta.
@Cakez77 Жыл бұрын
Lol 😂 I mean for me it is. The good thing is that the library is maintained by Jai and not a third party to that you have to add manually. That's mostly my point
@benjaminpedersen9548 Жыл бұрын
That is not the main point of the language. The metaprogramming and compile-time execution features plus a bunch of smaller design decisions are the big selling points. Honestly, I think the in-program build system is a huge deal.
@GeorgeTsiros6 ай бұрын
Still don't see the point.
@jumpman120 Жыл бұрын
simp module 😂😂 !r
@Cakez77 Жыл бұрын
KEKW
@quinndirks56538 ай бұрын
It's pronounced jai, like with more of an "i" sound.
@mattymattffs6 ай бұрын
Really, walrus for assignment. Yeah, no thanks
@nolram Жыл бұрын
My biggest gripe with Zig, Odin and Jai is their left-handed variable type declaration and also type inference being the default. Makes readability so much worse.
@Cakez77 Жыл бұрын
It's definitely switch up yeah. Takes time getting used to
@nolram Жыл бұрын
@@Cakez77 It's not even that it's a readjustment - it has been proven that it is actually worse for readability to have types right aligned instead of left like C. Why? Because your brain can parse the types of whole blocks of variables much faster that way, without even having to read them. Here's a basic example with just some primitive types: float myFirstFloat float mySecondFloat float myThirdFloat int someInteger int breaksNamingConvention bool someCondition string someText Compared to: myFirstFloat float mySecondFloat float myThirdFloat float someInteger int breaksNamingConvention int someCondition bool someText string As you may be able to tell, finding a specific variable of a specific type is much harder this way. In the case of primitives specifically, there's actually a funny thing where they are all (mostly) have different name character lengths, making them *even easier* to parse when they are aligned in a block like one would do in C: int (3) bool (4) float (5) string (6) That's why, as someone who really needs and wants this code readability as I have poor eyesight, this "trend" in many modern languages to change this is genuinely extremely frustrating. The over-use of type inference is similarly annoying, as understanding what a block of code does and what types it has gets much harder when they aren't explicitly stated anywhere - I mean, try reading a python script and understanding what any variable's type is. Thanks for coming to my TED Talk.
@Giga4ever Жыл бұрын
@@nolram That's a lot of nonsense. The type is rarely important, and if you can't infer it from the context, your code probably sucks. Using Python, a dynamically typed language, as an argument for type inference in a statically typed one shows a clear lack of experience/knowledge.
@nolram Жыл бұрын
@@Giga4ever Well, a dynamically typed language is just an extreme example to visualise the point. Types in statically typed languages ALWAYS matter, especially for readability of code. Knowing what data your code operates on is key - there's very few more important things. And "inferring from context" not only takes more time than just... seeing it, it also leads to less awareness, and especially in larger codebases you can't rely on knowing the context. Using explicit types makes code more readable and faster to parse and is superior in almost every single scenario. You read your code more than you write it.
@m4rt_ Жыл бұрын
That's not readability being worse it's just how used to it you are.
@HarrimanLennon-o1c3 ай бұрын
Anderson Jeffrey Garcia James Robinson Larry
@romangeneral236 ай бұрын
Nope, it will not replace C++
@ShadeEleven11 Жыл бұрын
test comment
@Cakez77 Жыл бұрын
Confirmed
@doce3609 Жыл бұрын
it is not jei bro
@Cakez77 Жыл бұрын
You can jai deez nutz bro
@PalmerAbel-h9f3 ай бұрын
Jones Dorothy Thomas Anna Jones Robert
@Giga4ever Жыл бұрын
I don't really see the point of Jai at this point. Zig and Rust are more likely to be C/C++ successors. Zig gets rid of many warts of C(no more weird macros or operator overloads), while Rust puts correctness first(basically no runtime errors/asserts/seg faults 99% of the time, for the cost of it being more opinionated). Jais's huge "sell" being that it ships with some dependencies is kinda weird when any modern language has a package manager, but basically any language has something like "Simp".
@Cakez77 Жыл бұрын
Gonna try Zig and Rust to see for myself, but I have heard bad things about rust compilation times.
@Giga4ever Жыл бұрын
@@Cakez77 The people who are complaining about the compile times are the people who pull in hundreds of dependencies. A game written in pure OpenGL and with the Windiows-API compiles in 0.5 seconds for me.
@BoardGameMaker4108 Жыл бұрын
I think Rust and Jai aim for different things. Rust ensures program correctness at the expense of compile-time. Jai ensures fast compile-time at the expense of program correctness. One thing that is very powerful about Jai is it has powerful reflection capabilities - you can write Jai code that dynamically reads the output of the parser and makes adjustments to it before the code is compiled. This means you can very easily write code-generators in Jai for generating boilerplate for you. Rust and C++ at the moment don't support reflection like that.
@austecon6818 Жыл бұрын
@oscarsmith-jones4108 Wouldn't it be possible in Jai to write static compile time checks that enforce safety in a targeted way so that new devs don't break project-specific rules? For the really hard problems this means static checks and project-specific rules can be enforced that even rust cannot do but with fast compile times.
@mrtetillas75049 ай бұрын
see windows 10... dont care
@dimscrawl49107 ай бұрын
WHAT IS YOUR CHAT FONT 🤮
@theohallenius8882 Жыл бұрын
It will forever be in closed beta 🤣
@Cakez77 Жыл бұрын
yeah it could be lol
@cyanmargh Жыл бұрын
As one of the participants said (maybe it was tsoding, but not sure): "instead of ending the closed beta, it will just grow enough so everyone who interested will have access"
@theohallenius8882 Жыл бұрын
@@cyanmargh I was interested, 5 fkng years ago, never got access. Now I'm all about Rust anyway so who cares
@bobweiram63215 ай бұрын
Without evaluating at its technical merits, Jai is just another ugly language. The double if just looks and feels wrong. Beauty in construction yields excellence in performance and quality.