Тёмный

DARPA converts ALL C to Rust Programming 

Jeremy Chone
Подписаться 26 тыс.
Просмотров 4,8 тыс.
50% 1

Today we discuss recent news in Rust Programming, including DARPA's plan to convert C code to Rust using AI and Microsoft's backend migration to Rust.
DARPA's TRACTOR program aims to convert legacy C code to memory-safe Rust.
Current bug-finding tools for C are insufficient to address memory safety issues.
DARPA uses AI to automate this code conversion process.
C's memory safety issues are a major security vulnerability.
Industry consensus is growing that Rust offers superior memory and thread safety.
Major companies like Google and Microsoft are increasingly adopting Rust Programming for existing and new projects.
Rust Programming is rapidly gaining momentum due to its unique memory and thread safety features, transforming the industry standard.
== Jeremy Chone:
Discord general-rust - / discord
Discord rust10x - / discord
Patreon - / jeremychone - Any help is a big help (for Rust educational content)
Twitter - / jeremychone
britesnow.com - BriteSnow is my enterprise consulting company I have been running for 15 years. We help enterprises build and modernize next-gen applications. Feel free to send an email to jeremy.chone@britensow.com if you have any questions.
Big thanks to CrabNebula (crabnebula.dev/) for sponsoring this channel.
== Jeremy Chone Rust Video Playlists:
Rust - Live Coding Rust Programming
Rust Everything Rust Programming - Tutorials, Courses, Tips, Examples: • JC - Rust - Everything...
Rust AI Programming Series: • JC - Rust & AI Program...
Rust Web App Production Coding Series: • JC - Rust Production C...
Rust For Desktop App: • JC - Rust Programming ...
Rust Programming for Web Development: • JC - Rust Programming ...
Rust Courses: • Rust Course 2021 by th...
Rust for Java Developers: • Rust for Java Developers

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@krumbergify
@krumbergify Месяц назад
Converting C to unsafe Rust i trivial (for a tool). Converting C to safe Rust is not, because it requires you to redesign your application into a more functional or actor model style and most C-applications are dirt piles of globals and singletons 😂.
@JeremyChone
@JeremyChone Месяц назад
Thanks for sharing. The last time I coded in C was probably when I was around 15 in the late 80s. So, it's been a while.
@theevilcottonball
@theevilcottonball Месяц назад
C programs and a lot of singletons? I disagree. The reason why it is hard to translate C, is that in C some lifetimes do not fit Rusts ownership model. Also Rust does not allow shared mutable access or cyclic/linked data structures, self referential data structures etc. I think translating those things is hard, not because C programs use a lot of singletons (they don't). Also translating things like macros to rust or some other stuff may be hard to do.
@DataPastor
@DataPastor Месяц назад
If they are able to write a C-to-Rust transpiler (which Rust code then would compile to native code), then they could also write a C-to-safe-binary compiler directly, too - so Rust is not required into the compiler chain at all.
@iMagUdspEllr
@iMagUdspEllr Месяц назад
Rust is designed to be a safer language. Rust is made by people who chose to specialize in making languages. Wouldn't it be better to use a safe language made by specialists than it would be to try to create and maintain a custom in-house solution as a side project? Wouldn't it be easier to write tests for the existing C code? The benefit of Rust would be that if you want to be able to expand or refactor your code, it would be better to do it in a language that doesn't require as much manual double-checking. But, is there a way to make a C-to-safe-binary compiler that essentially turns C into something Rust-like? Wouldn't it make sense to upgrade the standard C compilers to just use these safe features and then no code needs to be rewritten worldwide and then C would become as safe as Rust?
@DataPastor
@DataPastor Месяц назад
@@iMagUdspEllr i consider Rust as an interesting experiment, but it is yet to see if Rust can get mass adoption. It is hard to express, how insignificant Rust is on the job market and in general in the industry. Just remember that once some cities have decided to switch to Linux in the past… such political decisions, made by some administrative committees can hardly change reality. C++ is just peaking in its popularity; it also targets now memory safety. Zig is coming as a much better substitute for C than Rust. So at the end… let us see. But I don’t believe that Rust would be the large scale solution. My personal view today.
@iMagUdspEllr
@iMagUdspEllr Месяц назад
@@DataPastor Getting adopted is influenced heavily by economics, not just the merits of the language on its own. C++ suffers from not having modern tooling like Zig or Rust. But, Zig didn't set out to focus on safety, simply to be a C-replacement. I kind of just wish that C++ had better tooling and didn't become so bloated with features. But, why wouldn't we just upgrade the standard C compilers with the safety features you mentioned? Then no switch would need to occur and then C would be come safer.
@danielyokoyama3861
@danielyokoyama3861 Месяц назад
Hi Jeremy. Really happy with the aparent strong adoption of rust in different niches. After i started with rust I feel that i have a better grasp of the internals of the computer and memory model. This helps a lot in writing the code that I need.
@JeremyChone
@JeremyChone Месяц назад
Yes, same here. Somehow, there is something in the Rust way of approaching types that makes my code more maintainable and enjoyable to write.
@amitkumdixit
@amitkumdixit Месяц назад
Hi Jeremy. What do you mean when you say Microsoft is moving it's Backend from C# to Rust. What I am aware is they are moving some of their Windows OS kernel code to Rust.
@JeremyChone
@JeremyChone Месяц назад
This story: www.theregister.com/2024/01/31/microsoft_seeks_rust_developers/ I think, but I might be wrong, that this includes some backend services.
@Sovereign589
@Sovereign589 Месяц назад
+1
@abduljabbarazam943
@abduljabbarazam943 Месяц назад
Microsoft 365 is being rewritten in Rust. Not sure if it's the backend or the desktop application
@JeremyChone
@JeremyChone Месяц назад
Yes, me too. I assume there is some backend to that, but I did not find any conclusive data to confirm it.
@JeremyChone
@JeremyChone Месяц назад
The very interesting part is that they seem to rewrite C# code.
@irlshrek
@irlshrek Месяц назад
I think we made a good bet, gentlemen
@JohnPywtorak
@JohnPywtorak Месяц назад
Keep in mind, these kind of DARPA activities are "Research" not necessarily doing. Yes hopefully it could lead to tools etc., but it is not a presumed end game, likely though. The better question is more about Rust as a suitable new host, so to speak. DARPA can see the difficulty in maintaining safe legacy C and the long game. Thus, the need for research. There may be Rust milestones needed before it could happen, but ultimately it could be a benefit to Rust advancing it as a systems language.
@JeremyChone
@JeremyChone Месяц назад
Good points. Thanks.
@On.Jonathan
@On.Jonathan Месяц назад
And even so, Rust is using LLVM as its Compiler Backend, which is written in C. Funny anyways... 😅😮
@dhrubrawat9316
@dhrubrawat9316 Месяц назад
is it possible to create the video on project polonius?
@frun
@frun Месяц назад
I would convert the libraries first.
@tetuaoro
@tetuaoro Месяц назад
thank you sir
@seaviasfo
@seaviasfo Месяц назад
I tried speaking french in college but it never took... weirder still is that I'm a programming language polyglot but for the life of me can't seem to pick up a 2nd human language lol 😂.
@JeremyChone
@JeremyChone Месяц назад
Don't worry, we have GPTs now.
@taquanminhlong
@taquanminhlong Месяц назад
Im not really sure whether we should but AI might cause a mess 😂 better write rust on your own
@JeremyChone
@JeremyChone Месяц назад
You have a point. I think they will find the right balance. GenAI, used right, can be a tremendous tool to speed up dev and migrations. The trick is that I do not think the industry has found a good way to use it yet. They focus on building fancier and fancier tic-tac-toe, but this might be the wrong approach... more on that in a video at some point.
@RoamingAdhocrat
@RoamingAdhocrat Месяц назад
I can imagine the existence of tooling to transcribe C into unsafe Rust, and tooling to convert unsafe Rust into safe Rust, in a way proven not to change functionality... but I could be wrong, I'm not a compsci grad You'd then need human devs to examine the remaining unsafe blocks and see what improvements can be made from there.
Далее
2 Cool Pull Requests for Rust Web App Blueprint
12:52
Просмотров 3,5 тыс.
5 Steps to Learn Rust Programming
25:06
Просмотров 8 тыс.
Women’s Celebrations + Men’s 😮‍💨
00:20
This mother's baby is too unreliable.
00:13
Просмотров 16 млн
Why I Use C | Prime Reacts
13:00
Просмотров 161 тыс.
Why i think C++ is better than rust
32:48
Просмотров 310 тыс.
The Value of Source Code
17:46
Просмотров 82 тыс.
Rust Functions Are Weird (But Be Glad)
19:52
Просмотров 137 тыс.
UUID v7 vs. v4 + Rust Programming Examples
19:41
Просмотров 15 тыс.
Microservices are Technical Debt
31:59
Просмотров 427 тыс.
zig will change programming forever
9:34
Просмотров 310 тыс.