[–] 45 points 1 year ago (8 children)

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.

  • source
  • parent
  • context
  • [–] 1 point 1 year ago (1 child)

    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.

  • source
  • [–] 1 point 1 year ago

    Oh god, that changes so much.

    I've built a caterium computer factory with 200+ machines total and I used 4 different blueprints for it. It was still a lot of work because each blueprint had like 3 connection points that needed to be connected manually. Very tedious, will not try again.

  • source
  • parent
  • context
  • [–] 1 point 1 year ago (1 child)

    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.

  • source
  • parent
  • context
  • view more: ‹ prev next ›