P99 CONF - Zig vs Rust

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

КОМЕНТАРІ • 377

  • @fyndor
    @fyndor 5 місяців тому +260

    "I started a new project inspired you, Prime, called Ligma"... hahahaha this man project names with the best of us

    • @character640p
      @character640p 5 місяців тому +7

      8:24

    • @xazzzi
      @xazzzi 5 місяців тому +19

      That head nod, he was dying inside.

    • @cryptonative
      @cryptonative 5 місяців тому +1

      a secret project

    • @jjpp1993
      @jjpp1993 5 місяців тому +1

      it wasn’t a project, it was something bigger

    • @ukazap
      @ukazap 5 місяців тому

      @@jjpp1993 and plural

  • @xavhow
    @xavhow 5 місяців тому +83

    Programmers conference...
    A: I don't get XX. B: This is a skill issue.
    Announcement: A has left the room.

    • @Lugnear
      @Lugnear 5 місяців тому

      😂

    • @TheSulross
      @TheSulross 4 місяці тому +2

      Came for a cage match and got Hollywood Squares instead 😒

  • @pmcgee003
    @pmcgee003 5 місяців тому +21

    Mostly Zig vs Rust.
    23:00 Build & Distribution
    32:50 Interfaces
    35:50 Tools
    39:20 Mojo
    44:50 C++

  • @johanngambolputty5351
    @johanngambolputty5351 5 місяців тому +93

    The thing that unites rust and zig enjoyers: not having to put up with c++ anymore ;) brings a tear (of joy) to my eye

    • @PixelThorn
      @PixelThorn 5 місяців тому +3

      And why is c++ so bad?

    • @UsatiyNyan
      @UsatiyNyan 5 місяців тому +11

      @@PixelThorn ppl don’t really learn how to build their projects.
      Also, it has a vast number of implicit features, different syntax, and oh templates, which is basically a 2nd language that you have to learn.
      Value semantics are almost nonexistent, since you have to know when the move/copy will be elided.
      Rust, similarly, has complex syntax too, but at least it has value semantics and there is no void.
      Ppl go for zig, because it’s a language that you almost build yourself, thanks to comptime and stuff.
      (I like C++ and CMake, but you gotta know where these tools are underperforming.)

    • @DefaultGuy84
      @DefaultGuy84 5 місяців тому

      because people have a skill issue​@@PixelThorn

    • @TheSulross
      @TheSulross 4 місяці тому

      Is true - C++ does filter out the script kiddies

    • @AsheAve
      @AsheAve 4 місяці тому

      You can’t encapsulate an object if you can reach in with a pointer and manipulate it. That’s why I used Java for so long. Now I just don’t care about OPP anymore.

  • @josemata8865
    @josemata8865 5 місяців тому +439

    I haven't watched the video but obviously C# is going to win

  • @StingSting844
    @StingSting844 5 місяців тому +117

    Bun guy wearing his mascot on his head is so cute 🥰

  • @alanbaumann
    @alanbaumann 5 місяців тому +47

    Both Zig and Rust are cool. But this came off mostly as three zig users trying to convince a rust user that they really should be using zig.

    • @anonymousalexander6005
      @anonymousalexander6005 5 місяців тому +45

      TL,DR:
      They start complaining about Rust based off of dubious skill issues, then pretend like the Rust user has a skill issue for not using Zig, and finally the Rust user tries to defend Rust in a 1v3 without any prior preparations or expectations of a 'debate'.
      They then proceed to pretend like Rust somehow has less capabilities, with somehow the same target audience and use cases as Zig despite their prior admission that Rust isn't a C replacement unlike Zig, and have nostalgia for C libraries that give us 30 years of preventable bugs and cve's.
      In essence, a normal WebDev's podcast, nothing short of what you would expect, and no critical industrial experience with best practices or strict code standards.
      Thank you UA-cam for not hiding this reply!

    • @rubiskelter
      @rubiskelter 5 місяців тому +11

      @@anonymousalexander6005 i doubt Prime has a skill issue regarding Rust. He had a fallout with some prominent members of the Rust community and now doesn't like it that much. It used to be his favorite language and he made sure to let others know.

    • @marcelaodev
      @marcelaodev 5 місяців тому

      ​@@anonymousalexander6005 didn't mentioned some drama for the guys that works together.
      having another Rust enjoyer would be great but it was fair regardless

    • @blarghblargh
      @blarghblargh 5 місяців тому

      @@anonymousalexander6005 rust and zig can both be good. zig isn't a shipping language yet, so the comparison is half-moot. but rust has a huge and bought in fan base, bordering on cult-like sometimes, so some extra defense of zig can feel necessary to zig enthusiasts.
      but yeah, eventually we all realize that this video content (and most old school blogs) are mostly for entertainment, and for catching keywords you might not otherwise hear. we all have to make up our minds for ourselves, and we're not really actually driving towards any sort of consensus in language war conversations. after all, it's all got to run on arm/x86/GPUs in the end, and the base technology itself isn't THAT complicated. it's all just registers, alu ops, compares, RAM, gotos, SIMD, and synchronization primitives etc in the end. and the microcode/instruction decode/layered caches/branch prediction of course, but our current architectures hardly let us control those directly, nor do our programming languages do much at all to directly support it.
      most of us just want a language to have a bag of features on top of a universal set of flow control, and a few bumpers to keep us from doing things too stupidly. it's usually bikeshedding to argue TOO much over the exact shape and width of those bumpers. and as much as I like C, it has too much ambiguity for the non-existent amount of safety it has. almost all of us can probably agree on that. I wouldn't say zig is "just C", if you're insinuating that, then I'd quibble. it has less ambiguity than C. but if you're not saying that, then we probably are mostly on the same page.
      too much coffee. sorry for some of the rambling, but not for all of it.

    • @rubiskelter
      @rubiskelter 5 місяців тому

      @@anonymousalexander6005 that is not fair, he worked with Rust for years, he clearly has absolutely no issues with the borrow checker, the only thing he ever complained in the past was the macros and how hard they are, and lack of support for async programming. How can it be a skill issue if he was prolific with the language, writing professionally for Netflix , code that processed billions of requests? He doesn't complain about borrow checker more than any other person that uses Rust, sometimes complains about it on a normal basis. I complain about it sometimes, the same way i sometimes complain about nil pointer deref in Golang, the same way i complain about my wife sometimes and i love her still, nothing too serious.
      I dont believe you know much about ThePrimeagen, he used to love Rust, and was really good at it.

  • @shampoable
    @shampoable 5 місяців тому +15

    seems like having a producer for such events would be nice, dealing with technical issues distracted Prime from the talk

  • @dv_dream
    @dv_dream 5 місяців тому +103

    DreamBerd wins.

  • @UsatiyNyan
    @UsatiyNyan 5 місяців тому +29

    I, personally, didn’t like this public execution of a “talk”.
    The dynamic here is much like riding the scapegoat and the atmosphere of zig hype didn’t help at all.
    Also it seems that the Rust “advocate” came unprepared.
    The conversation was very poorly moderated, and host should have had expressed less favouritism, otherwise it simply isn’t fair.
    I couldn’t bear it, sorry.
    Prime, you can do better.

  • @krellin
    @krellin 5 місяців тому +21

    it is so strange how i can recognize colleges that are just like these 3 gents,
    there is the rust believer, there is me who tried it and passed on it,
    there is the guy that dives so low level i feel like a junior.

  • @Garejoor
    @Garejoor 4 місяці тому +7

    For the Turso people, it's not a good idea to expose company dynamics in public - EVERY company has that one guy who is very set on their choices

  • @cariyaputta
    @cariyaputta 5 місяців тому +13

    Holy cow, the channel has many of the heavy hitters lately. And I'm all for it.

  • @kobi665
    @kobi665 5 місяців тому +12

    When did prime stop saying blazingly ?

  • @the12arrow
    @the12arrow 5 місяців тому +60

    This was just a 3 zig dudes trying to bully the rust non english native speaker for 55 minutes...

    • @theinsane102
      @theinsane102 5 місяців тому +9

      yet everyone ends up programming in JS most of the time

    • @ITSecNEO
      @ITSecNEO 4 місяці тому

      ​@theinsane102 no 😂

    • @Jan-gl7mn
      @Jan-gl7mn 3 місяці тому +1

      It was kinda sad to watch. It was more about their small pipi egos than actual tech talk.

  • @Propherex
    @Propherex 5 місяців тому +120

    3 zig hypers vs 1 rust enjoyer.

    • @CommanderRiker0
      @CommanderRiker0 5 місяців тому +11

      Nobody "enjoys" rust. Look at the toxic community.

    • @linkernick5379
      @linkernick5379 5 місяців тому

      ​​@@CommanderRiker0Almost all large enough communities are toxic.
      The one of the few large strictly non-toxic community is the Trump supporters.😂

    • @linkernick5379
      @linkernick5379 5 місяців тому +13

      ​​@CommanderRiker0 Almost all large enough communities are toxic.
      The one of the few large strictly non-toxic community is the T-candidate supporters.

    • @kobibr9362
      @kobibr9362 5 місяців тому +2

      Rust documentation sucks. It took me 3 hours to recover run and query and query questing yesterday with tikv. Today I am trying to run graphql schemas and I bet it won’t take less time 😂 Any database or lib written in rust has better documentation for integration with other languages than with rust. It like they all chose to poop in they own water and drive a little sip of it over the next 100 days. I love the language but this doc is far from any other language.

    • @linkernick5379
      @linkernick5379 5 місяців тому +15

      ​@@kobibr9362Skill issue.

  • @SnowDaemon
    @SnowDaemon 5 місяців тому +18

    I think Pekka makes the best point:
    yes, while some things in Rust suck, and "may" be better in Zig.
    it's not THAT big of a deal.
    it would have to be a HUGE deal to switch languages, fire your engineers that dont want to write Zig, find and hire Zig engineers, and re-write your codebase.
    like all that, just because Zig does a minor thing better. lol. You can tell Glauber doesnt have to write the code or deal with the engineers.

    • @blarghblargh
      @blarghblargh 5 місяців тому +3

      if you can't spend the time to train your engineers in a new language, then you shouldn't be considering anything but what you're already shipping.

    • @misalambasta
      @misalambasta 5 місяців тому

      Totally agree 👍

    • @SnowDaemon
      @SnowDaemon 5 місяців тому +2

      @@blarghblargh the problem is, if you know engineers, a certain number of them will not want to learn a new language. most people choose their job based on the language and tools the job uses. thats what i said. some will quit.

    • @hagaiak
      @hagaiak 5 місяців тому

      Why would you switch language if you're already using the best one?

    • @SilasDuarte-e9k
      @SilasDuarte-e9k Місяць тому

      @@hagaiak
      Zig > Rust, that's the point of all this.

  • @nomadtrails
    @nomadtrails 5 місяців тому +22

    Prime, always a man of the people, puts the chat up, while talking shit on the chat's opinions 😂... EDIT: CHAT IS GONE

    • @airkami
      @airkami 5 місяців тому +1

      Could have completely removed that whole pre-intro tech wrestling but wanted chat to know this layout doesn’t work with them lol

  • @rubiskelter
    @rubiskelter 5 місяців тому +72

    Please, someone create a cross compiler between Zig and go, we can have Zigo

    • @AloisMahdal
      @AloisMahdal 5 місяців тому +7

      too close to Zygote

    • @airkami
      @airkami 5 місяців тому +22

      Zig needs to 1.0 first

    • @abo3zzzam
      @abo3zzzam 5 місяців тому +1

      Zigo is Arabic for the verb shit. As in ordering a group of people to take a shit.

    • @plaintext7288
      @plaintext7288 5 місяців тому

      ​@@abo3zzzamfitting for the code I write😅

    • @khanra17
      @khanra17 5 місяців тому +13

      Why do you have a word for "ordering a group of people to take shit" ? 😐
      ​@@abo3zzzam

  • @daltonyon
    @daltonyon 5 місяців тому +21

    Watching again!! I want see more opinions of Rust vs Zigs

  • @kanji_nakamoto
    @kanji_nakamoto 5 місяців тому +11

    Regardless of languages, I'd rather work with Jarred, then the cult guy!
    Jarred just answered the questions, provided good feedback, open to the idea of using other languages, e.g. C++. That's exactly the right mindset. Glauber made great points but Pekka seems to not be open to other ideas, which I believe would be very hard to work in his team.

  • @vsrikarunyan
    @vsrikarunyan 4 місяці тому

    Thank you so much for this discussion. Helps a lot !

  • @hanes2
    @hanes2 5 місяців тому +6

    The Bryan Cantrill talks always awesome to watch

  • @curio78
    @curio78 Місяць тому +1

    The point is simply. a role of a language is not just limited to what it writes but also how it can be managed. Rust fails at that part, ease of reading a written code is a serious requirement.

  • @abrahamv09
    @abrahamv09 5 місяців тому +4

    what's the name or link of the zig discord?

  • @NotherPleb
    @NotherPleb 5 місяців тому +10

    Surprised prime thinks Rust standard library is hard to read, I very often go to the source to understand stuff, especially coming from C++ where going to the definition is useless. Also, I agree that Rust macros are not the best but they look scarier than they are!

  • @FerPerez-mc3wr
    @FerPerez-mc3wr 5 місяців тому +1

    Thank you so much from South Africa! 🇿🇦

  • @lifespell-omega
    @lifespell-omega 5 місяців тому +3

    i like rust more because i value the type system. it's worth noting that zig is not an easy language to learn relative to something like javascript for example. the idea that you can just pick it up and immediately be productive is not true. the way people talk about it made me think that it would be like learning go. the main benefit of zig to me is calling c libraries because doing that with rust is very painful.

  • @DogeMultiverse
    @DogeMultiverse 5 місяців тому +3

    left-right mirrored prime hits different

  • @arimill1045
    @arimill1045 5 місяців тому +6

    Still just a fan of using C w/ Zig build tools rather than the syntax

    • @ZombieLincoln666
      @ZombieLincoln666 2 місяці тому

      yeah I found using zig for build tools made using C on windows way easier

  • @SnowDaemon
    @SnowDaemon 5 місяців тому +12

    this may be the first time Prime has decided to use the "flashy new thing" instead of the proven one.
    at my company people love Zig but every one also says they would choose Rust over it.
    Zig is a cool choice and a good language, but it's not "better" than Rust. Rust may not be "better" than Zig neither...
    its just preference, and since Rust is more mature it usually wins out.

    • @blarghblargh
      @blarghblargh 5 місяців тому +1

      don't use zig until it ships unless you want to be a contributor to zig.
      they say it themselves.

  • @jjpp1993
    @jjpp1993 5 місяців тому +11

    you should’ve brought noboilerplate to this

  • @vikingthedude
    @vikingthedude 5 місяців тому +9

    In zig we rust

  • @owlmostdead9492
    @owlmostdead9492 5 місяців тому +22

    Go and Zig are the only two languages where cross-compiling is just a command, Rust is actually no better than C or C++ in that regard IMO, it's terrible. Especially if you're cross-compiling for a different architecture + OS.

    • @Mooooov0815
      @Mooooov0815 5 місяців тому +7

      The only problem with go is that shit kind of hits the fan when you have a single CGo dependency, that’s mostly it for your nice cross compilation. Although Zig can (often) help with that as well

    • @SimonBuchanNz
      @SimonBuchanNz 5 місяців тому +2

      Dunno what go is doing (I think that they directly call syscalls?), but zig at least is "just" effectively packaging the platform SDKs, which may or may not have copyright issues? (IANAL).
      You can get the same cross-compile setup in Rust without *that* much trouble, it's really just SDK copyright that prevents someone packaging this up.
      Rust is getting close to adding raw-dylib, which is basically the ability to write platform SDKs in pure Rust, and the windows crate at least already has support, so you can already cross compile pure Rust to Windows at least on nightly builds.

  • @DmitryVoytik
    @DmitryVoytik 5 місяців тому +11

    Switching from Rust to Zig - it’s like downshifting. Loosing safety guarantees and for what?

    • @PiotrPavel
      @PiotrPavel 5 місяців тому +4

      for not ready to prodaction tool set. maybe in 2-4 years when zig matures....but Rust then will be in many places. I was reading that Apple promotes Swift over c++, so yet another competitor for zig(if zig is a replacement for c++ and C)

    • @matress-4-2323
      @matress-4-2323 5 місяців тому +2

      @@PiotrPavel zig came in at the wrong time. if it came a few years earlier it might've had a completely different trajectory. i see it being more of a niche language used for specific tasks. i don't see wide adoption in it's future. a lot of that is a timing thing.

    • @mgord9518
      @mgord9518 5 місяців тому +5

      Zig has much better type safety than C and allows you to do unsafe actions with a lot less headache than doing so in Rust. Imo it gives a good amount of safety while not having to fight the compiler on literally everything
      It's also a much simpler language than Rust. So it's really for a different group of people than those who like Rust or C++. You get fast compile times, an extremely powerful build toolchain, much better C interop than Rust among other things.

    • @Solid_Fuel
      @Solid_Fuel 4 місяці тому +1

      speed:
      - faster development
      - faster compile time
      - faster deployment

    • @maxoumimaro
      @maxoumimaro 2 місяці тому +1

      Also not everybody wants to do Rust.
      As a c++ dev, my attempts at Rust were annoying, hard and I never got very far into the language.
      Problem that it raised for me is that EVEN IF i take the time learning it, it will just be the same problem as C++ which is "team skill issues". Not everybody is willing to learn a complex language and deal with all the fancy stuff that comes with it. Zig can be learned on the spot and just do stuff because there is only comptime as magic which limits what can happen.

  • @krtirtho
    @krtirtho 5 місяців тому +5

    Zig vs Rust❌
    Zig & Unsafe Rust✅

  • @ThePOVKitchen
    @ThePOVKitchen 5 місяців тому +6

    "oopsie i stopped the recording" right at the end is the best outro. go Prime

  • @byskawica1919
    @byskawica1919 5 місяців тому +2

    Imagine that someone once had to discuss whether binary or assembly programming is better

  • @mattius17
    @mattius17 5 місяців тому

    Can we take a minute to appreciate Prime resisting the urge to immediately yell TOKIO

  • @theLowestPointInMyLife
    @theLowestPointInMyLife 5 місяців тому +20

    I love the idea of Zig, its practically ideal in theory for my taste, but I dont like the implementation, the syntax also turns me off. That said there was a time when I thought Rust was ugly but after using it a while you come to appreciate it, maybe the same would happen with Zig if I gave it a real chance. I also doubt Zig has the ecosystem to compete with Rust, libraries are a big part of what make a language good.

    • @plaintext7288
      @plaintext7288 5 місяців тому +3

      I'm neither a rust nor a zig dev, but aren't c libs easy enough to use with zig? I know same can be said about many languages, but zig seems to have one of the best integrations

    • @lmnts556
      @lmnts556 5 місяців тому +5

      I absolutely agree, the syntax itself could have been done so much better. It just feels bad to write honestly.

    • @TJackson736
      @TJackson736 5 місяців тому +3

      ​@plaintext7288 you can use C libraries as if they were zig libraries.

    • @arimill1045
      @arimill1045 5 місяців тому +4

      Zig as a tool to use C is the best of all worlds imho, sorta wish they just stopped there to bring C into modernity

    • @AloisMahdal
      @AloisMahdal 5 місяців тому

      @@lmnts556 which parts? I pretty much love zig syntax but I have no real comparison (i only worked with higher level languages, Python, Bash, nowadays JS, ugh...); wonder what could have been done better.

  • @AloisMahdal
    @AloisMahdal 5 місяців тому +25

    Glauber seems like such a nice guy..
    to Pekka, basically "I can fire you".
    to Jarred "you said (opposite what he did)"
    Jarred to Pekka: "you have skill issue" -- Glauber nods heavily
    I mean, he's funny but would make me swimming in cortisol if he was my boss. (that's my skill issue)

    • @theLowestPointInMyLife
      @theLowestPointInMyLife 5 місяців тому +14

      turso sucks also

    • @SnowDaemon
      @SnowDaemon 5 місяців тому +9

      i was thinking the same thing!
      i would NOT want that guy being my boss! lol
      maybe they're such good friends and thats just how they are though...idk.
      deff dont seem like Glauber is a nice or likeable person thought, that sounded like an ACTUAL threat, and Pekka didnt laugh....

    • @AloisMahdal
      @AloisMahdal 5 місяців тому +7

      @@SnowDaemon I mean, he's probably very smart and one could learn a lot from him, but whoa, with that power dynamic, those "jokes" felt like barbed wire.
      I really got the vibe that Pekka is just suffering through him and trying to keep his calm, which he did. (I hear Finnish people can have pretty thick skin but that's just a sterotype and even if true, still...)

    • @SnowDaemon
      @SnowDaemon 5 місяців тому

      @@AloisMahdal agree.

    • @glommeryt
      @glommeryt 5 місяців тому +1

      @@AloisMahdal I actually fired him today.

  • @TheFreshMakerHD
    @TheFreshMakerHD 5 місяців тому +6

    As someone who tried to learn rust and is currently learning zig, I must say zig syntax just makes more sense to me, I feel like I understand what the language is doing, where as with rust I felt like I was falling into a pit of despair cuz I was so confused and annoyed. That being said, it feels like there's only beginners resources for learning zig and I don't know how I can go about learning the language in a deeper level or more advanced usage. Rust on the other hand is way more developed and has more of a community to guide people along

    • @ForeverZer0
      @ForeverZer0 5 місяців тому +1

      I am very much more of a Zig fan over Rust, but the lack of learning resources is indeed currently a huge obstacle for attracting new users. Having used it for ~6 months, I rarely need to look things up anymore, but it is always a struggle when I do, and I remember the pains of trying to find any sort of comprehensive resource, usually just having to "figure it out" with trial and error. They have stated many times that by 1.0 they will have a more fleshed out stdlib with better documentation, but until then (and wider adoption) I assume it will continue to be a struggle.

    • @TheFreshMakerHD
      @TheFreshMakerHD 5 місяців тому +1

      @@ForeverZer0 zig needs Brian kerning to write the "Zig Programming Language" book

    • @Munchyydl
      @Munchyydl 5 місяців тому +5

      I'm in the opposite corner here when it comes to the syntax. While I agree that the Rust type and lifetime syntax might be a bit to verbose at times, there is a lot more syntax constructs in Zig that I don't like. Having said that, I must confess that I have put off trying to learn Zig just by the looks of it's syntax, so I just might learn to love it if I give it a try... 🤔

    • @TheFreshMakerHD
      @TheFreshMakerHD 5 місяців тому

      @@Munchyydl I just worked through Ziglings and Zig Guide to learn zig so far, I recommend them. And yes 100% I agree even zig has syntax issues in some spots, for example: the built-in operators seem to mix up case formatting, some of them start upper case, some are all lowercase, some are camel, etc. it would just be nice to have them uniform or have the differences explained. Then I don't get why "inline" exists as a keyword when "comptime " exists... inline loops run at compile time, why not just use the comptime keyword only? Then the LSP doesn't pick up on capture groups (|value|) or type unions, so the LSP definitely needs work

    • @ForeverZer0
      @ForeverZer0 5 місяців тому

      @@Munchyydl I was also initially very put off by its syntax which made me delay learning it for nearly a year. Early this year I finally decided to give it an honest try, anyways and the syntax actually grows on you, and your realize that it does make sense (i.e. there is a reason for it). Difficult to explain in detail in a YT comment, but there is some very convenient things that it allows for which are simply satisfying to use once you get the hang of it.

  • @isaacyonemoto
    @isaacyonemoto 5 місяців тому +6

    I dont think pekka actually used zig

  • @wb3904
    @wb3904 4 місяці тому +1

    Learning Zig and it’s tough but you pick it up over time.

  • @petrusboniatus
    @petrusboniatus 5 місяців тому +4

    I think The case for Rust was not really well presented. For me it boils down to the power of the time system. People use Haskell for a reason even if it's worst to some other language in every other thing (comparing it to languages of that size and age) but the type system.
    Also this thing about writing the macros in the language Itself exist since before I was born in lisps/schemes. And yes they are powerfull... But there is a reason they didn't catch on in the mainstream. The less you metaprogram and the more you use standard concepts of the language the easy is your code to understand, so having it too easy I think in practice is detrimental to code reuse in the long run.

    • @ForeverZer0
      @ForeverZer0 5 місяців тому +1

      I agree with your point, but i think Zig's case for the metaprogramming with comptime is that it struck a very good balance of being extremely useful without over-complicating or making it difficult to understand.

  • @Shaunmcdonogh-shaunsurfing
    @Shaunmcdonogh-shaunsurfing 5 місяців тому

    Sorry, rookie question. I’m guessing “comp time vs generics” is not referring to compile time vs generics in this discussion?

    • @steveoc64
      @steveoc64 5 місяців тому +3

      It is exactly that. Zig implements generics as compile time functions that return a type
      That covers both generics and macros, without needing to introduce a new meta-language or pre-processor

  • @Burgo361
    @Burgo361 5 місяців тому

    That was super interesting to listen to, I would love to see more of this discussion in the future.

  • @TheSulross
    @TheSulross 4 місяці тому

    Zig vs Rust - the final battle for the fate of the galaxy for next 100,000 Terran years

  • @JoeJoeTater
    @JoeJoeTater 5 місяців тому +1

    I'm learning Rust right now. I have to agree, interacting with libc stuff is painful. Like, I wrote a TUI minesweeper game... Half of my time was spent trying to figure out how to flush stdin. The other half was spent actually writing code.

    • @SimonBuchanNz
      @SimonBuchanNz 5 місяців тому

      std::io::stdout().flush() didn't work/was hard to find?

    • @SimonBuchanNz
      @SimonBuchanNz 5 місяців тому +2

      Sorry, saw you said stdin. That's more complicated, yeah, especially since it's pretty os sensitive.

    • @SimonBuchanNz
      @SimonBuchanNz 5 місяців тому +1

      ​@@Tom-dd3vlthat's not really true, there's environmental buffers like readline you may need to talk to get character based input at a terminal.

  • @zxnnightstalker2289
    @zxnnightstalker2289 4 місяці тому +1

    That was such a great conf.

  • @neonshadow9667
    @neonshadow9667 5 місяців тому +3

    How could you do a performance related conference and not include Casey?

    • @SnowDaemon
      @SnowDaemon 5 місяців тому +1

      Casey really doesnt do Rust or Zig

  • @Hyperbog
    @Hyperbog 5 місяців тому +8

    I haven't started my CS degree yet, but as a musician I'll give my outside looking in opinion.
    Almost everything on UA-cam regarding programming languages is like working in a music store where the inevitable love of music dies and every conversation devolves into talking about gear. Nothing but gear. Gotta change the pickups. What capacitor are you using? I use GraphTeq nuts you're still using acrylic? How about them brass trem blocks? Do you use pure nickel wound strings or Cobalt? I prefer stainless steel jumbo frets. I like these tubes because they breakup dirtier than those tubes. I put greenback speakere in my cab. Gear. Gear. Gear.
    Everyone is busy talking gear that they get sucked into obsessing about things that literally don't matter. The professionals don't think about that stuff. Their techs are using Fractals or Kempers backstage anyway.
    People who work in music stores understand. When you snap out of it you realize you just gotta make music, man. Just make music. The nuances of gear are a distraction from the love and fun of making music.
    That's what I hear with all of these discussions. Programmers talking about gear and not making enough music. So-to-speak.
    I can't wait to just find my language and make some music instead of getting into debates about what's better and never having the focus to just settle on my instrument to write with.

    • @xomiachuna
      @xomiachuna 5 місяців тому +2

      For most applications the language choice is not terribly important, but some important applications do require certain properties that only a subset of languages adequately covers. On this regard it is closer to the regular engineering - the choice of tools and materials does indeed matter as you cannot build a safe bridge without proper equipment/materials

    • @Hyperbog
      @Hyperbog 5 місяців тому +1

      @xomiachuna knowing the essentials is fine. Obsessing to the point where all one does is hyper focus on every little inconsequential nuance of every language makes it seem like either no language is good enough or every language is only as good as your knowledge and that there's always something better. Which then makes it seem like modern programmers have a massive issue with jumping from one language to another in search of the perfect language. It also seems incredibly counterproductive to have so many languages competing for a user base.

    • @PassifloraCerulea
      @PassifloraCerulea 5 місяців тому +1

      Awesome perspective. As an Old Guy Programmer who has seen a lot of stuff come and go, I tend to agree. Unfortunately, we have a constant influx of inexperienced folks creating shiny new "gear" to replace the not so great old "gear" but all of it ends up feeling sub-par over time. My personal solution is to stick with C because I still _get stuff done_ no matter who tells me I'm being unproductive, unsafe, irresponsible, etc. I don't want to work with those young whippersnappers anyway 😁

    • @blarghblargh
      @blarghblargh 5 місяців тому

      @@Hyperbog as someone who's been programming for a long time, programming languages get pretty easy to pick up after a while. a for loop in one language doesn't look that different from another. there's reason to have competition in the space, because we learn better ways to make tools. but I fully agree that finding The One True Language isn't going to happen, and is a distraction. Pick up languages when it makes sense for your projects. You'll know when it does.

  • @maxmustermann5590
    @maxmustermann5590 5 місяців тому +9

    I don't get these topics tbh. Zig tries to be a better C, Rust tries to be a funamentally save C++, they can coexist being a good at their own thing lol

    • @steveoc64
      @steveoc64 5 місяців тому +7

      They are fundamentally different approaches to the same problem
      Rust is like “my child isn’t allowed out of the house without wearing a mask, and must be under supervision at all times”
      Zig is like “get outside and play in the dirt, make sure you are home before it gets dark”

    • @blarghblargh
      @blarghblargh 5 місяців тому +1

      @@steveoc64 sort of. but zig's parents taught their teens how to use condoms, proper traffic safety, situational awareness, and had some talks about safe drugs/alcohol experimentation, safety at parties, and gave them some confidence against peer pressure, whereas C programmers said "you'll figure it out. want a hit off my vape? watch out, it's high THC. nerd".

    • @rusi6219
      @rusi6219 5 місяців тому

      ​@@blarghblarghthats not what a responsible parent does

    • @tychoides
      @tychoides 5 місяців тому

      @@steveoc64 and Rust child becomes and engineer, and Zig child becomes a crack head.

  • @clintquasar
    @clintquasar 5 місяців тому +10

    Jarred looks like bun's logo 🤔

  • @jgndev
    @jgndev 2 місяці тому +1

    All in on Zig, like where this is headed

  • @ebmpinyuri
    @ebmpinyuri 5 місяців тому +3

    Prime had to stand up for us Vimmers !!!!!!!!!

  • @frankenmint
    @frankenmint 5 місяців тому +1

    Talk about that setup pls, two obs???? 😮

    • @AloisMahdal
      @AloisMahdal 5 місяців тому +2

      yeah it wouldn't be polite to keep bringing it up but "i think we can all agree" that was the most interesting topic of the video
      (i mean zig vs rust would have been interesting, just this particular talk didn't work very well tbh)

  • @JLarky
    @JLarky 5 місяців тому +1

    It took me two minutes to realize that it was Jarred

  • @smaplessmap5355
    @smaplessmap5355 5 місяців тому +1

    Atm cpp is the go until zig improve to the final release! Zig needs more support by community! Hopefully they prevent big tech companies to sneak in! Rust is cumbersom except the tooling, which is rly great!

  • @krumbergify
    @krumbergify 5 місяців тому

    Ever since the C++ committee voted against breaking the ABI in order to increase performance the reason for using C++ in new software where Rust is available simply doesn’t exists.
    C++ is not memory safe and no longer the fastest option, it is simply a complex legacy language.
    Zig is cool and the cross compiler is awesome, but I think its niece is quite small since it tends to get squeezed between Go and Rust.

  • @SirRandallDoesStuff
    @SirRandallDoesStuff 5 місяців тому +39

    I will always like Zig more. I like Rust, but the community is awful. Yes, a community can push you away. I always understand a few bad apples. But my god, Rust makes C++ zealots look like peaceful monks.

    • @pietraderdetective8953
      @pietraderdetective8953 5 місяців тому +6

      yeah the crab people are like that...frustaceans.

    • @nathanfranck5822
      @nathanfranck5822 5 місяців тому +4

      I finally used Zed and I can safely say that Rust benefits my life. Though I use it to program Zig :)

    • @CommanderRiker0
      @CommanderRiker0 5 місяців тому +6

      Agreed, refuse to use Rust just out of principle. Besides I find C++ much easier.

    • @marsNemophilist
      @marsNemophilist 5 місяців тому +9

      The Rust folks, at least the online active ones, are unbearable.

    • @nakatash1977
      @nakatash1977 5 місяців тому +1

      The problem with Rust is the people who use it are very smart but not everybody is as smart as them and struggle with it and eventually give up.

  • @Tony-dp1rl
    @Tony-dp1rl 5 місяців тому +2

    Market share of both combined ... probably 3%

  • @F.a797
    @F.a797 5 місяців тому +18

    This seems like a nothingburger tbh.

    • @AloisMahdal
      @AloisMahdal 5 місяців тому +10

      i got bored pretty fast, only thing i remember is Glauber being kinda jerk to Pekka
      their chemistry was like they started a massive fight just 5 minutes before the talk, and it seems that the best Prime could do was to put their thumbnails in a different corner so that they don't bite each other.
      i mean interesting but this ain't a reality show

  • @Hardware-pm6uf
    @Hardware-pm6uf 5 місяців тому +13

    Ada ftw

  • @carstenrasmussen1159
    @carstenrasmussen1159 5 місяців тому

    I like ctfe(comptime) and the introspection I use it in D a lot

  • @FlaggedVideoGuy
    @FlaggedVideoGuy 5 місяців тому +7

    Hearing the CEO of a database company not understand why python was chosen as the analytics/ML language of choice is hilarious. Here's a question.... why write SQL when you can just query the data with rust/zig....? Python is a language to USE tooling not build tooling. Most major python packages use c/c++ or rust under the hood to get only slightly worse performance but at a benefit of writing simpler, faster to write and faster to iterate code.

    • @blarghblargh
      @blarghblargh 5 місяців тому +3

      people who build databases don't tend to be the people crunching data to put in databases. they usually try to be agnostic of that level. they're focused on their own performance, and the interface they expose to their own software. unless you're a giant provider like oracle or something, in which case you're trying desperately to integrate farther into customer's solution stack.
      but yeah, historically python has been seen as a very low performance language. many people (probably wrongly) assume it's inherent at all levels of the langauge, even at an abstract level, and not an aspect of the specific implementation(s), or more subtle choices in the mainstream variant of the language. if the person hasn't been implementing python-like languages themselves, or doing high perf optimization work directly on a python codebase, there's probably not a ton of reason to question that part of the language's reputation. mojo is probably going to be a little bit of a shock to a lot of systems-level programmers.

  • @Alcani3ca
    @Alcani3ca 5 місяців тому +4

    Is CSS better than SQL?

    • @user-eg6nq7qt8c
      @user-eg6nq7qt8c 5 місяців тому +4

      well you can't center a div with SQL can you.

  • @k0rnburn
    @k0rnburn 5 місяців тому +1

    D is a nice alternative that can be used for both low-level code (C, Zig area) and high-level code (C#, Rust, Go area)

  • @sorek__
    @sorek__ 4 місяці тому +1

    I want ZIG++ with operator overloading and other fun stuff from C++.
    Otherwise I prefer ZIG to Rust totally!

    • @Solid_Fuel
      @Solid_Fuel 4 місяці тому +1

      you monster

    • @sorek__
      @sorek__ 4 місяці тому

      @@Solid_Fuel hey. I do embedded. Smart pointers aren't needed. People complain about Cpp11 but you don't have to use all those funky features. Just operator overloading, inheritance, templates and other QOL things.
      If you write C++ like C code with QOL stuff and take care of memory yourself it's really good to use.

  • @Jabberwockybird
    @Jabberwockybird 5 місяців тому +1

    Yes, Walther P99 for the win!

  • @AFGautonompunk
    @AFGautonompunk 5 місяців тому

    really anticipate this conversation and the conference, however, the echo is annoying!

  • @airkami
    @airkami 5 місяців тому

    Algorithm interactions are nice. I think I am okay with learning Smaug using the discipline I used to learn Go. I’m not sure I find it as fun with it looking more like c++ than like c#

  • @clarencemoss1227
    @clarencemoss1227 5 місяців тому +1

    No one's talking to accountability

  • @programmerdvorak7032
    @programmerdvorak7032 5 місяців тому +3

    6:01 "C is not a viable option to build today's infrastructure software" then he argues that it's in linux and microsoft using it in their kernel.
    Argues that there are 7.5 mil. c++ devs in the world, 1.5 rust devs, codeninja reported 13.3 million c++ devs in the world.
    c# and php are about 6 million each.
    anyway, I wanted to ask this PhD candidate, on his opinion that rust shows 20% more latency in time-critical workloads and more memory usage and how does this fit into something like a kernel, an server, etc?
    are we rewritting everything in Rust to make them 20% slower and more resource hungry with unsafe{} code just to claim that it's safe, while it isn't?

  • @lisinsignage
    @lisinsignage 4 місяці тому

    C3 language also looks good.
    Still need to find time to play with it but I like what I read...

  • @haniffaris8917
    @haniffaris8917 5 місяців тому

    The audio volume consistency is awful.

  • @flamakespark
    @flamakespark 5 місяців тому +4

    JDSL ftw. Tom is a genius

  • @treehouseskoolie2515
    @treehouseskoolie2515 4 місяці тому

    Fighting compilers is a feature.

  • @demarcorr
    @demarcorr 5 місяців тому +1

    c# es numero uno, zig is a far low #2 and rust has a solid footing at dead last

  • @matress-4-2323
    @matress-4-2323 5 місяців тому +2

    i don't get the zig hype. there's nothing groundbreaking about it. it's just another language. more similar to odin or something like that than it's own unique language. there is value in that but it's not typescript or what kotlin is to java. it's too different from c to be that but also too similar at the same time to be widely adopted.

  • @darak2
    @darak2 4 місяці тому

    I had no fun with either of them. Both languages are extremely opinionated, in a way that feels like programming with shackles. If you agree with their opinions, those shackles may even feel comfortable, but I've been born previously by buying into excellent meta ideas that ended up being hurtful in the long run, and not really worth the compromises (compromises that are always *very* hard to see in advance).

  • @p99chan99
    @p99chan99 5 місяців тому +9

    This feels so weird... lmao

  • @LethalBubbles
    @LethalBubbles Місяць тому

    rust is bad because it has drm in the "safety" stuffz if zig has that "safety" stuff, it is also bad if not then maybe it's alright. Elther way oldschool C doesn't have that so it wins by default.

  • @meldeebueno
    @meldeebueno 5 місяців тому +3

    Prime is like the DrDisrespect of devs. The loyal version lol

    • @manishshaw1002
      @manishshaw1002 5 місяців тому

      initial few days i watched him thinking doc without glasses doing coding i realized way later that he doesn't play cod he code. and he codes fast...faster .....very very faster that too in vim 😮

    • @blarghblargh
      @blarghblargh 5 місяців тому

      they look similar, prime does memes, and they both stream. the comparisons mostly stop there

    • @meldeebueno
      @meldeebueno 5 місяців тому

      @@blarghblargh Yeah haha

  • @krunkle5136
    @krunkle5136 5 місяців тому +9

    C is Rust's daddy.

    • @SirSomnolent
      @SirSomnolent 5 місяців тому +8

      Rust is that son that went to college and came back a little off.

    • @CatFace8885
      @CatFace8885 5 місяців тому

      C is the daddy of all languages tbf

    • @blarghblargh
      @blarghblargh 5 місяців тому

      @@CatFace8885 ALGOL

    • @niggacockball7995
      @niggacockball7995 5 місяців тому

      @@SirSomnolent with a mutilated genital...

    • @sn-xc7rv
      @sn-xc7rv 5 місяців тому

      That shows in the kind of programmers who use it too​@@SirSomnolent

  • @TebaremCoding
    @TebaremCoding 3 місяці тому

    oopsies i gotta stop the recording

  • @kahnfatman
    @kahnfatman 5 місяців тому +1

    When tech guys act politically and play nice, it is awkward and awful. I have to filter out so many fillers.

  • @MartialBoniou
    @MartialBoniou 5 місяців тому +3

    I chose Zig, but still prefer Lisp.

  • @blackfrog1534
    @blackfrog1534 5 місяців тому

    when prime talks there is this echo or something and its distracting as fuck
    edit: looks like its not just prime

    • @TheGinGear
      @TheGinGear 5 місяців тому

      That's the sound of someone's audio on the call looping back into their mic. Unfortunately not something fixable on Prime's end

  • @pmcgee003
    @pmcgee003 5 місяців тому

    The involvement some of these guys are displaying for "their language". 😅

  • @pablopico93
    @pablopico93 5 місяців тому +2

    It seems that the only current purpose of Rust is just the f**ing blockchain jobs, there is not more jobs about it and this is why I prefer learn more in C++ or C than Rust and Zig

  • @kobi665
    @kobi665 5 місяців тому +5

    Dude in red doesn't feel like he knows much

    • @perc-ai
      @perc-ai 5 місяців тому

      pekka in red is a 7x engineer lol primagen is like 15x engineer jacob is like 100x engineer and the bald dude is like 10x... thsese are very smart people much smarter than the avg engineer. Chris Lattner that was mentioned is a 500x engineer that is creating Mojo now

    • @kobi665
      @kobi665 5 місяців тому +1

      @@perc-ai whats a 1x ?

    • @RishaadKhan
      @RishaadKhan 5 місяців тому

      ​@@kobi665a regular engineer

    • @Plorpoise
      @Plorpoise 5 місяців тому +5

      ​@@kobi665don't ask, it's not worth it. Software engineer inflation is real and by next year a 1x engineer will be considered a 13x engineer.

    • @perc-ai
      @perc-ai 5 місяців тому

      @@kobi665 your average engineer in any tech company really

  • @horazon_
    @horazon_ 5 місяців тому

    what "hidden mutexes" in c++ they are taking about?

    • @adama7752
      @adama7752 5 місяців тому +3

      Laughs in Superior C.
      In C++11, there is a "magic statics" for local static variables. So local static variable initialization is thread-safe.
      The more you learn about C++, the worse it becomes

    • @fg786
      @fg786 5 місяців тому

      @@adama7752 ...and everyone writes with their own flavour of C++ features

    • @horazon_
      @horazon_ 5 місяців тому

      @@adama7752 doubt they mentioned this multiple times because of static thread local variables

  • @dennisestenson7820
    @dennisestenson7820 Місяць тому

    Nothing like watching 4 talking heads freeze trying to do 60fps... sigh.

  • @dami-i
    @dami-i 5 місяців тому

    Ada is the real deal.

  • @mikkoleppanen6425
    @mikkoleppanen6425 5 місяців тому +1

    I still wonder what's so great about Zig and why would I use it? Rust and Mojo (and Python) are the future...

    • @flavour_country
      @flavour_country 4 місяці тому

      c interop. zig can be used as a tool for compiling c and can use c files/libraries. its safer too. but its still beta not yet 1.0 so things will change a bit for a couple years

    • @stupidburp
      @stupidburp 2 місяці тому

      Gradual transformation of existing C projects instead of rewriting everything from scratch. Both approaches are valid for different reasons.

  • @engineeranonymous
    @engineeranonymous 5 місяців тому

    English will be the programming language you will all end up using soon.

  • @RobertGardnerEngineer
    @RobertGardnerEngineer 5 місяців тому +4

    I use Rust every single day.
    I have used Zig, and prefer Rust.
    I *wish* Rust had comptime.

    • @PiotrPavel
      @PiotrPavel 5 місяців тому

      Maybe create some change request for Rust? and comptime,, some error handling, in Unsafe mode add more manual memory allocation itp,

  • @benezen
    @benezen 5 місяців тому

    zig vs rust? so fun :D

  • @user-jt7wb3zc1m
    @user-jt7wb3zc1m 5 місяців тому +2

    *Well, don't worry, you don't have to be amazing.* _Rust_ 🦀