FizzyOrange

joined 2 years ago
[–] FizzyOrange@programming.dev 2 points 4 days ago (1 children)

Sure, but I don't think that's an excuse for things like global hotkeys not working.

[–] FizzyOrange@programming.dev 1 points 4 days ago (3 children)

It's a very heavily gamed benchmark. The most frequent issues I've seen are:

  • Different uses of multi-threading - some submissions use it, some don't.
  • Different algorithms for the same problem.
  • Calling into C libraries to do the actual work. Lots of the Python submissions do this.

They've finally started labelling stupid submissions with "contentious" labels at least, but not when this study was done.

[–] FizzyOrange@programming.dev 1 points 4 days ago (5 children)

They chose an “optimized” set of algorithms from “The Computer Language Benchmarks Game” to produce results for well-optimized code in each language.

Honestly that's all you need to know to throw this paper away.

[–] FizzyOrange@programming.dev 5 points 4 days ago

Stop linking this, please! Any benchmark where Typescript and JavaScript are different is trash.

[–] FizzyOrange@programming.dev 2 points 6 days ago (1 children)

Basically it uses bind mounts instead. See this page for details.

I haven't actually used (since Plan 9 is dead) and I doubt it covers every use case for symlinks (e.g. this wouldn't let you commit them to a git repo), but I really think the benefits of symlinks not existing at all would far outweigh the effort of having to think of alternative solutions.

Sadly we don't get to live in that alternative history now... :-/

[–] FizzyOrange@programming.dev 1 points 6 days ago* (last edited 6 days ago)

Double is not perfectly precise. It is quite literally a function that calculates what the value should be. There are converters to show the drift: https://www.h-schmidt.net/FloatConverter/IEEE754.html

$40.01 is literally stored as 01000010001000000000101000111101 in a float type, which is literally stored as 40.009998321533203125. The margin of error goes up the larger the number.

No you're fundamentally misunderstanding what's going on. Float isn't "storing 40.01 but imprecisely". That's like saying an integer "stores 1.1 but imprecisely". Floating point can't represent the number 40.01. But that doesn't matter because 4.0009999999999998 is easily accurate enough for any real world use.

The story of Ariane 5

This was caused by converting an f64 to i16 which caused an overflow and hardware exception. Irrelevant.

How a Minor Calculation Error Cost Intel Half a Billion Dollars

Hardware bug. Irrelevant.

Wikipedia

Literally says "The failure to intercept arose not from using floating point specifically"

and asking the stock exchange

I'm not talking about stock exchanges. Obviously they have extreme requirements. For most normal businesses and people f64 is fine.

You're repeating dogma without thinking about it.

[–] FizzyOrange@programming.dev 3 points 6 days ago

I guess this might be hard to understand if you're asexual but my point is that young boys (and maybe girls) aren't "stumbling over porn". They're seeking it out.

If this was only meant to prevent stumbling over porn then the existing "are you over 18? [Yes] [no]" checks would be perfectly fine.

I do wonder if there is any study backing up my idea that porn is not harmful, it’s refusing to talk about what is healthy and what is not in a relationship and modeling bad interactions that is harmful.

Yeah maybe... Porn doesn't even try to depict normal relationships so I don't think it could really be distorting them, unlike films or creepy influencers like Andrew Tate.

[–] FizzyOrange@programming.dev 2 points 6 days ago* (last edited 6 days ago) (3 children)

The Plan 9 solution looks better to me. At the very least if you keep them then paths should be resolved lexically. I think most people are under the false impression that they are resolved lexically (i.e. foo/bar/../baz and foo/baz are the same).

But IMO it's better just to not have them and use another solution where you might have used them.

[–] FizzyOrange@programming.dev 3 points 1 week ago

You used to need admin or something like that. It's only since about 2017 that they are available to normal users by default.

[–] FizzyOrange@programming.dev 1 points 1 week ago (5 children)

Or giving in. Symlinks are a lazy hacky mistake. The original Unix authors knew it and tried to fix it in Plan9, but I guess now we're stuck with that mistake forever. Even WASI supports symlinks.

https://dl.acm.org/doi/10.5555/1267724.1267731

view more: ‹ prev next ›