Originally posted by archsway
View Post
Announcement
Collapse
No announcement yet.
Librsvg Continues Rust Conquest, Pulls In CSS Parsing Code From Mozilla Servo
Collapse
X
-
- Likes 4
-
Originally posted by jacob View Post
In gdb at least it's as good as with C++, give or take. But the point is that you shouldn't need a debugger for bugs like this one. Rust is all about static provability: it's no use telling the passengers of an airplane "sorry ladies and gentlemen, the autopilot system just crashed but don't worry, there is a debugger".
But even a debugger doesn't always help. I've seen bugs with dangling references at work where even a debug build just crashes somewhere and where it's not obvious where the source of the problem lies. Sure, in a five line snippet - easy. But wait until there are 1000 LOC and more. Then you either take your sanitizers or even more static code analysis. Debugging can be 'bigger at the inside'. So I'm glad for everything the compiler catches. And even if YOU are a l33t coder and you never code any bugs. You rarely work alone
Comment
-
Originally posted by Marc Driftmeyer View Post
LLVM being long in the tooth. That's laughable. Right up there with Clang being long in the tooth, and I'm not even defending Rust.
Comment
-
Originally posted by oleid View Post
Lldb works fine, too.
But even a debugger doesn't always help. I've seen bugs with dangling references at work where even a debug build just crashes somewhere and where it's not obvious where the source of the problem lies. Sure, in a five line snippet - easy. But wait until there are 1000 LOC and more. Then you either take your sanitizers or even more static code analysis. Debugging can be 'bigger at the inside'. So I'm glad for everything the compiler catches. And even if YOU are a l33t coder and you never code any bugs. You rarely work alone
Comment
-
Originally posted by ssokolow View Post
I just saw a conversation on /r/rust/ maybe a week ago. lldb still has room for improvement in the code to decode Rust type signatures and the person was advised to use gdb instead.
Comment
-
-
Originally posted by Volta View Postkpedersen schmidtbag uid313 jo-erlend
Thank you for your replies. I was thinking about C++, but I started to learn C two months ago. I did take a look at Java as well, but I didn't understand a thing - I need to know what every thing means and the tutorial didn't explain the syntax and classes at the beginning. When comes to C I'm feeling I have a full control of what I am doing.
Except for particularly complex programs (like GIMP), I'd argue your run-of-the-mill GTK program can easily be made without classes. Since you've already begun learning "vanilla" C, just keep at that. Expand an object-oriented C flavor when you feel you need it.
Comment
-
Originally posted by schmidtbag View PostI'd argue your run-of-the-mill GTK program can easily be made without classes.
Comment
-
Originally posted by Delgarde View PostThat's a funny thing to say, given that GTK is fundamentally a very class-based OO toolkit... it's just implemented in a language that doesn't actually support classes, and so does a reasonably good job of faking it with what's available.
Comment
-
Originally posted by bug77 View Post
What's not portable about Rust? And do all your projects need to run on x86, ARM, MIPS and RISC-V at the same time?
Originally posted by oleid View Post
No, but there is an ongoing effort to add an gcc backend to the rust compiler. So once that landed, you can use that instead of something llvm backed.
Until it lands, you can use mrustc, a rust to c transpiler - for exotic platforms or as bootstrap mechanism, until rust compilers are more common.
Comment
Comment