Readit News logoReadit News
peterfirefly commented on Full Unicode Search at 50× ICU Speed with AVX‑512   ashvardanian.com/posts/se... · Posted by u/ashvardanian
bbminner · 3 days ago
I was really confused about the case folding, this page explained the motivation well https://jean.abou-samra.fr/blog/unicode-misconceptions

""" Continuing with the previous example of “ß”, one has lowercase("ss") != lowercase("ß") but uppercase("ss") == uppercase("ß"). Conversely, for legacy reasons (compatibility with encodings predating Unicode), there exists a Kelvin sign “K”, which is distinct from the Latin uppercase letter “K”, but also lowercases to the normal Latin lowercase letter “k”, so that uppercase("K") != uppercase("K") but lowercase("K") == lowercase("K").

The correct way is to use Unicode case folding, a form of normalization designed specifically for case-insensitive comparisons. Both casefold("ß") == casefold("ss") and casefold("K") == casefold("K") are true. Case folding usually yields the same result as lowercasing, but not always (e.g., “ß” lowercases to itself but case-folds to “ss”). """

One question I have is why have Kelvin sign that is distinct from Latin K and other indistinguishable symbols? To make quantified machine readable (oh, this is not a 100K license plate or money amount, but a temperature)? Or to make it easier for specialized software to display it in correct placed/units?

peterfirefly · 2 days ago
> One question I have is why have Kelvin sign that is distinct from Latin K and other indistinguishable symbols?

To allow round-tripping.

Unicode did not win by being better than all previously existing encodings, even though it clearly was.

It won by being able to coexist with all those other encodings for years (decades) while the world gradually transitioned. That required the ability to take text in any of those older encodings and transcode it to Unicode and back again without loss (or "gain"!).

peterfirefly commented on Rust GCC backend: Why and how   blog.guillaume-gomez.fr/a... · Posted by u/ahlCVA
grokx · 3 days ago
When I studied compiler theory, a large part of the compilation involved a lexical analyser (e.g. `flex`) and a syntax analyser (e.g. `bison`), that would produce an internal representation of the input code (the AST), used to generate the compiled files.

It seems that the terminology as evolved, as we speak more broadly of frontends and backends.

So, I'm wondering if Bison and Flex (or equivalent tools) are still in use by the modern compilers? Or are they built directly in GCC, LLVM, ...?

peterfirefly · 3 days ago
Mostly because that's the part that had the best developed theory so that's what tended to be taught.

The rest of the f*cking owl is the interesting part.

peterfirefly commented on We're learning more about what Vitamin D does   technologyreview.com/2025... · Posted by u/Brajeshwar
lazy_afternoons · 20 days ago
There is a 5000 years old epic called Ramayana which dedicates a significant part of it to a conversation between the protagonist Ram and his guru, agastya.

The summary of that entire conversation is this:

If you ever feel demotivated, defeated or dull just pray to the sun or go into the sunlight.

This message was repeated dozens of times over and over with various metaphors.

I think they were trying to hammer the point that sunlight solves a lot of issues.

peterfirefly · 14 days ago
Almost certainly not that old. Around 2500-2000 years old.
peterfirefly commented on Thoughts on Go vs. Rust vs. Zig   sinclairtarget.com/blog/2... · Posted by u/yurivish
timschmidt · 15 days ago
Agreed. In practice Rust feels very much like a rationalized C++ in which 30 years of cruft have been shrugged off. The core concepts have been reduced to a minimum and reinforced. The compiler error messages are wildly better. And the tooling is helpful and starts with opinionated defaults. Which all leads to the knock-on effect of the library ecosystem feeling much more modular, interoperable, and useful.
peterfirefly · 14 days ago
It's really an ML with type classes and a better syntax (and a non-stupid module sublanguage) that also just happens to be more C-like.
peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
deaux · 15 days ago
That link supports the thesis if everything?

Top 0.01%, +9.1%

Top 0.1%, +13.9%

Top 1%, +15.2%

Top 10%, +6.1%

Middle 40%, -6%

Bottom 50%, -0.1%

This supports exactly GP's two statements:

> we are concentrating all the wealth and power into the hands of a few.

Correct, their slice of the pie is growing, the bottom 90%'s is shrinking

> This leaves the top 1% getting richer every year and the bottom 99% fighting over a smaller piece of the pie every year.

Also correct, the biggest growth of share being in the top 1% segment.

peterfirefly · 14 days ago
People move a lot between those "buckets" over their lives. It's not the same 1% decade after decade.
peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
LargeWu · 15 days ago
My middle school aged child was recently diagnosed with learning disorders around processing, specifically with written language and math, which means even though he might know the material well it will take him a long time to do things we take for granted like reading and writing. But, he does much much better with recall and speed when transmitting and testing his knowledge orally. He's awful with spelling and phonemes, but his vocabulary is above grade level. For kids like him, the time aspect is not necessarily correlated to subject mastery.
peterfirefly · 14 days ago
Can he build more advanced concepts on top of the ones he supposedly masters?

Can he do that well?

Is he likely to continue to be able to do that as he progresses to the stuff that is actually hard?

(My guess is that the answers are yes (so far), no, and definitely not.)

Take slow processing is a really good symptom of something that needs more practice time.

peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
bawolff · 15 days ago
> Tests usually measure lots of things, and speed and accuracy / fluency in the topic is one.

Why are you trying to measure speed though?

I can't think of any situation where someone was like: you have exactly 1 minute to integrate this function, or else.

Fluency yes, but speed is a poor proxy for fluency.

peterfirefly · 14 days ago
Speed is a remarkably good proxy for fluency.

An excellent way to git gud at something is to do timed practice again and again. Aim for 100% correct answers AND for fast answers. Answers that took to long should be identified and practiced again (and maybe some of the theory should be re-read or read from another textbook).

Don't settle for 100% correct during practice.

peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
WalterBright · 15 days ago
> scrap pieces of paper

The exams I took were done in blue books where you were required to show your work.

peterfirefly · 14 days ago
You didn't have both? Scrap for trying out ideas, double-checking, making mistakes and then "blue books" for the stuff you hand in (with the answers + all the steps you choose to show).
peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
lazide · 15 days ago
But can’t remember if you ate today or not.
peterfirefly · 14 days ago
I have a really bad episodic memory and my sense of hunger stopped working normally in my teens. It's got nothing to do with anything else.
peterfirefly commented on Why are 38 percent of Stanford students saying they're disabled?   reason.com/2025/12/04/why... · Posted by u/delichon
jimnotgym · 14 days ago
Presumably the University could do their own assessment to see what is appropriate? Not just rely on a note?
peterfirefly · 14 days ago
The US is a ridiculously litigious country. It could end up being very, very expensive if they did their own assessments, even if they hired doctors to do so.

u/peterfirefly

KarmaCake day1133July 27, 2014View Original