🦀Rust🦀 https://typst.app 💚

  • 0 Posts
  • 45 Comments
Joined 1Y ago
cake
Cake day: Jul 01, 2023

help-circle
rss


How many shower shitters do you know?


Just use duckduckgo.com and everyone will be happy.


The last part was wrapped in a spoiler and under the post scriptum clause to indicate that it’s not important and that you should really see it if you don’t want to. And I added that just to educate a bit more, since I already started the " this is wrong and this is right" conversation. To be honest, I hate that that OS had so many naming changes that everyone is just left confused in the end. Some still say OS X or whatever else.


What is bad about it? It wasn’t an offensive statement, it was stating the fact that that the person was new to the whole “MB vs. MiB” mega story that is an ongoing issue for at least over 10 years, and that I envy/pity the “cruel world that they are in” (where everyone uses JEDEC units while IEC ones should be used instead).

If that is the only reason why you’re starting calling names other people and downvoting all of their comments then you’re overreacting. The person I talked with didn’t even mention it. I heard this phrase from some movie or something.


Ok, show me what I did wrong and what should I do instead to not be a prick, please.


Windows and MacOS use the abbriviation “MB” referring to the binary units, correct?

Yez. I’m only sure about the first one, but didn’t test myself whether the macOS is using power of 2 or 10 under the hood (of MB). You can open properties of something big and try converting raw number of bytes with /1024^n and /1000^n and compare the end results.

How come that these big OS’s use another unit than these large international bodies recognize?

Legacy, legacy everywhere (IMO). And of course they don’t want to confuse their precious users that don’t know any better. And this also would break some scripts that rely on that specific output. GNU C library also uses JEDEC units by default, hence flatpak and other software.

On a side note, I’ve always found it weird why HDDs or SSDs are/were sold with 128GB, 265GB, 512GB etc. when they are referring to decimal units.

It is weird for everyone, because we mainly only count with multiples of 2 when it comes to digital size of information. I didn’t investigate why they use power of 10, but I’ve seen that some other hardware also uses decimal units (I think at least in RAM, but JEDEC is used intentionally or not for CPU cache memory). I had a link where the RAM thingy is lightly addressed, but I couldn’t find it.

spoiler

P.S. it’s “OSes” and “macOS” BTW.


You poor innocent soul… I can try to explain why decimal is even mentioned, but it would probably take a lot of time, and I’m not sure if I will be able to clarify things up.

I can at least say this: 2 TB HDD drive is indeed 2*10^12 B, but suddenly shindow$ in its File Explorer will show you that in fact the drive is only 1.82 TB. But WHY? Everyone asks, feeling scammed. Because HDD spec uses decimal units (SI; MB) and Window$ uses binary units (JEDEC; MB), i.e., 1.82 TiB (IEC; MiB). And macOS also uses JEDEC units, AFAIK.

More and more FOSS software uses IEC units and KDE Plasma is a good example: file manager, package manager etc. uses IEC units. Simply put, JEDEC added the binary meaning to decimal units, so at first MB (and now) only carried decimal meaning (until JEDEC shit out their standard). And the only reason why “gibibyte” is ridiculous, is because we all grew up with JEDEC interpretation of SI units. So it will take many generations for everyone to adapt xxbityte words into daily conversations. I’m (already) doing my part. It’s just the legacy that we have to deal with.

All international bodies (BIPM, NIST, EU) agree that the SI prefixes “refer strictly to powers of 10” and that the binary definitions “should not be used” for them.

https://en.wikipedia.org/wiki/Binary_prefix#IEC_1999_Standard

https://en.wikipedia.org/wiki/Binary_prefix#Other_standards_bodies_and_organizations

https://en.wikipedia.org/wiki/JEDEC_memory_standards#JEDEC_Standard_100B.01


If you’re not aware, it was called MB because of JEDEC when IEC units weren’t invented. IEC units were introduced because they remove the double meaning of JEDEC units — decimal and binary. IEC units only carry the binary meaning, hence why they’re superior. If you convert 1000 kB to 1 MB then use MB, but in case of 1024 KiB to 1 MiB you should be using MiB. It’s all about getting the point across, and JEDEC units aren’t good at it.







*non-windows-fans /s

(I hate C# and I hate .Net)



How would you make GUI plural then? Apostrophe is an attempt to do just that, I believe.




I want to shit on Apache Pig Latin, but nobody uses it…


You literally didn’t gave any arguments why you really dislike pnpm. The most obvious benefit is several times faster installations. It also have resolved some peer dependencies (I don’t remember details).





We just not there yet. Tauri tries to be Electron or React, where you write only once and use everywhere. This is very cost efficient. So even though it’s of course not perfect overall, but it is the perfect alternative, that brings web apps closer to native-like experience. Small but important step to greatness.

In the end the question is: Election or Tauri? And not a debate on whether web frameworks are bad etc.


Basically, but not basically. After all, Chromium is (F)OSS, and Chrome is proprietary.


Do you know what this even is? It’s not marginal at all. Check the comparisons of Tauri and Electron. And it does not use Chrome. Electron also doesn’t use Chrome.


Wait until Tauri will gain popularity.


It’s only like that when you’ve learned them recently. Now I need to learn Rust. You also have to remember a ton of shortcuts in many GUI editors.



Ok, I should check it out, then. Maybe I already follow all the best practices, so I wouldn’t need it anyway. ;)


So why there are typescript extensions for eslint if both are linters for JS? You should either use eslint with JS or transpile TS to JS, right?

Are there bugs in TS that eslint can catch?

I personally never seen TS project with eslint.


I don’t know. I never used eslint, therefore it is not needed. Everything works perfectly fine without it.

Why do you need it?



You absolutely have to use prettier with JS. I don’t think there is auto adding missing semicolons in C/C++ though, it would be very useful.


Extra project setup like pnpm add -D typescript && tsc --init? One thing that is kinda annoying is that you have to manage were will js files go.


Never used eslint. prettier is a must. semicolons are only needed to split some rare TS syntax lines.


It is recommended. But in TS it is not necessary with rare exceptions.


You can: ./texteditor, ./bin/texteditor, “texteditor binary”, “(local) texteditor program”.