Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ninkendo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
661.
▲
by
ninkendo
2y ago
That’s fine for paste, but copy is the real problem. Also, shift and insert are very very far apart from each other and are not one-handable if you’re holding the mouse with the other hand.
662.
▲
by
ninkendo
2y ago
I can’t stand X11-style copy-on-select/middle-click-paste, and disable that everywhere if that’s what you’re referring to. I habitually highlight text as I read it and hate it when it blows away my existing copy buffer. I want explicit
663.
▲
by
ninkendo
2y ago
I love CMD because it’s part of the copy/paste shortcut but not used for any terminal control codes. So there’s no confusion about whether you’re going to accidentally SIGTERM something in the terminal by trying to copy text. I really
664.
▲
by
ninkendo
2y ago
It applies to any concurrency primitive that can be used across threads, yes. NSLock and os_unfair_lock can only be unlocked by the thread that locked them, so you can’t abuse them to turn async code into sync code in this manner in the fir
665.
▲
by
ninkendo
2y ago
TL;DR: Never, ever, ever, ever do this: let valueIWant: String? = nil let sem = DispatchSemaphore(value: 0) someAsyncFunction() { result in // this is called in another thread valueIWant = result
666.
▲
by
ninkendo
2y ago
Also worked for Apple for 13 years: there is a lot (and I mean a LOT) of priority inversions and abuse of locks in the codebase. Breaking out the internal profiler and actually having a look at whether you were running at the priority you
667.
▲
by
ninkendo
2y ago
Is your bottom row backwards? Surely the server learns that the client can transmit when it receives a SYN and that it must have received the SYN-ACK when the ACK comes back.
668.
▲
by
ninkendo
2y ago
I’m of the opposite opinion: make Siri dumber please, make sure it does a handful of things reliably. I want voice control to my phone, I don’t want a chat bot. Siri is… okay at voice control, but if they just threw in the towel and admit
669.
▲
by
ninkendo
2y ago
LE can use DNS itself as the challenge. It works something like: - You manage the mmd45.me domain (through a dns provider, say dnsimple) - You ask LE for a cert for imap.lan.mmd45.me (an address that doesn’t exist, but you use in /etc&
670.
▲
by
ninkendo
2y ago
Sounds similar to how you need to do Some(x) when passing x to something expecting an Option in rust. Swift interestingly doesn’t require this, but only because Optionals are granted lots of extra syntax sugar in the language. It’s really w
671.
▲
by
ninkendo
2y ago
My predictions for Apple’s VR “ambitions”: - 20% chance they continue to iterate on the Vision Pro or its successors for the next 5+ years - 40% chance they release one more non-pro model that’s maybe half the cost and nobody buys it - 40%
672.
▲
by
ninkendo
2y ago
To be fair to the author, io_uring has not made its way very far into userspace libraries yet. Even if the language you use has async primitives, and it’s on paper a great fit for io_uring, there’s a slim to zero chance the underlying libra
673.
▲
by
ninkendo
2y ago
> No robots do that snow shoveling thing yet, when they do, sign me up. No robots, but you don’t really need to exert yourself to get rid of snow. Self-propelled snow throwers with heated grips and a cab are a thing. For example: https:
674.
▲
by
ninkendo
2y ago
No idea, I’m just guessing. But I don’t think the number of people who want children after learning about the details is zero, right? There’s still a healthy contingent of the population who see all that and say “yeah but I still want child
675.
▲
by
ninkendo
2y ago
It’ll probably solve itself, if there’s any genetic component to the desire for childrearing. If all women have complete choice in the matter, then only the women who do want children will actually pass their genes onto the next generatio
676.
▲
by
ninkendo
2y ago
I will no longer feed trolls. Lesson learned.
677.
▲
by
ninkendo
2y ago
I guess I sprung the trap. We can apply the principle of charity and assume that because OP was making this complaint at all, it was probably in the context of jobs where ostensibly there is plenty of value in learning Linux. You don’t ne
678.
▲
by
ninkendo
2y ago
Your question is a trap because you’re not qualifying what type of job you’re talking about. I could say “because your code runs on Linux and you should learn it” and then you’ll just say “well I wasn’t talking about jobs writing code runni
679.
▲
by
ninkendo
2y ago
China stopped taking our recycling in 2017. Plastic recycling usually just means the incinerator now.
680.
▲
by
ninkendo
2y ago
> Almost all software is 64 bits nowadays, and avoids the problem entirely. Sure, we say that now, but 584 billion years from now when we use up 64 bits, we’re going to be cursing our ancestors for being so short-sighted.
681.
▲
by
ninkendo
2y ago
No. Just because something’s behind an Arc<T> doesn’t mean two threads can hold it at once. Arc just ensures that it is freed (dropped) when no threads are using it any more. T itself has to be Send+Sync for Arc to be. To a first appr
682.
▲
by
ninkendo
2y ago
So if I run a web server at home and I’m constantly attacked by AWS IPs, I shouldn’t be able to block them without myself being unable to access the lion’s share of the web hosted on AWS? Doesn’t that seem sort of extreme?
683.
▲
by
ninkendo
2y ago
Update: after 2 days of replacing my “cargo build” shortcut with “cargo check”, I never saw an error that check didn’t catch. Granted, most of my build/edit loop consists of attempting to build not-working-yet code anyway, so build was
684.
▲
You Can't Get ADHD Treatment [video]
(youtube.com)
3 points
by
ninkendo
2y ago
|
0 comments
685.
▲
by
ninkendo
2y ago
Oh but also, from the docs: > Some diagnostics and errors are only emitted during code generation, so they inherently won’t be reported with cargo check. I’ll have to see how much this affects my work loop but it’s definitely worth tryin
686.
▲
by
ninkendo
2y ago
Interesting, now I feel like an idiot. I had assumed cargo check performs a superset of cargo build (as in, lint checks/etc) but looking at the docs you’re right, it does seem to be aimed at doing exactly what I describe, skipping fina
687.
▲
by
ninkendo
2y ago
> I sometimes wonder if Rust (or more accurately Cargo) needs a third default profile “fastbuild” that doesn’t have debug info and is optimised for building fast. I’d go even further and say that cargo should have an option for simply ch
688.
▲
by
ninkendo
2y ago
I’m trying to resist the urge to move all my homelab setup to kubernetes too, mainly also because I don’t want to have to remember every dumb thing I did to customize my server and want everything to be deployable from a git repo, in case I
689.
▲
by
ninkendo
2y ago
It has 5 dependencies, one of which is optional, and another is serde itself: https://github.com/serde-rs/json/blob/master/Cargo.toml indexmap = { version = "2.2.3", optional = true }
690.
▲
by
ninkendo
2y ago
Interesting. I guess since IPv6 solves the address allocation problem natively (with SLAAC), it’s not allocation you need to worry about so much as “what IP’s does this router see vs that router, recursively”, which it sounds like IS-IS can
More ›