Reply to post: Re: Let's look at a few Rust facts ...

Rust code in Linux kernel looks more likely as language team lead promises support

DrXym

Re: Let's look at a few Rust facts ...

By default Rust enables symbols and some other things to yield more useful runtime errors if code panics. i.e. if your hello world did a panic!() then you'd get a nice stack trace telling you the exact line it happened on.

If space was a premium then you can strip symbols, change the panic to simply abort, do link time optimization and even build a stripped down stdlib. There are articles on the web where people have built really tiny executables in Rust, e.g. a 10kb Windows app https://www.codeslow.com/2019/12/tiny-windows-executable-in-rust.html

But for the common use case space really isn't a big deal and it's better to have some useful debug messages if something goes wrong.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon