Programming WebAssembly with Zig - Getting Started with the ZIG programming language

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 44

  • @AbdulmalikHamid
    @AbdulmalikHamid 2 роки тому +17

    This channel in my opinion is the number one goto channel for anyone in computer science. Great job boss.

    • @chrishayuk
      @chrishayuk  2 роки тому +4

      too kind.. i see this channel as my tech therapy, but glad it's more useful than that

  • @МаксимОрлов-п2ф
    @МаксимОрлов-п2ф Рік тому +9

    Thanks to you, I have found that amazing Zig language. What a fresh air it is in the world of programming. Its insane

    • @chrishayuk
      @chrishayuk  Рік тому +3

      Amazing! glad you're liking it

  • @amanueltigistu8268
    @amanueltigistu8268 2 роки тому +12

    Thanks for your great content. Please create more tutorials on Zig. I think Zig is an impressive & fun language to work with & also Zig is just a Unique & familiar language with Great Features built-in. I really like the simplicity of Zig as I am mainly a Typescript Developer.

    • @chrishayuk
      @chrishayuk  2 роки тому +2

      agree, really nice language, more to come. and totally agree on the familiarity and fun point

  • @sifundomhlungu5119
    @sifundomhlungu5119 2 роки тому +7

    Amazing def subbing, started Zig yesterday, absolute beauty of a language can't wait for more!🤩

    • @chrishayuk
      @chrishayuk  2 роки тому +1

      thank you, glad it's useful. zig is such fun

  • @anesaithammou696
    @anesaithammou696 Рік тому +3

    For any one facing issues with the compilation. use -rdynamic flag in addition to -dynamic.

  • @gldev8191
    @gldev8191 Рік тому +2

    I was never interested in programming langauges themselves before i discovered Zig, loved it thank you for covering it!

  • @dazealex
    @dazealex Рік тому +5

    Very cool content, loving the coverage on Zig!

  • @Im_Ninooo
    @Im_Ninooo Рік тому +1

    coming from Go, Zig felt a bit slow to compile but compared to Rust it's super fast!

  • @ricardorosa5315
    @ricardorosa5315 Рік тому +2

    This is so damn great!!!
    You explain really really well...!!!

  • @eddyflux
    @eddyflux 11 місяців тому

    for anyone wondering why the "add" function is not exported: you have to now write "export" before your add function + run the build with -rdynamic

  • @Diamonddrake
    @Diamonddrake Рік тому +2

    Please turn off copilot while filming videos, it’s very distracting. Neat overlay effect, I’ve never seen that in a coding video.

  • @CallousCoder
    @CallousCoder Рік тому +1

    I had never seen web assembly before but when I saw that awful code I immediately had a flash back to writing some Forth way back in 1993. And as an old assembly and C person it was really hard to think that way. Hilarious how these hold tried and proven concepts slowly come back in the terrible world of web development. Maybe there is hope.
    At least of lowlevel system side we have new good solids options emerging, like Rust (after a year I finally start to feel a bit as native speaker and not fighting the borrow checker as much) and since yesterday I did some Zig coding, simple stuff like creating X threads and X array lists and filling those and merging the result. Some of my default coding on a new language. And that was not a fun experience in my first try on rust 4 years ago. But with Zig it was like: “yeah! I love this! It’s still young not a lot of external libraries but this will be the new C and Rust the new C++). And my goodness it’s fast! Both in compiling and runtime. The very small std is brilliant for creating small binaries. Just a thrill to use!

    • @kyonas6047
      @kyonas6047 Рік тому

      My BIGGEST feature is.. You can program with a language like zig just by using 1 small zip folder.. Like on windows you have to get other compilers like msvc which is like 10GB for my laptop that has bad storage its litterally 3rd of my storage but with zig its only 100mb and you can do some insane stuff with it
      I wanna experiment with doing a front end framework with deno and zig it seems fun or doing a progressive web app that runs offline and uses zig webassembly sounds like a cool learning experience fr

  • @ahmadumar6210
    @ahmadumar6210 2 роки тому +5

    And secondly, do you think the Performance of ZIG is comparable with that of rust?

    • @AlexanderSuraphel
      @AlexanderSuraphel 2 роки тому +1

      All languages compiled directly to the machine should have very similar performance. Most of the optimization is done by the compiler. Plus Zig and Rust both compile to LLVM which creator of Zig created.

    • @ahmadumar6210
      @ahmadumar6210 2 роки тому +1

      Thanks this info is important

    • @AlexanderSuraphel
      @AlexanderSuraphel 2 роки тому

      @Chris M thanks for pointing it out. Don’t know how mixed him with Chris Lattner.

    • @chrishayuk
      @chrishayuk  2 роки тому +1

      yes but rust is more focused on safety

    • @StarsManny
      @StarsManny Рік тому

      ​​@@AlexanderSuraphel do all languages compiled to the machine have a similar performance to C?

  • @bonniesimon14
    @bonniesimon14 Рік тому +1

    Hey loved the video.
    Had a few suggestions on parts you could improve:
    1. Turn off the code assistant. It is really annoying to see that because it distracts the viewer away from what you are saying.
    2. Get the green light off your face. Take that yellowish/skintonish light and maybe use that on your face instead.

    • @chrishayuk
      @chrishayuk  Рік тому +2

      Really good suggestions. I now check copilot is off before record. I do like playing with the colors though

  • @guilherme5094
    @guilherme5094 2 роки тому +2

    Really nice👍

  • @PeteC62
    @PeteC62 Рік тому +1

    It’s hilarious that you said we don’t write WASM by hand because languages like zig can write it so much better, given how appalling the generated code was. It’s too bad you didn’t try compiling it with whatever optimization options zig gives you. You could write your function using zero locals just by leaving intermediate values on the stack.

  • @avi7278
    @avi7278 Рік тому +1

    What's weird thing did you say about Adele albums?

    • @chrishayuk
      @chrishayuk  Рік тому

      Lol, no idea, can’t remember but I’m sure it’d be some numbering thing

    • @GLiBERN
      @GLiBERN Рік тому

      "19", "21", "25" used as example numbers here are the titles of Adele albums.

  • @_realist_6957
    @_realist_6957 2 роки тому +2

    💥💥💥

  • @4sat564
    @4sat564 2 роки тому +3

    Does anybody like the transparency effects in Chris videos? I find it very hard to watch

    • @nathanfranck5822
      @nathanfranck5822 2 роки тому +4

      Yeah I think a subtle blur on the background would go a long way in seperating the code characters from the background noise

    • @chrishayuk
      @chrishayuk  2 роки тому +1

      ooh quite a good idea on the blur, i try and darken for certain code elements. hopefully i achieved it better on this weeks vid, but love the blur idea, will try it

  • @_thehunter_
    @_thehunter_ Рік тому

    zig syntax is ugly.. ugly in sense its very cryptic once complexity kicks in

  • @ahmadumar6210
    @ahmadumar6210 2 роки тому +4

    Thanks for your stuff, Do you have a discord server?

    • @chrishayuk
      @chrishayuk  2 роки тому +2

      ah no, sorry, probs not a direction i'll go

  • @illegalsmirf
    @illegalsmirf Рік тому +2

    Import STD? Better see your doctor!