Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lilyball
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
121.
▲
by
lilyball
2y ago
Playing around with this and immediately hit a bug. If I drag the sliders to 100 - 100 and then try to do 99 - 99, I can't. I can't get there from 99 - 100, and I can't get there from 98 - 99. The only way to get to 99 - 99 i
122.
▲
by
lilyball
2y ago
(a/b)*b=a isn't true, but that's also not true for the math that you're thinking of. What is true is IF b≠0 THEN (a/b)*b=a. And this definition works just fine even if you define division by zero. Also just to point
123.
▲
by
lilyball
2y ago
Why are you using Homebridge to talk to Home Assistant? It has a built-in integration to expose devices to HomeKit.
124.
▲
by
lilyball
2y ago
My fridge isn't magnetic. A lot of modern fridges aren't. Might be a neat idea to offer a magnetic mount for it, like a flexible flat magnetic board shaped to fit the TRMNL with a sticky backing so you can attach it somewhere and
125.
▲
by
lilyball
2y ago
It looks like that should be x f1 ((f2 y) f3 ((f4 y) f5 (f6 y))) though the docs include the phrase "which is part of a hook" and I don't know what that means.
126.
▲
by
lilyball
2y ago
When talking about J forks, the author says they don't know how to parse `x (f1 f2 f3 f4 f5) y`. After reading the relevant documentation, I believe this parses as (x f1 y) f2 ((x f3 y) f4 (x f5 y))
127.
▲
by
lilyball
2y ago
Physical access to the computer meant you could boot it into the OpenFirmware interface, which not just had an interactive interface but allowed for entering code (I seem to recall finding someone's Towers Of Hanoi solver written for O
128.
▲
by
lilyball
2y ago
Probably because JSON Patch was "influenced by" XML Patch.
129.
▲
by
lilyball
2y ago
That last implementation is interesting, although it requires using the `applyc` command to invoke the closure because it has to take it by name instead of by value, which is an unfortunate limitation. The thing you can't do is make a
130.
▲
by
lilyball
2y ago
By arrays you mean something like this? array set foo { a 1 b 2 c 3 } If the inability to comment out entries here is a problem, that's also something you can fix, you can write something like proc decomment bo
131.
▲
by
lilyball
2y ago
In Tcl, "quoting" and "scope" are the same thing.
132.
▲
by
lilyball
2y ago
I've long wished to have the free time to write a Tcl-derived language, because it really is so elegant in many ways, it just needs a bit of modernization in some areas. It's been years since I really thought much about this but I
133.
▲
by
lilyball
2y ago
While certainly much better, you still need to be aware that doing case conversion absent any locale information will never be perfect. If you want proper locale-aware conversion you can use the icu crate ( https://docs.rs/ic
134.
▲
by
lilyball
2y ago
It looks like Mara also did the work to make it const-constructible, so it's still her implementation, no? https://github.com/rust-lang/rust/pull/97647
135.
▲
by
lilyball
2y ago
On Darwin, it's possible for a pure spinlock to produce a priority inversion deadlock, because Darwin has a quality of service implementation in the kernel that differs from how everyone else handles thread priority. In other kernels,
136.
▲
by
lilyball
2y ago
That's compression time, the parent is talking about the end user so we want decompression time instead.
137.
▲
by
lilyball
2y ago
Any browser engine is free to do the work to use per-platform APIs. If your argument is that cross-platform browser engines won't do the work to optimize with platform-specific APIs but that Safari will, WebKit is a cross-platform brow
138.
▲
by
lilyball
2y ago
All browser engines are cross-platform. Safari may be Mac-only (though there used to be a Safari for Windows), but the rendering is done by WebKit.
139.
▲
by
lilyball
2y ago
The type system cannot capture 100% of the semantics of the function. You put what you can in there, but you also need documentation. You could provide a bespoke error type for every single function that returns an error, but that's a
140.
▲
by
lilyball
2y ago
The typical web user is not on a laptop unplugged from the wall, which is the scenario where battery life matters.
141.
▲
by
lilyball
2y ago
If a friend sends me a link to youtube, i might click on it to see what the video is, and then close it without watching it. This doesn't happen very often though. If someone gives me a timestamped link and tells me to watch 30s at tha
142.
▲
by
lilyball
2y ago
The ways in which a function can fail is typically the job of the documentation.
143.
▲
by
lilyball
2y ago
Representative of who? Not me, certainly, I don't use YouTube.
144.
▲
by
lilyball
2y ago
The heaviest parts of the test were using Google sites. Google has been caught in the past letting their sites run worse on Safari than Chrome. I'd really like to see this test done without having a single Google property be involved.
145.
▲
by
lilyball
2y ago
This is true, though the issue of having error variants the function can't return is fairly overblown, because most code doesn't bother handling all error variants individually. Most of the time an error is either propagated upwar
146.
▲
by
lilyball
2y ago
What sort of noise do you see? I find it's pretty rare to run into something that needs to be suppressed.
147.
▲
by
lilyball
2y ago
If you use tput a lot it's also worth caching the output, because invoking it for every single color change and reset can really add up. If you know you're going to use a bunch of colors up front you can just stuff them into vars
148.
▲
by
lilyball
2y ago
you need to sort it in order to uniq it, because uniq only removes duplicate consecutive lines.
149.
▲
by
lilyball
2y ago
yeah, they could have done `sqlite …|sort -u|wc -l` instead and saved themselves a process invocation!
150.
▲
by
lilyball
2y ago
There's also a console message for an unhandled promise rejection with an error message about an unexpected sprintf placeholder.
More ›