Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kentonv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
841.
▲
by
kentonv
4y ago
Durable Objects is a low-level primitive which you can certainly build all sorts of distributed systems on -- including ones that compete with our own products. In fact, those products of ours are often themselves built on Durable Objects!
842.
▲
by
kentonv
4y ago
You can serve non-HTML content from Workers. This is explicitly called out in the supplemental terms for the Developer Platform here: https://www.cloudflare.com/supplemental-terms/ (I'm the lead engineer on Worker
843.
▲
by
kentonv
4y ago
Yes, I understood your argument. However, your brain does not primarily use head movement to judge location. It primarily uses interaural time difference. Head movement may have some effect (your brain is a neural network trained to use all
844.
▲
by
kentonv
4y ago
My DDR setup -- a Windows gaming PC connected to a pretty standard stereo receiver -- has 70ms total latency between button press and audio. That's more than enough to make the game unplayable, except that of course StepMania lets me c
845.
▲
by
kentonv
4y ago
TBH a bunch of speakers seems like it would be much worse. If you had an infinite matrix of speakers located at every possible point relative to your head, then you could play each sound from the exact speaker representing the correct direc
846.
▲
by
kentonv
4y ago
I have a vivid memory of playing Doom 2 on a 486 in the 90's, hiding in a building with a cyberdemon circling around the outside, and being able to tell exactly where he was based on sound alone. Needless to say Doom produced no more t
847.
▲
by
kentonv
4y ago
Weird. My experience has always been that headphones are more effective at producing precise 3D sound than speakers. And intuitively, it seems like they should, because they can feed each ear with exactly the sound that ear should hear. Tha
848.
▲
by
kentonv
4y ago
In theory, sure, that's what we'd do in an ideal world. In the real world it will take millions of dollars of eng labor just to update the hashes to fix everything that's currently broken and millions more to actually impleme
849.
▲
by
kentonv
4y ago
Oh, if the posting specifically says L4 or L5 then I don't understand the broad salary range. Unless maybe it's a worldwide remote position with wildly different pay depending on location?
850.
▲
by
kentonv
4y ago
Is this really that surprising? When my team is hiring software engineers, we're almost never looking for a specific level of engineer to fill some sort of specifically-defined role. We're just looking for smart people at every le
851.
▲
by
kentonv
4y ago
> Also, frame pointers just use up one extra register. This comment suggests it's more than that: https://lwn.net/Articles/920165/ My non-expert understanding: It seems that when frame pointers are enabled
852.
▲
by
kentonv
4y ago
It seems like argument is that cross-referencing the debug info is much slower than following frame pointers, so much so that whole-system profiling becomes impractical. This is new to me, but I suppose it makes sense. You pause a thread to
853.
▲
by
kentonv
4y ago
The C++ implementation is the reference implementation which is by far the most complete, and is the only one I maintain personally. The other implementations have varying levels of completion and quality, ranging from "pretty solid&qu
854.
▲
by
kentonv
4y ago
Hey that's me. And yeah, if you don't hear much about Cap'n Proto, it's not because it isn't advancing, but more because I don't really have any reason to advertise it. Cap'n Proto's goal right now --
855.
▲
by
kentonv
4y ago
But to be clear, the JIT can actually target Wasm? Like it generates new Wasm modules on the fly and loads them with the browser's WebAssembly API? EDIT: Nevermind I misread, duh (thought you were refering to the input binary format ra
856.
▲
by
kentonv
4y ago
FWIW Cloudflare offers Workers for Platforms, which I literally called "FaaSaaS" in my early design docs but for some reason that name didn't stick... :) https://developers.cloudflare.com/cloudflare-for-platfo
857.
▲
by
kentonv
4y ago
VSCode integrates with clangd for good jump-to-definition and auto-completion. The problem is VSCode, which is built on JavaScript/HTML, has become quite slow of late. The editor feels sluggish to respond to keypresses, especially in l
858.
▲
by
kentonv
4y ago
Subtracting two chars produces an `int`. C generally promotes all smaller types to `int` before doing arithmetic, and `int` is required to be at least 16 bits. So I think the code you linked is correct?
859.
▲
by
kentonv
4y ago
I don't know, plenty of "normal" sports have complexity that most people don't understand. Like, how many people really understand the batter-pitcher duel in baseball? That's the very core of the game but most peopl
860.
▲
by
kentonv
4y ago
Heh, I guess in my comment I was only thinking about how to make sure two different values don't end up with the same serialization, but indeed if you aren't careful then there is also the problem of two identical values ending up
861.
▲
by
kentonv
4y ago
TL;DR: Hash functions operate on byte strings. But, sometimes you want to hash data structures. So you serialize the structure and hash the serialization. You need to be very careful about how you serialize. It's critical that the seri
862.
▲
by
kentonv
4y ago
Previous discussion, 11 years ago. :) https://news.ycombinator.com/item?id=3342044 The new, bigger, better one will be done soon...
863.
▲
Out-of-bounds memory access bug in Cap'n Proto
(dwrensha.github.io)
2 points
by
kentonv
4y ago
|
0 comments
864.
▲
by
kentonv
4y ago
US building costs are high, but I don't think this is a fair comparison. Ontario, California is part of the Los Angeles metro area. Building a new railway inside any already-developed metro area is obviously going to cost much more tha
865.
▲
by
kentonv
4y ago
The most important reason for code review is not to fix the code but rather to transfer knowledge between developers. I've learned a lot of techniques for writing better code from suggestions from my code reviewers, and from reviewing
866.
▲
by
kentonv
4y ago
Note this is specifically the Rust Cap'n Proto implementation. There hasn't been a new release of the main Cap'n Proto project (which is on v0.10).
867.
▲
by
kentonv
4y ago
Yeah the A* search had a bug. It "bugged" me enough that I made a PR to fix it... https://github.com/eoin-barr/pathfinding-visualizer/pull/1
868.
▲
by
kentonv
4y ago
By "lose data" I mean losing a confirmed write. That is, the server got a request to modify some state, and it responded to the request indicating success, but the change is later lost. Generally it's expected that databases
869.
▲
by
kentonv
4y ago
Weird take? It is a table stakes expectation for most servers that they will not lose data when the power goes out, or when the kernel panics, or when the server itself crashes or runs out of memory. If your software requires graceful shutd
870.
▲
by
kentonv
4y ago
Hmm, I think there are several different reasons why the subrequest limit actually doesn't apply to your scenario. First, Durable Objects and Workers KV requests do not count against the 50-subrequest limit. It's HTTP requests to
More ›