These are chat archives for rust-lang/rust

6th
May 2017
Martell Malone
@martell
May 06 2017 15:21
Hey I'm trying to track the status of the upgrade to llvm 4.0
The threads on github seem really long but from what I gather the upgrade is now done.
When would we expect to see this in rustup cargo and rustc releases?
Fra ns
@snarf95_twitter
May 06 2017 16:11
What are options for optimizing compilation speeds? I'm using msvc rust 1.19?
Jonas Platte
@jplatte
May 06 2017 16:38
@snarf95_twitter If you're talking about development (rebuild speed, not initial build speed), you can try incremental compilation. I haven't measured the impact it has for me yet, but I have it running and it seems pretty stable so far.
Fra ns
@snarf95_twitter
May 06 2017 17:32
Thx I've tried to use IC but it didn't work(or I'm an idiot). Anyway I'm using windows
Jonas Platte
@jplatte
May 06 2017 18:15
@snarf95_twitter How did it not work?
Fra ns
@snarf95_twitter
May 06 2017 18:26
well it didn't make compilation faster at all... 0% faster so obviously I must have done something wronge
I made a file with ```
rustflags = ["CARGO_INCREMENTAL=1"]
in .cargo/config
and run my project using cargo run --release
Jonas Platte
@jplatte
May 06 2017 18:29
Oh, this is not a flag you pass to rustc. It's an environment variable
Fra ns
@snarf95_twitter
May 06 2017 18:30
so where exactly should I set it? I'm running windows
Jonas Platte
@jplatte
May 06 2017 18:30
on the command line via set or setx
(set is temporary, setx is permanent)
Fra ns
@snarf95_twitter
May 06 2017 18:32
thanks bro :smile:
Jonas Platte
@jplatte
May 06 2017 18:32
Just checked again and of course windows is completely inconsistent with the two
It's set CARGO_INCREMENTAL=1, but setx CARGO_INCREMENTAL 1 AFAICT
Fra ns
@snarf95_twitter
May 06 2017 18:33
omg windoge
Jonas Platte
@jplatte
May 06 2017 18:33
because set is a builtin and setx a program, or something like that
Fra ns
@snarf95_twitter
May 06 2017 18:33
thats amazing
Jonas Platte
@jplatte
May 06 2017 18:33
also you probably want to do both because setx only changes the system settings but doesn't actually reload them :D
Fra ns
@snarf95_twitter
May 06 2017 18:34
ok cool it went from 14 secs to 3 sec now!
Jonas Platte
@jplatte
May 06 2017 18:34
nice! :)
Fra ns
@snarf95_twitter
May 06 2017 18:35
quick compilation is always nice
especially with game development... is hot reloading or similiar ever going to be possible with rust?
Jonas Platte
@jplatte
May 06 2017 18:48
You mean e.g. changing game logic while preserving the execution state of the engine?
If so, that would be up to the engine to support. And would be quite a big effort, but not impossible I think.
Jonas Platte
@jplatte
May 06 2017 18:53
You would have to have a predefined interface between the engine and the game logic and then you could load and unload your game logic at runtime, in one form or another. In theory at least... :D
Fra ns
@snarf95_twitter
May 06 2017 19:04
Can't wait for smart people to make a really nice game engine with rust
Jonas Platte
@jplatte
May 06 2017 19:10
I think the most ambitious Rust game engine currently is Amethyst. Their vision statement includes being suitable for rapid prototyping. You can already play around with right now and it might be usable in a year or two.
The fact that gitter allows messages to be edited really doesn't up my message quality ^^°