HackerTrans
TopNewTrendsCommentsPastAskShowJobs

njuw

no profile record

Submissions

Go 1.24.0 Is Released

groups.google.com
5 points·by njuw·в прошлом году·0 comments

OCPP 2.1 is now available

openchargealliance.org
2 points·by njuw·в прошлом году·0 comments

OCPP Achieves International Standard Status

openchargealliance.org
2 points·by njuw·2 года назад·0 comments

What's New in Apache Kafka 3.0.0

blogs.apache.org
45 points·by njuw·5 лет назад·0 comments

Apache Kafka 3.0.0 Released

downloads.apache.org
3 points·by njuw·5 лет назад·0 comments

comments

njuw
·7 месяцев назад·discuss
> 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...
njuw
·2 года назад·discuss
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
njuw
·3 года назад·discuss
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.
njuw
·5 лет назад·discuss
> 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
njuw
·6 лет назад·discuss
In PHP grapheme_strlen achieves what you're describing: https://3v4l.org/HPOb3
njuw
·6 лет назад·discuss
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...