Oh Heaptrack is a nice programme to measure & analyze heap memory access of a programme. Works nicely & easily with code.
I'm finding it quite easily to reduce memory allocations in my code.

Sometime I should give a try to build a web app in . I used to do a lot of . But I'm doing my coding in Rust now.

$ ( ls Cargo.toml ; find ./src/ -type f -name '*.rs' ) | entr -r cargo test

this is what I use to automatically run tests when a file is saved

Show thread

RT: @gf_256@twitter.com:
The year is 20XX. Web apps are built in C++ and with WebAssembly, and desktop apps are built in with Electron.


"I know I'll just write a quick programme to proxy my http connections and add the header that I want".

Oh cripes, I forgot hyper's now gone weird with Futures and the like.

I have also learned about `impl Into<Cow<_>>` to accept a `&T` and `T`. Which, in retrospect, should have been obvious to me, but I just didn't put 2 and 2 together.
It should make my code more cleaner/ergonomic!

Show thread

"Elegant Library APIs in "
Now this is an interesting guide!
(I learned about the `impl Into<Option<T>>` which looks very useful!)

Ung. I love in many ways, but the String/&str thing often wrecks my head. Why is there &str *and* &String? Making functions they can take either type is annoying. (currently trying to wrap my head around Borrow vs AsRef).

OMG, I just discovered if you put this in your Cargo.toml (in a proj) then dev mode will run as fast a release mode!

opt-level = 3

Must resist siren song of writing my own library for validation. Though there is only one library for schema validation..... Why not 2?

Show thread
Show more
โ›ง MOYTURA โ›ง

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!