Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gordaco
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
gordaco
6y ago
That's right, I would run into even bigger performance issues if I used Integer/Long/Double/etc everywhere instead of the primitive types. The problem is not that primitive types are not object, but rather, that generic
62.
▲
by
gordaco
6y ago
Yes, objects have the cruft and primitives don't. So you use primitive types whenever you can, including mathematical operations (unless the numbers are big and you need a BigInteger or BigDecimal, but that's another story). So fa
63.
▲
by
gordaco
6y ago
I don't really dislike the concept of checked exceptions, but the awful way they prevent the usage of functional interfaces and modern Java in general is pretty infuriating. Functional interfaces and code that uses them should have a g
64.
▲
by
gordaco
6y ago
This is absolutely awesome. As someone who is still using Winamp daily, I'm thinking of replacing my shortcut with a script that, before launching the executable, opens the .ini file and writes some random skin's name in the pro
65.
▲
by
gordaco
6y ago
A recent case regarding video games: in its latest update, Doom Eternal added a kernel-mode "anticheat" (which, among other nasty features, prevented the video game from working unless certain ports were open [1]). Even if you ign
66.
▲
by
gordaco
6y ago
I saw that photo a few days ago. It's honestly one of the most beautiful images I've ever seen in many years. That contrast between the city at the front and natural elements at the back, with that lighting (the Everest is at the
67.
▲
by
gordaco
6y ago
I think that what we are seeing with respect to economic equality is a Simpson paradox of sorts. Globally we are becoming more equal because globalisation is causing countries to come closer (maybe because developing countries are being ben
68.
▲
by
gordaco
6y ago
It's less dumb than usual Java code in the sense that it's less obvious. Java Lambdas are anonymous, inline implementations of single method interfaces (or abstract classes with a single abstract method). In classic Java you would
69.
▲
by
gordaco
6y ago
I would say Java, which I suspect is bound to be a bit of an unpopular opinion here (I expect more startup people than enterprise denizens in HN); but the more I think about it, the more sure I'm that it fits the bill: - Dumb: you bet.
70.
▲
by
gordaco
7y ago
The difficulty and the required run time vary a lot starting from problem 150 or so. This one seems particularly difficult (it's rated at 85% difficulty, which is also the highest I've managed to solve). The problem here is that t
71.
▲
by
gordaco
7y ago
I thought this was going to help me with Project Euler 261 [0], but it's not exactly the same, so no luck so far. Cool article anyway; linking geometry and algebra is always satisfactory. [0] https://projecteuler.net/pr
72.
▲
by
gordaco
7y ago
No, my solution was also mostly "brute-forcing from both directions". In the problem thread you can find more elegant solutions that rely on calculating increments, but my approach was very fast (0.3 seconds) so it's good eno
73.
▲
by
gordaco
7y ago
Yes, I solved it, but not by that method. When I talked about "basic modular arithmetic" I didn't mean repeated addition and the usage of "mod"; I mean that I used certain basic operation which gets taught in any in
74.
▲
by
gordaco
7y ago
Isn't this like... really, really basic? I would have never considered iterating over all the numbers, not even when I first entered Project Euler back in 2011; inclusion-exclusion always was the obvious way. I'm probably biased s
75.
▲
by
gordaco
7y ago
It's nice to read about Daubechies here on HN. I remember reading a few of her papers circa 2006 for an academic project. At the time I was accustomed (prejudiced, maybe) to see mostly male authors in all the papers I used, and I was a
76.
▲
by
gordaco
7y ago
Firefox has been my main browser for about 15 years. Never saw the advantage in Chrome, aside from using it once in a while when a webpage didn't work correctly on Firefox. These latest years we are seeing very aggressive behaviour fro
77.
▲
by
gordaco
7y ago
I agree. The moment I saw this was the moment I configured my browser to use DuckDuckGo instead of Google. Good riddance.
78.
▲
by
gordaco
7y ago
Using about 10% of your mental capacity for your job is absolutely a good thing, if you're still doing what your company expects from you. This means that you still have 90% for yourself, and that's awesome. If you don't feel
79.
▲
by
gordaco
7y ago
Yes, I was thinking mostly about beef. Which seems to be the most environmentally impactful meat, by the way. Pork is less impactful and poultry is even less. Obligatory wikipedia link: https://en.wikipedia.org/wiki/Env
80.
▲
by
gordaco
7y ago
You are being downvoted, but I think that you are totally right. For an awful lot of people, eating meat is a matter of status; it's similar to why many people prefer having big cars even if they are less environmentally friendly. Ther
81.
▲
by
gordaco
7y ago
I got this crap on my work PC, and it was the last straw for me. I've switched to duckduckgo (to train myself, what I did was actually change my dynamic bookmark, so that when I type "google X" it goes to the duckduckgo se
82.
▲
by
gordaco
7y ago
Spaniard here. They also work quite well in Spain.
83.
▲
by
gordaco
7y ago
Or multi-month long business trips (I know a lot of people in this situation); if I was in that situation, you bet I would take some form of video game system with me. I already do when I travel alone, even if just for the 1-2 hours at the
84.
▲
by
gordaco
7y ago
Honestly, staying away from "gacha" (and most, if not all, kinds of microtransactions) is just common sense at this point. I also try to do interesting things that are productive (studying certain topics, writing code, etc). I
85.
▲
by
gordaco
7y ago
Indeed. About 10-12 years ago, when I started working and having disposable income, almost every book or video game I bought came from the second hand market, and the vast majority of it came in fact from Amazon. I'm a bit baffled by G
86.
▲
by
gordaco
7y ago
Chrome also did this at a massive scale. It's one of the many reasons why I will always prefer firefox.
87.
▲
by
gordaco
7y ago
And depending on your commits, you may need to solve conflicts several times (rerere alleviates this, though). Also, isn't this very basic? I thought pull --rebase was one of the most basic commands everyone learned while getting acqua
88.
▲
by
gordaco
7y ago
Also in Spain. Votes are counted literally in the voting table, right after closing it. The counting is verified by three (randomly chosen) citizen and also by one person per party. Then the tallies are aggregated. And the vote distribution
89.
▲
by
gordaco
7y ago
Sorry to be that guy, but here is the obligatory XKCD: https://xkcd.com/2030/ . As a tech worker, and as someone who knows about computers, I very strongly oppose electronic voting. And the more I know, the more I opp
90.
▲
by
gordaco
7y ago
This is horrible, but it's clear to me that this is just more than "a software error". Is being a student so hard in India that failing an exam causes people to commit suicide? In that case the problem is way bigger than &quo
More ›