Readit News logoReadit News
fooyc commented on You can't fool the optimizer   xania.org/202512/03-more-... · Posted by u/HeliumHydride
Findecanor · 18 days ago
I'm wondering how the compiler optimised add_v3() and add_v4() though.

Was it through "idiom detection", i.e. by recognising those specific patterns, or did the compiler deduce the answers them through some more involved analysis?

fooyc · 18 days ago
add_v3() is the result of induction variable simplification: https://llvm.org/doxygen/IndVarSimplify_8cpp_source.html

Deleted Comment

fooyc commented on Java 21 makes me like Java again   wscp.dev/posts/tech/java-... · Posted by u/wscp-dev
fooyc · 2 years ago
The author cites this to justify the need for Records:

> Most Java objects set every field to be private and make all fields accessible only through accessor methods for reading and writing.

> Unfortunately, there are no language enforced conventions for defining accessors; you could give the getter for foo the name getBar, and it’ll still work fine, except for the fact that it would confuse anybody trying to access bar and not `foo'.

Scala supports pattern matching on objects implementing the `unapply` method.

Is this considered harmful? Why didn’t Java follow this route?

fooyc commented on Unpacking Google’s Web Environment Integrity specification   vivaldi.com/blog/googles-... · Posted by u/dagurp
bloopernova · 2 years ago
Would this end up breaking curl, or any other tool that accesses https?
fooyc · 2 years ago
Yes it will
fooyc commented on Unpacking Google’s Web Environment Integrity specification   vivaldi.com/blog/googles-... · Posted by u/dagurp
endisneigh · 2 years ago
How exactly is WEI any worse than say a peep-hole on a door? At the end of the day bots are a huge problem and it's only getting worse. What's the alternative solution? You need to know who you're dealing with, both in life and clearly on the web.

I'm probably alone in this, but WEI is a good thing. Anyone who's run a site knows the headache around bots. Sites that don't care about bots can simply not use WEI. Of course, we know they will use it, because bots are a headache. Millions of engineer hours are wasted yearly on bot nonsense.

With the improvements in AI this was inevitable anyway. Anyone who thinks otherwise is delusional. Reap what you sow and what not.

edit: removing ssl comparison since it's not really my point to begin with

fooyc · 2 years ago
WEI won’t even stop the bad bots. They will simply use "legitimate" devices.
fooyc commented on Google engineers want to make ad-blocking (near) impossible   stackdiary.com/web-enviro... · Posted by u/pabs3
KnobbleMcKnees · 2 years ago
A good and measured article marred only by a silly, clickbait title.

Unless there is a plan to allow attesters that are independent bodies then this is absolutely a threat to the open internet, or what's left of it.

The biggest dead canary for me is the lack of calling this out explicitly by Google or Apple. We're left to assume that Google is hand-wavingly saying "don't worry we can take care of that" when the private companies already monopolizing parts of the Internet are the absolute last people we want handling attestation.

fooyc · 2 years ago
Consider this scenario:

- Content sites implement Web Integrity API to block bots

- But they still allow Google crawlers, because Google is their source of traffic

- Google competitors are locked out

How do attesters solve this problem?

fooyc commented on Google engineers want to make ad-blocking (near) impossible   stackdiary.com/web-enviro... · Posted by u/pabs3
fooyc · 2 years ago
Not only adblocking, but also crawling. They want to kill competition.
fooyc commented on Advanced Performance Extensions (APX)   intel.com/content/www/us/... · Posted by u/gautamcgoel
brucethemoose2 · 2 years ago
"Tiered" x86 packages and executables seem like the inevitable direction for linux distros.

CachyOS and Clear Linux already do this.

Base Arch Linux and openSUSE are working on it. Maybe Fedora too, but I can't remeber

And it wouldn't be totally insane for Windows to do this either.

fooyc · 2 years ago
How does that work? The binary format embeds variants of the same program?
fooyc commented on Advanced Performance Extensions (APX)   intel.com/content/www/us/... · Posted by u/gautamcgoel
dmitrygr · 2 years ago
So, in about 30 years when the majority of the CPUs have this, we can use it. Assuming intel does not gate this just to XEON for no reason whatsoever, like they did to AVX512?
fooyc · 2 years ago
Maybe JIT compilers can take profit of this immediately, since they target a single machine?
fooyc commented on Become Ungoogleable   joeyh.name/blog/entry/bec... · Posted by u/pabs3
ghaff · 2 years ago
>Killing RSS was part of that strategy.

Oh please.

I get that it's more satisfying to blame Google than the faceless masses who had zero interest in RSS and who had a variety of alternatives to Reader in any case.

I guess they also had a strategy to kill social media by axing Google+ and user-created encyclopedias by killing Knol.

fooyc · 2 years ago
Not only Reader, but also the RSS support in Chrome and Firefox (whose Google used to be the primary source of funds). And Feedburner.

u/fooyc

KarmaCake day770July 22, 2011View Original