[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


God I'm sick of long compile time
>>
>>110486065
That was a good chapter, bitch boy died like a fag
>>
>>110486065
(i'll bite)
you're combining two /g/eet tardations in one:
* muh long compile times (overstated myth)
* the "unstable ABI" doesn't change except when a compiler major version changes. so you don't need to re-compile anything except when that version changes. i.e. once every six weeks if you're (live-)tracking stable. that is if you're a developer. if you're an end-user, you don't have to recompile ever, unless you have non-rust shared library dependencies (the irony!), but that's not rust-specific. it applies to any binary with such dependencies.
so i take it you're just yet another /g/eet tard who never "compiled" anything, in any language?
>>
File: rust.png (100 KB, 627x722)
100 KB PNG
>>110486065
>Rust
stop using that shit
>>
>>110486065
Long compile times make developers feel important.
>>
File: gf-santa.png (87 KB, 400x1216)
87 KB PNG
>>110486065
I've also heard about the compile times being long, but in my few years of using it I haven't encountered that issue. That being said, if I go looking for it, I do see it. For instance, go clone the "Stalwart" project from Github. If you make a release build of that software, you might notice it isn't exactly fast.

But the reason that happens is because Stalwart is using a shit ton of dependencies. Not every Rust project needs to be like that. I don't personally use many dependencies in my projects, I write them the same way that I would in C. I take advantage of the standard library, and I generally write my own data structures, and then I use Cargo for the stuff that I do want to pull in, like Tokio. (an equivalent of libuv). So in my case, compile times are always good.
>>
>>110486065
>be me, rust’s abi
>tell him to be more manly
>he says I misgender him
Life is truly difficult as the big brother of rust.
>>
>>110486065
Hahaha. No.
What I would give for being able to build every crate as a shared library on gentoo with stable ABI...
>>
>>110486399
Now add a few packages and tell me how much the compile time change ?
C++ refuse to break the abi for many reasons most of which are good
>>
>>110487713
what about it, perhaps do you want even more?
 cat Cargo.toml
[package]
name = "mproxy"
version = "0.1.0"
edition = "2024"

[dependencies]
async-trait = "0.1.92"
hex = "0.4.3"
rustls = { version = "0.23.46", features = ["ring"] }
sha2 = "0.11.2"
tokio = { version = "1.54.1", features = ["full"] }
tokio-rustls = "0.26.6"
tokio-util = "0.7.20"
webpki-roots = "1.0.12"
anon@lappy ~/Projects/mproxy (master)
cargo clean --package mproxy
Removed 191 files, 103.4MiB total
anon@lappy ~/Projects/mproxy (master)
/usr/bin/time --verbose cargo build
Compiling mproxy v0.1.0 (/home/anon/Projects/mproxy)
...
warning: `mproxy` (bin "mproxy") generated 33 warnings (run `cargo fix --bin "mproxy" -p mproxy` to apply 14 suggestions)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s
Command being timed: "cargo build"
User time (seconds): 1.65
System time (seconds): 0.37
Percent of CPU this job got: 218%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.92
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 259348
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 24
Minor (reclaiming a frame) page faults: 141028
Voluntary context switches: 1684
Involuntary context switches: 184
Swaps: 0
File system inputs: 1128
File system outputs: 131984
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
>>
>>110487861
Well you beat me, Rust actually improved a lot
>>
>>110487713
>C++ refuse to break the abi
damn. i love "accidental" trolls. who "accidentally" state non-facts only.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.