I couldn't find a WebSockets Library so I made one

Поділитися
Вставка
  • Опубліковано 24 жов 2024
  • Streamed Live on Twitch: / tsoding
    Enable Subtitles for Twitch Chat
    More Koil Episodes: • Raycasting in TypeScript
    More C3 Episodes: • C3 Programming Language
    Wallpapers: penger.city/wa...
    References:
    github.com/tso...
    github.com/tso...
    github.com/tso...
    Support:
    BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
    Pay for my VPS: zap-hosting.co...

КОМЕНТАРІ • 79

  • @patgarner
    @patgarner 2 дні тому +257

    you're lying, we know it's the library fairy that brings these magical libraries from library land, a mythical place where libraries grow like golden berries on binary bushes

    • @alexnik1181
      @alexnik1181 2 дні тому +3

      Amen

    • @phillipanselmo8540
      @phillipanselmo8540 2 дні тому +16

      binary _trees_

    • @Alluminati
      @Alluminati 2 дні тому +3

      Finally, someone calling tsoding out for the obvious lies he’s telling! „People write usable functions“, nobody who’s working with other programmers believes that.

    • @aviee2046
      @aviee2046 2 дні тому +3

      Why tf would somebody sane write a library instead of just coding everything into one file, preferably with many multi-purpose functions that fit one specific need. Libraries are for things like is_odd() or is_true()...

    • @rusi6219
      @rusi6219 2 дні тому +2

      That's the only sane explanation for the multitude of JavaScript frameworks

  • @mxlje
    @mxlje 2 дні тому +56

    "It didn’t fail, but it didn’t print anything either. I wonder why though." absolute classic

  • @User948Z7Z-w7n
    @User948Z7Z-w7n 2 дні тому +130

    "If C is so good, why don't they make C2?"
    "There's C3."

    • @dirrelito
      @dirrelito 2 дні тому +51

      Wait until they find out about C4. It is a banger!

    • @nikkehtine
      @nikkehtine 2 дні тому +24

      Pfffft. There's already a C99!

    • @gusic4529
      @gusic4529 2 дні тому +4

      the funny thing is that lerno did actually make a C2

    • @randomhunter47
      @randomhunter47 2 дні тому +1

      @@dirrelito haha

    • @jokerishere7456
      @jokerishere7456 2 дні тому

      There is a C17 actually. Only on android though

  • @Reichstaubenminister
    @Reichstaubenminister 2 дні тому +30

    Two days ago, I wanted to use C3 for part of a small project I'm working on but went for C++ instead because there was no native WebSocket library. Well.

    • @StevenMartinGuitar
      @StevenMartinGuitar День тому +1

      Depending on the outcome of the last 20mins of this stream there still might not be!

  • @veevee23
    @veevee23 2 дні тому +26

    I start using c3 because of Tsoding.

  • @XORfun
    @XORfun 2 дні тому +10

    On the next stream, tsoding realizes he was nerd sniped and jaibated into c3. Hence: “Porting to Zig to piss off c3 devs”

    • @nel_tu_
      @nel_tu_ День тому

      nah, he's already too deep into the sucking c*ck fallacy

  • @artemiasalina1860
    @artemiasalina1860 2 дні тому +6

    This has been a programming roller coaster.

  • @nullternative
    @nullternative 2 дні тому +31

    I love this mfer.

    • @4w0ken
      @4w0ken 2 дні тому +3

      simply.

  • @kodesafi
    @kodesafi 2 дні тому +57

    Let's make C3 the next cult language.

    • @arkeynserhayn8370
      @arkeynserhayn8370 2 дні тому +20

      Lets make it succeed, just to make cult language fans mad

    • @MoleNihil
      @MoleNihil 2 дні тому +2

      Can't wait for small difference narcissism update for C3 to drop

    • @axthd
      @axthd 2 дні тому +3

      I will be a part of that cult, and also want to be a part of Jai Language cult.

    • @EliasOjeda-mv6cg
      @EliasOjeda-mv6cg 2 дні тому

      @@arkeynserhayn8370 I like this idea, making the cult language fans mad is funny

    • @poderosoexcalibur-yp3kl
      @poderosoexcalibur-yp3kl День тому

      @@axthd don't forget odin

  • @yglyglya
    @yglyglya День тому +5

    tsoding using firefox before GTA 6

  • @blackhaze3856
    @blackhaze3856 2 дні тому +19

    Furious Tsoding is priceless

    • @christianbouwense4702
      @christianbouwense4702 День тому +1

      I hate it when he's angry, it's so awkward. I like it when he's having fun and exploring

  • @rogo7330
    @rogo7330 12 годин тому

    It's insane how convoluted all those namespaces in C3. They look like directory tree, they supposed to look like directory tree without making you use an actuall file system (like Java does or C with its includes), and the only their purpose it to allow you to either "open-up" this namespace from the top of its definition, or just "link" its contents directly to your working namespace, notifying you if some collisions happen. At least that what makes Unix way still being alive and makes normal people who're not payed by Microsoft puke themselves when you write '>nul' and it just redirects your output to void instead of creating a file with that name.

  • @SteeleDynamics
    @SteeleDynamics День тому +2

    What an ending!! This was a wild ride!

  • @kirillvoloshin2065
    @kirillvoloshin2065 2 дні тому +5

    that's why he's the goat, the goat!

  • @mfy0108
    @mfy0108 2 дні тому +2

    Now that I saw that Penger cursor from your website, I wonder if there is (or would be) an entire scheme with Penger. I'd unironically use it

  • @astrobrite540
    @astrobrite540 2 дні тому +2

    Great English! both pronunciation and semantics - the most understandable as for me. Thank you for sharing great stuff!

  • @nguyenxuanquang9864
    @nguyenxuanquang9864 2 дні тому +6

    Watch this in ×2 speed and you'll laugh your ass off.

  • @husnulaman
    @husnulaman День тому

    It's time to add c3 to my resume. Let's go...

  • @rusting_in_peace
    @rusting_in_peace 2 дні тому +5

    3:29:51 🥹🙌

  • @fu886
    @fu886 2 дні тому +4

    pRICELESS macro

  • @pa3kc376
    @pa3kc376 День тому +1

    33:40 Nowadays it's cringe or be cringe...

  • @sv_gravity
    @sv_gravity 2 дні тому +7

    Upload OpenCL stream for lulz pleas

    • @blackbeard3449
      @blackbeard3449 День тому

      What happened to that stream? I don't see it on twitch archives either.

  • @_simoncurtis
    @_simoncurtis 2 дні тому +1

    Correction at 2:45 - *Smelly nerds

  • @Odod4000
    @Odod4000 2 дні тому +3

    If it does not exist then make exist it LOL

  • @hubstrangers3450
    @hubstrangers3450 18 годин тому

    Thank you....

  • @victordvickie
    @victordvickie День тому +1

    aWESOME

  • @raykirushiroyshi2752
    @raykirushiroyshi2752 День тому

    34:00 Same 😭. At my graphics programming course I am forced to use processing, a java DSL for graphics. The only saving grace is that I don't have to use their shitty ide.
    I want to use a real language and a real library(Odin and opengl) but noooo

  • @rogo7330
    @rogo7330 День тому +2

    Every time I see OpenSSL in code, I start crying and scream in pain. PLEASE, people, write your programs so you can pass them sockets through file descriptors so everyone can do their own connections with whatever they want in whatever protocol they want with whatever security layer they want (maybe none if I already use my own tunnel or something). We really should use features that modern OS provides and write software as easy-to-hack as possible.

    • @device.serial
      @device.serial День тому

      That's fine for projects that use their own protocol, but WebSocket and HTTP are established protocols where authentications is done through TLS, it is not optional (technically it is, but then it's plain HTTP and plain WebSocket, which is hardly recommended for web-facing applications). If you write your own binary (or text-based, whatever) protocol that communicates between applications, then sure, go ahead in whichever way you want, but otherwise when you are on the web, there are established ways to do things that you have to take into account.
      He is writing this websocket implementation for a game that runs in the browser, so TLS has to be implemented in a way the browsers accept it.

    • @CarlosDiaz-mb2ty
      @CarlosDiaz-mb2ty 22 години тому

      Womp Womp. Keep crying about it

  • @павелВеревкин-р6э

    Bro is insane

  • @Mozartenhimer
    @Mozartenhimer 2 дні тому

    I use apple becisse the libraries grow on trees.

  • @rogo7330
    @rogo7330 12 годин тому

    pOGGERS

  • @oconsertador9021
    @oconsertador9021 9 годин тому

    What about creating a whole database in Rust?

  • @alexmalyutindev
    @alexmalyutindev 2 дні тому

    madness

  • @christianbouwense4702
    @christianbouwense4702 День тому +1

    kinda uncomfortable when he's irritated and angry most of the stream. great content but a bit uncomfy

  • @Odod4000
    @Odod4000 2 дні тому

    I love your videos!! really cool! 😀

  • @azharalibhutto1209
    @azharalibhutto1209 2 дні тому

    ❤❤❤❤❤❤

  • @jaymr2795
    @jaymr2795 2 дні тому

    nice

  • @achiyazigi3869
    @achiyazigi3869 2 дні тому +4

    6;

  • @wafinashwan8242
    @wafinashwan8242 День тому

    KEKW

  • @adwardcanvey683
    @adwardcanvey683 13 годин тому

    what's is your main job sir. do you work for google.

  • @naranyala_dev
    @naranyala_dev 2 дні тому

    try flecs

  • @fybrk
    @fybrk 2 дні тому +1

    Skill issue...

  • @Myexpectationsarerealistic
    @Myexpectationsarerealistic 2 дні тому

    WebSockets 🤮

    • @nel_tu_
      @nel_tu_ День тому +1

      ?? do u even know what they are?

  • @MrLinuxFreak
    @MrLinuxFreak 2 дні тому +1

    Isnt that useless since we got socket io for years now

  • @KellyMurphy
    @KellyMurphy День тому +1

    c3 sucks, rewrite it and call it "c4 (Now with working enums)"

  • @alejandroulisessanchezgame6924
    @alejandroulisessanchezgame6924 2 дні тому +1

    First

  • @Odod4000
    @Odod4000 2 дні тому +1

    first btw

  • @Seedwreck
    @Seedwreck 2 дні тому +1

    Oooo, this means Websocks in WASM

    • @pierrefrotier
      @pierrefrotier 2 дні тому +1

      Could be hard in browser, without TCP connection on browser side (and the JavaScript TCP and UDP socket API project seems to be abandoned by the W3C)

    • @valley-artifact
      @valley-artifact 2 дні тому +2

      no, this is just for the server-side C3 which can compile down to a native binary, you can't use websockets directly from WASM because the API is only exposed to js so a WASM websocket library would still have to be written in js