Better HN
topnewbestaskshowjobs
Log inSign up

njuw

58 karma · joined May 21, 2020 (6y ago) · 11 submissions

Submissions

comment 11mo ago · link · parent

> 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...

2.

Go 1.24.0 Is Released(groups.google.com ↗)

5 points · by njuw · 1y ago · discuss

3.

OCPP 2.1 is now available(openchargealliance.org ↗)

2 points · by njuw · 1y ago · discuss

4.

OCPP Achieves International Standard Status(openchargealliance.org ↗)

2 points · by njuw · 2y ago · discuss

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

7.

What's New in Apache Kafka 3.0.0(blogs.apache.org ↗)

45 points · by njuw · 5y ago · discuss

8.

Apache Kafka 3.0.0 Released(downloads.apache.org ↗)

3 points · by njuw · 5y ago · discuss

comment 5y ago · link · parent

> 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

comment 5y ago · link · parent

In PHP grapheme_strlen achieves what you're describing: https://3v4l.org/HPOb3

comment 6y ago · link · parent

Wikipedia was moved back to PHP:

- https://phabricator.wikimedia.org/T176370

- https://phabricator.wikimedia.org/T229792

- https://launchdarkly.com/blog/how-the-wikimedia-foundation-s...