Readit News logoReadit News
cornstalks commented on Bun v1.3.9   bun.com/blog/bun-v1.3.9... · Posted by u/tosh
giorgioz · 2 days ago
Is it more common in English to use there terms Parallel and Sequential or Parallel and Series ? Made a React Library to generate video as code and named two components <Parallel> <Series> I was wondering if those were two best terms two use...
cornstalks · 2 days ago
I think your average person knows what sequential means but might not remember what series means. Personally I always remember the meaning of series in “parallel vs series” because it must be the opposite of parallel. I’m not proud of the fact that I always forget and have to re-intuit the meaning every time, but the only time I ever see “series” is when people are talking about a TV show or electronics.
cornstalks commented on 1 kilobyte is precisely 1000 bytes?   waspdev.com/articles/2026... · Posted by u/surprisetalk
fc417fc802 · 6 days ago
It's odd though. Metric prefixes are always lower case, so GB isn't valid metric. Further, outside of storage manufacturers attempting to inflate their numbers when does is ever make sense to mix power of ten with 8 bit bytes? Networking is always in bits per second, not bytes.

Edit: Disregard the metric bit but I think the rest still stands.

cornstalks · 6 days ago
> Metric prefixes are always lower case, so GB isn't valid metric.

Ummm, what? https://en.wikipedia.org/wiki/Metric_prefix

cornstalks commented on 1 kilobyte is precisely 1000 bytes?   waspdev.com/articles/2026... · Posted by u/surprisetalk
fc417fc802 · 6 days ago
> Macs measure file sizes in powers of 10 and call them KB, MB, GB.

That doesn't conform to SI. It should be written as kB mB gB. Ambiguity will only arise when speaking.

> Advertised hard drives come in powers of 10.

Mass storage (kB) has its own context at this point, distinct from networking (kb/s) and general computing (KB).

> When you've got a large amount of data or are allocating an amount of space, ...

You aren't speaking but are rather working in writing. kb, kB, Kb, and KB refer to four different unit bit counts and there is absolutely zero ambiguity. The only question that might arise (depending on who you ask) is how to properly verbalize them.

cornstalks · 6 days ago
> That doesn't conform to SI. It should be written as kB mB gB

Little m is milli, big M is mega. Little g doesn’t exist, only big G.

cornstalks commented on Building Your Own Efficient uint128 in C++   solidean.com/blog/2026/bu... · Posted by u/PaulHoule
ThatGuyRaion · 8 days ago
Question for those smarter than me: What is an application for an int128 type anyways? I've never personally needed it, and I laughed at RISC-V for emphasizing that early on rather than... standardizing packed SIMD.
cornstalks · 8 days ago
I implemented a rational number library for media timestamps (think CMTime, AVRational, etc.) that uses 64-bit numerators and denominators. It uses 128-bit integers for intermediate operations when adding, subtracting, multiplying, etc. It even uses 128-bit floats (represented as 2 doubles and using double-double arithmetic[1]) for some approximation operations and even 192-bit integers in one spot (IIRC it's multiplying a 128-bit and 64-bit ints and I just want the high bits so it shifts back down to 128 bits immediately after the multiplication).

I keep meaning to see if work will let me open source it.

[1]: https://en.wikipedia.org/wiki/Quadruple-precision_floating-p...

cornstalks commented on Skip is now free and open source   skip.dev/blog/skip-is-fre... · Posted by u/dayanruben
nsm · 19 days ago
Would you pay for source-available products? GPL and paid license?

Along with a guarantee that you get to keep access to older versions (Jetbrains and Sublime Text models)?

cornstalks · 19 days ago
> Would you pay for source-available products? GPL and paid license?

I'm not GP but I would at least consider it. I say that as someone who refuses to build on closed-source tooling or libraries. I'd even consider closed-source if there was an irrevocable guarantee that the source would be released in its entirety (with a favorable open source license) if the license/pricing terms ever changed or the company ceased to exist or stopped supporting that product.

> Along with a guarantee that you get to keep access to older versions (Jetbrains and Sublime Text models)?

I like that for personal tools but I wouldn't build my products or business on top of those. I've had too much trouble getting old binaries to work on new OS versions to consider these binaries to be usable in the long term.

cornstalks commented on CO2 batteries that store grid energy take off globally   spectrum.ieee.org/co2-bat... · Posted by u/rbanffy
coryrc · 2 months ago
And still much more than the cost of the solar panels, which was GP's point.
cornstalks · 2 months ago
GP only has two panels that generate 960 W (I’m going to generously assume NMOT and not STC). That’s hardly anything, and certainly not what I would use to try and charge 10 kWh of battery like they’re suggesting.

But sure, I agree it would help if battery prices came down.

cornstalks commented on CO2 batteries that store grid energy take off globally   spectrum.ieee.org/co2-bat... · Posted by u/rbanffy
mannyv · 2 months ago
I have two solar panels that can generate around 960w/hr. Both panels cost around $400 ($200x2). Cheap.

Storing that energy is quite expensive. an Anker Solix 3800, which is around 3.8kwh, costs $2400 USD. To store 10kwh would cost $7200 USD (which gets us more than 10kwh).

If that cost asymmetry can come down then it becomes feasible to use solar power to provide cheap/local electricity in poor countries at a house scale.

cornstalks · 2 months ago
There are way cheaper options than the Anker Solix 3800. Here are some options, in no particular order:

- $3,300: 10 kWh with 2x EG4 WallMount Indoor 100Ah.

- $3,110: 14 kWh with 1x WallMount Indoor 280Ah.

- $2,690: 10 kWh with 1x Deye RW F10.2 B

- Will Prowse's YouTube channel has reviewed several battery builds that are >10 kWh and near $2,000, but they're DIY assembly.

cornstalks commented on Zenroom – No-code cryptographic virtual machine   zenroom.org/... · Posted by u/smartmic
cornstalks · 2 months ago
> Zenroom is programmable in the no-code English-like language Zencode.

Isn't that just code? Where do people draw the line between no-code and code?

cornstalks commented on Google unkills JPEG XL?   tonisagrista.com/blog/202... · Posted by u/speckx
sunaookami · 2 months ago
Do people really not know what a hyperbole is?
cornstalks · 2 months ago
100M+ lines of code isn't a hyperbole for some codebases, though. google3 is estimated at about 2 billion lines of code, for example.

Maybe it was hyperbole. But if it was it wasn't obvious to me, unfortunately.

cornstalks commented on Google unkills JPEG XL?   tonisagrista.com/blog/202... · Posted by u/speckx
EMM_386 · 2 months ago
Isn't this due to the 100M+ line C++ multi-threaded dependency being a potential nightmare when you are dealing with images in browsers/emails/etc. as an attack surface?

I think both Mozilla and Google are OK with this - if it is written in Rust in order to avoid that situation.

I know the linked post mentions this but isn't that the crux of the whole thing? The standard itself is clearly an improvement over what we've had since forever.

cornstalks · 2 months ago
libjxl is is <112,888 lines of code, about 3 orders of magnitude less than you're 100M+ claim.

u/cornstalks

KarmaCake day2641October 20, 2014View Original