HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ljsb

no profile record

comments

ljsb
·hace 3 años·discuss
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?
ljsb
·hace 3 años·discuss
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).
ljsb
·hace 3 años·discuss
I hope it's OK to add a shameless plug for my Rust WASM framework, Silkenweb [0]. It's similar to Leptos and Sycamore in that it's signals based, but I've put a lot of effort into making it ergonomic without resorting to a macro DSL. It supports all the usual things like SSR and hydration, along with a few nice extras like scoped CSS.

[0] https://github.com/silkenweb/silkenweb
ljsb
·hace 3 años·discuss
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.