Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pingyong
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
pingyong
6y ago
>When you explain floating point numbers you also put them into boxes? That makes no sense. If I was explaining floating point numbers with boxes, for whatever reason, I'd put the values inside the boxes, yes. The analogy just doesn
2.
▲
by
pingyong
6y ago
>There's something in here that's specific to SWE. I don't know exactly what it is but, I think we should figure it out. It's changing requirements. When you build a house, people don't come in 6 months later and
3.
▲
by
pingyong
6y ago
Because usually if I want to store something I put it inside the box? Not sure how that is contrived.
4.
▲
by
pingyong
6y ago
I've always explained it to people like this: Imagine a big cabinet, like a bunch of safe-deposit boxes in a bank. Each box has an unique number written on it, and the boxes are simply numbered 0 to 99. Now when you open a box, you fin
5.
▲
by
pingyong
6y ago
>Defaults aren't permitted. So, what happens if a bank goes bankrupt?
6.
▲
by
pingyong
6y ago
The housing market will never, ever crash again in any western country unless there's an economic turn that is incomparable to even what a 10 times more deadly COVID-19 could do.
7.
▲
by
pingyong
6y ago
I've been almost completely alone for about 3 months now, at least physically. And honestly... I couldn't feel much happier in that regard. It's been great. Maybe I'm broken or something.
8.
▲
by
pingyong
7y ago
>You'd have to define an empty class with a destructor, then instantiate the class at the appropriate place in your code. The point of Boost.ScopeExit is to handle that boilerplate for you. I would argue that every time you want to
9.
▲
by
pingyong
7y ago
Because the C++ compiler accepts an absolutely insane variety of code styles. I say this as someone who mainly writes C++. If I write my own project, or a project where I only have to work with a small number of people all of whom I know ha
10.
▲
by
pingyong
7y ago
Well it can't really get much higher than 95% of the time!
11.
▲
by
pingyong
7y ago
Some absolutely will. That's not really what I'm trying to argue against, people who would become homeless or starve should absolutely be helped. However, a lot of people seem to be under the impression that this would boost the e
12.
▲
by
pingyong
7y ago
Hmm. A lot of businesses will get into big trouble over the coming weeks and potentially months. Bars, event organizers, even shopping malls. They're all going to go down to almost zero profit for a while. The problem is if you just gi
13.
▲
by
pingyong
7y ago
I'm not entirely sure how that is an example I asked for. In this case, it seems like the compiler in both cases was able to see that the loop always terminates, either by hitting 0 directly, or by wrapping around and then hitting 0, o
14.
▲
by
pingyong
7y ago
My point is that if a loop - doesn't terminate, doesn't have side effects -> optimization doesn't matter - doesn't terminate, has side effects -> optimization isn't valid - does terminate, doesn't has sid
15.
▲
by
pingyong
7y ago
They did that last gen already, PS4 and XB1 are just PC laptop hardware.
16.
▲
by
pingyong
7y ago
So, generic code with a loop, which, depending on parameters, sometimes has side effects and sometimes doesn't, and in the case that it doesn't have side effects it is still not easy to recognize if the loop terminates? I suppose
17.
▲
by
pingyong
7y ago
>You'll often be stuck with code that you know is flawed, that you want to fix, but the organisation won't give you time to fix it until it's too late. This has unfortunately been my experience as well. Although in some se
18.
▲
by
pingyong
7y ago
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
19.
▲
by
pingyong
7y ago
Okay and which optimization does this allow for? What's the difference in the emitted binary?
20.
▲
by
pingyong
7y ago
Is there even a case where the compiler can optimize a terminating loop better when it is allowed to assume that it will terminate at some point?
21.
▲
by
pingyong
7y ago
"Really keeping things secure" has a lot of definitions. If your threat model is some guy on the other half of the planet half-heartedly trying out leaked passwords, 2FA is great. If your threat model is someone local specifically
22.
▲
by
pingyong
7y ago
The problem with doing that as a library writer is that exceptions, used well, generally change the entire interface and to some extent programming model. It starts with simple things like returning values instead of an error code (and sett
23.
▲
by
pingyong
7y ago
When your main argument for not using exceptions for every kind of error handling is performance instead of architecture, then maybe it is a sign that exceptions should simply be constructed to be more performant instead of giving people ad
24.
▲
by
pingyong
7y ago
>Should everybody be incentivized to relocate to a developing country or tax haven because of the internet and your equality rule? Yes, actually. Well, tax havens shouldn't be legal in the first place, but getting people with good s
25.
▲
by
pingyong
7y ago
Reminder that the MySQL Timestamp type is still 32-bit. And probably will be until 2037, if we're lucky.
26.
▲
by
pingyong
7y ago
If she's not in high school I wouldn't worry too much. I essentially missed half of third grade, all of 4th and 5th grade and half of 6th grade, and by 8th-90th grade I was pretty much caught up completely without even a real catc
27.
▲
by
pingyong
7y ago
I could imagine that not causing symptoms would probably be ideal if the virus could survive endlessly and not get eventually killed by our immune system. But anything that does get killed by our immune system is kind of on the clock and ne
28.
▲
by
pingyong
7y ago
Considering the base idea isn't that DDG's search is better, but that their privacy is better, it's kinda the opposite. The people not using DDG would have to provide clear examples. (Or just say that they don't care eno
29.
▲
by
pingyong
7y ago
> You threw out $1000 a month, any reason? Well I think it needs to at least be high enough that other social spending can largely be cut (except for healthcare maybe), and that seemed like a reasonable value. Unfortunately I can't
30.
▲
by
pingyong
7y ago
Well, the thing in Germany is that (1) there is actually a decent amount of new housing being built in cities but (2) there are often strict limits around where you're allowed to build, what you're allowed to demolish, and how hig
More ›