Hacker News new | ask | show | jobs
by giancarlostoro 44 days ago
Goroutines are roughly 2kb in memory, and Crystal fibers are roughly 4KB, which is insane in any regard. I think Crystal is really interesting and worth considering, especially if you want something native that has OOP, I really would love to see Crystal used more in general.
1 comments

That is especially insane, when we consider that "B" means "bytes" while "b" means "bits", and "kb" means 1,000 bits, while "KB" means 1,024 bytes (8,192 bits)!

Happy International Caps Lock Day!!1

The one time I don't double check my capitalization for bytes vs bits... The sad thing is I usually double check as I type them, must have been in the middle of something and not noticed.
KiB means 1,024 bytes, KB is still 1000, if you want to be pedantic.

On other note, who the hell decided kibi, mebi, gibi are good prefix names? that's the reason no one uses them (me too)

No, "KiB" is the IEC abbreviation, while "KB" is the JEDEC abbreviation for the same quantity of 1,024 bytes. "kB" is the SI abbreviation for decimal 1,000 bytes.

https://en.wikipedia.org/wiki/Kilobyte

The metric prefix "kilo" is always lowercase. I don't know how you got a capitalized "K", but that's not how it works.

https://en.wikipedia.org/wiki/Kilo-