HackerTrans
TopNewTrendsCommentsPastAskShowJobs

denzquix

no profile record

comments

denzquix
·2 anni fa·discuss
Well, it's not a completely outlandish scenario that the value of `init` might come from a variable that is sometimes at the start of the string and sometimes not, and a newcomer might expect `^` to only match when it is.

Don't get me wrong, it's certainly far more useful as it is, I'm glad it works this way.
denzquix
·2 anni fa·discuss
> In Lua it's only the start/end of the string

There's an additional caveat: if you use the optional "init" parameter to specify an offset into the string to start matching, the ^ anchor will match at that offset, which may or may not be what you expect.
denzquix
·3 anni fa·discuss
Although those functions operate on "binary strings", not Uint8Arrays, and there is no especially clean way that vanilla JS exposes to convert between the two that I am aware of.
denzquix
·4 anni fa·discuss
SBF's announcement of Chapter 11 proceedings today explicitly includes FTX US:

https://twitter.com/SBF_FTX/status/1591089317300293636
denzquix
·4 anni fa·discuss
From their own benchmarks it seems more like bzip3 is geared towards a different compression/speed trade-off than bzip2, rather than an unambiguous all-around improvement. Am I misreading it?