Originally posted by jaypatelani
View Post
Announcement
Collapse
No announcement yet.
Even Apple Is Interested In Migrating Their C Code To Rust
Collapse
X
-
- Likes 2
-
Originally posted by Tomin View PostA bit odd choice to drop C and C++ out of such comparison. I would think that must have been due to limited resources. They didn't have time to update the codes for them or something. I hope that they will include them if they make another paper on the subject.
Updated functional languages results + Julia added
- Likes 1
Leave a comment:
-
Originally posted by kpedersen View Post
Unfortunately not. Same with swig and other "binding generators". C code as you know gets more complex than that. These solutions do not handle callbacks well or memory that is retained by the library (light user data). Chuck in some MACROs, setjmp and other fairly common things and they don't stand a chance.
Just look at the Rust Gtk bindings. Would they have done all this work if a simple call to bindgen would have a chance of generating something useful?
Because Glib implements its own higher-level object system and IDL, pointing to them is like pointing to the existence of something like rust-cpython, Helix, or Neon as an example of why bindgen is insufficient.
A general-purpose C binding tool cannot magically infer the semantics of a higher-level language's API that's implemented in C.
- Likes 7
Leave a comment:
-
Originally posted by bachchain View Post
If I was a software engineer working on mission-critical infrastructure for a trillion dollar company, I would happily give up a few cycles or kilobytes if it meant I didn't have to spend hundreds of man-hours debugging one-in-ten-thousand race conditions or that segfault that only happens on the second Tuesday of each month.
- Likes 1
Leave a comment:
-
Believing that C is "good enough" and that experienced coders are less likely to make mistakes, thus letting C continue to exist merely by inertia, is delusional.
Yes, there are standards, plural. Different standards exist for different sectors as if less critical ones shouldn't have a choice and just cope with potential failures and monetary loss. Those standards are helped more often than not by proprietary tools, and are ultimately enforced to varying degrees... by humans.
At the root of all this are C's deficiencies and demerits. We all grow up being told that "math doesn't care what you think" and that "math is not an opinion", yet as adults and as engineers we refuse to build mathematical proofs inside the language, and spend our lives chasing windmills: incomplete proofs built around code, with even more code, perhaps in a different, functional language, more burden, more absurdity.
I like to call all this, quite simply, negligence.
Maybe Rust is not the savior it is said to be, but a language that avoids common C (et similia) traps and pitfalls is sorely needed, and stating otherwise after decades of proof will eventually be considered criminal.
- Likes 17
Leave a comment:
-
And here I thought Apple was putting all their money on Swift, which they created...
Leave a comment:
-
Originally posted by r08z View PostThere hasn't been a programming language that has beaten C in speed and energy usage yet. Rust is impressive and is the closest thing out right now. But it's not C.
- Likes 5
Leave a comment:
-
Originally posted by wagaf View PostRust offers more guarantees than most interpreted languages (including revolutionary thread-safety guarantees), while offering close-to-C performances.
- Likes 2
Leave a comment:
-
Originally posted by kpedersen View Post
Haha, yep, C certainly has its flaws (like all programming languages) but those who are paid to develop in it generally don't make these kinds of mistakes. If they did, most languages would be unusable because their VMs (CLR, JVM) are obviously written in C.
bachchain, If I was a software engineer working on mission-critical infrastructure for a trillion dollar company, and my team were a bunch of idiots; then yes; you are absolutely correct, I refuse to work on a C project where the rest of the developers are incompetent.
So oddly enough I agree with both of you
And language-level protections allow to free up brain time to focus on the actual business logic.
Rust offers more guarantees than most interpreted languages (including revolutionary thread-safety guarantees), while offering close-to-C performances.Last edited by wagaf; 21 March 2020, 12:53 PM.
- Likes 17
Leave a comment:
-
Originally posted by mmstick View Post
Tiny ecosystem? It has a very large and diverse open source ecosystem.
- Likes 1
Leave a comment:
Leave a comment: