News for hackers. Stuff that matters.

anonymoushn

Re:Show HN: Actual Claude Tokenizer on Monday May 04, 2026 @06:53PM (#48016023)
I couldn't reproduce this behavior with Sonnet 4, and Sonnet 3.7 has been deprecated since I messed with this stuff. You can try tokenizing the string "<hello> </hello>"

I think the correct tokenization of the string will not have any tokens that contain mixed punctuation and letters, but the result of this approach does contain such claimed tokens.

Re:Show HN: Actual Claude Tokenizer on Monday May 04, 2026 @04:03PM (#48014208)
That's " 'd ".strip(), an english contraction suffix. it's 1 token, but using this echo approach you will be served the apostrophe and the subsequent letter for the first time in different steps.
Re:Show HN: Actual Claude Tokenizer on Tuesday April 21, 2026 @05:40AM (#47846625)
You can't reliably obtain correct token boundaries with this method. For example, "'d" is 1 token, but the API will return "d" stuck to the next token. Weirdly this seems to be specific to the letter "d". Similar stuff happens around "<". About all caps words, some words are in the vocab in all caps, such as MERCHANTABILITY.
Re:Claude Token Counter, now with model comparisons on Monday April 20, 2026 @01:28AM (#47830680)
their old tokenizer performed some space collapsing that allowed them to use the same token id for a word with and without the leading space (in cases where the context usually implies a space and one is not present, a "no space" symbol is used).
Re: on Monday April 20, 2026 @12:16AM (#47830340)
Is this the wrong URL? this seems to be a blog post from October 2025 called "Introducing: Local Browser AI"
How do you guys decide which settings should be configurable via environment variables but not settings files and which settings should be configurable via settings files but not environment variables?
> On of our product principles is to avoid changing settings on users' behalf

Ideally there wouldn't be silent changes that greatly reduce the utility of the user's session files until they set a newly introduced flag.

I happen to think this is just true in general, but another reason it might be true is that the experience the user has is identical to the experience they would have had if you first introduced the setting, defaulting it to the existing behavior, and then subsequently changed it on users' behalf.

Re:A Faster Alternative to Jq on Wednesday April 01, 2026 @11:18AM (#47602072)
Oh, can you post some benchmarks? I didn't know that parser throughput per core would change with the amount of data like that.
Re:A Faster Alternative to Jq on Friday March 27, 2026 @08:44AM (#47542039)
are those tools known for their fast json parsers?
ideally users could be banned for posting LLM outputs as if they were authored by humans https://www.pangram.com/history/49335ddf-118d-43e4-9340-a58a...
Re:LLM Structured Outputs Handbook on Saturday January 17, 2026 @01:41AM (#46655870)
Hello, the part about canonical filtering in https://openreview.net/pdf?id=DFybOGeGDS doesn't seem to try to account for pretokenization. For example, if you receive " 天天中彩票APP" in o200k, it means there has to be a lowercase letter within the span of letters, and while tokens like (4 spaces) may be pairwise compatible with tokens like "123" according to the BPE merge rules, the pretokenizer would split the span of spaces to give (3 spaces), " ", "123" instead. Are you aware of any work that does actual canonical generation for models with this kind of pretokenization regex?
Re:Ask HN: Cursor (LLM) Costs on Tuesday January 13, 2026 @08:09AM (#46600486)
use claude code if you want to use opus
Re:Show HN: Create LLM-optimized random identifiers on Monday January 12, 2026 @11:24AM (#46590619)
what does "logprobs look off" mean
Re:I/O is no longer the bottleneck? (2022) on Tuesday January 06, 2026 @07:39AM (#46511507)
Hello, a couple years ago I participated in a contest to count word frequencies and generate a sorted histogram. There's a cool post about it featuring a video discussing the tricks used by some participants. https://easyperf.net/blog/2022/05/28/Performance-analysis-an...

Some other participants said that they measured 0 difference in runtime between pshufb+eq and eqx3+orx2, but i think your problem has more classes of whitespace, and for the histogram problem, considerations about how to hash all the words in a chunk of the input dominate considerations about how to obtain the bitmasks of word-start or word-end positions.

requires fully deterministic inference, which turns out to be unusual, but for this sort of thing it's probably fine if you do really slow inference on cpu. cool idea.
please write your own posts from now on
Re: on Tuesday December 16, 2025 @05:29PM (#46295512)
i love stemming, i love searching for "anime" and getting "animal"
Re:SSE sucks for transporting LLM tokens on Saturday December 13, 2025 @02:05PM (#46257004)
so sad to hear that about Streaming SIMD Extensions
Re:Leaving Intel on Friday December 05, 2025 @10:46PM (#46170481)
This is true economically but in reality if you have much larger cost savings than that for sale then these companies mostly say "we would be happy to buy that for $0 while we pay you a million a year to move to the united states"
If they had, they would know that it involves many weeks of arguing with support, of course
Re:A/B Tests over Evals on Tuesday November 18, 2025 @08:29AM (#45965594)
The framing in this post is really weird. Automated evals can be much more informative than unit tests because the results can be much more fine grained. A/B testing in production is not suitable for determining whether all of one's internal experiments are successful or not.

I don't doubt that Raindrop's product is worthwhile to model vendors, but the post seems like its audience is C suite folks who have no clue how anything works. Do their most important customers even have any of these?

Re:A Few Words About Async on Sunday November 02, 2025 @03:19AM (#45788697)
it is frustrating that the post opens by describing latency and then saying that it is called throughput.
Re:Zig's New Async I/O [video] on Friday October 31, 2025 @01:06AM (#45768608)
fwiw i thought the previous async based on whole-program analysis and transformation to stackless coroutines was pretty sweet, and similar sorts of features ship in rust and C++ as well
Re:Toon – Token Oriented Object Notation on Tuesday October 28, 2025 @03:48AM (#45730129)
Arrays of length 0 also exist in json?
Re:Toon – Token Oriented Object Notation on Sunday October 26, 2025 @09:10PM (#45716412)
Hello, it's probably better to add leading spaces before all of the words rather than none of them
Re:Reasoning Is Not Model Improvement on Thursday October 23, 2025 @04:05PM (#45686359)
I don't really know what you mean by "preserve semantic meaning at the word level." The significant misunderstanding about tokenization present elsewhere in the article is concerning, given that the proposed path forward is to do with replacing tokenization somehow.
Re:From Text to Token: How Tokenization Pipelines Work on Wednesday October 15, 2025 @02:03PM (#45596321)
hello. it would be great because it celebrates the total destruction of the search capabilities of the tool, just like the article does.
Re:Zig builds are getting faster on Saturday October 04, 2025 @03:05AM (#45471224)
well, most of the users are aarch64
Re:Faster Argmin on Floats on Saturday September 20, 2025 @03:05AM (#45311141)
you can have some vector registers n_acc, ns, idx_acc, idxs, then you can do

  // (initialize ns and idxs by reading from the array
  //  and adding the apropriate constant to the old value of idxs.)
  n_acc = min(n_acc, ns);
  const is_new_min = eq(n_acc, ns);
  idx_acc = blend(idx_acc, idxs, is_new_min);
Edit: I wrote this with min, eq, blend but you can actually use cmpgt, min, blend to avoid having a dependency chain through all three instructions. I am just used to using min, eq, blend because of working on unsigned values that don't have cmpgt

you can consult the list of toys here: https://www.intel.com/content/www/us/en/docs/intrinsics-guid...

Older »