Rémy Rakić
15.5K posts
@mitchellh So currently, the longer, more difficult projects (parallelism, codegen backend, linker, etc) are still in-progress. That compounds negatively with the lack of funding, so the volunteers driving the work also don't have a lot of time available to make progress.
English

Is the Rust project doing anything about the insanely slow compile times? I see various blurbs about language features, build tooling, lib enhancements, but I rarely see the same activity around compiler speed. Genuine question from an outsider, these compiler speeds are killing me as a consumer, I can't imagine what it's like as a developer.
English
@mitchellh It is taken seriously but progress on improving compile times has slowed down recently: the easy low-hanging fruit, which drove most of the gains in the last few years, has been picked already.
English
@compiler_errors much thanks for noticing my silly `TypeRelation`s mistakes <3
English
@pcwalton alternatively, and something you can do today with plenty of disk space: setup r-a to use another output folder so there's nothing to block on while building either
English
@gcouprie @fulmicoton clairement, et avec de l'expérience aussi, qui d'autre aurait autant de ... gestion d'erreur ?!
Français

@burntsushi5 @ibraheemdev cp.kaist.ac.kr/gc/ also has cool papers on this topic, as well as rust implementations (that they claim are SoTA) and benchmarks, e.g. github.com/kaist-cp/smr-b…
English

Nice work @ibraheemdev on ibraheem.ca/posts/designin…! Looks very cool. I thought the section on concurrent memory reclamation was quite interesting, and I learned about Hyaline.
English
@withoutboats I don't know if you saw this, but viruta.org/fixing-xml-ent… was another recent example where a Drop impl and destructuring interfered, """causing""" a leak during a refactoring.
English
@djco If you're using apple's latest linker then it shouldn't matter to you IIUC: it's already competitive/better than lld/mold already. For ld64, it's debatable.
(Some targets w/ rust-lld by default: gist.github.com/lqd/7f605095f9…)
On linux, compared to GNU ld/bfd, the speedup is massive.
English

@lqd Which aarch64 targets already use lld? More specifically, as an Apple Silicon macOS user, is this performance improvement in my future or my past?
English
If you care about rust compile times, this may be of interest: we've recently switched rustc to use lld on x64 linux (on nightly only for now to expand testing, before enabling it on stable).
I wrote more about it, with details and perf improvements, in blog.rust-lang.org/2024/05/17/ena…
English
@thorstenball btw have you also seen Raph Levien's "Rope Science" series of posts? xi-editor.io/docs/rope_scie…
English
@thorstenball why the inlay hints are cool: the parameter name hint on `join_all` looks to be `iter`, so you may not even need to collect your tasks in a vec before hand🤔
English
@nomad421 I guess you could similarly also `read_until` 0xA into your own Vec of u8s.
Is it common in line-processing tasks that the bottleneck is in checking utf8 validity rather than the task itself? If so, you could ask the libs team for an unsafe read_line_unchecked
English

#RTD 58: The bytelines crate (docs.rs/bytelines/late…) is a nice alternative to the standard `lines()` iterator when you need to parse a text file line-by-line. 1/


English
@gcouprie Ah I see. Maybe we should ask Fuchsia: it seems plausible they could be in the same situation or have their own tricks to fix it.
English
@gcouprie if by "working from cli" you don't mean "only from the cli, i.e just the data collection part" -- and then have different visualization/UIs to use it: samply, tracy, hotspot, not-perf
English

Discover the best in Rust at Rust Nation UK!
Our 2024 schedule is now live and it brings together top-notch speakers, contributors, and educators from across the globe for 2 days of immersive talks.
Check out our exclusive line-up here -buff.ly/412iWm5
#rustnationuk

English










