Rust: A Language for the Next 40 Years - Carol Nichols

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

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

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

    I think the presenter is honest, down to earth and real. No bullshit. I'm an experienced programmer in C, Golang, Dart and other scripting languages. What she is saying, makes lot of sense. She convinced me to dig deeper into Rust language

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

      Same here. Learning Rust - coming from C# background. Working for more than 11 years now in C#. Exploring other options.

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

      @@PankajNikam Hey man I’ve been doing C# for 8 years and am just getting into Rust now. What are your feelings on Rust three months later?

    • @PankajNikam
      @PankajNikam 3 ปีที่แล้ว +6

      @@prodevus Hey Robert, its good, especially the compiler - it helps a lot. Like one of the best compiler messages I have seen. Learning Rust even now and I havent lost interest till now. You will like it. The community is welcoming and helpful.

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

      @@PankajNikam Awesome news! I'm getting started right now. I'm ready to dedicate the next 8 years to this!

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

      @@prodevus Good to know 😃
      I bet you will love it.

  • @MadBroStudio
    @MadBroStudio 3 ปีที่แล้ว +238

    I just like that rust has a package manager. Makes making things so much easier, especially for web development.There's no other low level language that has a package manager

    • @megumin4625
      @megumin4625 3 ปีที่แล้ว +38

      You're telling me. This makes it 60% easier just by that alone. Package management in low-level languages is a PAIN. A $(*#$_( PAIN. Rust makes modern development better, and quicker

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

      There's Zig, really cool, you should check it out.

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

      @@seaoftears2984 still no package manager though

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

      Can someone tell me what's the advantage of having package manager like you said

    • @aqua3418
      @aqua3418 3 ปีที่แล้ว +50

      @@devsurendra8015 When you need a library, imagine having to go to google, doing a bunch of research, Once you find it, you have to go to github and download the entire repo. Then extract it into a folder inside your project. Then after that, you read the instructions on the github page which are complex, just to get it to compile at all. You end up fiddling with it for 40 minutes, but finally it compiled! Except that your project directory is now littered with that library's folders.
      - But that's not it! Imagine now that it has been some time and you shipped your software. You just found out that there's a CVE on your product. Why? Oh, it's because you didn't update that one library often enough. It's not like there was anyone or anyplace or any command that told you it needed updating. You need to check the 10+ dependencies homepages to see if there's an update. Ok, so you update it. Wait, what? Your project won't build. Ok, 2 hours later after doing extensive Googling it finally built.
      Now, let's compare that to a package manager / Rust:
      - You need a library.
      - You go to crates.io and search for one.
      - Docs are already linked at the same place they always are. How lovely.
      - You place one line in Cargo.toml
      - It downloads automatically, configures everything, and compiles (seriously, I've never seen a Cargo.toml library even fail compilation, there's almost never any configuration ever required).
      -> Time spent: 4 minutes. Code entered: One line of code.
      Time to update right? Oh wait, if you set up Cargo.toml correctly, it already downloaded updates automatically for you. Granted, you might still need to check for updates like the other one (sometimes you need to lock it to a version), but regardless, updating is just a one line edit.

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

    Rust starts at 16:05.

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

      @exorientelux ditto

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

      thanks

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

      Thanks!

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

      Thankou thank you

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

      You da true MVP

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

    The most headache bug is not when you cannot get the code running, the most headache is: the code runs into problems only once when running thousands of times. Rust is the future!

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

    A day after this was posted and it was out of date in regards to private crate hosting now existing. That's a good sign. Developments are constantly moving forward.

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

      Learn future legacy kruft today!

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

      @@KilgoreTrout11235 No, learn limitations that have since gone away.

    • @ukyoize
      @ukyoize 3 ปีที่แล้ว

      Cool, can't wait to recompile my compiler for 857th time this month

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

    I personally believe that thorough and significant problems warrant seriously considering the BASE DESIGN. This sounds like the reason for a Rust. I will definitely be looking into this language (while I learn all these others too!).
    In a side bit of trivia, my dad made his living as a corrosion engineer (thus rust was arguably his business; though he was fighting corrosion in water systems).

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

    I love all the people missing the point of the talk, and then complaining that a specific technical feature wasn't discussed.

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

    I was wandering, what?! Trains?" Then you said "safe by default". I immediately understood the point :)

  • @0rkk0
    @0rkk0 4 ปีที่แล้ว +43

    Love her sense of humor: "let's make new mistakes " ;-)

  • @moonsettler7537
    @moonsettler7537 3 ปีที่แล้ว +19

    i can totally see senators passing a bill banning pointers altogether after the first minute you try to explain memory safety to them just to get away from hearing more of it.

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

    Loved this talk. Especially how open she was about Rust's current shortcomings, that is an excellent sign for anything. With all the current popularity, you could easily just evangelize the hell out of it and have everyone in the conference cheer, so I love that.
    I have no need to use Rust in my current development role, but I may have to pick it up for fun soon. I'm Rust-curious now

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

    I'm just starting out in Rust, coming from high level languages, and some simple-ish Arduino level C++. Rust certainly seems like the right ways to go. Great video, gave me some reassuring background, as well as some useful technical detail.

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

      You came from a high level language to a high level language. Why on Earth would you think Rust were a low level language?

    • @egorsozonov7425
      @egorsozonov7425 3 ปีที่แล้ว

      Because Rust is definitely a low-level language. No auto memory management, raw pointers etc.

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

      ​@@egorsozonov7425 According to traditional nomenclature Rust is a high level language, just like C. Basically everything above machine code or machine code equivalent (assembly) is considered high level.
      That's not to say that this binary classification is particularly useful these days when virtual machines and interpreters are everywhere.

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

      Rust is a mid-level language.

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

    There are so many bugs that can be statically avoided... And rust makes very nice compromises between safety and usability.

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

      For me it feels like a win-win. And when u really need to have that extra performance with small memory tricks... u just use unsafe in a confined way. Safety as first priority... but still be able to do unsafe in a small contained piece of code is such an elegant solution. And yes they make tradeoffs... but it a way they get most out of both and then if u really need to make extra tradeoffs... there is always a way.. but it does take friction.

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

    Warning: don't look at comments, full of biased opinion from people has almost almost zero experience with Rust lang. :D

    • @kopuz.co.uk.
      @kopuz.co.uk. 5 ปีที่แล้ว +2

      hey lets keep the sjw'ism out of the rogramming world.

    • @АнтонГусев-н5ю
      @АнтонГусев-н5ю 4 ปีที่แล้ว +1

      @@kopuz.co.uk. listen pal, if treating all people equally and punishing assholes is some kind of "evil deep state Soros ANTIFA SJW" to you, you have my regards.
      There's nothing bad in their code of conduct.

    • @ishdx9374
      @ishdx9374 3 ปีที่แล้ว

      @@kopuz.co.uk. of course, sometimes this becomes a problem, and code of conduct is there to control

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

    nobody: ...
    Rust language team: hehehe we have :: thats a *TURBOFISH*

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

    I like the comparison with Brakemen vs. AirBrakes. Thanks sharing that history, it's fascinating. And also, thanks for sounding the alarm. Software industry is, ironically, reluctant to change its own ways.

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

    Her energy, enthusiasm, knowledge, optimism, and open-mindedness combined are nothing short of adorable. As someone equally in the business of building a potential disruptor of status quo, the part at min 46:51 particularly resonates with me: "Let's make new mistakes!". I like the sound of that mindset

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

    Ironic that a man named Coffin would be concerned about railroad deaths.

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

      Is it ironic? really?

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

      @@default632 Isn't it ironic? Don't you think?
      It's been used this way for at least around 100 years. It means more than just sarcasm or incongruity by now.

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

      @@BKPrice Well then

  • @thanatosor
    @thanatosor 3 ปีที่แล้ว +35

    The "unsafe" keyword in Rust is like the plot-twist in every movies, where the story sudden change, or your program suddenly crash.

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

      It's necessary if you want to replace C, both for interop with non-Rust libraries and for interacting with hardware.

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

      ​@@chrimonyIs it necessary?
      Does zig also crash?

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

      @@shrin210 Yes, Zig also crashes. It also has interop with C. In Zig, you get "!" everywhere.

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

    Rust is/will be successful for common-sense reasons....no revelation, nothing special.
    As a former C user, I'm never going back.

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

      C programmers have valid reasons to hate on C++, and C++ programmers have good reasons to hate C. Both of them love Rust mostly....

    • @ekrem_dincel
      @ekrem_dincel 4 ปีที่แล้ว

      @@HermanWillems lol you are here :D did WW3 start last time?

    • @default632
      @default632 4 ปีที่แล้ว

      @@ekrem_dincel it starts all the time.

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

      @@HermanWillems I don't really dislike C++, it's just that Rust is an elegant language, and I'd rather use it. Seeing the Rust community disrespect C++, however, leaves a bad taste in my mouth; hopefully, they know that Rust uses LLVM. I normally just use C anyway.

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

    I'm a Ruby and Go developer. Have learned Rust but haven't done andy real project in it yet. My understanding is that Rust is best at its memory security and performance. But the overhead on programmers is not trival. Meanwhile the goroutines and channels in go are really gold. Rust can do silimar things but not as easy. So for the next 40 years, there will be new languages which would make both go developers and current Rust developers, even including Ruby developers, to smile in front of their keyboard.

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

    Nice talk Carol thank you. Im using Go quite a bit these days and I actually think rust might be a nice complement to go for different problem domains.

    • @Arcsecant
      @Arcsecant 5 ปีที่แล้ว

      I think it's Coughing. Bob Coughing.

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

      What are the problem domains that Go and Rust are best suited for??

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

    The governance part gave me the chills from excitement. This sounds very good, almost too good to be true.

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

    The rust project is so ambitious, I like that a lot

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

    If C++11 came ten years earlier or Qt was LGPL licensed from the start, things could be much different now.

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

      Let's make that "20 years earlier"... ;-)

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

      And now it is, so what rust is suposed to do in this world ???

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

      1. Qt doesn't fix the problems with the c and c++ arrays. They just copied the std::vector with almost no difference.
      2. The mathematical library in Qt is not immutable and not guaranteed to be binary compatible with OpenGL like glm.
      3. The strings in Qt are encoded in utf-16 instead of the better and now world standard utf-8.
      4. Qt a bit resembles systemd. They want to create an ecosystem which literaly does everything so everybody will depend on them. They even replaced OpenGL with their own variant.
      5. Qt follows this strict object oriented design, which was always controversal, but now everybody agrees that it become obsolete.
      6. The signal slot system doesn't fix anything but make the programming more complicated and sometimes buggy.
      5. In other environments, loke web apps, android or wpf, it's easy and self evident to build the gui from a text editor with xml or html code. It's not true for the Qt gui, which I found hard to build from the text editor.

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

      But the documentation of Qt is better than anything else I found and it's beginner friendly. That's an overlooked part of success in the programming world.

    • @michaelmorris2300
      @michaelmorris2300 5 ปีที่แล้ว

      @@nortonp240 Get rid of old problems, and create new ones.

  • @mytop5602
    @mytop5602 3 ปีที่แล้ว +33

    I would never learn a language which isn´t completely Open Source. That´s why I love Rust

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

      There are many open source programming languages.

  • @rkirkpatrick01
    @rkirkpatrick01 2 หลายเดือนก่อน +1

    If this doesn't end with rust software stopping trains better I'm going to be disappointed.

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

    This talk is well done, but I think it overstates the innovative aspect of Rust.
    First of all, languages with automatic memory management have existed for many years. Lisp is almost as old as Fortran. Properly implemented garbage collected languages are memory safe and these days can deliver performance competitive with Rust (see D vs. Rust benchmarks, for example). It should also be understood that the automatic cleanup code when exiting a scope is indeed inserted at compile-time, as Carol says. But she contrasts that with a run-time garbage collector, but she isn't clear that that cleanup code does its work at runtime, just as a garbage collector does. In essence, the memory management strategy used by Rust is very much like an incremental garbage collector, except that the decisions as to when cleanup is done happen at compile-time (I'm not suggesting Carol was being dishonest here; I just think the runtime component of this wasn't completely clear, probably a result of limited time to deliver a lot of material). It is also true that the memory-safety rules in Rust are very restrictive, too restrictive for certain situations. And so, for example, they provide things like "unsafe", which Carol mentioned, and Rc, interior mutability, and locking mechanisms that allow you to have multiple writers to a single object. When you take this approach you have, in fact, become a component part of an incremental garbage collection scheme (no pun intended) that works fully at runtime.
    This is one example of the fact that with Rust, you the programmer are much more involved in memory management than is the case with a conventionally garbage-collected language. When you are obeying all the rules you must obey to satisfy the borrow-checker and lifetime-checker, you are an active participant in Rust's memory management strategy. And this is one of the aspects of Rust that make it so hard to learn. See the Rust user forum that constantly contains questions from utterly bewildered people struggling to understand why the Rust compiler hates their code.
    I could go on, but I will not. Don't misunderstand me -- I think Rust is extraordinary work. But I think the cost-benefit balance of Rust is sometimes misunderstood, perhaps leading people to use Rust in areas where, in my opinion, there are better tools for the job. Rust is hard to learn, hard to use, and the compiler is extremely slow, thus slowing the edit-compile-debug cycle. I would not pay that price if I were tasked to implement a garden-variety application to run on today's super-fast desktop or mobile hardware. I would use a garbage-collected language like Scheme, Haskell, Go, Nim or even Python (which, while much slower than Rust, is frequently fast enough; and Python is much easier to learn and write, reducing development time) avoiding the considerable price of Rust's difficulty. If I were writing code with a real-time constraint and/or code for an embedded system where the memory foot-print was an issue, then absolutely Rust becomes a strong candidate and I'm quite sure I'd choose it over C or C++.

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

    Saying you'll never break compatibility is a bit misleading, even with the given caveats. There have been breaking changes slipped in, even without an RFC.

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

    I programmed in PL/1 for nearly 30 years. It is a fairly good language. I never bothered to learn the newer PC based languages because they were always changing and becoming extinct nearly every twelve months. Who wants to learn a new language only to have it be replaced by another "new" language one or two or three years later? If Rust can become a stable long lasting language, then I say that's good. There's too damned much chaos, "diversity", fragmentation, and change in the programming language landscape to make anything very productive any more. It is a tower of Babel.

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

      They seem to be converging around a common syntax if anything.

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

      @@jwadaow Thank God for that.

    • @bluenetmarketing
      @bluenetmarketing 5 ปีที่แล้ว

      @tom smith What are the handful of really core languages, if you don't mind me asking?

    • @aibh7903
      @aibh7903 4 ปีที่แล้ว

      Haskell has been pretty stable for close to 20 years now

    • @Hexanitrobenzene
      @Hexanitrobenzene 4 ปีที่แล้ว

      @@bluenetmarketing
      TIOBE index answers this qustion empirically:
      www.tiobe.com/tiobe-index/

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

    When she said "evolve without losing backwards compatibility" I heard c++ all over again.

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

      They have made breaking changes, there's rust 2018.

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

      @@YoloMonstaaa She does explain that the compiler wont treat 2015 code as 2018 code so it wont actually break.

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

    C is like a bike without training wheels. It can crash, it can go faster, whatever rider likes to do.
    I sometimes like training wheels when I want to drive worry free. And sometimes I like to go crazy without training wheels.
    I think there is no perfect language. It depends on the problem which is to be solved.

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

      I like this analogy
      and GC languages are tricycle

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

    simplicity is what made Go successful.

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

    Fantastic talk. Came here after john Carmack tweeted about C and Rust. Very promising. I think rust is especially well suited for software that would be functional safety certified.

  • @Marlboro_Cone.3883
    @Marlboro_Cone.3883 3 ปีที่แล้ว +10

    She convinced me to start using Rust after 10:51 of the start of the video. She better has gotten a raise!

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

    air brakes - spring applied, air pressure released

  • @robinpettit7827
    @robinpettit7827 3 ปีที่แล้ว +6

    One of the cool things about programming with C when I was young was using the memory unsafe features to do things cool. Of course these were very machine specific which made the code not-portable or rather would cause problems if moved to another platform. I no longer remember the details. It was over 40 years ago.

    • @Caluma122
      @Caluma122 2 ปีที่แล้ว

      This is quite an important feature in the homebrew community where they are explicitly looking for buffer overflows and the like to gain access to the hypervisor. As I sat here on my flashed PS Vita watching this video, Rust will likely see the end of those days, or make it exceptionally hard. Still, I'm sure they'll always be hardware exploits!

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

    37 years left

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

    I've been learning Rust for the last couple of weeks. I've over 20 years of dev experience, mostly in C# and Go (lately). The compiler is absolutely awesome and a joy to work with, but the language syntax decisions boggle my mind for something designed to be modern. Also I am SO THANKFUL there is a Code of Conduct, because otherwise I wouldn't feel welcome and safe /s

    • @chrimony
      @chrimony 2 ปีที่แล้ว

      Codes of conduct are part of the landscape now. It's best to just ignore them and don't get caught up in the drama. Ignoring my own advice for a minute -- funny thing is that the Rust core team had some drama where they ignored the decisions of the Rust mod team, and the mod team resigned in protest. A case of not being able to follow their own rules.

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

    I have thought on this a great deal.
    Now that Linus is also moving in this direction, Rust is going to be the next step in low level development.

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

    I like that Rust provides a solution to the problem of memory (un-)safety, but I feel that Rust forces you into writing code a certain way. I really don't like the idea of just how explicit everything is. Things like explicit borrows and implicit ownership of objects rather than explicit result in some rather non intuitive semantics. Using Chapel as an example, everything is implicitly borrowed but you can explicitly make it owned, shared, or even 'unmanaged'. Rather than being 'opt in' or opt out by default, this hybrid makes it painless to write code while preserving the original program semantics.
    Anyway, I digress. Rust seems great for industry software where you want to write something once and just never touch it again.

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

      Hi Louis. What is Chapel? Google just gave me a bunch of churches :-)

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

      @@tux1968 google around for "chapel-lang"

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

      Not only memory safety, but thread safety as well, which is WAY harder to debug, and an absolute MUST in many demanding applications.

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

      @@KilgoreTroutAsf From what I can see, you have three options...
      1) Use a Communicating Sequential Processes (CSP) pattern via Rust's Channel, similar to Golang (message passing)
      2) Use some kind of mutex or reader-writer locks to enforce the single-writer or multiple-reader pattern.
      3) Use 'unsafe' to mark code as unsafe and do what you want.
      Considering that Channels are not without their downsides ( songlh.github.io/paper/go-study.pdf ) and locks have a plethora of issues that include, but is not limited to Priority Inversion, Deadlock, Livelock, etc., of which Rust does not solve or attempt to solve at all. The fallback, being the marking of code as 'unsafe', just feels like an additional chore to me, and would result in foregoing memory safety.
      What I'm trying to say is that, Rust cannot solve thread safety. By restricting the types of programs users write, it can _limit_ the number of scenarios where thread-safety comes into question, but it cannot 100% annihilate race conditions, it can only prevent data races caused by unsynchronized access.

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

      @@MoltarTheGreat I am by no means an expert in either golang nor rust, as I have only recently begun to read about both languages.
      I have nevertheless a more than passable expertise in C / C++, POSIX threads, OpenMP and MPI, since I have been developing parallel and high performance code for several years.
      As far as I understand, one of the strong selling points of Rust with regards to thread (and memory) safety is its robust static analysis, which is capable of optimizing out many unnecessary locks and even use optimized concurrent datastructures whenever possible.
      I may yet lack a deep(er) understanding of the actual scope of the language, but considering the amount of time I've spend debugging MT code, and the performance impact of using overly safe MT classes on modern manycore processors, Rust sounds like a promising starting point from which to address both problems at the same time.

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

    I think there needs to be a talk comparing rust against java. I know that rust was originally thought of as a systems programming language. But, I am of the opinion that it would work really well for enterprise software as well. Apart from the fact that rust is way faster, there are some advantages to the type system. On the other hand, java lets you do reflection and instrumentation which are used heavily in all java enterprise frameworks. It still may be a worthwhile discussion.

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

      I think they can add instrumentation to High level representation part of the compiler at a later date. Maybe just compile time instrumentations cause of zero cost abstractions policy?

    • @JamesSmith-cm7sg
      @JamesSmith-cm7sg 4 ปีที่แล้ว +3

      Put simply, Rust is too young to be considered for enterprise. Java has been around a long time and has solutions for almost every case.
      Rust definitely produces faster more reliable applications, but selling it to CEOs and high end clients is difficult at this point.

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

    OK... by the gods... I'm gonna LEARN it already :D

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

    Well this reminds me HOW GLAD I should be that the programming language that I have been using in the last 2 decades+ has NO MEMORY problems whatsoever, especially on a Web Server. When I put those EXEs on a web server, they often keep running for weeks and months without any leakage or errors or restarting. It's great to be able to concentrate on BUSINESS LOGIC, web interface, data, reports, and what the businesses require rather than which memory structure will not blow up. I have never had a business asking me for memory cells and objects. They are much more interested in "where is my web screen" and "where is my report". Visual Foxpro is so reliable and problem-free that programmers who used it typically did not need anything else from Microsoft for years and years. No wonder that Microsoft tried to abandon it. As an analogy in medicine: There is much more profit in cancer treatment than in cancer free. Foxpro still works like a charm for me and my clients. Efficient coding, reliable running, happy businesses. The only bad thing about it is that I cannot write any operating systems or computer games with it. But none of my business clients ask for that. Screens, Reports, Data In, Data Out etc.

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

    New keywords making old code invalid could be fixed with a find and replace. When you decide you want to update you can run a search that matches your code to a list of the new keywords and asks do you want to keep this or replace it with a new variable/function name for instance.

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

      rust fix does that though?

    • @Mike-iz9kh
      @Mike-iz9kh 4 ปีที่แล้ว +2

      That's fine if it's all in a single project. Not so much if you have to interface with lots of other libraries.

    • @Andrew-jh2bn
      @Andrew-jh2bn 2 ปีที่แล้ว

      @@Mike-iz9kh I know this is a very old thread, but as explained in the talk, dependencies don't have to use the same edition as your project. So you can switch to a new edition, and you only have to worry about code you've written yourself. If you have your code split into multiple projects, you could even switch one of them and it would still be compatible with everything else.

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

    C++: A Language for the Next 400 Years

    • @Otomega1
      @Otomega1 5 ปีที่แล้ว

      C++ hooligan ?

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

      in 400...40 years, software will be largely written by AI

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

      C/C++ is one of the wheels of programming. The wheel has been used for thousands of years all across the world. Still being used today. Its not going anywhere. The other wheels being Assembly, etc..

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

      @@kristupasantanavicius9093 The other 150 wheels being other languages. The sea change that Tesla Motors et al. initiated in the auto industry will inevitably come to SW development, too. Resistance is futile.

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

      @@quantumbubbles2106 What he is saying is that C is right next to being assembler language, it dominates a position close the the machine and is structured similarly to the operating principles of hardware. That can't really be casually replaced by another language unless that language is fundamentally similar to the computer and hence similar to C.

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

    While checking the comments, I found that this discord is quite heated.
    First, as a programming language, every one has its own concept, and the rust programming team seems to be fixated on the memory leak/usage issues, this may be helpful in some domains (mainly domain like game programming), but looking at other sides, comparing C to rust was somehow absurd, C is a solid programming language that has been on the scenes for half a century as you claimed that rust would last in the next 40 years, but generally speaking, I found rust concept interesting.
    I tried coding some small scripts using rust, and my first impression was that there is a bunch of nested data on it and complicated syntax (compared to other languages I'm working with), but I noticed some other good points, compared to the same scripts I made in other languages, rust did truly run them with the minimum allocated memory. And while there are some loose compiler of other programming languages, rust's compiler is a strict teacher who won't let a mistake slip in the program and reject it.

    • @quantumbubbles2106
      @quantumbubbles2106 5 ปีที่แล้ว

      "half a decade" -> "half a century"

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

      Damn, I always mistake 10 years to 100 years

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

      I really love how non-hesitant Rust is about warning you of inappropriate code, which contributes to the consistency. It does not allow you to make mistakes, even if it doesn’t affect your script yet

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

      I haven't really tried Rust hands-on, however, from the talks/comments I got the impression that it's harder than the languages in its class, but one spends time and effort in the name of correctness, instead of more rapidly writing an unsafe code and then spending an undefined amount of time on debugging, when some bugs may not even be found at all. A lot better to spend time and be sure its done at the end instead of getting tired looking for ghosts and stating "it's good enough".

    • @mobrine8659
      @mobrine8659 4 ปีที่แล้ว

      @@Hexanitrobenzene What people are interested in most nowadays is fast development. If you try rust for the first time without a preknowledge you will suffer. The most irritating thing that made me shy away is that every time I was trying some crate I find the documentation outdated and I need to look for help. Don't misunderstand me there are lot of qualities for using rust (you won't need any external bindings if you are satisfied with the available crates). But in the end it's still hard to become fluent in rust without any formal learning or pushing yourself (especially if you did use high level language from the beginning like me).
      Syntax is still little hard to master, it is unreadable (for me). you need to look every once in while if they did change something

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

    Great talk! Thanks a lot for your thorough explanation of the advantages of Rust. Keep up the great work!

    • @courier7049
      @courier7049 5 ปีที่แล้ว

      E.g. what is the advantage @18:30 in that very basic example? Who thought is a good idea to make assignment operator as moving by default? The actual error is "move occurs because `x` has type `std::string::String`, which does not implement the `Copy` trait", even then the line "y = x" should be NOP and optimized away as y is not used anywhere, thus there should not be an error, but a warning about unused variable.

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

      @@courier7049 it is optimized as if y doesn't exists. But using x after it mobed into y is a semantic error. If you don't do this restriction, you will have use after frees or double frees.

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

    From what I know ATS is arguably the most safe programming systems language out there and without having ANY performance penalty, the problem is that only 10 people in the world use it :/.

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

      Rust makes the trains safe by not allowing them to move.

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

      More like by not allowing them to switch tracks
      But if you ever wanted to do that you can just use the unsafe keyword

    • @digitalspecter
      @digitalspecter 3 ปีที่แล้ว

      ATS is very interesting but it's also VERY verbose.. I wish there was a fix for that.

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

    For whatever reason someone chose Rust as the name, believe me, it *will* sound like a bad plan for a lot of people, even if it is a completely valid reason, it will definitely not be a good first impression
    You’d probably be better off with Stainless

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

      Totally disagree. Different populations have such different tastes, but I for one would hate "stainless"

    • @adrianserrano6827
      @adrianserrano6827 5 ปีที่แล้ว

      Yeah, I work on cars on the side and "rust" has a negative connotation in my mind that I cannot shake, despite how in love I am with the language.

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

      The Rust language is named after a species of fungus!

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

    I tried to learn Rust around the time this came out, but just didn't have the discipline. It seems to have come a long way since then, so I'm gonna give it another try. If successful, I have a feeling it will be the last language I need. Just hope they can improve the compile times. :D

  • @Tony-dp1rl
    @Tony-dp1rl ปีที่แล้ว

    I wonder what an example of a Security Fix that would be needed in any LTS release would be, if the libraries have all those safety mechanisms.

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

    I wouldn't call C a mistake. It was basically designed as a high level assembly language. The mistake was in using as an all-purpose language.

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

      C is showing its age, even as a high-level assembly language. #include is awful. Arrays that don't know their own size are awful. I could go on, but it would be beating a dead horse.

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

    r/hydrohomies

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

    Fantastic presentation- thank you .

  • @beardymcbeardface69
    @beardymcbeardface69 2 ปีที่แล้ว

    45:13 _"Memory_ _Unsafety?_ _It's_ _a_ _series_ _of_ _tubes!_ _It's_ _not_ _a_ _big_ _truck_ _that_ _you_ _can_ _just_ _dump_ _something_ _on!_ _Tubes!_ _My_ _staff_ _sent_ _me_ _a_ _Memory_ _Unsafety_ _last_ _week_ _and_ _I_ _didn't_ _receive_ _it_ _until_ _today!"_ - Senator for the regulation of Memory Unsafety.
    Oh sorry, that's the Internet!

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

    With a few decades of "real world" C and C++ (and some others) under my belt, the slide that sent chills down my spine was the slide that showed "Everyone"...
    Everyone can (usually) make toast without burning it. NOT everyone can design & prepare a 7 course meal for 12 diners. (I certainly cannot!!)
    Production code written by those who cannot clearly formulate the problem at hand is ... ubiquitous.
    While I commend the effort to "raise the guardrails", I fear that rust will be seen as a gateway for hobbyists to work on systems that are beyond their comprehension.
    A craftsman does not blame his tools; however, amateurs do.

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

      Eh, that slide was overly optimistic. Rust is not for the "everyone" crowd. You have to really care about systems programming without a garbage collector to invest the time to learn Rust. What you should really take away is that there is no mythical "professional" C programmer that can avoid making memory errors in C. Or if there is, there aren't enough of them, because even the most elite companies that pay big salaries still write C code with the same old problems. Rust is about giving good systems-level programmers the right tools.

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

    I can't imagine why a Ruby programmer would forget to mention Rust's HLL support in memory-safe tuples, vectors, and hashmaps. Other features like iterators and closures might spark some interest from the OO crowd.
    This talk started out slow and awkward, but got better later on.

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

    What programming domains is Rust best suited for?

  • @lalsebastian8575
    @lalsebastian8575 2 ปีที่แล้ว

    Thank you, Good honest presentation. I am leaning RUST now. Have a great day?

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

    At 29:20 where she talks about stability she starts talking very fast. It makes me feel as though I'm reading the fine print in an EULA.

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

      "Rust: A Language for the Next 40 Years" but every time Carol mentions trains it gets 1% faster

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

    Yes, we need regulation to stop memory safety errors. From now on, software must be written in Java 1.6

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

      Java isn't type safe though, so memory safety isn't the problem, but it's still unsafe.

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

    I believe that any language used to build a reasonably large code base which is going to cost too much to be rewritten and too important to be decommissioned is going to last forever. I still see open job position for Cobol. So once you get into the market you are going to stay. The point is how large this niche is going to be. Rust is basically in competition with C and C++, where a compiler exist, in case you need to write a new product or fix very limited portions of your legacy code. There might to be some overlapping with Go and a curious scenario where Web ASM becomes a thing. I think this niche is crumpled.

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

    It would have been great if Rust used the C syntax, in addition to bringing the new features which C does not have , this way the lives of programmers will be easier

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

      Rust syntax is mostly C syntax; the main differences in syntax are based on language features Rust has but C doesn't. The only thing I can think of that's not C syntax with no feature-level justification is types, which are much easier to parse in Rust than C (so, the compiler can do less work). That and pointers, which are just a flat improvement.

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

      it already exists and it’s called C++

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

    C/C++ programmer: Smile, you can't kill them all.
    Rust programmer: Hold MY beer, that I own.

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

      Yess! C/C++ can't own their own beer, but Rusties can!

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

    this lady: "the software industry tends to be a bit arrogant at times"
    also this lady: "people kinda should be legally required to use our language instead of c"

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

      Yes, because writing robust software isn't just about the language you choose.

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

      @@WySBoonami someone wasn't paying attention in the talk: she was saying that about 3/4 of security bugs in one Firefox component wouldn't have happened in a memory safe language. Therefore, should safety critical systems be written in a memory safe language to eliminate lots of bugs? Seems reasonable to me.

    • @husamabou-shaar9740
      @husamabou-shaar9740 5 ปีที่แล้ว +4

      You can only admire the brilliance of the completely new type of tyronny ... A software development regime is born.

    • @aibh7903
      @aibh7903 4 ปีที่แล้ว

      Boonami brb writing air traffic control in scratch

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

      When did she say that?

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

    Skip to ~12:00 so you don't have to restudy your
    industrial revolution lectures from engineering school.

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

      I skipped those, so this might be a good opportunity ;)

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

      @@thecsciworker291 Well, there is that :-) It's a good treatment on railroads if you slept/skipped or whatever through. I have heard way, way worse! The brakeman data is all true--it was truly a terrifying job.

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

      I think the first 12 are important motivation for why not to use the breakman of today (C)

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

      @@jpratt8676 Good point.

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

    The Rust syntax!!! crazy for a modern language. Swift could win the race.

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

      Swift is not suited for systems programming. Is it a great language, though. I feel overall, corporate languages have proven to be more well designed from the get go (powershell, Swift, c#, swift, go). Anyone knows that retrofitting features while keeping back compat makes the language messy.

  • @user-sh7lw6nl2g
    @user-sh7lw6nl2g 3 ปีที่แล้ว +1

    38 years remaining

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

    With that many intermediate targets, no wonder Rust compiles so slow.

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

    I've been tinkering with Rust since 0.3 and have generally found it pretty favorable, but the segment in this video where it gets compared to C/C++ makes it seem like the social justice warrior of programming languages, at least to me.

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

      It is. Just check out their code of conduct. Politics is all over this language.

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

      @@yourinternetfriend6778 demanding that people do not harass is politics?

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

      @@musicaccount3340 Try again.

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

      @@yourinternetfriend6778 I'm curious about what in the code do you consider to be politics.

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

      ​@@musicaccount3340
      > I'm curious
      I doubt that based on your initial comment, but I'll answer your question.
      Their enumeration of immutable human characteristics is part of the typical left-wing world view in which this statement is assumed not to be true by default, similar to how BLM activist make statements that are obvious to anyone with the implication that there are those who disagree.
      Additionally their mention of "safe" environments, "harassment" and feelings points towards a typically left-wing authoritarian world view that seeks to control every aspect of people's lives and at the same time infantilize them. This even explained further down where they literally tell you to never defend a point if somebody disagrees with you and to even apologize for making your point in the first place.
      As a cherry on top I even found a furry among their discord moderators. ;-)

  • @friend7120
    @friend7120 2 ปีที่แล้ว

    "I don't think Government is going to improve the safety of software" and the things said immediately after really give this whole thing a very libertarian feel

    • @emmanuelgathara696
      @emmanuelgathara696 2 ปีที่แล้ว

      Is that bad or good ?

    • @friend7120
      @friend7120 2 ปีที่แล้ว

      @@emmanuelgathara696 it's really up to you

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

    Keep repeating it! Someone may believe it!

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

    I’m struggling to make a user input with parse to isize

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

    4:39 "Nice"
    - Michael Rosen

  • @fredlindberg
    @fredlindberg 3 ปีที่แล้ว

    Beautiful! Thank you!

  • @MrPatak007
    @MrPatak007 2 ปีที่แล้ว

    Well yeah of course it is. Still can't allocate structs on the heap without creating them on the stack.

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

    This girl sure drinks a lot of water. I guess she really likes rust.

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

    I feel reasonably comfortable with using C++ and Haskell. Both have speed if you want it. C++ has syntax to prevent some common mistakes, while haskell has syntax to allow them. Plus it is much harder to write a haskell program that does something wrong - if it compiles it works.

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

      if you want some thing that compiles and works you should check out Idris that shit will blow your mind

    • @linuxgaminginfullhd60fps10
      @linuxgaminginfullhd60fps10 5 ปีที่แล้ว

      @@MyAce8 Never heard of it. Seems interesting, thank you!

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

      Rust is basically in between C++ and Haskell. You should like it.

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

      Rust is as if C++ and Haskell were to have a baby and then agree to choose the best genes from both.

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

      Rust is far safer (stricter) than Haskell. For instance: You cannot have a non-exhausted match in Rust; and panicking in Rust is strictly programmer error, unlike runtime error in Haskell.

  • @tsuka414
    @tsuka414 3 ปีที่แล้ว

    40 years!

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

    Well, could qualify the arenas of software development where a closer-to-the metal approach that Rust facilitates is warranted. For instance, lots of cloud services and cloud infrastructure software has been written in Go, which has GC memory management. Devs tend to find Go relatively simple to learn (very concise language) and its primary concurrency model is relatively easy to learn and yet an effective concurrency model. There is arguably a lot more cloud services and cloud infrastructure software to write vs device drivers and OS kernels. Which language (Go vs Rust) is better tuned to cloud development in terms of programmer productivity, adequacy of performance and impact on resource consumption, and software defect rate per crucial matters such as security vulnerabilities?

    • @magne6049
      @magne6049 2 ปีที่แล้ว

      Rule of thumb: Golang for cloud services, as you say. Rust for systems development, device drivers, OS kernels, terminal applications, etc. where low-level security matters most, as you say.

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

      Read up on how the team behind Discord moved from Go to Rust because the garbage collector in Go was biting them in the behind. Also, Go allows data races in their concurrency model, whereas in Rust data races are ruled out by the compiler.

  • @thomasw.4298
    @thomasw.4298 5 ปีที่แล้ว +9

    There are architectures in the embedded world where even even C++ can't go. So C and assembly will continue to exist. And therefore so will c++. If rust can take out C (not c++) than perhaps we can all use air breaks.

    • @thomasw.4298
      @thomasw.4298 5 ปีที่แล้ว

      Also - you should call it 'R'. Instead of 'Rust'

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

      @@thomasw.4298 there''s an R already though

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

      what limits from using C++ in places where C is used?

    • @thomasw.4298
      @thomasw.4298 5 ปีที่แล้ว

      To run c++ on a processor you need a compiler, a std library, and a runtime environment. For smaller 8/16bit processors, these don't exist. For the 32bit embedded processors, the c++ tools are pretty terrible. (So bad that your not debugging your own code, but the compiler too). Also most embedded systems you can't use any heap and there is no OS. So there is no point of a std::library on these processors anyway. With all those restrictions I think you could technically write C++ on these systems, but you would have to be a master in what the compiler is doing with your templates and classes. And that kind of master can also write good C. So they would just use C because that's all that the hardware supports. So there is no incentive to create c++ for these targets either.

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

      @@thomasw.4298 Wasnt aware that theres no c++ compilers for platforms in which c compilers exist. I dont agree that you need a runtime environment or an std library for writing c++ or other high abstraction langs like rust, d, nim, zig, etc.
      I do agree that you cant use the std libs since theres no OS but you wouldnt have to be a master in the compiler to know what templates do since theyre a compile time concept (tip: if you dont know, you can try it in godbolt to see the produced machine code).
      I believe the incentive of using a language with more abstractions is that it can 1) allow better code generation with stricter rules on aliasing, alignment and inline 2) can shorten the amount of code you write using abstractions like lambdas, pattern matching on sum types, richer macros/type-system, iterators and struct method access

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

    Run Barry Run....I mean Rust Belt Rust!!!

  • @charles-y2z6c
    @charles-y2z6c 5 ปีที่แล้ว +9

    Very nice, great effort. I have been writing software for 40 years. With the changes I have seen in everything i can guarantee you it wont be. I worked at Eastman Kodak 35 years ago. I was guaranteed PL/1 would be a language that would be around in 50 years. The last PL/1 programmer i knew of was 25 years ago. Almost 10 years ago Kodak died as well.

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

      Well, C++ was born in 1980, and it's still around. As Nils Bohr said, "It's hard to predict, especially future"... :)

    • @Ou8y2k2
      @Ou8y2k2 2 ปีที่แล้ว

      Forty years from now AI won't need humans. After the war destroys all of humanity, AI will "code" for itself.

    • @charles-y2z6c
      @charles-y2z6c 2 ปีที่แล้ว

      @@Ou8y2k2 Careful, James Cameron might sue you.🙄(joke) he wrote terminator exactly 40 years ago. It Predicted the AI factories would be up and running by now at full capacity. In a mere 7 years in 2029 they would figure out time travel. Thanks to time travel the AI horrors would be retroactively fixed.

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

    We are trapped in the browser gulag.

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

    Pro tip:
    When showing off your language, don't show the projects that caused so much hate (like Firefox Quantum release which signaled all the people I knew who actually still used Firefox to switch to Waterfox - including myself, though I only used Firefox for the rare compatibility reason anyways)

  • @jotampa
    @jotampa 2 ปีที่แล้ว

    Won me right of the bat (mixed metaphors much?) with that jersey! 😁🐧

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

    *38 years

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

    So does Torvalds hate Rust too?

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

      No. I think he thinks its too young yet. But they are busy implementing Rust in the build for the kernel as people are going to write drivers in Rust. He only wants it to be done correctly so that it will not become a mess. Though i don't think he will accept Rust for core kernel code yet and for a long time to come.. he doesn't hate it nor love it.

    • @АнтонГусев-н5ю
      @АнтонГусев-н5ю 4 ปีที่แล้ว +2

      Torvalds is approving, but skeptical about Rust in kernel. He doesn't want to integrate it into the core (which is good, it would add a bunch of headache) but is otherwise open to experimentation

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

    I would love to see you guys organize a "Rus(t) Fest" as an homage to "Silicon Valley (TV-Series)". You dont need a designer for location and setting, just whatch the last Episode :-P

  • @abstractapproach634
    @abstractapproach634 2 ปีที่แล้ว

    Saying C is inherently unsafe is saying computers are inherently unsafe, you can do anything a computer can do, I think she underestimates the number if incompetent coders. Also with open source problems get solved before exploitation usually
    Still wanna learn Rust too though.

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

      C is inherently unsafe because it doesn’t stop you from doing unsafe things. Rust only allows you to do unsafe things when you ask it to let you do so, and it means that you have specifically audited that code to be safe so the compiler doesn’t have to. In c, the compiler doesn’t audit the safety of any of your code and you have to check all of it.

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

    guess i'll have to try Rust then ?

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

    Is it weird that I sided with the Railroad companies and not the people advocating for government regulation? Yeah, I don't like tradeoffs where I'm putting something that's my responsibility into the hands of someone or something else. And if that's the philosophy behind this, I think I'll stick with C++

  • @sandman89176
    @sandman89176 3 ปีที่แล้ว

    Road to Zig 1.0 brought me here

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

    cool talk... however when she says rust makes low level programming for everyone, not just superhumans, is incorrect. its for crabs. But srs tho, rust is by no means an easy language and i would argue even harder to pickup than c, at least initially, we'll see.

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

    seems obvious that it's called rust because it's close to bare metal

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

      I recall one of Rust authors said that Rust used research that is at least 15 years old, had no fancy new ideas, and meant to be practical, hence "rust" seemed appropriate.

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

      @@PetrGladkikh it has many meanings at the same time. But yes. The concepts Rust is build on are not new. Its just that you cannot implement them in existing languages because its so fundamental to the core.

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

    Rust is cool, maybe it is the future...
    But until then I'll stick to productivity without friction, C-like C++

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

    The CCS component sped up dramatically, because of parallelism. Attributing that to Rust is quite disingenuous. Mozilla could have used C++, or C for that matter, to introduce parallelism and achieve the same increase in speed. It would benefit her more to discuss the benefits of Rust rather than demeaning C and/or C++.
    Listen, we've always known that C is a raw no- seatbelt language. If you want a seatbelt, you have to build it yourself, but the language doesn't inhibit you.
    However, I do see the benefits of Rust, but a big red flag is the complexity of the language. That's also the problem with C++. The main strength of C is its simple syntax.

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

      They could have used C++ for the new CSS engine, true.
      And in fact, they tried. I think even multiple times.
      Yeah, found the blog entry: blog.rust-lang.org/2017/11/14/Fearless-Concurrency-In-Firefox-Quantum.html They mention they failed with the C++ attempts. But sadly don't elaborate on why.

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

      In some talk they explained that they tried to do that in C++ but they never managed to get it to work reliably. So, in that sense the speed improvement was made possible by Rust.

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

      @@digitalspecter I DON'T buy it. Don't pee on my leg and tell me it's raining.

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

      @@Asrashas: "But sadly don't elaborate on why." Or when for that matter - I believe it's called "(imp)lying by omission". That article was written in 2017 about a project that was conceived in 2012 so when they say "Mozilla made two previous attempts to parallelize its style system in C++", they mean in C++03. It's 2019 now and C++20 is about to be finalized. The safe, parallel operations you can do in literally a line or two of standard, modern C++ is incomparable to C++03 or indeed standard, modern Rust.

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

      @@BruceBigby @Bruce Bigby th-cam.com/video/_jMSrMex6R0/w-d-xo.html 56:36 he starts talking about it.

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

    Excellent talk, thanks a lot!

  • @miyazakizachary5108
    @miyazakizachary5108 3 ปีที่แล้ว +6

    C/C++ is already 50 years and will be the language for the next 50 years. For me Rust is so politically hyped. Better compiled languages for me are Dart, Scala, Go, and C/C++ and better interpreted languages are Python, R, Typescript, and new JavaScript.