Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ninkendo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
331.
▲
by
ninkendo
1y ago
$ rm -rfv huge_dir (A zillion removed files scroll past) Now check if any of the removed files that were dumped out contain “foo.txt”. No, “just run it again” doesn’t work.
332.
▲
by
ninkendo
1y ago
Also importantly, an Arc<T> can be passed to anything expecting a &T, so you’re not necessarily bumping refcounts all over the place when using an Arc. If you only store it in one place, it’s basically equivalent to any other boxe
333.
▲
by
ninkendo
1y ago
I guess this means the system volume is not encrypted with FileVault? It makes total sense, since it’s supposed to be sealed, read-only data, and identical for every macOS installation. There’s no reason you shouldn’t be able to boot all th
334.
▲
by
ninkendo
1y ago
I mean I’m as anti-Trump as the next, but didn’t the bill say it could be delayed to finalize a sale to American owners? You could make the case that this sale means the Trump admin actually didn’t break the rules here.
335.
▲
by
ninkendo
1y ago
English contractions are weird in general in that it doesn't always "work" to contract two words. Tom Scott does a good video about this: https://www.youtube.com/watch?v=CkZyZFa5qO0 (Example, "Is this a
336.
▲
by
ninkendo
1y ago
Words have more than one meaning. Let also means "to cause to" as in "let me know", or can be "used in the imperative to introduce a request or proposal", as in "let us pray". (Or "let there be l
337.
▲
by
ninkendo
1y ago
I literally returned a game from steam because it not only required a Microsoft login but the login dialog said “let’s get you signed in.” I maintain that if it didn’t use such infantilizing wording I may have given it a chance (I had a Mic
338.
▲
by
ninkendo
1y ago
I vote in the primaries and the general election. In the former there are a lot more than 2 options. You’re aware primaries exist, right?
339.
▲
by
ninkendo
1y ago
Please explain to me how I don’t get to vote any more.
340.
▲
by
ninkendo
1y ago
> I thought this was going to be easy, and failed after not realizing what I was up against. At the time I didn't even know what I didn't know This reminds me of high school ~25 years ago when I just started learning TI-Basic
341.
▲
by
ninkendo
1y ago
We only have trouble obeying due to eons of natural selection driving us to have a strong instinct of self-preservation and distrust towards things “other” to us. What is the equivalent of that for AI? Best I can tell there’s no “natural
342.
▲
by
ninkendo
1y ago
Looks like the only unsafe parts are the parts which interop with the rest of the nginx codebase (marshalling pointers, calling various functions in nginx_sys, etc.) Rust cannot guarantee this external C stuff adheres to the necessary invar
343.
▲
by
ninkendo
1y ago
"LLM's are the next crypto!" isn't the glowing endorsement you seem to think it is.
344.
▲
by
ninkendo
1y ago
I spent the entirety of yesterday, from around 8:30 until almost exactly 5pm, doing a relatively straightforward refactor to change the types of every identifier in our system, from the protobuf the database, from a generic UUID type to a d
345.
▲
by
ninkendo
1y ago
> > ...something is wrong with you. > Are ad hominems back in vogue? GP was simply mirroring the language of its parent post: > Whenever someone just doesn't seem to care i'm concerned something is wrong with them. Whi
346.
▲
by
ninkendo
1y ago
> First, one shouldn't use a moved-from object in the first place (except for, maybe, reassigning it). It still requires you to come up with somethkng to do to the old value in the move constructor. What would you do in the Valida
347.
▲
by
ninkendo
1y ago
> I will say that programmers very often have bad instincts for when that's a bad idea True that. memcpy is basically the literal fastest thing your processor can do, it’s trivially pipelined and can be done asynchronously. If the a
348.
▲
by
ninkendo
1y ago
It’s not just the destructor you have to worry about, it’s all of the state accessible to callers. If you have any type that represents validated data, say a string wrapper which conveys (say) a valid customer address, how do you empty it o
349.
▲
by
ninkendo
1y ago
This enrages me so fucking much. When does my wallet slide slightly from the magnetic center and then back into place most often? When I’m getting it out of my pocket. When am I trying to just use my goddamn phone the most? When I get it
350.
▲
by
ninkendo
1y ago
Yeah, the problem is Apple and all the other contemporary tech companies have engineers bounce around between them all the time, and they take their habits with them. At some point there becomes a critical mass of xooglers in an org, and wh
351.
▲
by
ninkendo
1y ago
Y’know the script approach sounds like a good idea. I also have an OpenBSD box similar to what you describe, but I run ISC dhcpd and BIND because it’s the only setup that does old-school dynamic DNS where the dhcp server sends zone updates
352.
▲
by
ninkendo
1y ago
No, my policy is to just not go to websites that don’t respect me. It basically means I don’t use the web very much, but it’s probably better for me in the long run anyway, at least that’s how I see it.
353.
▲
by
ninkendo
1y ago
Sure, after you dismiss the pop-up telling you to become an ars subscriber. I’m only angry about this because I’ve been on ars since 2002, as a paid subscriber for most of that time, but I cancelled last year due to how much enshittificatio
354.
▲
by
ninkendo
1y ago
But it's not undefined behavior. That's the key. It's "unspecified behavior", meaning that according to the standard, it's allowed. A program that reuses a moved-from value is considered valid and well-formed b
355.
▲
by
ninkendo
1y ago
I'm not sure why you keep posting snippets demonstrating C++ rvalue references. We all know what those are, and it's not what we're talking about. We're talking about how the rust compiler uses move semantics to prevent
356.
▲
by
ninkendo
1y ago
> same people No they’re not. https://en.m.wiktionary.org/wiki/Goomba_fallacy
357.
▲
by
ninkendo
1y ago
It’s not just for disposing things, it’s also used to decompose things into their constituent parts… like if I had something representing an HTTP response and it contains headers and a body, I could write a `fn into_parts(self) -> (Heade
358.
▲
by
ninkendo
1y ago
> It really feels like Apple's teams are not using any of SwiftPM themselves. They probably never will, at least not for anything that ships with the OS. For Apple, binary size is very important, and it’s essential that they have on
359.
▲
by
ninkendo
1y ago
What’s not possible in C++ is the actual prevention of the moved-from value from being used after the move. Entire API’s are designed around this: my type that tracks a background task can have a shutdown() method that moves self, so that
360.
▲
by
ninkendo
1y ago
LIME Isn’t Merely an Emulator
More ›