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

Поділитися
Вставка
  • Опубліковано 21 лис 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.

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

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

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

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

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

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

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

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

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

  • @leonk6950
    @leonk6950 5 років тому +43

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

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

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

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

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

  • @firstprincipleslearning
    @firstprincipleslearning 5 років тому +16

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

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

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

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

  • @Pabloparsil
    @Pabloparsil 4 роки тому +9

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

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

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

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

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

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

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

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

    simplicity is what made Go successful.

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

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

    37 years left

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

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

    air brakes - spring applied, air pressure released

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

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

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

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

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

    Fantastic presentation- thank you .

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

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

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

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

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

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

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

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

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

    What programming domains is Rust best suited for?

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

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

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

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

  • @beardymcbeardface69
    @beardymcbeardface69 3 роки тому

    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!

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

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

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

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

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

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

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

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

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

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

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

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

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

    4:39 "Nice"
    - Michael Rosen

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

  • @user-sh7lw6nl2g
    @user-sh7lw6nl2g 3 роки тому +1

    38 years remaining

  • @tsuka414
    @tsuka414 3 роки тому

    40 years!

  • @abdofifa
    @abdofifa 5 років тому +35

    r/hydrohomies

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

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

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

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

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

    Keep repeating it! Someone may believe it!

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

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

  • @fredlindberg
    @fredlindberg 3 роки тому

    Beautiful! Thank you!

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

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

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

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

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

    Why aren't there bookmarks?

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

  • @ghostedyoutuber263
    @ghostedyoutuber263 3 роки тому

    Do you have a copy of Megadeth's RUST IN PEAVE album?

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

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

  • @happychuckprogramming6048
    @happychuckprogramming6048 5 років тому

    nice presentation ..

  • @deltaskyhawk
    @deltaskyhawk 4 роки тому +1

    We are trapped in the browser gulag.

  • @boomerz2478
    @boomerz2478 3 роки тому

    what is the multi option name about?

  • @tedvga
    @tedvga 3 роки тому

    Have you seen/tried APL? (e.g. Dyalog) Something totally different.

  • @jabuci
    @jabuci 5 років тому +2

    Excellent talk, thanks a lot!

  • @LaurentLaborde
    @LaurentLaborde 4 роки тому +1

    guess i'll have to try Rust then ?

  • @Chronologist89
    @Chronologist89 5 років тому +1

    I have been very sceptical of all the new programming languages that are popping up all the time, but I can see where Rust is trying to actually make a step forward. It's an interesting mix of programming concepts and tries to get the best from many languages like C (obviously), Fortran even Python, but adds it's own flavour to round everything off. I can see how many interesting constructions could work really well in large-scale and production code projects. Since I usually work on rather small-scale or embedded problems, I am curious to see how well Rust will be able to adapt to those problems. I guess the biggest challenge will be to get all of those highly efficient code libraries for big-data, signal-processing or control systems to adapt Rust, because what is the point of having this neat and safe language if it still has to rely on unsafe C/C++ code.

    • @moha6859
      @moha6859 5 років тому

      The difference between trying to solve a problem and trying to be cool

    • @Chronologist89
      @Chronologist89 5 років тому

      @@moha6859 I think there has to be a distinction here. Using a language just for the sake of using a newer language, because it's "cool" is pointless, I agree. However I feel that the people developing Rust are trying to make a serious effot at creating alanguage that is less prone to commong problems that occur in C. Therefore it could possibly be suitable for large projects that deal with a lot of memory operations, for example.

    • @ElCeceh
      @ElCeceh 5 років тому

      What I find really strange here is that safety was presented only in regards to desktop applications. You mentioned embedded systems ; Many C users work in this field because the performance aspect is critical as well as safety. Mentioning safety and railroads but avoiding solutions like Ada / SPARK in the discussion (only mentioning C++ or Go and forgetting an industry leading solution) is very strange imho.

    • @eugeniovincenzo1621
      @eugeniovincenzo1621 5 років тому

      Rounding is for Shmucks...Thats why Cobol is still king in IBM mainframes....

  • @mindstreamx
    @mindstreamx 5 років тому +2

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

  • @egemensentin
    @egemensentin 3 роки тому +1

    A very comprehensive, engaging and better yet, enthusiastic presentation. Thank you so much Carol!

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

  • @hitzhangjie
    @hitzhangjie 3 роки тому

    Hi, 10cent means Tencent?

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

  • @sandman89176
    @sandman89176 3 роки тому

    Road to Zig 1.0 brought me here

  • @wizardofb9434
    @wizardofb9434 3 роки тому

    I was wondering what is the connection between Railroads and the Rust Programming language