Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amomchilov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
amomchilov
2y ago
Beware, this used to install some sketchy launchd daemons on macOS that ran as root. I don't remember the details, but look into `/Library/LaunchDaemons` and `/Library/LaunchAgents`.
32.
▲
by
amomchilov
2y ago
What? Infinite scroll gets higher “engagement,” then pagination. Those are people who kept scrolling, who wouldn’t have otherwise.
33.
▲
by
amomchilov
2y ago
The burning problem was a SNAFU on the first-gen “T-shaped” connectors. They redesigned gen 1 into an “L-shape”, which fixed it. The cable rubber was always remarkably shit, even with really delicate handling. Lucky now it’s a braided cable
34.
▲
by
amomchilov
2y ago
Huffman encoding
35.
▲
by
amomchilov
2y ago
And who do those bribes come from? Companies. They come from companies, which are how greedy business models manifest in the real world.
36.
▲
by
amomchilov
2y ago
The slow-down here isn't just from picking the correct `+` overloads, but also the various types that `"a"` could be (e.g. `String`, `Substring`, `Character`, or something like a `SQLQuery` type, depending on what libraries y
37.
▲
by
amomchilov
2y ago
It strikes a balance, by allowing _literals_ to be implicitly converted as needed. E.g. `someDouble * 1` is valid, without needing to write `1.0` or `1f`. This is because `Double` conforms to the `ExpressibleByIntegerLiteral` protocol. Ther
38.
▲
by
amomchilov
2y ago
`print((a + b + c) as String + n + d + e)` (I’m not sure of the precedence, that might need another pair of parens)
39.
▲
by
amomchilov
2y ago
Taken a step further, why does the US government help enforce such business models?
40.
▲
by
amomchilov
3y ago
This makes sense, observation requires a durable identity, which structs don’t have. Two struct might be the same, but when I observe for changes in one, but not another, a distinction arises which is best captured by object-based identity
41.
▲
by
amomchilov
3y ago
Yet, they sure do love their lifestyle
42.
▲
by
amomchilov
3y ago
Ah yes, the one who over-allocated so much capital into real estate that it has more unused apartments than the rest of the world combined, 5 times over With the greatest housing bubble has ever seen, and a deflationary spiral around the co
43.
▲
by
amomchilov
3y ago
(ヮ)
44.
▲
by
amomchilov
3y ago
It’s a rather different scenario. You bought the laptop, you own it. That used to mean something. If Musk wants to paywall all Twitter content, or heck, rebrand it into a StarWars fan club, who cares? Not I. But I care about my computer
45.
▲
by
amomchilov
3y ago
Not defending Tesla or anything, but don’t we want to take the W where we can? If a self-driving feature is safer than humans in nice conditions, don’t we want it enabled under those conditions? What’s the issue? Of course, the risk is that
46.
▲
by
amomchilov
3y ago
It’s not about protecting against QCs today. The risk is that adversaries can store today’s payloads, and decrypt them in the future. So the sooner you switch to quantum-safe cryptography, the less of a “backlog” you leave vulnerable to fut
47.
▲
by
amomchilov
3y ago
The springy contracts are the more fragile part. The USB-C design puts those in the cable, to optimize the sturdiness of the (more expensive) devices. Though the tab itself could be a point of failure, but it’s probably less so.
48.
▲
by
amomchilov
3y ago
Sorbet is a really interesting point in this space, because in addition to its static type checker, it has a runtime component which can do runtime type checking. It installs shims around all your methods which type check arguments on the w
49.
▲
by
amomchilov
3y ago
VSCode couldn't support multiple windows until just recently, entirely because of a limitation from the early days of Electron. When "multiple windows" is a feature to be announced (as if weren't trivial on any native s
50.
▲
by
amomchilov
3y ago
Promotional to the number of _edges_. Edges are proportional to the square of the number of nodes, so the value of the network overall is proportional to the square of the nodes. Think of it this way, for every new user added to the network
51.
▲
by
amomchilov
3y ago
The French invented their own DSL for their taxes: https://github.com/MLanguage/mlang
52.
▲
by
amomchilov
3y ago
Exhaustivity checking.
53.
▲
by
amomchilov
3y ago
The special-casing of Blocks irks me, including the fact that you can only have 1 of them in a single method call. I understand the justification, but it’s syntactically inconsistent and doesn’t sit right with me. I really like the way Swif
54.
▲
by
amomchilov
3y ago
It comes up when you get in “ok this block is great, but now I want two of them”. Only one can be a block, the other needs to be a Proc, and now there’s this odd syntactic distinction
55.
▲
by
amomchilov
3y ago
If you design your abstractions correctly, you can get the best of both worlds. You can create a simple Matrix type which stores single array, with a subscript operator that gives a 2D facade. It can let you call it with x/y pairs, but
56.
▲
by
amomchilov
3y ago
It actually really helps with maintenance. If you have a wrapper for an API (say, that does some logging or whatever), you can use `…` to forward arguments, maintenance free. Perhaps the wrapped function started out with no arg, but then
57.
▲
by
amomchilov
3y ago
I thought they could measure it like they measure humans using SLAMMD, but apparently that’s only accurate to 0.5 lbs https://www.smithsonianmag.com/air-space-magazine/how-do-ast...
58.
▲
by
amomchilov
3y ago
It’s a great user experience if you fall into the happy path. If you don’t (water damage on a MacBook, older than 3 year iPhone, …) it’s preposterously expensive and impractical. At that point, you don’t have any third party alternatives, b
59.
▲
by
amomchilov
3y ago
I can’t find it now, but I remember some joke about “it’s an interesting language, but why did you ignore the last 50 years of programming language design?” I find Go quite frustrating in how it decries how over-complicated some features ar
60.
▲
by
amomchilov
3y ago
Parameters of class type aren't passed by reference, either. Both instances of structs and instances of class are passed by value, except in the latter case the value being passed/copy is the reference. To pass by reference, you n
More ›