Recent submissions

Comment · 3 years ago
Dollar Cost Averaging a lump sum might reduce your risk while you're averaging in, but why weren't you happy with the risk/return profile in the first place? And are you happy with increasingly higher risk/return as you commit more of your lump sum? Isn't it better to pick a portfolio with a risk profile you're happy with in the first place, then commit your entire lump sum?
Comment · 3 years ago
I can't think of any practical way to do that without macros, unfortunately. I've found incremental compilation to be pretty speedy for small markup changes so far though. I do tend to put the presentation code in it's own crate for larger projects, which might make a difference. Maybe as my projects get bigger I'll start to run into problems.

Some other ideas:

- Temporarily stopping the rust-analyser server to avoid lock contention on the build dir.

- Using cranelift codegen backend (not sure of it's current status).

Comment · 3 years ago
Comment · 3 years ago
You were pretty close with your hypothetical syntax! You can write:

  let Some(y) = x else { do_stuff(); return };
I think it was a fairly recent addition to Rust.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton