I don't know what that means but I don't want it.If the AI can make the code "Rust-centric" rather than just all in anunsafe{}
will be interesting.
I don't know what that means but I don't want it.If the AI can make the code "Rust-centric" rather than just all in anunsafe{}
will be interesting.
If the project is a brand-new from-scratch ones, unsafe{} block would be needed for unavoidable limited parts.Its a good approach. They realize that Rust is never going to see the update required to replace C or C++. The only solution to remain relevant is basically a glorified binding generation system.
If the AI can make the code "Rust-centric" rather than just all in anunsafe{}
will be interesting. If it can, that refactor could just go towards cleaning up the C and C++ code and making it safe, rendering Rust completely redundant in the first place.
It will basically be a static analyzer on steroids for C and C++. A great idea.
It means the AI shall do what LLMs are good at - translate one language into some other. Without getting creative, this can help a lot. But we have no way to gauge how much time needs to be spend debugging the outcome, so no way to know if it can actually save time.I don't know what that means but I don't want it.
Yep, this is what I meant by Rust-centric. The AI would need to understand about the borrow checker, RC, RAII and other techniques. It is not useful to simply convert C to Rust and wrap it in an unsafe{}.unsafe{} block should be prohibited in Rust part
Luckily we are many thousands of generations away from true "AI". All we are really talking about here is a bunch of glorified search algorithms.I don't want any "AI" (i.e. nothing "intelligent" but only a bunch of text-bashing algorithms...) generated crap running on my servers...
I shudder at the through of having to edit that AI-translated Rust code.
There's probably a lot of money to be made here. Unfortunately, I'd have to learn Rust.And don't forget, if AIs are trained with buggy codes in the wild and not told the codes have problems, AIs would surely generate buggy codes, as they don't know the codes they learned as valid are problematic.
I'm reading Rust spec (slowly, though) and discouraged when I found unsafe{}. Now I consider Rust as "not memory safe".There's probably a lot of money to be made here. Unfortunately, I'd have to learn Rust.
Yeah, there's a lot of money here. Not only Linux, but also MicrosoftThere's probably a lot of money to be made here. Unfortunately, I'd have to learn Rust.
We'd need our own "crepo" (crate repo).If I understand correctly, crate repo is not a managed-in-whole single project nor single standard library set.
So using crates should be done carefully, crate by crate.
How about an old systems programming language as a compelling replacement for C++: Ada? It is time-tested, but continues to be improved. There is an Ada 2022 standard with backward compatibility. And there is a formally verified subset, Spark, that has had recent improvements. Are systems programming languages with good memory-safety profiles other than Rust being considered in this context in this discussion or in another discussion?It really is the best new
systems-program language for decades. IMHO, it's the only one that's
a compelling replacement for C++ in all new applications, and C in
most.
"GitHub - asomers/freebsd-src at rust-in-base-demo
FreeBSD src tree (read-only mirror). Contribute to asomers/freebsd-src development by creating an account on GitHub.github.com
The most significant problem about Ada is that (as far as I know) there is no BSD-compatibly licensed compiler/standard libraries for it.How about an old systems programming language as a compelling replacement for C++: Ada? It is time-tested, but continues to be improved. There is an Ada 2022 standard with backward compatibility. And there is a formally verified subset, Spark, that has had recent improvements. Are systems programming languages with good memory-safety profiles other than Rust being considered in this context in this discussion or in another discussion?
Try this: lang/gcc6-aux. I found it on freshports, it's still actively maintained.How about an old systems programming language as a compelling replacement for C++: Ada? It is time-tested, but continues to be improved. There is an Ada 2022 standard with backward compatibility. And there is a formally verified subset, Spark, that has had recent improvements. Are systems programming languages with good memory-safety profiles other than Rust being considered in this context in this discussion or in another discussion?
Thanks for a very helpful reply!The most significant problem about Ada is that (as far as I know) there is no BSD-compatibly licensed compiler/standard libraries for it.
And yes, gnat is a part of gcc project, thus, GPL'ed. Cannot include into base.
But as Ada is STRONGLY standardized (for compilers allowed to be named Ada), if the above-mentioned problems/risks becomes no problem, Ada can be the best candidate for memory-safe alternative.
FreeBSD is now on the way dropping non-BSD-compatiblly licensed components from base, and nearly completed.GCC used to be shipped with FreeBSD, so perhaps that is not an absolute restriction?
The last gcc in base should be 4.2.1, dropped on 13.0.I read somewhere that a company that uses FreeBSD in their products was stuck to use a very old GCC version (I believe 4.2.something) because it was the last one that was licensed under GPL-v2 and they were very happy when FreeBSD moved to Clang.
How about an old systems programming language as a compelling replacement for C++: Ada? It is time-tested, but continues to be improved. There is an Ada 2022 standard with backward compatibility. And there is a formally verified subset, Spark, that has had recent improvements. Are systems programming languages with good memory-safety profiles other than Rust being considered in this context in this discussion or in another discussion?
This is happening too fast. Whenever some new tech is announced, all of a sudden you see everybody asking questions about it on Stack Overflow in a rush to learn the new thing. I know Rust has been around for a bit but now there's this big rush to incorporate it into every living thing and that signals something just isn't right.
Its been 52 years. Any day now!but I think it's only a matter of time that we want to get rid of the numerous deficiencies of C.