Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rictic
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
1.
▲
by
rictic
1mo ago
Yeah, it's my favorite bit of C lore, a program that reads two integers, adds them, and reports the sum isn't well defined.
2.
▲
by
rictic
2mo ago
I'd be impressed with a touchpad and OS that can go from an actuation to a userspace process receiving a click event in 1.2ms. I'd expect something more like 10x that. My understanding is that most hardware samples between 90-130H
3.
▲
by
rictic
2mo ago
The honest way to say this is that Fable is not useful for bio-related work. The author is working on processing RNA sequences and similar biology tasks, and Fable's classifier has a hair trigger on those tasks.
4.
▲
by
rictic
2mo ago
Yes! Very exciting to see this. Bloom's Two Sigma Opportunity suggests that there's another SD improvement available: https://en.wikipedia.org/wiki/Bloom%27s_2_sigma_problem
5.
▲
by
rictic
4mo ago
The author has written about stacked sigmoids in the past, e.g. in https://slatestarcodex.com/2018/10/15/is-science-slowing-dow... I suspect that he started down the path of considering them more deeply here
6.
▲
The Kernel Panicked (Apologies to the Front Fell Off)
(twitter.com)
2 points
by
rictic
5mo ago
|
0 comments
7.
▲
by
rictic
8mo ago
Yep. What nix adds is a declarative and reproducible way to build customized OS images to boot into.
8.
▲
by
rictic
9mo ago
Inflation adjusted incomes are up in the US across the board. The affordability problem is largely the price of housing because it's illegal to build.
9.
▲
by
rictic
9mo ago
Agree, for modern React with hooks. A React component looks like a normal function, only you can't call it. Only React can call it, in order to set up its hooks state.
10.
▲
by
rictic
9mo ago
You can disable it for your site using a trusted types content security policy.
11.
▲
by
rictic
10mo ago
Missing from the article: how to communicate progress and failure to the user? This is much more complicated with task queues. Doable still! But often skipped, because it's tempting to imagine that the backend will just handle the fail
12.
▲
by
rictic
11mo ago
A click handler can be doing a lot of things that aren't much like a button, like letting you close a modal if you click outside of it, capturing mouse events for a game, or passively recording events for analytics. All that a click ha
13.
▲
by
rictic
11mo ago
A somewhat related spec, at the page level rather than the module level, are Content Security Policies, which let a page disable various unsafe browser features for a page: https://developer.mozilla.org/en-US/docs/
14.
▲
by
rictic
11mo ago
It is also painful when your app gets hacked, accounts get taken over and abused, user data is compromised, and so on. For serious sites it's worth the pain to turn on security enforcement features.
15.
▲
by
rictic
11mo ago
For anyone else following along, see https://github.com/rictic/jsonriver/issues/39
16.
▲
by
rictic
11mo ago
So, they have a custom decode function that extracts info from unprinted characters which they then pass to `eval`. This article is trying to make this seem way fancier than it is. Maybe GitHub or `git diff` don't give a sense of how m
17.
▲
by
rictic
11mo ago
Oh this isn't about the public API, it's about the internal logic of the parser.
18.
▲
by
rictic
11mo ago
jsonriver's invariants do give you enough info to notice which values are and aren't complete. They also mean that you can mutate the objects and arrays it returns to drop data that you don't care about. There might be room f
19.
▲
by
rictic
11mo ago
Only for numbers! Strings, objects, arrays, true, false, and null all have an unambiguous ending.
20.
▲
by
rictic
11mo ago
I've just published v1.0.1. It's about 2x faster, and should have no other observable changes. The speedup is mainly from avoiding allocation and string slicing as much as possible, plus an internal refactor to bind the parser and
21.
▲
by
rictic
11mo ago
Good feedback! Just updated the README with the following: > The parse function also matches JSON.parse's behavior for invalid input. If the input stream cannot be parsed as the start of a valid JSON document, then parsing halts and
22.
▲
by
rictic
11mo ago
Try import maps, something like: { "imports": { "express": "/usr/share/nodejs/express/index.js", "another-module": "/usr/share/
23.
▲
by
rictic
11mo ago
Bare module specifiers aren't just for Node! Deno and browsers support import maps e.g. The library doesn't use any APIs beyond those in the JS standard, so I'm pretty confident it will work everywhere, but happy to publish i
24.
▲
by
rictic
11mo ago
Do any LLMs support constrained generation of newline delimited json? Or have you found that they're generally reliable enough that you don't need to do constrained sampling?
25.
▲
by
rictic
11mo ago
Yeah, getting numbers correct was one of the trickier wrinkles in the project. https://github.com/rictic/jsonriver/blob/5515be978bb564e9bdc...
26.
▲
by
rictic
11mo ago
Hi HN! Didn't expect this to be on the front page today! I should really release all the optimizations that've been landing lately, the version on github is about twice as fast as what's released on npm. I wrote it when I was
27.
▲
by
rictic
11mo ago
Is true. I wrote a ton of tests, testing just about everything I can think of, including using a reverse parser I wrote to exhaustively generate the simplest 65k json values, ensuring that it succeeds with the same values and fails on the s
28.
▲
by
rictic
11mo ago
SAX is often better if you don't need the full final result, especially if you can throw away most of the data after it's been processed. The nice part about this API is that you just get a DeepPartial<FinalResult> so the co
29.
▲
by
rictic
11mo ago
Funnily enough, this was one of the first users of jsonriver at google. A team needed to parse more JSON than most JS VMs will allow you to fit into a single string, so they had no choice but to use a streaming parser.
30.
▲
by
rictic
11mo ago
Cumulative is a good term too. I come from the browser world where it's typically called incremental parsing, e.g. when web browsers parse and render HTML as it streams in over the wire. I was doing the same thing with JSON from LLMs.
More ›