RustConf 2018 - Space, The Rusty Frontier by Ryan Plauche

  Рет қаралды 2,865

Rust

Rust

Күн бұрын

Пікірлер: 2
@Polaris64
@Polaris64 5 жыл бұрын
It's worth noting that by default Rust binaries are linked statically to the standard library, which is why the executable file size can be large. There is a way to link dynamically to libstd (and others) using the "-C prefer-dynamic" rustc flag. The built libstd*.so for the target will of course need to be copied into the library path in order for the executable to run, but file sizes will be considerably smaller per executable. For example, using my current nightly rustc, a simple release build of the default "Hello World" binary is 2,402,248 bytes, whereas a build with a dynamically linked libstd is merely 16,984 bytes. Dynamic linking of course means that libraries like libstd could be pushed to the satellite once (preferably on the ground). Then, subsequent executables would require less time to push as they'd have less code. The libstd is very specific to the Rust version used however, so some system for updating the libstd version would also probably be required. C executables are linked dynamically to libc by default which is why they are smaller than Rust executables in the default configuration.
@mikkelens
@mikkelens 7 ай бұрын
I assume this is a bit different nowadays? You might still have to do some work to make your rust binary comparable to a C executable, but it doesn't sound nearly as bad as you described it here
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 36 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 38 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 21 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 9 МЛН
RustConf 2023 - How Powerful is Const
22:58
Rust
Рет қаралды 15 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 81 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 80 М.
Calling Rust code from Python
8:23
Let's Get Rusty
Рет қаралды 39 М.
RustConf 2023 - The Art and Science of Teaching Rust
28:01
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 36 МЛН