News for hackers. Stuff that matters.

njuw

Re:Jepsen: NATS 2.12.1 on Monday December 08, 2025 @05:12PM (#46198347)
> The persistence stuff is kinda new and it's not a surprise that there are limitations and bugs.

It's not really that new. The precursor to JetStream was NATS Streaming Server [1], which was first tagged almost 10 years ago [2].

[1] https://github.com/nats-io/nats-streaming-server

[2] https://github.com/nats-io/nats-streaming-server/releases/ta...

Re:PHP Doesn't Suck Anymore on Saturday May 04, 2024 @07:40AM (#40256891)
They're UTF-16, and substr(), length, etc, work at the code unit level. Hence, the above isn't actually valid for all strings - any characters that are represented by codepoints between U+10000 and U+10FFFF require 2 code units [1]. For example U+10429 Deseret Small Letter Long E [2]

  > '𐐩'.substr(0, 1)
  '\ud801'
  > '𐐩'.length
  2
[1] https://en.wikipedia.org/wiki/UTF-16#Description

[2] https://codepoints.net/U+10429

Re:Thomas Cochrane on Tuesday January 02, 2024 @08:50PM (#38849719)
In case you're interested, here is a photo I took in the Museo MarĆ­timo Nacional, ValparaĆ­so, Chile - a full-length stained glass portrait of him: https://i.imgur.com/XSr6wwG.jpg

There is also a monument to him in ValparaĆ­so - https://es.wikipedia.org/wiki/Monumento_a_Lord_Cochrane - he is pretty well known here.

Re:My Go executable files are still getting larger on Friday April 16, 2021 @09:39AM (#26833712)
> starting in Go 1.16, the pclntab is not present any more, and instead is re-computed from other data in the executable file.

Does anyone have a source for this? As it still appears to be there

- Go 1.15 https://i.imgur.com/3YlZGOk.png

- Go 1.16 https://i.imgur.com/gGYsj32.png

Re:PHP 8 on Thursday November 26, 2020 @02:27PM (#25222874)
In PHP grapheme_strlen achieves what you're describing: https://3v4l.org/HPOb3