I Tried JAI, Can It Replace C++?! (Programming Language)

  Рет қаралды 38,824

Cakez

Cakez

6 ай бұрын

In this video I try out the programming language Jai made by a former C++ game developer called Jonathan Blow. I'm building a simple game and learning the language as a go. Jai is currently in Beta and only available if you ask for access.
····················································································
Twitch ➤ / cakez77
Twitter ➤ / cakez77
Patreon ➤ / cakez77
Discord ➤ / discord
TokTok ➤ / cakez_77
Coding ► / @cakezdev
Gaming ► / @cakeztv
····················································································
My Game Tangy Defense
store.steampowered.com/app/22...
····················································································
* About Me *
Hey! And welcome. I'm an indie game developer, currently working on a Tower Defense Game written entirely in C/C++, I tried using Unity or Unreal Engine in the past, but never really found much success. I'm mostly posting devlog / devblog videos where I show off the progress I make on the game.
····················································································
Check out some of my other videos!
• I Tried JAI, Can It Re...
• First Time Using Godot...
• Tired Of Unity? Let's ...
• This Made My Game So M...
• I Made Vampire Survivo...
• A Day In The Life Of A...
• My life changing year ...
····················································································
#coding #gamedev #stream #jai

Пікірлер: 214
@dandymcgee
@dandymcgee 6 ай бұрын
It's pronounced Jai, not Jai.
@Cakez77
@Cakez77 6 ай бұрын
🤓
@vitalyl1327
@vitalyl1327 6 ай бұрын
Oh my, I always thought it was neighter, pronounced it as Jai...
@sqlexp
@sqlexp 6 ай бұрын
Jai ≠ Jai ?
@peezieforestem5078
@peezieforestem5078 5 ай бұрын
You mean Jay, not J?
@PCXyHOHSmF
@PCXyHOHSmF 5 ай бұрын
@@peezieforestem5078 He means Jai, not Jai or Jai. Just Jai.
@anthonyewell3470
@anthonyewell3470 6 ай бұрын
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
@Cakez77 6 ай бұрын
What lol, so you have a clip of that. Sounds funny as hell
@anthonyewell3470
@anthonyewell3470 6 ай бұрын
@@Cakez77 kzfaq.infoUgkxiIlkFWoCwX2jzIo-4F3I53Ae0hBuNfQ8?si=z3fi_J-vPPiiDUxl
@tech6hutch
@tech6hutch 5 ай бұрын
Links are shadowbanned by KZfaq btw
@anthonyewell3470
@anthonyewell3470 5 ай бұрын
@@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
@tech6hutch 5 ай бұрын
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
@minerscale
@minerscale 4 ай бұрын
> 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.
@Kniffel101
@Kniffel101 5 ай бұрын
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
@Cakez77 5 ай бұрын
Huh interesting, always thought it was Jai. Wonder what happens if he renames the language lol
@PhyloGenesis
@PhyloGenesis Ай бұрын
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???
@irisacademyofficial
@irisacademyofficial 5 ай бұрын
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
@felixmuhlenberend7919 5 ай бұрын
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
@llothar68 5 ай бұрын
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
@nextlifeonearth 4 ай бұрын
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.
@panstromek
@panstromek 29 күн бұрын
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.
@m4rt_
@m4rt_ 6 ай бұрын
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.
@fleaspoon
@fleaspoon 6 ай бұрын
Very nice, I will like to see more in depth videos about jai
@Cakez77
@Cakez77 6 ай бұрын
Noted, glad you like it. I actually have one more comming
@rafaelbordoni516
@rafaelbordoni516 6 ай бұрын
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
@Cakez77 6 ай бұрын
Yeah, I was surprised too, but I also saw the SDL2 lib, so that does exist
@Z3r0XoL
@Z3r0XoL 2 ай бұрын
its using glfw3
@LoneIgadzra
@LoneIgadzra 5 ай бұрын
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.
@kgnet8831
@kgnet8831 6 ай бұрын
Nice👍 Almost made me want to start a jai project.
@Cakez77
@Cakez77 6 ай бұрын
Hey that's great to hear, glad I could inspire you
@m4rt_
@m4rt_ 6 ай бұрын
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
@Cakez77 6 ай бұрын
Thanks, would really like to see those metaprogramming features your talking about. I have never used anything like it even in c++
@roberthickman4092
@roberthickman4092 5 ай бұрын
@@Cakez77 the compiler is an event loop that can be hooked into to control everything the compiler is doing.
@VACatholic
@VACatholic 5 ай бұрын
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.
@Muskar2
@Muskar2 2 ай бұрын
@@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.
@VACatholic
@VACatholic 2 ай бұрын
@@Muskar2 Fair enough. I have a day job, so it'd just be a hobby anyway.
@m4rt_
@m4rt_ 6 ай бұрын
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)
@m4rt_
@m4rt_ 3 ай бұрын
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;
@SergeyLergDev
@SergeyLergDev 6 ай бұрын
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
@bricebrosig2912 6 ай бұрын
Stoked for this!
@MenkoDany
@MenkoDany 6 ай бұрын
Subbed, waiting for that jai vid
@SergeyLergDev
@SergeyLergDev 6 ай бұрын
@@MenkoDany thanks guys!
@AdrianMRyan
@AdrianMRyan 5 ай бұрын
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
@Cakez77 5 ай бұрын
The proper way of learning yep also more fun
@Cakez77
@Cakez77 5 ай бұрын
I don't know about the higher order functions tho, I'm not that involved yet
@martin128
@martin128 4 ай бұрын
Pretty good video as it gives an idea how it would be to use Jay language
@Supakills101
@Supakills101 6 ай бұрын
Would be interested in your opinion on Odin, whcih is publically available.
@Cakez77
@Cakez77 6 ай бұрын
Okay looks like that is what I'm doing next
@m4rt_
@m4rt_ 6 ай бұрын
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
@Cakez77 6 ай бұрын
Seems quite coupled with the update loop of the engine tho. But maybe that's good?
@deanrumsby
@deanrumsby 6 ай бұрын
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
@indiesigi7807 6 ай бұрын
indeed.
@Cakez77
@Cakez77 6 ай бұрын
Yeah you can use go-to, bot I found that it makes the code harder to read unfortunately
@vyyr
@vyyr 5 ай бұрын
you can absolutely do that, and its common practice when working on kernels or drivers.
@MenkoDany
@MenkoDany 6 ай бұрын
I just want JBlow to release it already ;_;
@Cakez77
@Cakez77 6 ай бұрын
Don't worry, it will be out in 3023 👍
@MenkoDany
@MenkoDany 6 ай бұрын
@@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
@GaryChike
@GaryChike 5 ай бұрын
I like the pronunciation J-eye as in Chai. Jai just jives with me.
@Cakez77
@Cakez77 5 ай бұрын
It's just how I say it lol, most be my German seeping in
@CODEDSTUDIO
@CODEDSTUDIO 6 ай бұрын
What about Odin Lang? can you compare them, odin, C++ and Jai
@Cakez77
@Cakez77 6 ай бұрын
Yeah, thanks for the suggestion. I will try out Zig and Odin too and then make a comparison
@kinetic93
@kinetic93 5 ай бұрын
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
@RafaelCapati
@RafaelCapati 4 ай бұрын
How can one get access?
@Little-bird-told-me
@Little-bird-told-me 3 ай бұрын
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.
@Cakez77
@Cakez77 3 ай бұрын
I will try out Odin soon, but it sounds really good man
@ESPkenner48
@ESPkenner48 12 күн бұрын
Im not into making games but Im into repacing c++ could it be used for general programming?
@franklemanschik4862
@franklemanschik4862 5 ай бұрын
Amazing
@WhoLeb7
@WhoLeb7 5 ай бұрын
Randy is programming Arcane in jai, really recommend his channel, he’s a fun guy
@Cakez77
@Cakez77 5 ай бұрын
I'm actually watching his videos on that yeah, been a lot of fun
@AdrianMRyan
@AdrianMRyan 5 ай бұрын
What videos are these? Would love to see more.
@maxrinehart4177
@maxrinehart4177 5 ай бұрын
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.
@jumpman120
@jumpman120 5 ай бұрын
I really like jonathan blow and this langage
@matthewpeterson5159
@matthewpeterson5159 6 ай бұрын
so how exactly do i get access to Jai? i've wanted access for like half a decade at least lol
@Cakez77
@Cakez77 6 ай бұрын
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
@benjaminpedersen9548 5 ай бұрын
@@Cakez77 Is that how you got access? My impression is that most get access by getting a key from someone already in the beta.
@MrPoselsky
@MrPoselsky 6 ай бұрын
I wonder how he achieved those build times in less than a second.
@Cakez77
@Cakez77 6 ай бұрын
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
@cyanmargh 6 ай бұрын
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
@EmberDRG
@EmberDRG 5 ай бұрын
"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????
@microdavid7098
@microdavid7098 6 ай бұрын
Can jai be used for mobile?
@Cakez77
@Cakez77 5 ай бұрын
The goal is to support mobile, but as it stands I don't think it's supported
@ulrich-tonmoy
@ulrich-tonmoy 6 ай бұрын
Who will come on top Zig || Odin || Jai
@Cakez77
@Cakez77 6 ай бұрын
Haven't tried the other two, but Jai was really good
@delphicdescant
@delphicdescant 6 ай бұрын
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
@Cakez77 6 ай бұрын
What makes Zig so good?
@ulrich-tonmoy
@ulrich-tonmoy 6 ай бұрын
@@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
@alal7946 6 ай бұрын
​@@Cakez77its comptime Feature and low-level-support (combined with the ability to use C Code)
@AnimeGIFfy
@AnimeGIFfy 2 ай бұрын
C++ and javascript had a baby, but after a few years, it was found out that the real father is python
@cristhofermarques6880
@cristhofermarques6880 6 ай бұрын
Try odin sometime, its like jai at some point
@Cakez77
@Cakez77 6 ай бұрын
Second time I hear this, will do yeah. Sounds interesting
@rafaelkuhn
@rafaelkuhn 2 ай бұрын
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
@Jaqopx
@Jaqopx 6 ай бұрын
What is the software appears at 11:16 minutes
@Cakez77
@Cakez77 6 ай бұрын
Oh, it's called RenderDoc, it allows you to inspect graphics applications
@Jaqopx
@Jaqopx 6 ай бұрын
Thank you @@Cakez77
@ivanbraidi
@ivanbraidi 6 ай бұрын
The answer: yes.
@Cakez77
@Cakez77 6 ай бұрын
We will see, seems like there is Zig as well
@Pspet
@Pspet 3 ай бұрын
I would pay money to see JBlow react to the first 10 seconds of this video lol
@Cakez77
@Cakez77 3 ай бұрын
Would the intro trigger him? :O
@Pspet
@Pspet 3 ай бұрын
​@@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
@nadeekathusharidayananda4094
@nadeekathusharidayananda4094 6 ай бұрын
You should try odin next, its like jai too
@Cakez77
@Cakez77 6 ай бұрын
I have never heard of it, 🤔
@encapsulatio
@encapsulatio 6 ай бұрын
@@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.
@delphicdescant
@delphicdescant 6 ай бұрын
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
@Cakez77 6 ай бұрын
Sounds interesting, what makes it so good compared to c++? Maybe I should really try it out
@androth1502
@androth1502 6 ай бұрын
@@Cakez77 the c/c++ interop alone makes it one of the best languages for people coming over from the (C)lan
@ev3rybodygets177
@ev3rybodygets177 6 ай бұрын
i agree... with zigs interoperable nature with c and how EASY you can port in the raylib c library... Honestly why bother with learning another language...
@ViaConDias
@ViaConDias 6 ай бұрын
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
@filipg4 6 ай бұрын
There's no difference in Jai. You can use any C library and even generate bindings automatically @@ev3rybodygets177
@PolarisMyWay
@PolarisMyWay 3 ай бұрын
It's really hard to understand the people waiting for Jai release if Odin lang is ready ...
@Cakez77
@Cakez77 3 ай бұрын
I will try out Odin soon, I wonder if it's good
@maxrinehart4177
@maxrinehart4177 2 ай бұрын
​​​@@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.
@nextlifeonearth
@nextlifeonearth 4 ай бұрын
"you can't break out of two for loops easily" Goto: "am I a joke to you?"
@PedroAbreu-im4sd
@PedroAbreu-im4sd 3 ай бұрын
i also thought about this
@m4rt_
@m4rt_ 6 ай бұрын
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
@Cakez77 6 ай бұрын
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
@AntonioNoack
@AntonioNoack 5 ай бұрын
@4:04 looks like you didn't clone the repository recursively
@Cakez77
@Cakez77 5 ай бұрын
It's just a .zip file to download. As far as I know there is no "cloning"
@FaranAiki
@FaranAiki 5 ай бұрын
​@@Cakez77I guess they meant to use the command `git clone --recursive`
@monsieuralexandergulbu3678
@monsieuralexandergulbu3678 4 ай бұрын
Broz there not language called "J"
@nanthilrodriguez
@nanthilrodriguez 4 ай бұрын
J is a programming language. Jai is also a programming language. J is pronounced "J". Jai is pronounced "J-eye"
@raymonskjrtenhansen9119
@raymonskjrtenhansen9119 6 ай бұрын
Returning a tuple with a success bool. Almost an Option/Maybe type from functional programming. So close, but alas. :)
@m4rt_
@m4rt_ 6 ай бұрын
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.
@OxygenMagnet
@OxygenMagnet 5 ай бұрын
0:08 goto???
@owenpalmer8242
@owenpalmer8242 5 ай бұрын
Why do you call it Jay?
@Cakez77
@Cakez77 5 ай бұрын
Because that's how I say it? Dunno
@MrAbrazildo
@MrAbrazildo 5 ай бұрын
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
@benjaminpedersen9548 5 ай бұрын
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.
@ktappdev
@ktappdev 5 ай бұрын
They borrowed good things from Golang
@Cakez77
@Cakez77 5 ай бұрын
And those things would be? Never tried golang
@georgeokello8620
@georgeokello8620 5 ай бұрын
Golang is garbage collected. Just stop
@Renni-kg6vf
@Renni-kg6vf 5 ай бұрын
Like the idea, not a big fan of the syntax
@TheBlackMaster
@TheBlackMaster 6 ай бұрын
what do you think about rust ? I think that language can replace c++
@Cakez77
@Cakez77 6 ай бұрын
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
@TheBlackMaster 6 ай бұрын
@@Cakez77 Garbage collection vs borrow checker.
@u9vata
@u9vata 6 ай бұрын
@@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...
@rallokkcaz
@rallokkcaz 5 ай бұрын
Jai! Not J,
@rallokkcaz
@rallokkcaz 5 ай бұрын
Ja-eye
@Cakez77
@Cakez77 5 ай бұрын
Lol
@androth1502
@androth1502 6 ай бұрын
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
@Cakez77 6 ай бұрын
But they could come back if the language is good when it releases, you never know
@androth1502
@androth1502 6 ай бұрын
@@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
@FaithEdits 6 ай бұрын
Assuming Jon Blow even wants such attention like that
@dandymcgee
@dandymcgee 6 ай бұрын
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
@androth1502 6 ай бұрын
@@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.
@doBobro
@doBobro 5 ай бұрын
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
@Cakez77 5 ай бұрын
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
@benjaminpedersen9548 5 ай бұрын
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.
@jumpman120
@jumpman120 5 ай бұрын
simp module 😂😂 !r
@Cakez77
@Cakez77 5 ай бұрын
KEKW
@shadeeleven589
@shadeeleven589 5 ай бұрын
test comment
@Cakez77
@Cakez77 5 ай бұрын
Confirmed
@MrMastrsushi
@MrMastrsushi 2 ай бұрын
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.
@quinndirks5653
@quinndirks5653 Ай бұрын
It's pronounced jai, like with more of an "i" sound.
@doce3609
@doce3609 6 ай бұрын
it is not jei bro
@Cakez77
@Cakez77 6 ай бұрын
You can jai deez nutz bro
@nolram
@nolram 6 ай бұрын
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
@Cakez77 6 ай бұрын
It's definitely switch up yeah. Takes time getting used to
@nolram
@nolram 6 ай бұрын
@@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
@Giga4ever 6 ай бұрын
@@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
@nolram 6 ай бұрын
@@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_
@m4rt_ 6 ай бұрын
That's not readability being worse it's just how used to it you are.
@theohallenius8882
@theohallenius8882 6 ай бұрын
It will forever be in closed beta 🤣
@Cakez77
@Cakez77 6 ай бұрын
yeah it could be lol
@cyanmargh
@cyanmargh 6 ай бұрын
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
@theohallenius8882 6 ай бұрын
@@cyanmargh I was interested, 5 fkng years ago, never got access. Now I'm all about Rust anyway so who cares
@Giga4ever
@Giga4ever 6 ай бұрын
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
@Cakez77 6 ай бұрын
Gonna try Zig and Rust to see for myself, but I have heard bad things about rust compilation times.
@Giga4ever
@Giga4ever 6 ай бұрын
​@@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.
@oscarsmith-jones4108
@oscarsmith-jones4108 6 ай бұрын
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
@austecon6818 5 ай бұрын
​​@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.
@mrtetillas7504
@mrtetillas7504 2 ай бұрын
see windows 10... dont care
@Natural_Mindset
@Natural_Mindset 6 ай бұрын
So, jai is just a toy-language wrapper around c++
@Cakez77
@Cakez77 6 ай бұрын
No it's supposed to find the same control while providing better modules(libraries) and compile times
@roberthickman4092
@roberthickman4092 5 ай бұрын
@@Cakez77 and metaprograming.
Jonathan Blow on scripting languages
9:30
Jeru Sanders
Рет қаралды 120 М.
You Are WRONG About 0 Based Indexing
25:02
ThePrimeTime
Рет қаралды 220 М.
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 12 МЛН
I Tried ZIG, Can It Replace C?
43:26
Cakez
Рет қаралды 12 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 136 М.
Godot Engine 4 - Vampire Survivor (Gameplay DEMO)
5:46
แอดกาย GameFi
Рет қаралды 383
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 244 М.
Programmers Aren't Productive Anymore - Jonathan Blow
9:29
gamedev cuts
Рет қаралды 181 М.
Adding Tons of Levels to My Indie Game
6:39
Goodgis
Рет қаралды 53 М.
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 876 М.
zig is the future of programming. here's why.
9:34
Low Level Learning
Рет қаралды 198 М.
unlock the lowest levels of coding
7:05
Low Level Learning
Рет қаралды 225 М.
This is better than TempleOS
1:55:21
Tsoding Daily
Рет қаралды 73 М.
🍕Пиццерия FNAF в реальной жизни #shorts
0:41
Kawaii Girl Education #funny #viral #comedy
0:17
CRAZY GREAPA
Рет қаралды 3,3 МЛН
Kawaii Girl Education #funny #viral #comedy
0:17
CRAZY GREAPA
Рет қаралды 3,3 МЛН
Әділ Чабанды қалай ұтты? І АСАУ І 7 серия
32:16
🍕Пиццерия FNAF в реальной жизни #shorts
0:41