Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orlp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
631.
▲
by
orlp
5y ago
That is all fair. Again, I don't have a problem with you, your project or the code you shared at all. I think it looks fantastic, and I applaud sharing the reverse engineering efforts. I only take issue with the choice of words, in cal
632.
▲
by
orlp
5y ago
> What would be some good options to get paid for open source? Many might read this as "good options to get paid money in exchange for open-source source code". Then the answer is simple: you can, but only once. The code is fre
633.
▲
by
orlp
5y ago
Just to clarify, I am okay with paid software existing. It is even better if you share (parts of) the source code to the community in a permissive license. But unless your incentives are aligned with community, I would be crystal-clear and
634.
▲
by
orlp
5y ago
I've noticed a lot of Apple software pretends to be open-source (like this one: "Lunar is also open-source so you can check that for yourself: Github - alin23/Lunar "), when they really aren't. They're - at bes
635.
▲
by
orlp
5y ago
Traditional music primarily uses pitch and rhythm to express itself. Synthesis is a musical expression primarily found in timbre.
636.
▲
by
orlp
5y ago
Fair enough, I was just irked by this sentence in the article and had to quip. Overall I'm still ambivalent on automated driving, feeling conflicted by claims that it is safer "on average" but simultaneously painfully aware o
637.
▲
by
orlp
5y ago
Here's one more from me: count your liabilities. 1. Code is a liability. No code? No bugs. The best commit is one that removes unnecessary code. This includes dependencies. 2. State is a liability. Multipliers for: hidden or non-obviou
638.
▲
by
orlp
5y ago
> If the car crashes while Drive Pilot is operating, that's Mercedes' problem, not yours. If my car plows into a tree at 40mph and I get turned to mush that still sounds like a "me problem" to me.
639.
▲
by
orlp
5y ago
IMO search has had its goalpost moved. It used to be about scale, technical challenges, bandwidth, storage, etc. It is still about that, but a significantly harder challenge to solve has come up: searching in a malicious environment. SEO cr
640.
▲
by
orlp
5y ago
Most important for me wasn't speed, it was flow . But speed is easy to put a number on. I would be a lot more cautious about injury if I was doing a lot more sustained writing. But mostly I am doing technical writing and programming,
641.
▲
by
orlp
5y ago
I believe the author intended to say that they've been using this tool "for the better part of 2 years", meaning roughly 1-2 years, not that they were using something better than it.
642.
▲
by
orlp
5y ago
To go against the other comments here, I couldn't get used to it (building new muscle memory - let alone switching). Years ago I bought an ErgoDox. One of the main things I underestimated is that it has an ortholinear layout: the keys
643.
▲
by
orlp
5y ago
As a Dutchman I find the Wordle craze a bit strange since it has been on our national television as a game show for decades under the name Lingo.
644.
▲
by
orlp
5y ago
The last thing I want in a grocery store is an "experience". I just want to buy my stuff and go home.
645.
▲
by
orlp
5y ago
As long as your clothes are not to be worn in a sub-zero climate.
646.
▲
by
orlp
5y ago
Actually, djbsort [1] uses a similar trick to sort two integers in constant time: int32_t ab = b ^ a; int32_t c = b - a; c ^= ab & (c ^ b); c >>= 31; c &= ab; a ^= c; b ^= c; How it works is th
647.
▲
by
orlp
5y ago
Misleading title, the algorithm uses O(n+m) temporary space. No idea why the author is misrepresenting this. If you want to look at in-place merging, take a look at Wikisort: https://github.com/BonzaiThePenguin/WikiSort
648.
▲
by
orlp
5y ago
This is true, if your comparison operator is very expensive you should (very, very carefully) implement the traditional binary search.
649.
▲
by
orlp
5y ago
I am a huge proponent of "bitwise" binary search. Consider r to be the result index we wish to find in range [0, n), that is, the first index where a predicate returns false, or n if there is no such predicate. We can construct th
650.
▲
by
orlp
5y ago
The answer is that it's a single-player game, and that user interfaces suck to write and model. In a multiplayer game you are generally forced to separate game logic from the UI frontend, which is a good practice regardless. But in a s
651.
▲
by
orlp
5y ago
For general parsing of data I am currently advocating LR(1), and GLR or Earley for those that need ambiguity. The exception to this is programming languages, for which I think the #1 priority is error messages, thus recursive descent is qui
652.
▲
by
orlp
5y ago
> If you wanted whatever it was your grammar accepted It is one-line, two-rule PEG grammar. What does it accept, and why? If we can't state this with confidence in such a tiny example, what makes us have any confidence in larger, mo
653.
▲
by
orlp
5y ago
> The grammar may not be exactly what you want to illustrate your point (I think you want to swap the two sides of the /) No, I think you might be misunderstanding my point. For example, if you think the grammar I posted matches aaa
654.
▲
by
orlp
5y ago
Incorrect, it does not match the same strings.
655.
▲
by
orlp
5y ago
Because that does not recognize the same set of strings. That matches aaaaa, but my example above does not. That is exactly the point I'm trying to make.
656.
▲
by
orlp
5y ago
That is incorrect. Feel free to try it here: https://pegjs.org/online , you will see that aaaaa is not a match. And no, that is not a bug in pegjs.
657.
▲
by
orlp
5y ago
If you think PEG parsers are a good idea and we should use them, comment below which strings this PEG grammar matches: Str = "a" Str "a" / "a" If you get it right and you understand the logic, by
658.
▲
by
orlp
5y ago
If you have bots buying your merchandise as fast as possible you don't have a bot problem, you have a pricing problem.
659.
▲
by
orlp
5y ago
The browser history has been destroyed in my experience. No one seems to care for its usability. One-page applications, pushState/replaceState, non-descript title pages and a horrible UI for it in the browsers, it goes on.
660.
▲
by
orlp
5y ago
Or it was $100 worth of pizza spread over a longer period.
More ›