Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
181.
▲
by
planede
3y ago
I think the main mistake here is that it was made to be a public interface instead of an internal implementation detail. Now you can expect that some people are relying on custom specs. Migration to a saner configuration language is still p
182.
▲
by
planede
3y ago
Correlating with water and electricity bills could raise suspicion, but yeah, it's probably harder.
183.
▲
by
planede
3y ago
I thinks mocks are better in C++ than in dynamic languages. In C++ you need to expose a public interface for the customization point so it can be mocked. Mocks therefore test a public interface and not implementation details. Granted, if th
184.
▲
by
planede
3y ago
Sure, that's what I was getting at. Being able to pass stateful allocators as function arguments is very flexible.
185.
▲
by
planede
3y ago
If we are talking replacing the libc allocator, then something like heaptrack is worth mentioning. https://github.com/KDE/heaptrack
186.
▲
by
planede
3y ago
What if the function does more than a single allocation? Imagine a library like libxml2 that can parse a whole XML document into a DOM tree. In many cases you it would be nice to just pass an arena allocator and throw away the whole DOM in
187.
▲
by
planede
3y ago
As a lone developer there is absolutely no motivation to do this and hide this decision from management. Having said that a lone developer can come up with the idea, propose it to management with the expectation of some fat bonus. But why d
188.
▲
by
planede
3y ago
Yeah, Debian code search often works better for this purpose.
189.
▲
by
planede
3y ago
At least with preprocessor and templates the compiler errors point to your actual source files, not to some auto-generated mess.
190.
▲
by
planede
3y ago
Committed generated code can also be a pain. Now you invite manual changes to the generated code, which is probably a pain to maintain if you also want to maintain and reuse the generation script in parallel.
191.
▲
by
planede
3y ago
A pulse of wave is a superposition of steady-state waves. Group velocity, phase velocity and dispersion relation have one-to-one correspondence. I agree that the phase-kick classical model is a very simplified material model, which probably
192.
▲
by
planede
3y ago
> Phase kicks don't change the speed of a wave. "Phase kicks" explain the phase velocity. The speed of a wave is the group velocity. Phase velocity is omega(k)/k, group velocity is omega'(k). So if "phase ki
193.
▲
by
planede
3y ago
It works everywhere. There is not much to do with delay on interactive content though.
194.
▲
by
planede
3y ago
> To reduce banding, the idea is that for each pixel, you choose between the rounded up or rounded down value semi-randomly, with a probability depending on how close you are to each value. This oversimplifies it a bit. Most dithering al
195.
▲
by
planede
3y ago
> The untrusted device will be able to observe: > File sizes > Which parts of files are changed by the other devices and when I know that cryfs[1] is resilient to at least the first of these, and possibly the second
196.
▲
by
planede
3y ago
I hear you, however something like streambuf is kinda necessary for a type-erased interface for input/output of trivial objects. The C alternative is FILE*, which isn't much better and isn't as customizable either. I agree th
197.
▲
by
planede
3y ago
Does UEFI have any mechanism to run some firmware code with reduced privileges? For example an image parser?
198.
▲
by
planede
3y ago
The attack defeats the whole premise of security in "secure boot". It's high impact in relation to that. As a user I don't care too much about "secure boot" and its threat model, and I assume you don't eit
199.
▲
by
planede
3y ago
Postscript is actually surprisingly approachable. It's quite easy to implement logo-like "turtle graphics" and draw fractals in it.
200.
▲
by
planede
3y ago
How would copyright be in-scope at all? At worst this infringes EULA.
201.
▲
by
planede
3y ago
They renamed "My Computer" a while ago.
202.
▲
by
planede
3y ago
I guess the indentation only interacts with the little oxygen that is trapped there, which might not be enough to substantially brown it.
203.
▲
by
planede
3y ago
https://developer.gimp.org/core/roadmap/#gimp-30-development... work in progress
204.
▲
by
planede
3y ago
Nvidia cards being unreliable on Linux make me choose an other card instead.
205.
▲
by
planede
3y ago
Which Wayland compositor? Does it matter? I recently got an Intel iGPU + Nvidia dGPU machine.
206.
▲
by
planede
3y ago
I find Debian unstable to be a perfectly stable rolling release distro. Unfortunate naming.
207.
▲
by
planede
3y ago
Apart from Nvidia, this feels like a non-issue for me nowadays.
208.
▲
by
planede
3y ago
So you make it thread-safe. Now what? Just because you don't get a data-race or undefined behavior, it doesn't make setenv/getenv usable across threads without any synchronization anyway. My take on it is that global mutable
209.
▲
by
planede
3y ago
Maybe the dlopen issue could be hacked around by dlmopen and injecting getenv and setenv symbols that access a different environment variable list than the application's.
210.
▲
by
planede
3y ago
You can destroy information with noise. Accurate information about the conflicts (or anything) is also available in the digits of pi.
More ›