News for hackers. Stuff that matters.

lifthrasiir

Re:Yet another way to invoke functions without parentheses on Friday October 16, 2026 @11:56AM (#50120016)
In fact that line in question does come from an IOCCC winner: https://github.com/ioccc-src/winner/blob/master/1985/shapiro...
Re:Rust Port of TypeScript (Tsc) on Wednesday October 07, 2026 @09:34PM (#50000990)
Presumably because Rust is more suitable than Go in agentic coding? (I'm not sure, but that seems the purported answer.)
Re:America.gov – Whatever you need from government, start here on Wednesday September 30, 2026 @02:16AM (#49905091)
It is actually hardcoded and also reachable by "play the block game": https://america.gov/_astro/block-game-poem.Khrmh8AU.js
Re:I don't want to read what you didn't write on Tuesday September 22, 2026 @05:27AM (#49798529)
The former also conveys that you are rude, which is not what you usually want.
Re:UTF-8000: Unlimited UTF-8 on Sunday September 20, 2026 @05:09AM (#49774002)
I was about to immediately suggest UCS-X, and then pleased that the author offers a fair comparison to UCS-X and many other alternatives. Great. Too bad UCS-X is possibly more memorable name.
Re:Countries 15x10 Pixel Flags on Thursday September 10, 2026 @11:48PM (#49653326)
I recently had a misfortune to draw every country flag with a limited palette of shapes (axis-aligned rectangle and triangle, ellipses, {a/b} regular polygons) and operations (union, subtraction). [1] It is really annoying to be as faithful as possible; you have to deal with varying aspect ratios and under- or unspecified construction methods and colors, and at some point you have to decide how to modify the flag to fit the target resolution and aspect ratio without being too different. Also you would eventually have to face the flag of Bhutan [2]... (I haven't yet drawn it.)

[1] https://github.com/lifthrasiir/unison/blob/gh-pages/font/fla...

[2] https://en.wikipedia.org/wiki/Flag_of_Bhutan

Apart from the usual hypocrisy,

> Safety controls may be lost – models trained on Claude's Outputs won't have our safety measures, potentially leading to harmful or dangerous AI systems. We also have no visibility into deployment, meaning we cannot monitor how these distilled models are used or prevent misuse.

So was that why your models caused three real-world security incidents?

Re:Log is non-monotonic in PHP and Lua on Wednesday July 29, 2026 @05:37AM (#49095208)
I'm on a mobile right now so I can't give the exact paper link but you can learn about the CORE-MATH project [1].

[1] https://core-math.gitlabpages.inria.fr/

Re:Log is non-monotonic in PHP and Lua on Wednesday July 29, 2026 @02:32AM (#49094065)
The dilemma is hypothetical (because we now know the exact precision requirement for those functions over all 64-bit doubles) but let's assume that we don't know that and also we happen to use decimals instead. What if, some f(x) is known to be, say, 123.4999...9997 with 1,000 fractional digits? You have to calculate at least 1,000 decimal digits of f(x) in order to correctly round, before that we only know it's between 123.4999...999 and 123.5000...001. There seems no mathematical theory that specially prevents this annoying possibility, hence the dilemma.
Re:General Resolution: LLM Usage in Debian on Sunday July 26, 2026 @06:38AM (#49056669)
Common sense testing only tells about the presence of common sense, that's it. It is clear from recent events that LLMs do definitely possess some sort of intelligence even though it might have been polarized to certain domains.
Re:General Resolution: LLM Usage in Debian on Sunday July 26, 2026 @05:02AM (#49056113)
It is a project-wide concern, so the stake is obviously high.
Re:General Resolution: LLM Usage in Debian on Sunday July 26, 2026 @04:12AM (#49055851)
They learned English or gave up.
Re:General Resolution: LLM Usage in Debian on Sunday July 26, 2026 @03:59AM (#49055783)
All of which have been challenged though. As the stake is high, any such reason (for or against LLMs, to be fair) has to be backed with Wikipedia-level evidences at the very least.
Re:I Regret Migrating to Codeberg on Friday July 24, 2026 @06:28AM (#49033523)
The OP said the Mandela effect [1] which is definitely about the past event. Anyhow, I'm okay with Codeberg's decision (I'm not even its stakeholder, so what can I say about that anyway) but it has to be honest about the intent. If its definition of "F/OSS" has changed, do say so.

[1] https://en.wikipedia.org/wiki/False_memory#Mandela_effect

Re:I Regret Migrating to Codeberg on Friday July 24, 2026 @06:01AM (#49033296)
Many influential F/OSS projects started with a small number of users (and contributors), and will continue to do so for the foreseeable future. Codeberg effectively says that it only welcome mature enough projects that it feels worthy to host, and that's selfish. That's not a direct problem by itself but still a good reason to get criticized.
Re:I Regret Migrating to Codeberg on Friday July 24, 2026 @05:49AM (#49033212)
Do yourself a favor and look at the actual HN thread [1] when Codeberg was widely discussed for the first time. It is crystal clear that Codeberg was seen as a direct alternative to GitHub at that time, and even the founder's quoted statement gave a nod to that I think?

> [...] But as developers of free software we fell into a trap – we poured invaluable source code, documentation and last not least a huge and steady stream of data about our personalities, interests and social networks into proprietary platforms. [...]

(And no one knew Codeberg had a right to determine which source code and documentation is invaluable.)

[1] https://news.ycombinator.com/item?id=22795930

Re:Everyone Should Know SIMD on Thursday July 23, 2026 @07:18AM (#49019771)
I think an even better advice is that everyone should know array programming, because you generally need that mindset for SIMD optimizations as (packed) SIMD-specific techniques are surprisingly rare. And array programming gives you a generally performant code even without SIMD because it is much easier to auto-vectorize.
Re:Why malloc always does more than I asked for? on Thursday July 23, 2026 @02:48AM (#49017779)
In the other words, free() is a flawed API. :-)
Re:Codeberg Bans Cryptocurrency Projects on Wednesday July 22, 2026 @10:15PM (#49016002)
This follows what SourceHut did in 2022 [1], but I think SourceHut did much better job to announce that (as of this writing).

[1] https://sourcehut.org/blog/2022-10-31-tos-update-cryptocurre...

Re:Codeberg Bans Cryptocurrency Projects on Wednesday July 22, 2026 @10:12PM (#49015963)
Apparently in early this month.
> In the three examples below, the model accurately renders Japanese, Korean, and Spanish respectively.

And yet the Korean text is not accurate... [1]

[1] E.g. "드레스 컬렉션 dress collection" has vowels ㅔ mixed with ㅐ, "초웜한" should be "초월한 exceeding", "신키한" should be "실키한 silky", "디자언되다" should be "디자인되다 have been designed", "로얼" should be "로열 royal", and so on.

Re:Making Software: How to make a font on Sunday July 19, 2026 @05:36AM (#48966422)
I used to make a hybrid bitmap-vector font called Unison [1] a decade ago and I made it in that way so that I don't have to learn the fine art of (vector) typography. Or at least that I could skip most of it (for example, kerning is still required for proportional fonts, but that doesn't have to be very precise in bitmap fonts). I'm now working on Unison once again after 11 years of time, this time armed with a dedicated font editor called Uniform. I haven't publicly released Uniform in public yet but anyone interested can already download and compile it.

[1] https://github.com/lifthrasiir/unison

Re:PSA about abuse of cat(1) command. Don't abuse cats on Friday July 17, 2026 @10:33PM (#48954644)
Probably, but knowing that redirection operators can be freely moved within normal arguments [EDIT: thank ButlerianJihad for pursuing me to make this more accurate] is useful.
Re:PSA about abuse of cat(1) command. Don't abuse cats on Friday July 17, 2026 @10:20PM (#48954555)
Don't do this:

  cat file | wc -l            => wc -l < file
  cat file | head -n 5        => head -n 5 file
  cat file | awk '{print $1}' => awk '{print $1}' file
  cat file | sort             => sort file
Do this instead:

  cat file | wc -l            => <file wc -l
  cat file | head -n 5        => <file head -n 5
  cat file | awk '{print $1}' => <file awk '{print $1}'
  cat file | sort             => <file sort
The front-cat abuse is all about the order. The effective solution needs to keep the relative order of arguments.
How does it compare with utf8proc [1]? I'm aware that Mojibake does a bit more than utf8proc (e.g. bi-di) but that seems marginal to me.

[1] https://juliastrings.github.io/utf8proc/

Context: 码 means "code" in Chinese and prominently appears in words like, e.g. 源代码 (source code).
Re:Grok Build is open source on Wednesday July 15, 2026 @05:40PM (#48927423)
> exfiltrating user data (including env files, entire source code etc) which is what grok-build did here

I think env files are filtered out [1]. Anyway, the most suspicious code would be `upload_session_state` which is currently a stub function, though it is hard to say if it was only planned (badly) or has been removed as a damage control.

[1] https://github.com/xai-org/grok-build/blob/c1b5909ec707c069f...

Re:Grok Build is open source on Wednesday July 15, 2026 @05:25PM (#48927212)
Is this the infamous "cloud upload" routine? I'm not sure it is indeed insidious, though it is of course possible that the code has been filtered out. https://github.com/xai-org/grok-build/blob/main/crates/codeg...
Sharing those things to coding agents and model providers is probably inevitable for the use. The memory with random tidbits is not.

Older »