Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
481.
▲
by
planede
4y ago
Ah, OK. But I would characterize this as an internal allocator that never deallocates. You might as well replace `malloc` and `free` to do the same, and just allocate within the program normally. Just because you "preallocate" it
482.
▲
by
planede
4y ago
> preallocate all the memory you could need Well, why did they have to restart if they never made any further allocations? This does not add up.
483.
▲
by
planede
4y ago
Well, a one-off pizza party certainly does not work. Regular free and quality food is surely a nice perk though. At our place we have free lunch from Tuesday to Thursday, otherwise nobody is pushed to work in the office. Some people still c
484.
▲
by
planede
4y ago
While I appreciate the free assets, it's hard to beat the origin TTD soundtrack. Those were even recorded with real instruments for a rerelease[1], which turned out to be awesome, but I like the original midi one as well. [1] https:&#
485.
▲
by
planede
4y ago
Detecting division by zero with 100% accuracy in a general C or C++ program without assistance is equivalent to the halting problem. Now I'm not saying that they solved the halting problem, as that is not possible. Rather that there is
486.
▲
by
planede
4y ago
From their claims they either solved the halting problem, or the tool severely limits what correct C or C++ programs it allows, essentially making the language not Turing-complete. I suppose it's the latter. I wonder if it's not t
487.
▲
by
planede
4y ago
> 0.1% of players There are entire countries with different standard keyboard layout than QWERTY, I'm pretty sure that 0.1% is inaccurate. I also remember that some desktop games handled alternative layouts just fine by default, wit
488.
▲
by
planede
4y ago
Why don't web games use KeyboardEvent.code for this? That would mostly resolve the issue, assuming browsers are compliant. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...
489.
▲
by
planede
4y ago
Some actionable takeaways about the abstract machine and undefined behavior of the standard. * Just because something is undefined in the standard now, it does not mean that it has to be undefined forever. It might be an oversight, or prior
490.
▲
by
planede
4y ago
I presume prototypes could be added to transform much of existing code without compatibility problems (ABI nor API), which is a clear advantage compared to checked arrays. Checked arrays might worth it regardless, but it's not applicab
491.
▲
by
planede
4y ago
> does modern C++ have a better solution to implement the same thing? No, the only standard way is to allocate a buffer large enough, and placement new the header and the bulk payload separately. The manual handling of alignment makes th
492.
▲
by
planede
4y ago
The problem is that this would have one specific ABI, which probably wouldn't match many existing structs with a flexible array member at the end. Could potentially be used for new code (while requiring every user to upgrade the standa
493.
▲
by
planede
4y ago
Neither binary nor decimal floating point types exist in the JSON spec. The JSON spec does not give an explicit internal representation for floating points, implementations are free to use decimal types internally, if they wish to do so. Th
494.
▲
by
planede
4y ago
Events are partially-ordered. Two events that can't have causal relationship between them are incomparable causality-wise.
495.
▲
by
planede
4y ago
I think the resolution is along the lines of this: * ZFC does not have a unique model that satisfies the axioms. * Each of those models have different "undescribable numbers" with different properties. But it was a long time I tou
496.
▲
by
planede
4y ago
What about the cost of the supporting infrastructure for cramming that 1GW into hydrogen and back to electricity? Well, with fuel-cell cars you don't need centralized infrastructure for converting back, but then you need infrastructure
497.
▲
by
planede
4y ago
If a squint hard then this is a custom dynamic loader for .o files with rudimentary ASLR (where all your entropy comes from the permutation of the .o files), that happens to cache to disk.
498.
▲
by
planede
4y ago
Sometimes you have dependencies with actual value add that you really don't want to replicate. No, I'm totally not writing a yaml parser, thank you very much. I can probably write a good yaml parser, possibly even better than some
499.
▲
by
planede
4y ago
It only checks for the ones starting with underscore. > This check does not (yet) check for other reserved names, e.g. macro names identical to language keywords, and names specifically reserved by language standards, e.g. C++ ‘zombie na
500.
▲
by
planede
4y ago
Some interesting features of this snake game: 1. You can change directions multiple times within a tick, making the last direction to be effective. 2. You can change to any directions, including the opposite direction of your current moveme
501.
▲
by
planede
4y ago
git does store deltas, but it's an implementation detail. This is what git pack files mostly are. I don't know if git sends or receives deltas though, I think it does?
502.
▲
by
planede
4y ago
In my personal experience the amount of water poured inside the moka pot makes a big difference. The more water you pour in, the higher temperature the coffee brews. If you pour the maximum amount of water that fits inside, then your coffee
503.
▲
by
planede
4y ago
I guess Futurama is a documentary now https://youtu.be/0SYpUSjSgFg?t=66
504.
▲
by
planede
4y ago
It's generally "pair of <plural>".
505.
▲
by
planede
4y ago
Maybe, but it's part of POSIX now. Anyway, I misread the code, and it's actually supported.
506.
▲
by
planede
4y ago
That document does not describe long options. I guess that can be treated as a conforming extension. The C implementation does not seem to have support for optional option arguments. The C implementation also does not seem to support "
507.
▲
by
planede
4y ago
I appreciate the macromancy, but it's not very readable. I'm sure it's very efficient though.
508.
▲
by
planede
4y ago
The bit field is laid out as follows: 0 +-+ |E| +-+ I had a good laugh at this.
509.
▲
by
planede
4y ago
Ah, too bad. I wonder why it needs a distinct Linux syscall interface though. There must be a reason why the existing x86_64 or x86 syscalls could not be used for x32.
510.
▲
by
planede
4y ago
When you get Moiré from the sensor of a camera or scanner, then there is nothing much you can do. But extreme Moiré effect from resizing is not really Moiré. It's aliasing. And it typically happens because the resizing happens in a non
More ›