Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
afc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
afc
7y ago
I was curious about how my text editor ( http://github.com/alefore/edge ) would fare here. I decided to try it with a file with 400k lines, each with ~5 or so words. It worked reasonably well: https://asciinem
152.
▲
by
afc
7y ago
But what if I sometimes want to retain shared ownership? I don't want to receive the shared_ptr by value because that drastically slows down my program for the cases where I end up not retaining ownership (compared to const-ref), but
153.
▲
by
afc
7y ago
Thank you for writing that. I was about to write ... exactly the same. There is a very legitimate use case for passing the const reference to the shared pointer that the article doesn't consider at all, which you've explained very
154.
▲
by
afc
7y ago
Thanks for sharing! This resonates strongly with me. One thing I did (and fairly recently too: https://github.com/alefore/edge/commit/6e93c2bb327f57d13d067... says just 10 days ago) is adjust my text editor (
155.
▲
by
afc
7y ago
All the time! Two weeks ago I found something in a critical library at work (that ~every single C++ binary we run depends on: our main implementation of our custom threads' executor API) that made no sense. I couldn't understand w
156.
▲
by
afc
7y ago
Load problems don't go away when the load disappears. If the system isn't engineered very carefully (this takes a lot of work!), you may have cascading failures that may take hours to resolve, especially if you have bad retry poli
157.
▲
by
afc
7y ago
I disagree, how interesting. :-) I presume that you're allowing finite time execution of the equality-to-zero operation (I.e., a function that says if a number is equal to zero). If you don't, I suppose one would conclude (by appl
158.
▲
by
afc
7y ago
Strawman. There are many things that, like tossing biodegradable stuff out the window, aren't cool that don't appreciably contribute to ocean plastic pollution.
159.
▲
by
afc
7y ago
Yeah, I'm also stuck here. The article seems to say that, because you can't produce an upper bound to the amount of time the sgn function will take to run (for all possible inputs), sgn isn't a function. But then... isn'
160.
▲
by
afc
7y ago
For what it's worth it, I absolutely love Kraftwerk but, having coded in Scheme for about a decade, I very much dislike Scheme. I'd take Haskell, C++, or Java over Scheme without hesitation. I feel that my life is too short to cod
161.
▲
by
afc
9y ago
I'm from Colombia and can confirm: we use "ahorita" all the time, with the exact meaning described in the article. The article claims Mexicans are not famous for their use of diminutives. They're not where I come from. I
162.
▲
by
afc
9y ago
This is my experience too. After doing this for a while, I concluded that there's no point going to the hotel's website to check prices anymore, I just book on the aggregator now.
163.
▲
by
afc
10y ago
I also took issue with this part of the article; it seems obvious to me that rolling out new features would directly cause reliability issues (and the only alternative, of not rolling out new features, is, obviously, a cure worse than the d
164.
▲
by
afc
11y ago
This looks like a good example of the Normalcy bias logical fallacy: https://en.wikipedia.org/wiki/Normalcy_bias That previous constraints have been beaten in no way supports the argument that we will beat the laws of
165.
▲
by
afc
11y ago
Lost me after the long praise for the packaging (which I consider irrelevant) at: "The watch displays a swirling globular particle cloud – it’s not anything in particular but it looks like it could be an abstract representation of a lo
166.
▲
by
afc
11y ago
That's true. Even if you're visiting, http://sbb.ch/ (the Swiss federal railways) currently offers tickets at 5.60 to 11.20 CHF.
167.
▲
by
afc
11y ago
> For 200 years people have been repeating 'all the jobs will go away' because of automation. It has never actually happened. This looks like a good example of the Normalcy bias logical fallacy: https://en.wikipedia.
168.
▲
by
afc
11y ago
Just wanted to add my voice: this matches exactly my perception. I used to really like Python, but I've come to the conclusion that there's a certain point in terms of the complexity of a Python program where everything just blows
169.
▲
by
afc
12y ago
I happen to agree, I don't like Murakami all that much, and I've read 6 or 8 of his novels. I feel a bit similar about him as I do about Stephen King or TV series like Games of Thrones, Orange is the New Black or House of Cards: m
170.
▲
by
afc
13y ago
Hi, Scott, Alejo here. :-) My perspective is similar. I do a bit of Java, C++ and Python, and recently wrote a ~1K LOC backend in Go. I figured I'd share it in case someone finds it interesting. For low-level infrastructure projects
171.
▲
by
afc
13y ago
> Essentially, Sharp is trying to do what many women are doing these days - push an organisation or project to function in a way that they dictate. Seriously? While the arguments against swearing in the LKML strike me as lame, at best, I
172.
▲
by
afc
14y ago
Would somebody explain this step in his explanation? http://izbicki.me/blog/wp-content/plugins/optimized-latex/im... How does he go from (a - b)^2 to a^2 - b^2? What am I missing?
173.
▲
by
afc
14y ago
Seems somewhat vague, I think it could be a lot more accurate. I'm a bit surprised to see it here. It claims that it's a myth that "trees are better" than hash tables and just describes trees as better for "finding inexact matches", as in t
174.
▲
by
afc
14y ago
Agreed! What the heck? “What he discovered was shocking: that the torus is the secret to an abundance of energy, that it is embedded in crop circles and used by aliens to travel through galaxies , and that a complex political conspiracy
175.
▲
by
afc
14y ago
I disagree. Why would it be "common sense design" to have the seconds handle in red with a thin line and a big circle at the end? Seems waaay too much of a coincidence to say "not a copy".
176.
▲
by
afc
14y ago
Not sure if you're trolling but, obviously, Apple is not paying any license fees for this: “An SBB spokesman told Tages-Anzeiger that he was pleased Apple was using the design, but noted that the company was not authorized to do so.” I don
177.
▲
by
afc
14y ago
Whoah, 500 servers to handle an average of ~300 queries per second? Even if you generously assume they have traffic patterns that sometimes go all the way up to sustained say 5K queries per second... 500 servers? Isn't that like ... terri
178.
▲
by
afc
14y ago
70 years later we're still paying the costs for WWII. Interesting that the best option was to detonate it in place, with all the damage that caused.
179.
▲
by
afc
14y ago
I have actually recently started using Vim with folding (set shiftwidth=2, set foldmethod=indent) for my nested todo list and also note-taking. I have a single file with the following items: Work Topic 0 (work-related) ... Pe
180.
▲
by
afc
14y ago
Um, wouldn't just a cache of the last N (based on memory available) items (or their hashes, whatever) just do the job, and do it better than his solution (which removes elements randomly based on collisions, rather than just removing the ol
More ›