There are only two hard problems in computer science:
- naming things,
- cache invalidation,
- off-by-one errors.
I’m afraid you’ve fell victim to the problem 2.
There are only two hard problems in computer science:
I’m afraid you’ve fell victim to the problem 2.
Well, no. They are not certainly using int
, they might be using a more efficient data type.
This might be for legacy reasons or it might be intentional because it might actually matter a lot. If I make up an example, chat_participant_id
is definitely stored with each message and probably also in some index, so you can search the messages. Multiply this over all chats on WhatsApp, even the ones with only two people in, and the difference between u8
and u16
might matter a lot.
But I understand how a TypeScript or Java dev could think that the difference between 1 and 4 bytes is negligible.
Maybe checkout Pixelfed, which is (from what I gather) similar to what instagram was 10 years ago
Or a pair of boots, a great backpack, hiking trousers, helmet, harness and a “via ferrata cable kit”.
~10 manual mid-range tools and enough wood to make a nice looking jewellery box.
The secret: 7.5kW induction plate.
It takes ~30sec to prepare an xl cup of instant coffee for me. It takes a minute for a cup of “turkish” coffee, or two minutes if I wait for it to settle down before pouring.
It’s not great coffee, but I’d say it’s above average.
Rust will take time - it has a few concept that I haven’t seen in javascript/python/java/C++ family of languages. But it gives “zero-cost abstractions” i.e. a way to write high-level code without any performance penalty. And it has great tooling and WASM support, which is what you’d be after.
But as I said, it is all not worth it now, just for this application.
Sure, do recommend - I’d need a basic overview, but not too deep, as I don’t have enough motivation for in-depth review of all socialist governments in the last two centuries.
From what I read, it could easily be a tauri app, without a backend: just index.html
in your system’s webview.
I did also forget to say it does look very nice, with animations and proper polish!
If you do delve into improving the performance, I suggest using Rust and no_std
crates for dealing with images, such as https://docs.rs/zune-jpeg/latest/zune_jpeg/.
It would probably take some time to get it working, but it would probably increase performance and support any format you can find a crate for. But it does not seem like it’s worth it.
I’ll add this to my list of “things I might to when I don’t have a side project to waste my time on” :D
To be honest, I know little about Mao and beginnings of PRC - I’m quite ignorant about how much of an “absolute leader” he was.
But I do believe that idolizing a person and concentration of power are dangerous to democracy.
And it’s interesting how much responses I got on this topic.
I would say that Hungary is currently quite authoritarian. And Serbia too. Nazi Germany and Fascist Italy were too, very much so.
Any language feature with such a long definition is a bad language feature.
The less such features, the better the language.
Thus, javascript is not a “good” language for expressing your programs.
Socialism dies as soon as a single person becomes its absolute leader. From there, it is just a walk toward authoritarism.
Dronies? Is this an evolution of takies? A subspicies?
If you are interested (and can pull together a bit of funding) I can look into how we could do this optimization in WASM.
It’s JavaScript.
And it is slow, but not as slow as I expected it to be. I’ve optimized a photo I’ve taken with my DSLR, 6.3MB, 24MP, JPEG. It has taken ~50sec on this phone, in Firefox.
I know, it’s a phone, but also, my phone can and does save, optimize, and apply filters to such images in <1sec.
Fun fact: in rust and python, they use “selfself” instead of “meme”