完了,Crowdstrike chose C++ over Rust
版主: Softfist
-
beijingren3楼主
- 论坛元老

2023-24年度十大优秀网友 - 帖子互动: 2428
- 帖子: 106071
- 注册时间: 2022年 7月 25日 19:10
#1 完了,Crowdstrike chose C++ over Rust
Experienced programmer figured out how Crowdstrike fucked up and broke the internet. His explanation is too long and big brain for most here, but you can read it if you like. For everyone else, they fucked up because they chose to code in C++ over Rust. Is C++ now dead as a language? Will devs only use modern and efficient languages going forward?
-
beijingren3楼主
- 论坛元老

2023-24年度十大优秀网友 - 帖子互动: 2428
- 帖子: 106071
- 注册时间: 2022年 7月 25日 19:10
-
huangchong(净坛使者)
- 论坛元老

2023-24年度优秀版主 - 帖子互动: 4218
- 帖子: 61965
- 注册时间: 2022年 7月 22日 01:22
-
huangchong(净坛使者)
- 论坛元老

2023-24年度优秀版主 - 帖子互动: 4218
- 帖子: 61965
- 注册时间: 2022年 7月 22日 01:22
-
张雅婷粉58Red2(张雅婷粉)
- 论坛精英

- 帖子互动: 98
- 帖子: 6516
- 注册时间: 2022年 8月 13日 16:22
#6 Re: 完了,Crowdstrike chose C++ over Rust
Rust能用来写kernel模块?beijingren3 写了: 2024年 7月 19日 18:30 Experienced programmer figured out how Crowdstrike fucked up and broke the internet. His explanation is too long and big brain for most here, but you can read it if you like. For everyone else, they fucked up because they chose to code in C++ over Rust. Is C++ now dead as a language? Will devs only use modern and efficient languages going forward?
-
GiantHawkID
- 论坛支柱

- 帖子互动: 374
- 帖子: 11451
- 注册时间: 2022年 7月 28日 18:24
-
huangchong(净坛使者)
- 论坛元老

2023-24年度优秀版主 - 帖子互动: 4218
- 帖子: 61965
- 注册时间: 2022年 7月 22日 01:22
#8 Re: 完了,Crowdstrike chose C++ over Rust
#9 Re: 完了,Crowdstrike chose C++ over Rust
可以用C
笑口常开,常笑人间可笑之人事
只谈逻辑,不谈政治
我来这不是教育廊庑的,而是提醒傻博士不要上当受骗的。
中国有历史,中国人没有,一周记忆而已。
只谈逻辑,不谈政治
我来这不是教育廊庑的,而是提醒傻博士不要上当受骗的。
中国有历史,中国人没有,一周记忆而已。
-
huangchong(净坛使者)
- 论坛元老

2023-24年度优秀版主 - 帖子互动: 4218
- 帖子: 61965
- 注册时间: 2022年 7月 22日 01:22
-
bouncingball
- 见习点评

- 帖子互动: 99
- 帖子: 1838
- 注册时间: 2022年 12月 2日 18:35
#11 Re: 完了,Crowdstrike chose C++ over Rust
可怜的西佳佳马工,一定是混用了c++11,c++14和c++17,c++17调用c++11的函数或者类,linux就木有问题,但是window下很多莫名其妙的问题,还debug不了,因为出问题是随机性的,嘿嘿!
-
张雅婷粉58Red2(张雅婷粉)
- 论坛精英

- 帖子互动: 98
- 帖子: 6516
- 注册时间: 2022年 8月 13日 16:22
#14 Re: 完了,Crowdstrike chose C++ over Rust
While possible, writing a Windows kernel module in Rust presents some challenges:
* **No Official Support:** Microsoft doesn't officially support Rust for kernel driver development.
* **Limited Ecosystem:** The tooling and libraries for Rust kernel development in Windows are still under development.
However, there are resources available if you're interested in exploring further:
* **Experimental Framework:** Microsoft has an experimental framework called `windows-drivers-rs` that provides some basic functionalities for building Windows drivers in Rust [https://github.com/microsoft/Windows-ru ... er-samples](https://github.com/microsoft/Windows-ru ... er-samples).
* **Community Project:** Another project, `windows-kernel-rs`, offers safe abstractions on top of the Windows Kernel API for Rust [https://github.com/StephanvanSchaik/windows-kernel-rs](https://github.com/StephanvanSchaik/windows-kernel-rs).
Here are some things to consider before using Rust for Windows kernel modules:
* **Development Complexity:** Expect a steeper learning curve compared to using C or C++ due to the lack of official support and a less mature ecosystem.
* **Limited Debugging Tools:** Debugging kernel modules written in Rust might be more challenging compared to traditional languages.
* **Community Resources:** While there are community projects, they might have less documentation and support compared to established languages.
If you're new to kernel development or require a stable solution, using C or C++ might be a better option. But if you're comfortable with the challenges and want to explore Rust for kernel development, the resources mentioned above can be a starting point.
-
huangchong(净坛使者)
- 论坛元老

2023-24年度优秀版主 - 帖子互动: 4218
- 帖子: 61965
- 注册时间: 2022年 7月 22日 01:22
#15 Re: 完了,Crowdstrike chose C++ over Rust
感觉属于一种自虐行为张雅婷粉58Red2 写了: 2024年 7月 19日 19:09 While possible, writing a Windows kernel module in Rust presents some challenges:
* **No Official Support:** Microsoft doesn't officially support Rust for kernel driver development.
* **Limited Ecosystem:** The tooling and libraries for Rust kernel development in Windows are still under development.
However, there are resources available if you're interested in exploring further:
* **Experimental Framework:** Microsoft has an experimental framework called `windows-drivers-rs` that provides some basic functionalities for building Windows drivers in Rust [https://github.com/microsoft/Windows-ru ... er-samples](https://github.com/microsoft/Windows-ru ... er-samples).
* **Community Project:** Another project, `windows-kernel-rs`, offers safe abstractions on top of the Windows Kernel API for Rust [https://github.com/StephanvanSchaik/windows-kernel-rs](https://github.com/StephanvanSchaik/windows-kernel-rs).
Here are some things to consider before using Rust for Windows kernel modules:
* **Development Complexity:** Expect a steeper learning curve compared to using C or C++ due to the lack of official support and a less mature ecosystem.
* **Limited Debugging Tools:** Debugging kernel modules written in Rust might be more challenging compared to traditional languages.
* **Community Resources:** While there are community projects, they might have less documentation and support compared to established languages.
If you're new to kernel development or require a stable solution, using C or C++ might be a better option. But if you're comfortable with the challenges and want to explore Rust for kernel development, the resources mentioned above can be a starting point.
-
Caravel
- 论坛元老

Caravel 的博客 - 帖子互动: 711
- 帖子: 27896
- 注册时间: 2022年 7月 24日 17:21
#17 Re: 完了,Crowdstrike chose C++ over Rust
这玩意归根接地是测试不够
bug总会有的,但是你要是有充分的测试,
先是内部自动测试,再是内部用户测试,一步步扩大范围
bug总会有的,但是你要是有充分的测试,
先是内部自动测试,再是内部用户测试,一步步扩大范围
-
beijingren3楼主
- 论坛元老

2023-24年度十大优秀网友 - 帖子互动: 2428
- 帖子: 106071
- 注册时间: 2022年 7月 25日 19:10
-
beijingren3楼主
- 论坛元老

2023-24年度十大优秀网友 - 帖子互动: 2428
- 帖子: 106071
- 注册时间: 2022年 7月 25日 19:10
