Commit 150b7c8
...and we keep improving!
Now down to ~700ms. That's another 12% faster!
Hm...might we even be able to...
Commit 9d1d7ae
Hell yeah! More than twice as fast! And we are now talking milliseconds, not seconds anymore.
But this is Rust - can we get even faster?
Wait until tomorrow...😏
nighty night 👋
The holidays are around the corner and so I have a little crat...eh..._gift_ for you my lil' crabbies.🤭 🦀
So here's the plan:
Until December 23rd, I'll post some performance progress I've made over the last months in this thread until we can finally unwrap() the gift together, Ok()?
Mhh...I can already smell the oxidized metal...🤤
Hm...this looks useful. I think I'm going to use this in my next #Rust p̷̗̟̯̣͔͊̃̂͋̈́̓̀̊͌̍r̵͎̾̍̍̅̆o̸̧̮̞̜̳̩̜̺̖̔̔̅̿͆̍̂̓͊̿j̷̬̲̈́̋͆̅̒̔̌̎̆͠e̴̩̮̻̳̭͇̮̖̙̟͂̓̓͆̄͘c̴̭̬̱͊̉̇́̇̿̀̔͜͝͝t̵̬̟̘͙̀̊͂̄͜: :rust_thinking:
rust-sinner - Easy c̵̰͠r̵̛̠ö̴̪s̶̩̒s̵̭̀-t̶̲͝h̶̯̚r̵̺͐e̷̖̽ḁ̴̍d̶̖̔ ȓ̵͙ė̶͎ḟ̴͙e̸̖͛r̶̖͗ë̶̱́ṉ̵̒ĉ̷̥e̷͚̍ s̷̹͌h̷̲̉a̵̭͋r̷̫̊ḭ̵̊n̷̬͂g̵̦̃ f̶̻̊ơ̵̜ṟ̸̈́ R̵̞̋ù̵̺s̷̖̅ţ̸͗!̸̼͋
Programmers should stop celebrating incompetence - by David Heinemeier Hansson:
https://world.hey.com/dhh/programmers-should-stop-celebrating-incompetence-de1a4725
THIS!
#Programming #Competence #LifeLongLearning #Developer #SoftwareEngineering
Die Ernährung, die die Welt retten soll - #Spektrum:
https://www.spektrum.de/news/klimawandel-die-ernaehrung-die-die-welt-retten-soll/1960078#Echobox=1639647645
"[...]Die maximale Menge an rotem Fleisch, die ein 30-Jähriger, der 2500 Kalorien pro Tag zu sich nimmt, in einer Woche essen darf, beträgt 100 Gramm, also eine Portion rotes Fleisch. Das ist weniger als ein Viertel von dem, was ein durchschnittlicher Amerikaner zu sich nimmt.[...]Diese Ernährungsweise würde nach Schätzungen der Kommission jedes Jahr das Leben von etwa elf Millionen Menschen retten."
This #Rust #RFC looks awesome!
if-let-chains:
https://rust-lang.github.io/rfcs/2497-if-let-chains.html
It allows the following:
if let Some(Foo::Bar(_)) = foo.bar(baz)
&& let Some(qux) = foo.drix() && let Some(bla) = qux.do() {
i_am_hungry(qux, bla);
}
"The readability of programs is often about the degree to which the code corresponds to the mental model the reader has of said program. Therefore, we should aim to bring the language closer to the mental model of the reader.":
https://rust-lang.github.io/rfcs/2497-if-let-chains.html#bringing-the-language-closer-to-the-mental-model
I ❤️ this!
#TIL that in #Git you can do `--simplify-by-decoration` when using `git log` with `--graph`, so:
git log --graph --oneline --simplify-by-decoration
This will show only those commits as a graph that have a decoration on them (e.g. a branch, tag etc.), so you get a really nice condensed view of your repo without all the "intermediate" commits.
Really handy, if you want to see at a glance which branch is ahead of others, for example.
TIL in #CSS Grid 🤓:
in grid-template-*: 1fr 1fr
is equivalent to
grid-template-*: minmax(auto, 1fr) minmax(auto, 1fr)
Just to add to that: you can avoid such horrible api by making the fn accepting a whole struct with the values. You can then additionally impl `Default` so that you don't have to specify all values all the time.
So there is no real benefit for Rust having overloadable functions.
This happens if you can't have overloadable functions:
from this forum thread:
https://users.rust-lang.org/t/overloadable-functions-with-tuples-why-cant-compiler-do-that/68182/7?u=janriemer
At first I thought it was a joke...
😄
#Rust #Programming Course for Beginners - Tutorial - by #freeCodeCamp:
https://yewtu.be/watch?v=MsocPEZBd-M
(or YT: https://www.youtube.com/watch?v=MsocPEZBd-M)
Container Query Units - by Ahmad Shadeed:
https://ishadeed.com/article/container-query-units/
Nice, rxRust has hit v.1.0.0-alpha! 🎉
It requires nightly #Rust, though, due to unstable GATs.
https://github.com/rxRust/rxRust
#RXRust #FunctionalReactiveProgramming #ReactiveProgramming
#ReactiveExtensions
Passionate Software Developer with an incredible thirst for knowledge, who shares that knowledge with others, so that they can become their best selfs.
Interested in #Rust, #TypeScript, #Node, C# and a lot of other interesting stuff.
Dare to think for yourself.
Be kind.
Strive for excellence.