Trying Jai Language for the First Time

Поделиться
HTML-код
  • Опубликовано: 20 июн 2022
  • References:
    - A Programming Language for Games Playlist: • Ideas about a new prog...
    - Source Code: github.com/tsoding/tetris-jai
  • НаукаНаука

Комментарии • 94

  • @bloodredtape
    @bloodredtape 2 года назад +44

    "it's like boy_next_door but events_this_frame"

  • @meh1672
    @meh1672 2 года назад +7

    Would love to see more of this. Thanks for giving us a look in the process!

  • @julkiewicz
    @julkiewicz Год назад +47

    About swift, wooooow. So the joke "it works on my machine" became "I'll ship you my machine, so it works for you too". That's some next level lazy to have a compiler run in a Docker container. Madness

  • @RickeyBowers
    @RickeyBowers 2 года назад +146

    Thank you, for continuing to post videos during these difficult times. Much respect and love.

  • @rusty6172
    @rusty6172 Месяц назад +17

    Ah yes, I was 18 when jai started getting beta testing. I'm now 26. I guess my children will get a chance to try it, hopefully.

  • @soitchy6084
    @soitchy6084 Год назад +19

    I really like how all the syntax is the same no matter the context.

  • @vlad071096
    @vlad071096 Год назад +13

    Showing us the language we won't be able to use until Half-Life 3 is unfair!

  • @ISKLEMMI
    @ISKLEMMI 2 года назад +30

    When you were writing the code to determine the size of the grid at compile time, you mentioned that the C preprocessor can also accomplish the same thing. This is true, but like you mentioned earlier in the video, Jai brings the syntax of compile-time code and run-time code much closer together, which is quite nice.

  • @Narblo
    @Narblo 2 года назад +12

    I use odin that has almost the same syntax and the thing I like the most about it is that when searching for a declaration of a type that I dont know if it is a struct/union/enum or function I just search for :: and that's it (intellisense is not rreliavable all the time)

  • @Muskar2
    @Muskar2 10 месяцев назад +1

    I'm so jealous. It looks absolutely incredible. I hope I get accepted too at some point, but I'll try Odin too since it seems close for the things I'd like in a language.

    • @dromedda6810
      @dromedda6810 8 месяцев назад +1

      i've been using odin with raylib for about a month now, and it's pretty nice, i think i prefer odin over c for game dev-y things atleast for now

  • @wijiler5834
    @wijiler5834 2 года назад +8

    Finally jai video

  • @dushyantm9579
    @dushyantm9579 2 года назад

    Man, love this channel!

  • @jonatan.cirqueira3925
    @jonatan.cirqueira3925 2 месяца назад +1

    lol I just watched this after watching his first zig stream and he is much more comprehensive with the unfinishedness of Jai, I guess we are all emotional sometimes

  • @jespa003
    @jespa003 Год назад +1

    I have an older laptop more or less like yours and I hope it longs for more years ^_^

  • @danielya8634
    @danielya8634 Год назад +1

    Does it have algebraic data types and match expression with decomposition? And is it expression based in general?

  • @brvtalcake
    @brvtalcake Год назад +4

    shebang works only because the OS recognizes it, and I guess the OS then just ignore the first line with the shebang (btw the snake game could probably be working with release flag)

    • @blvckbytes7329
      @blvckbytes7329 8 месяцев назад

      I had a similar thought, as there's no way that Jai actually ignores the first line of a file if it's in the format of a shebang... That would be such a hack, doesn't sound like Jon.
      But I don't believe that it's the OS, it's actually the shell that notices the shebang and pipes everything below it into the jai compiler's STDIN. That then compiles it and creates the executable, while also running main, because of the run directive. A script that leaves behind an executable each time you call it... Maybe there would be a flag to only run but not produce a binary. On the other hand... why, haha.

  • @Muskar2
    @Muskar2 10 месяцев назад

    1:56:03 Does Jai have something like Odin's "where" clause, i.e. compile time sanity checks for function calls?

  • @lame_lexem
    @lame_lexem 2 года назад +44

    24:57 deb is so stable. this uptime is 😳

    • @john.dough.
      @john.dough. 2 года назад +8

      haha yeah, I've had like 3 months on my laptop one time

    • @MurtagBY
      @MurtagBY 2 года назад +2

      Well, I have not rebooted my mac for last year

    • @mgord9518
      @mgord9518 Год назад +3

      @@MurtagBY Has it rebooted itself?

    • @crides0
      @crides0 Год назад +2

      Arch with 83days

    • @frechjo
      @frechjo Год назад +2

      This comment reminded me of SUSE's glorious hit, "Uptime funk".
      Don't reboot it just patch!

  • @miracleteastudios8877
    @miracleteastudios8877 Год назад +6

    Really wanna try Jai at somepoint

  • @skeleton_craftGaming
    @skeleton_craftGaming Год назад

    Could also be using implicit #define and in the shell parser is just parsing it correctly

  • @Aleksandar0100
    @Aleksandar0100 2 года назад +17

    >using capital letters on folders
    ngmi
    what's next, quotes and spaces?

    • @lame_lexem
      @lame_lexem 2 года назад +6

      emotes are the current meta :kappa:

    • @berthold64
      @berthold64 Год назад

      You mean based?

  • @c4llv07e
    @c4llv07e Год назад +2

    >>1:05:40
    subword-mode is the thing, by the way. Best minor mode in the emacs.

  • @glowiak3430
    @glowiak3430 5 месяцев назад +1

    25:47 If it contained one, the who compiler would receive a DMCA from the tetris corporation, or even its dev would be sued. Sad reality.

  • @bertrodgers2420
    @bertrodgers2420 Год назад +1

    Was there a part two?

  • @RoadToFuture007
    @RoadToFuture007 8 месяцев назад

    12:20 Maybe the shell itself removes the first line with shebang?

  • @iDoComputers
    @iDoComputers 7 месяцев назад

    i ALWAYS ask myself one thing; How can i get on the dc server?

  • @yoij-ov3sd
    @yoij-ov3sd 2 года назад

    fantastic

  • @brxnni
    @brxnni 2 года назад +9

    oh you used jai. i actually thought you wrote the wasm for your atari game by hand

  • @lollol-dv9ri
    @lollol-dv9ri 2 года назад

    Got it!

  • @mariobroselli3642
    @mariobroselli3642 4 месяца назад

    Do you know a functional lang with easy Syntax High Speed?

  • @GmanGavin1
    @GmanGavin1 Год назад +1

    Video title: Jai
    The logo 😮
    Me: That's a fancy B!

  • @geeksuperstar8564
    @geeksuperstar8564 Год назад

    Will you try Odin?

  • @simonsemmler9804
    @simonsemmler9804 2 года назад +6

    Please turn on subtitles they are so convenient! :)

    • @Caellyan
      @Caellyan 2 года назад +3

      I think he'd have to transcribe the entire video himself. YT doesn't generate subtitles for long videos.

    • @Muskar2
      @Muskar2 10 месяцев назад +3

      Outdated info at this point - auto-generated subtitles are available for longer videos now

  • @pandoorloki1232
    @pandoorloki1232 Год назад +5

    Porn folder: 9.2 GiB

    • @nefrace
      @nefrace 10 месяцев назад +1

      too smol PepeHands

  • @andrewm6788
    @andrewm6788 7 месяцев назад

    is it "Sailor" cause u actually didnt get an invite and u pirated the compiler or?

  • @10bokaj
    @10bokaj Год назад

    over 30 000 that insane!?

  • @user-fr1no2ir3r
    @user-fr1no2ir3r 7 месяцев назад

    I use language that have same syntax (odin) and feel more productive now

  • @dwightk.schrute8696
    @dwightk.schrute8696 2 года назад +11

    Never watched the office, oh well!

  • @andreffrosa
    @andreffrosa Месяц назад

    where is part2?

  • @uncoherentramblings2826
    @uncoherentramblings2826 2 года назад

    Finally

  • @timeyyydaman
    @timeyyydaman 2 месяца назад

    anyone got a jai invite link?

  • @lozohe
    @lozohe Год назад

    claro jai

  •  Год назад +1

    The execution is soooo fast!

  • @Little-bird-told-me
    @Little-bird-told-me 6 месяцев назад

    15:44 Wow using Debian Buster (10). Debian itself is old and Debian version 12 is already out, so this must be really really old system.

  • @julkiewicz
    @julkiewicz Год назад +2

    Heh, did he just say "cucumbersome" that should be a word in English, I mean come on

  • @arjuningole7863
    @arjuningole7863 2 года назад

    what font and theme do you use ?

    • @fabricatorzayac
      @fabricatorzayac 2 года назад +2

      You can look at his github, he has his emacs config there

    • @arjuningole7863
      @arjuningole7863 2 года назад +1

      @@fabricatorzayac Thanks :)

  • @MicroGeant
    @MicroGeant 7 месяцев назад +1

    Is this language ever going to be released?

    • @sfulibarri
      @sfulibarri 7 месяцев назад +6

      Yes but only after JBlow reinvents every wheel.

    • @HeyPumpkin
      @HeyPumpkin 7 месяцев назад

      ​@@sfulibarri I wonder how he'll take it when people complain about how x/y/z in Jai is a bit slow or suboptimal and it therefore sucks.

    • @thebatchicle3429
      @thebatchicle3429 3 месяца назад +1

      @@HeyPumpkinhe probably won’t care about their opinions, because he actually knows what he’s doing

  • @Zephyrus_Music
    @Zephyrus_Music Год назад

    So, its basically jit compilation, compilation -> immediately run obj during compile time -> link -> output binary. i think thats how it works?

  • @jearsh
    @jearsh 6 месяцев назад +1

    what kind of monster uses capital letters in filenames? `Basic.jai`...smh

  • @MariusGames
    @MariusGames Год назад

    @TsodingDaily pardon my direct comment, but I humbly ask to gain access to the Jai beta 🙏 I’ve been following a while and have some creativity that needs an outlet. (Don’t know where to go to ask.)

  • @anispinner
    @anispinner 9 месяцев назад

    But can it run Snake? 😂

  • @ExCyberino
    @ExCyberino 2 года назад +3

    How did you get your hands onto this language ? Did you ask Jhonathan Blow himself or got indicated by someone or smth else? I wish i could play with it

  • @PetaPelikan
    @PetaPelikan 5 месяцев назад

    26:26 "... And that's what software development is about. It's not about knowing the language completely... It's about copy&pasting." xdd yea, I have my ctrl+c ctrl+v ready, can I go to google and make millions now?

  • @AnoopMasterCoder
    @AnoopMasterCoder 2 года назад

    What's that white text at the very bottom of the screen at 00:02 ???🤣🤣🤣

  • @georgecop9538
    @georgecop9538 2 года назад +7

    never heard of this language. These languages appear every day.

    • @stephenkamenar
      @stephenkamenar 2 года назад +22

      what? no they don't. there's only like less than 6 languages in this category

    • @zeyonaut
      @zeyonaut 2 года назад +25

      Not really. People have been clamoring for Jai to be publicly released for years now. I've honestly long given up on the hope of ever seeing it come out.

    • @stephenkamenar
      @stephenkamenar 2 года назад +13

      @@zeyonaut been waiting about 7 years now

    • @stephenkamenar
      @stephenkamenar Год назад +5

      @@christianseibold3369 christmas came early, i'm a secret beta member

  • @origamibulldoser1618
    @origamibulldoser1618 10 месяцев назад +1

    The landscape of native programming languages seems like it's in complete chaos these days, with everybody pining for leaving C++ behind, but nobody really knows in which direction it should go. (Yes, I know YOU know which way you THINK it should go, but that's not the same as productive consensus).
    I suppose it's exciting times, but it's really hard to know where one should focus.

    • @gaurangshukla8235
      @gaurangshukla8235 8 месяцев назад +1

      That's how, progress is made. There was a similar chaos about cpu architecture and x86_64 won. I don't know what you are trying to imply.

  • @Simon-xi8tb
    @Simon-xi8tb 2 года назад

    Dude, you need neo vim and telescope plugin :D

  • @arioamin
    @arioamin 2 года назад +4

    How did you get beta access? :D

  • @flleaf
    @flleaf Год назад

    "should_quit_game" thats kinda toxic ngl

  • @TheWintrover
    @TheWintrover 2 года назад +3

    ß

  • @mbarrio
    @mbarrio 2 года назад +10

    Is there a universe where twitch.tv/j_blow and tsoding would collab in a project together?

    • @thakeenathees2342
      @thakeenathees2342 2 года назад +6

      In universe-41 they'll did a collab yesterday, you can still catch up if you use an inter-galactic-time-machine

  • @Overminddl1
    @Overminddl1 2 года назад +3

    I have to ask if something is wrong with your system, because compiling that same rust file here takes:
    ```
    ❯ time rustc ./hello.rs
    rustc ./hello.rs 0.16s user 0.05s system 114% cpu 0.184 total
    ```
    And that's from a cold compile and this system is nearing 13 years old? o.O
    There's *no* way it should have taken that long unless it was waiting on file I/O from the filesystem or something (this ancient system does have a 12 year old SATA SSD that somehow still lives), and loading the standard library is indeed not that tiny.
    And just for completion, the file:
    ```
    ❯ cat hello.rs
    fn main() {
    if true {
    println!("hello");
    }
    }
    ```