完了,Crowdstrike chose C++ over Rust

对应老买买提的军事天地,观点交锋比较激烈,反驳不留情面,请作好心理准备。因为此版帖子太多,所以新帖不出现在首页新帖列表,防止首页新帖刷屏太快。


版主: Softfist

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

#1 完了,Crowdstrike chose C++ over Rust

帖子 beijingren3楼主 »

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?


fulvshou(腐驴受)
论坛元老
论坛元老
帖子互动: 578
帖子: 25390
注册时间: 2022年 8月 26日 20:30

#2 Re: 完了,Crowdstrike chose C++ over Rust

帖子 fulvshou(腐驴受) »

西佳佳马工应该都抓起来逐一审查再上岗
我是腐驴受 家住恒河边
腐是腐驴的腐呀
受是腐驴受的受
头像
beijingren3楼主
论坛元老
论坛元老
2023-24年度十大优秀网友
帖子互动: 2428
帖子: 106071
注册时间: 2022年 7月 25日 19:10

#3 Re: 完了,Crowdstrike chose C++ over Rust

帖子 beijingren3楼主 »

fulvshou 写了: 2024年 7月 19日 18:31 西佳佳马工应该都抓起来逐一审查再上岗
图片
头像
huangchong(净坛使者)
论坛元老
论坛元老
2023-24年度优秀版主
帖子互动: 4218
帖子: 61965
注册时间: 2022年 7月 22日 01:22

#4 Re: 完了,Crowdstrike chose C++ over Rust

帖子 huangchong(净坛使者) »

beijingren3 写了: 2024年 7月 19日 18:32 图片
印度人发明的c加加?
头像
huangchong(净坛使者)
论坛元老
论坛元老
2023-24年度优秀版主
帖子互动: 4218
帖子: 61965
注册时间: 2022年 7月 22日 01:22

#5 Re: 完了,Crowdstrike chose C++ over Rust

帖子 huangchong(净坛使者) »

我很好奇 给windows写组件 不用c++ 可行吗
头像
张雅婷粉58Red2(张雅婷粉)
论坛精英
论坛精英
帖子互动: 98
帖子: 6516
注册时间: 2022年 8月 13日 16:22

#6 Re: 完了,Crowdstrike chose C++ over Rust

帖子 张雅婷粉58Red2(张雅婷粉) »

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?


Rust能用来写kernel模块?
GiantHawkID
论坛支柱
论坛支柱
帖子互动: 374
帖子: 11451
注册时间: 2022年 7月 28日 18:24

#7 Re: 完了,Crowdstrike chose C++ over Rust

帖子 GiantHawkID »

哈哈
beijingren3 写了: 2024年 7月 19日 18:32 图片
头像
huangchong(净坛使者)
论坛元老
论坛元老
2023-24年度优秀版主
帖子互动: 4218
帖子: 61965
注册时间: 2022年 7月 22日 01:22

#8 Re: 完了,Crowdstrike chose C++ over Rust

帖子 huangchong(净坛使者) »

huangchong 写了: 2024年 7月 19日 18:36 我很好奇 给windows写组件 不用c++ 可行吗
这个是我拿来改win11界面的软件, 拿c写的。看起来离开c++确实可行


https://github.com/valinet/ExplorerPatcher
noid2
论坛元老
论坛元老
帖子互动: 538
帖子: 21005
注册时间: 2022年 7月 25日 09:54

#9 Re: 完了,Crowdstrike chose C++ over Rust

帖子 noid2 »

huangchong 写了: 2024年 7月 19日 18:36 我很好奇 给windows写组件 不用c++ 可行吗
可以用C
笑口常开,常笑人间可笑之人事
只谈逻辑,不谈政治
我来这不是教育廊庑的,而是提醒傻博士不要上当受骗的。
中国有历史,中国人没有,一周记忆而已。
头像
huangchong(净坛使者)
论坛元老
论坛元老
2023-24年度优秀版主
帖子互动: 4218
帖子: 61965
注册时间: 2022年 7月 22日 01:22

#10 Re: 完了,Crowdstrike chose C++ over Rust

帖子 huangchong(净坛使者) »

noid2 写了: 2024年 7月 19日 18:41可以用C
理论上 能用c就应该能用rust吧?
头像
bouncingball
见习点评
见习点评
帖子互动: 99
帖子: 1838
注册时间: 2022年 12月 2日 18:35

#11 Re: 完了,Crowdstrike chose C++ over Rust

帖子 bouncingball »

fulvshou 写了: 2024年 7月 19日 18:31 西佳佳马工应该都抓起来逐一审查再上岗
可怜的西佳佳马工,一定是混用了c++11,c++14和c++17,c++17调用c++11的函数或者类,linux就木有问题,但是window下很多莫名其妙的问题,还debug不了,因为出问题是随机性的,嘿嘿!
头像
tfusion
论坛支柱
论坛支柱
帖子互动: 730
帖子: 9539
注册时间: 2022年 7月 25日 15:42

#12 Re: 完了,Crowdstrike chose C++ over Rust

帖子 tfusion »

尼玛C比C++更危险吧
noid2
论坛元老
论坛元老
帖子互动: 538
帖子: 21005
注册时间: 2022年 7月 25日 09:54

#13 Re: 完了,Crowdstrike chose C++ over Rust

帖子 noid2 »

tfusion 写了: 2024年 7月 19日 19:07 尼玛C比C++更危险吧
笑口常开,常笑人间可笑之人事
只谈逻辑,不谈政治
我来这不是教育廊庑的,而是提醒傻博士不要上当受骗的。
中国有历史,中国人没有,一周记忆而已。
头像
张雅婷粉58Red2(张雅婷粉)
论坛精英
论坛精英
帖子互动: 98
帖子: 6516
注册时间: 2022年 8月 13日 16:22

#14 Re: 完了,Crowdstrike chose C++ over Rust

帖子 张雅婷粉58Red2(张雅婷粉) »

huangchong 写了: 2024年 7月 19日 18:44 理论上 能用c就应该能用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

帖子 huangchong(净坛使者) »

张雅婷粉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.
感觉属于一种自虐行为
Knifer
论坛支柱
论坛支柱
帖子互动: 496
帖子: 9251
注册时间: 2022年 11月 27日 14:46

#16 Re: 完了,Crowdstrike chose C++ over Rust

帖子 Knifer »

有谁能贴出这行代码的作者,就牛逼了
Caravel
论坛元老
论坛元老
Caravel 的博客
帖子互动: 711
帖子: 27896
注册时间: 2022年 7月 24日 17:21

#17 Re: 完了,Crowdstrike chose C++ over Rust

帖子 Caravel »

这玩意归根接地是测试不够

bug总会有的,但是你要是有充分的测试,

先是内部自动测试,再是内部用户测试,一步步扩大范围
noid2
论坛元老
论坛元老
帖子互动: 538
帖子: 21005
注册时间: 2022年 7月 25日 09:54

#18 Re: 完了,Crowdstrike chose C++ over Rust

帖子 noid2 »

Knifer 写了: 2024年 7月 19日 19:17 有谁能贴出这行代码的作者,就牛逼了
你这么说话纯属外行。
笑口常开,常笑人间可笑之人事
只谈逻辑,不谈政治
我来这不是教育廊庑的,而是提醒傻博士不要上当受骗的。
中国有历史,中国人没有,一周记忆而已。
头像
beijingren3楼主
论坛元老
论坛元老
2023-24年度十大优秀网友
帖子互动: 2428
帖子: 106071
注册时间: 2022年 7月 25日 19:10

#19 Re: 完了,Crowdstrike chose C++ over Rust

帖子 beijingren3楼主 »

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

#20 Re: 完了,Crowdstrike chose C++ over Rust

帖子 beijingren3楼主 »

回复

回到 “军事天地(Military)”