Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rictic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
rictic
1y ago
It mutates the existing value and yields it again (unless the toplevel value is a string, because strings are immutable in JS).
32.
▲
by
rictic
1y ago
Yeah, another fun one is string enums. Could tread "DeleteIfEmpty" as "Delete".
33.
▲
by
rictic
1y ago
Numbers, booleans, and nulls are atomic with jsonriver, you get them all at once only when they're complete. For my use case I wanted streaming parse of strings, I was rendering JSON produced by an LLM, for incrementally rendering a UI
34.
▲
by
rictic
1y ago
If you send a task off to a work queue in another thread, and then do some local processing on it, you can't usually use a single Arena, unless the work queue itself is short lived.
35.
▲
by
rictic
1y ago
Nope. `(() => {let bar; return bar})()` is `undefined`
36.
▲
by
rictic
1y ago
I love spreadsheets for casual stuff, but my concerns with using them for anything heavy duty are twofold: change management and correctness testing. Other software that I use and write is version controlled and has tests to catch errors, m
37.
▲
by
rictic
1y ago
Yeah, that's vanilla syntax. The semantics are fairly magic though. The component function that calls useState though isn't a normal function, it's a function that must be called in a special way by the React runtime in order
38.
▲
by
rictic
1y ago
CPU production is centralized, but email is decentralized. Email changed a lot about the distribution of information without necessarily changing the distribution of industrial manufacturing. Likewise solar will change the distribution of e
39.
▲
by
rictic
1y ago
How is security looking with io_uring these days? I've been wary of it since https://security.googleblog.com/2023/06/learnings-from-kctf-...
40.
▲
by
rictic
1y ago
One thing to take care with in cases like this, it probably needs to handle code with syntax errors. It's not uncommon for developers to work with code that doesn't parse (e.g. while you're typing, to resolve merge conflicts,
41.
▲
by
rictic
1y ago
Lit 2 to Lit 3 was really minimal: https://lit.dev/docs/releases/upgrade/ As I recall inside Google it was maybe one in a thousand elements that needed any changes at all. I updated the entire internal codeba
42.
▲
by
rictic
1y ago
A person might have mistyped a price, a barcode may have been misread, the unit prices might be correct but the quantity could be mistaken. Modeling uncertainty well isn't just about measurement error from sensors. I wonder what it
43.
▲
by
rictic
1y ago
nix manages the environment too, all direnv is doing in my setup is automatically entering and leaving environments based on my current working directory. Looks like mise does that automatically, which is neat. mise looks nice, uses PATH ma
44.
▲
by
rictic
1y ago
A flake.nix file plus a direnv `.envrc` file with `use flake` has solved this for me. When I cd into a project directory I get all of the tools that project needs, at the exact versions they were tested with. When I cd out of the directory,
45.
▲
by
rictic
1y ago
Instead of using a dodgy package manager, install `nix` and use `nix run`. Get access to the largest collection of packages, and lean on a highly principled and secure baseline rather than… whatever this is. Easy to install on Mac, Linux, o
46.
▲
by
rictic
1y ago
You're speaking out of ignorance here. Steam has a long-term relationship with its customers. They can and will remove a title from a user's library if the payment is charged back, as well as placing restrictions on the account.
47.
▲
by
rictic
1y ago
> like the Document APIs? Yeah, the DOM in the browser, node APIs in nodejs, etc. > especially if it was faster Well, that's the thing. Initially it'll be slower, 'cause the code you call, and that calls you will be mos
48.
▲
by
rictic
1y ago
Tricky thing there is that the VM would still need to do checks at all the boundary points, including all of the language-level and runtime-level APIs. At what point along such a migration would it become net faster? It'd need a ton of
49.
▲
by
rictic
1y ago
What's Omit refer to in this context?
50.
▲
by
rictic
1y ago
Private fields, unique symbols, there's many ways to do nominal typing in TypeScript, depending on what you want.
51.
▲
by
rictic
1y ago
Discussion on the previous post in this series: https://news.ycombinator.com/item?id=44390452
52.
▲
by
rictic
1y ago
The system described in the article is very React-like, and could be used by future versions of React. In both, functions return a description of HTML to render, which can be applied either to create new HTML or to update previously rendere
53.
▲
by
rictic
1y ago
Yes, MCP adds no new fundamental capabilities. What it does is solve an N x M problem, where to hook up a given tool to a given LLM scaffold you have to write specific integration code for that combination of scaffold and tool. With MCP tha
54.
▲
by
rictic
1y ago
Models are deterministic, they're a mathematical function from sequences of tokens to probability distributions over the next token. Then a system samples from that distribution, typically with randomness, and there are some optimizati
55.
▲
by
rictic
1y ago
I agree with your general point, but C++ isn't a great example, as it is so underspecified. Imagine as part of our calculator we wrote the function: int add(int a, int b) { return a + b; } What is the result of add(3
56.
▲
by
rictic
1y ago
Good question. jsonriver is well optimized, exhaustively tested (tens of thousands of test cases), and provides a number of potentially useful invariants[0] about its parsing. jsonriver's performance comes primarily from simplicity, an
57.
▲
by
rictic
1y ago
If you've got some client side code and want to parse and render JSON progressively, try out jsonriver: https://github.com/rictic/jsonriver Very simple API, takes a stream of string chunks and returns a stream of
58.
▲
by
rictic
2y ago
Is this your reaction when someone climbs a mountain? "Bipedal locomotion was shown sufficient for climbing mountains centuries ago, given reasonable assumptions about the terrain, why should I be impressed?" Doing things can be d
59.
▲
by
rictic
2y ago
Can the reality of hardware be modeled with complexity analysis? Yes. Is it, in practice? I haven't seen it.
60.
▲
by
rictic
2y ago
Hm? They have 128GB of RAM. Macbook Pros cap out at 128GB as well. Will be interesting to see how a Project Digits machine performs in terms of inference speed.
More ›