Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leni536
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
361.
▲
by
leni536
2y ago
Hey, isn't that what docker is for?
362.
▲
by
leni536
2y ago
> I have my space and my wife does everything she can to help me, but it's really hard to argue with 10 month old child that wants to be held for a few minutes. I am sure this is both a positive and a negative. Being available at ho
363.
▲
by
leni536
2y ago
C++ programmers will do anything to avoid using a proper package manager. I say this as a C++ programmer.
364.
▲
by
leni536
2y ago
I appreciate that a barrier is desirable for WFH, but that can be established without having a dedicated physical space for that. A separate work computer that is shut down at 5pm (or whenever you "leave" work) and not having comp
365.
▲
by
leni536
2y ago
I like the idea, but the example suggests that it invokes external programs for trivial stuff, like comparing a variable to an integer (invokes bc and sed). I would prefer if it compiled to pure bash, and only invoked external programs if e
366.
▲
by
leni536
2y ago
Use an SMTP library then.
367.
▲
by
leni536
2y ago
> The only issue is that common mail clients still automatically quote the whole message being replied to for no good reason. Here is a good reason: In-Reply-To is a reference, not content. The recipient(s) of your message might not have
368.
▲
by
leni536
2y ago
> But those don't increase the number of seconds in the day. Instead, the final second happens twice No, it adds a 61th second to the last minute. UNIX timestamps happen twice, because it's broken. NTP too.
369.
▲
by
leni536
2y ago
free() doing nothing can be a valid application-level strategy. Not calling free() can bite you down the line.
370.
▲
by
leni536
2y ago
No?
371.
▲
by
leni536
2y ago
It should be possible to use vDSO without libc, although probably a lot of work.
372.
▲
by
leni536
2y ago
I would think that merely repositioning can be done overnight.
373.
▲
by
leni536
2y ago
It's a good practice, but it's somewhat against the grain of ssh defaults. It's not surprising that many people stick to the defaults.
374.
▲
by
leni536
2y ago
Now that's what I call secure erase.
375.
▲
by
leni536
2y ago
Do mainstream client silently fall back for SMTP? Thunderbird, Evolution, Outlook, etc... ? Somehow I doubt it. There is also word around that SMTP certificates are often not verified, but I know that's not true for Thunderbird at leas
376.
▲
by
leni536
2y ago
That's not a fragile base, that's just a fragile class. You can break APIs for all kinds of users, including derived classes. Some APIs are aimed towards derived classes, like protected members and virtual functions, but that does
377.
▲
by
leni536
2y ago
> All OOP languages have it, the issue is related to changing the behaviour of the base class, and the change introducing unforceen consequences on the inheritance tree. C++ largely solves it by having tight encapsulation. As long as you
378.
▲
by
leni536
2y ago
This is the gist of the difference in code generation when final is involved: https://godbolt.org/z/7xKj6qTcj edit: And a case involving inlining: https://godbolt.org/z/E9qrb3hKM
379.
▲
by
leni536
2y ago
C++ doesn't have the fragile base problem, as members aren't virtual my default. The only concern with unintended inheritance is with polymorhpic deletion. "final" on class definition disables some tricks thag you can do
380.
▲
by
leni536
2y ago
I just never flag the mines.
381.
▲
by
leni536
2y ago
It has the best version of minesweeper, where every board is solvable.
382.
▲
by
leni536
2y ago
Yep. Also whether passing in registers is faster or not also depends on the function body. It doesn't make much sense if the first thing the function does is to take the address of the parameter and passes it to some opaque function. T
383.
▲
by
leni536
3y ago
I wonder how much of this is due to the different compilers and ABIs used to compile the benchmark programs and how much of this is the OS and the environment.
384.
▲
by
leni536
3y ago
Capping at major version level is just common sense, IMO. It almost shouldn't be even possible to leave the major version out when declaring package dependencies. A new version might as well be an entirely unrelated library/applic
385.
▲
by
leni536
3y ago
Function interfaces are better, but not necessarily sufficient. Semantics of functions can also change in a breaking way.
386.
▲
by
leni536
3y ago
Now I feel better for never using the same key for different servers.
387.
▲
by
leni536
3y ago
I guess it could still use the assets on the disk, in theory.
388.
▲
by
leni536
3y ago
No, they get 39 decimal digits (1.7e38 is 39 decimal digits). 127bit chunks would get you 2.36% overhead, which is not bad. However at 93bit chunks can (barely) be encoded in 28 digits (2^93 ~= 9.9e27) and it's more efficient at around
389.
▲
by
leni536
3y ago
Optional features should not depend on feature detection, ever. Feature detection for a security feature should be suspicious, even if it works as intended. Optional features should always be configured by whoever tries to compile the code.
390.
▲
by
leni536
3y ago
TERM is already used for determining color support. Not sure what terminals do without color support with color escape codes.
More ›