News for hackers. Stuff that matters.

Rendello

Re:Domain hacks with unusual Unicode characters (2018) on Sunday November 01, 2026 @06:15PM (#50330901)
You may be interested in Unicode Technical Standard #46: Unicode IDNA Compatibility Processing:

https://unicode.org/reports/tr46/

Re:Domain hacks with unusual Unicode characters (2018) on Sunday November 01, 2026 @02:21PM (#50328757)
Lowercasing is not guaranteed to be stable between Unicode versions. If you're looking for stable string matching, use "case folding" instead. Instead of:

    lower(a) == lower(b)             // or,
    lower(needle) in lower(haystack)
Use:

    casefold(a) == casefold(b)             // or,
    casefold(needle) in casefold(haystack)
It's equivalent to lowercasing in almost all cases, but with a stability constraint between across Unicode editions. As per the Unicode stability policy [1]:

> Case folding is not the same as lowercasing, and a case-folded string is not necessarily lowercase. In particular, as of Unicode 8.0, Cherokee has become a bicameral script with the introduction of lowercase Cherokee letters, but Cherokee text case folds to the existing uppercase letters. This case folding behavior for Cherokee text is precisely to guarantee continued case folding stability.

Casing in Unicode can be tricky. The case mapping FAQ [2] is a good place to start. If you need more information, start scanning through the Core Spec and following the case-related links [3].

1. https://www.unicode.org/policies/stability_policy.html#:~:te...

2. https://www.unicode.org/faq/casemap_charprop.html#casemap

3. https://www.unicode.org/versions/Unicode17.0.0/core-spec/cha...

Re:Domain hacks with unusual Unicode characters (2018) on Sunday November 01, 2026 @02:07PM (#50328633)
I use it for sites like Facebook where I want to type :) without it changing to the terrible `U+1F642 SLIGHTLY SMILING FACE` [1]. I wouldn't really mind if it were the `U+1F60A SMILING FACE WITH SMILING EYES` [2], but the first one is so laughably terrible, as if I'd really want to send an emoji to communicate a disingenuous, pained smile as a default. Some platforms let you backslash-escape sequences so they don't get turned to emoji, like \:), but for Facebook and the like, putting a ZWS in between the letters stops the conversion.

Though if your emoji is at the end of a line, it'll potentially break your emoji between the two lines. since That's what a ZWS is for, after all.

1. https://util.unicode.org/UnicodeJsps/character.jsp?a=%F0%9F%...

2. https://util.unicode.org/UnicodeJsps/character.jsp?a=1F60A&B...

Re:I post trained a model on Demoscenes on Saturday October 31, 2026 @02:55PM (#50318926)
Every time I see a person leading a model to specialize in a uniquely human endeavour, I think of the last lines of this stanza from Bob Dylan's It's Alright, Ma (I'm Only Bleeding):

    Disillusioned words like bullets bark
    As human gods aim for their mark
    Make everything from toy guns that spark
    To flesh-colored Christs that glow in the dark
    It’s easy to see without looking too far
    That not much is really sacred
Re:Vegemite is not a human right on Monday October 26, 2026 @03:43PM (#50249830)
Yeast is omnipresent, you can brew or brake bread with the yeast on your skin (as seen here [1]). The other part is getting a container and sugars to ferment, see /r/prisonhooch [2] for some creative and horrifying concoctions.

1. https://www.youtube.com/watch?v=PvrJu9dLmtA

2. https://www.reddit.com/r/prisonhooch/

The Wikipedia entry's section in the long s's decline is interesting. Once it started falling out of use, it fell hard and fast. I guess everyone was fed up.

https://en.wikipedia.org/wiki/Long_s#Decline

Re:Demystifying Tufte's data-ink ratio – Tufte's Razor on Monday October 05, 2026 @03:27PM (#49969326)
Italics are also a good option. They're annoying to read, but I think that actually helps when you're parodying that type of prose.
Re:Giving friends custom text buzzes based on Morse code on Saturday October 03, 2026 @12:56PM (#49945881)
This reminded me of something semi-related.

As a kid, I thought "SOS" officially stood for "save our souls", later learning that this was only a mnemonic. It was only in adulthood that I learned "SOS" itself was a mnemonic, since:

"SOS" (literal) = ... / --- / ...

S̅O̅S̅ (distress code) = ...---...

Where "/" is a longer gap. S̅O̅S̅ is a "prosign", and thus a symbol in its own right. From Wikipedia [1]:

> Although the well-known calling prosign for emergency messages SOS is always represented by the three letters "SOS", it could just as well be written VZE ( ...- + --.. + . ), VGI ( ...- + --. + .. ), or even 3B ( ...-- + -... ); all of these render the same single code ...---...

https://en.wikipedia.org/wiki/Prosigns_for_Morse_code#Notati...

(Which is actually similar to how a lot of compression schemes work)

Re:Giving friends custom text buzzes based on Morse code on Saturday October 03, 2026 @12:40PM (#49945733)
The reduction-and-pattern-matching (a kind of bloom filter, I suppose) reminds me of whistled Spanish:

https://en.wikipedia.org/wiki/Silbo_Gomero

Re:What is going on with ceiling fans on Saturday October 03, 2026 @12:09PM (#49945467)
> Memphis Group primary school aesthetic

I had to look that up and found some pretty cool articles. I like that the vapourwave trend from the 2010s created a lot of focus on the different aesthetics of software and everyday things on the internet.

The latter two links are from a dedicated "aesthetics wiki". I tend to like the detailed user-created content on fandom.com wikis, but I loathe the site itself.

https://en.wikipedia.org/wiki/Memphis_Group

https://aesthetics.fandom.com/wiki/Memphis_Design

https://aesthetics.fandom.com/wiki/Memphis_Jr.

Re:Ask HN: What're You Reading? on Wednesday September 30, 2026 @11:32AM (#49910310)
No problem, I've been talking about her work to everyone I know in real life.

On Youtube, you'll probably come across a lot of her podcast appearances like Dwarkesh Patel's (which is how I first came across her), but she also just started her own podcast 3 weeks ago that might not pop up in the results yet [1]. The latest episode [2] where she's talking about the church bells of Florence, which still ring today, was so cool to listen to. The way their schedule carried (and carries) the rhythm of life, the blood of tradition, and when something wasn't right in the city, the call-to-action (defence or riot, for example). So neat, it made me want to live there for a few years (something she did during her studies, in a tower that the medieval Florentines had ripped the upper levels off so noblemen couldn't garrison it and burn the city around them).

1. https://www.youtube.com/@Beforecast

2. https://www.youtube.com/watch?v=ruDc0GynjSI

Re:Ask HN: What're You Reading? on Tuesday September 29, 2026 @05:58PM (#49901285)
I am not, looking it up it seems to be a Boston rationalist meetup, if that's the what you're referring to. I'm not in the US or even very rational!
Re:Ask HN: What're You Reading? on Tuesday September 29, 2026 @03:28PM (#49899057)
I'm considering checking it out despite not really being a science-fiction reader. Though I've been reading this terrifying slow-burn about superintelligent autonomous swarms breaking containment and stopping at nothing to complete the impossible tasks given by their feckless masters.
Re:Ask HN: What're You Reading? on Tuesday September 29, 2026 @11:47AM (#49895370)
Inventing the Renaissance by Ada Palmer [1].

I don't tend to be great at finishing (or starting) books, and this is a big one. I've also never had any interest in Medieval or Renaissance history, for me it's been a black hole between the fall of Rome and the modern age.

But recently I saw some Youtube videos of Ada, and her enthusiasm is totally infectious [2]. She's fun and paints these vivid pictures of Florence and renaissance Europe that are incredible, absurd, and relatable, which makes sense since given she's also an accomplished sci-fi writer. She also reminds me of one of my favourite high school teachers. So I ordered the book right away.

The book is in the same tone as her videos, so it won't be for everyone, but I've really been enjoying it and now I'm fascinated by Renaissance Italy, Machiavelli, merchant republics, etc.

1. https://press.uchicago.edu/ucp/books/book/chicago/I/bo246135...

2. (My favourite example) https://www.youtube.com/watch?v=68p3jVQQdFk

Re:You Are No Longer Invited to Dinner on Tuesday September 29, 2026 @10:28AM (#49893922)
A few years ago I came across a HN comment by a guy who wrote "The 2-Hour Cocktail Party". I read his comments and then got the book, and it seemed fantastic, smoothing over all the painful issues that happen when you host.

I really wanted to try it out, but moved from the city just after reading it and haven't yet.

https://news.ycombinator.com/item?id=32879851

Re:AMD's random number generator can't generate a 0? on Wednesday September 23, 2026 @09:22PM (#49825007)
You know, in BC/AD (or BCE/CE), there is no year zero, so in that one case zero is sort of undefined ;)

https://en.wikipedia.org/wiki/Year_zero

Re:AMD's random number generator can't generate a 0? on Wednesday September 23, 2026 @03:23PM (#49821191)
Another random boundary case: SQLite's RANDOM() won't generate the minimum i64 value, because:

    i64 MIN: −2⁶³
    i64 MAX:  2⁶³-1
Since RANDOM() is used with ABS(), that floor value is lopped off. (Can you imagine if it weren't, and you got a bug 1 in every 2⁶⁴ calls?)

https://sqlite.org/lang_corefunc.html#random

https://sqlite.org/forum/forumpost/4c0b09747a670652

Re:George Lucas Returns to Earth, Bearing Gifts on Tuesday September 22, 2026 @05:06PM (#49808110)
He pops up in the background of a random documentary:

https://www.youtube.com/watch?v=OC9RI8_QYmw

Re:Markdown in /src on Tuesday September 22, 2026 @04:44PM (#49807808)
In terms of a documentation artifact, I love what `cargo doc` generates, but when I'm inside a source file, any plaintext solution seems so limiting.

I actually miss what I had when I was playing around in TempleOS. All text in the OS is rich (you can toggle between the markup and the standard WYSIWYG view), so comments could have formatting, colours, images (bitmap or vector, great for diagrams), hell, even (aggressively spinning) 3D models.

The thing I used most was the collapsible sections, think <details> and <summary> in HTML. Although I appreciate plain text and would hate WYSIWYG rich text in my serious source code (not to mention binary data appended to the end of the source file for images and models), I can't help but pine for those features. Being able to just draw a real diagram and being able to edit it later in seconds as opposed to making some horrid ASCII art was awesome.

Re:Solitaire Alone Together on Tuesday September 22, 2026 @04:09PM (#49807381)
I tried the online one but I'm not too experienced with cards so I just got destroyed. Another fun, chaotic one that I used to play in person a lot is Egyptian Ratscrew, a game where you have to slap the pile first if certain criteria are met. I don't think I've won a single match of that, I'm usually still processing what card was put down long after someone already slapped the pile. I had fun regardless. Make sure everyone removes their rings!

1. https://en.wikipedia.org/wiki/Egyptian_Ratscrew

2. https://www.youtube.com/watch?v=I2UMv5Jk8JQ

Re:Paper Models of Polyhedra on Tuesday September 22, 2026 @01:39PM (#49805185)
I'm not deep into geometry, but one of my favourite web apps / UI designs is the Polyhedra Viewer by Nat Alison [1][2], which shows relations, properties, and transformations in a very natural way.

Tom7's video on polyhedra properties [3] is also great, and taught me about the best Unicode characters (sic) [4]:

    ︘ U+FE18 Presentation Form For Vertical Right White Lenticular Brakcet
1. https://polyhedra.tessera.li/

2. https://aperiodical.com/2018/09/polyhedra-viewer-meet-nat-al...

3. https://www.youtube.com/watch?v=QH4MviUE0_s

4. https://www.compart.com/en/unicode/U+FE18

Re:Solitaire Alone Together on Tuesday September 22, 2026 @01:12PM (#49804676)
Beautiful. I've always loved the aesthetic of Windows Solitaire [a] but felt strangely alone when playing it (figures). I'm reminded of a non-solitary solitaire, Nerts Online:

https://www.zachtronics.com/nerts-online/

a. And this version too, the backs of the cards are very pretty.

Re:UTF-8000: Unlimited UTF-8 on Sunday September 20, 2026 @02:02PM (#49778261)
Or UTF-∞
Re:Ask HN: How do you interview devs in a post-AI world? on Saturday September 19, 2026 @10:06PM (#49771903)
How many NFKC_Casefold('R')s are in NFKC_Casefold("strawberry")?
Re:English: A vs. An on Saturday September 19, 2026 @09:02PM (#49771580)
I didn't know about "an historic" until I heard it from American journalists. They did pronounce the 'h' and it did indeed sound very wrong. I believe I first heard it from Rachel Maddow. I can't find any clips, but there are a bunch of transcripts from her show if you search up:

> Rachel Maddow "an historic day"

For example:

- https://www.nbcnews.com/id/wbna47356492

- https://www.ms.now/transcript/2013-11-21-msna738766

Re:English: A vs. An on Saturday September 19, 2026 @08:49PM (#49771511)
Starting earlier today, I've been using Firefox's local translation feature to auto-translate every page to Italian (to learn). I just had to remove English from my language list and check an option to translate English to Italian.

Firefox's local translation is pretty decent but not amazing. It did render this article's title as "Italiano: A vs. An", which I found pretty funny.

Re:Roman Timekeeping on Saturday September 19, 2026 @01:48PM (#49768654)
Japan had some pretty interesting traditions in the Edo period:

https://en.wikipedia.org/wiki/Sangaku

Re:Roman Timekeeping on Saturday September 19, 2026 @01:29PM (#49768481)
I've always been interested by the κλεψύδρα, water clock. Searching that term now brings up hourglasses, which is a connection I've surprisingly never made.

https://en.wikipedia.org/wiki/Water_clock

Re:Chop Up Your Books on Tuesday September 15, 2026 @08:35PM (#49720710)
> My natural bent is strongly focused on reading and words.

I wonder what mine is. I feel like I don't take to reading in a foreign language too easily (though I have trouble focusing on reading generally), but I definitely struggle mimicking as well. Some times I really wonder how I learned French at all, I got to my current level of ability quite quickly, though I'm sorely lacking a lot of fundamentals both in writing and in speech.

I agree though, you can see a big difference in language learners on Youtube between those who practice speech vs those who mostly read. For example, Alexander Argüelles [1] is a famous polyglot who's written quite a few foreign-language grammar books, but the few videos of him speaking show his heavy accent.

For Korean, I wouldn't bother with Latin letters. Hangul is simple:

> A wise man can acquaint himself with them before the morning is over; even a stupid man can learn them in the space of ten days.

– King Sejong on (what would become known as) Hangul

Reading in Korean would have been quite difficult historically, when it was mixed with Chinese characters à la Japanese [2], eg.

> 悠久한 歷史와 傳統에 빛나는 우리 大韓國民은 3⸱1 運動으로 建立된 大韓民國臨時政府의 法統과 不義에 抗拒한 4⸱19 民主理念을 繼承하고, 祖國의 民主改革과 平和的統一의 使命에 立脚하여 正義⸱人道와 同胞愛로써 民族의 團結을 鞏固히 하고, 모든 社會的弊習과 不義를 打破하며, 自律과 調和를 바탕으로 自由民主的基本秩序를 더욱 確固히 하여 政治⸱經濟⸱社會

1. https://en.wikipedia.org/wiki/Alexander_Arg%C3%BCelles

2. https://en.wikipedia.org/wiki/Korean_mixed_script

Older »