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

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024

ความคิดเห็น • 43

  • @AbdulmalikHamid
    @AbdulmalikHamid ปีที่แล้ว +17

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

    • @chrishayuk
      @chrishayuk  ปีที่แล้ว +4

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

  • @user-rh5km2fy7b
    @user-rh5km2fy7b ปีที่แล้ว +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 ปีที่แล้ว +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

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

  • @sifundomhlungu5119
    @sifundomhlungu5119 ปีที่แล้ว +7

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

    • @chrishayuk
      @chrishayuk  ปีที่แล้ว +1

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

  • @dazealex
    @dazealex ปีที่แล้ว +5

    Very cool content, loving the coverage on Zig!

  • @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!

  • @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.

  • @ricardorosa5315
    @ricardorosa5315 ปีที่แล้ว +2

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

  • @Im_Ninooo
    @Im_Ninooo ปีที่แล้ว +1

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

  • @eddyflux
    @eddyflux 8 หลายเดือนก่อน

    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

  • @guilherme5094
    @guilherme5094 ปีที่แล้ว +2

    Really nice👍

  • @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

  • @_realist_6957
    @_realist_6957 ปีที่แล้ว +2

    💥💥💥

  • @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

  • @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.

  • @ahmadumar6210
    @ahmadumar6210 ปีที่แล้ว +5

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

    • @AlexanderSuraphel
      @AlexanderSuraphel ปีที่แล้ว +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 ปีที่แล้ว +1

      Thanks this info is important

    • @AlexanderSuraphel
      @AlexanderSuraphel ปีที่แล้ว

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

    • @chrishayuk
      @chrishayuk  ปีที่แล้ว +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?

  • @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 11 หลายเดือนก่อน

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

  • @4sat564
    @4sat564 ปีที่แล้ว +3

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

    • @nathanfranck5822
      @nathanfranck5822 ปีที่แล้ว +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  ปีที่แล้ว +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 ปีที่แล้ว +4

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

    • @chrishayuk
      @chrishayuk  ปีที่แล้ว +2

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

  • @illegalsmirf
    @illegalsmirf ปีที่แล้ว +2

    Import STD? Better see your doctor!