Viewing profile — pingyong
pingyong
HN member- Joined
- Thu, Jul 11, 2019, 9:15 AM UTC
- HN karma
- 631
- Public activity
- 250 items
- HN profile
- View on Hacker News ↗
About pingyong
No profile information was provided.
Recent public activity
-
comment
Comment #23550981
>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 …
-
comment
Comment #23550769
>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 …
-
comment
Comment #23550406
Because usually if I want to store something I put it inside the box? Not sure how that is contrived.
-
comment
Comment #23550150
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 si…
-
comment
Comment #23549757
>Defaults aren't permitted. So, what happens if a bank goes bankrupt?
-
comment
Comment #23549680
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.
-
comment
Comment #23464310
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 som…
-
comment
Comment #22626367
>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…
-
comment
Comment #22626340
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…
-
comment
Comment #22626227
Well it can't really get much higher than 95% of the time!
-
comment
Comment #22605466
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 b…
-
comment
Comment #22605237
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…
-
comment
Comment #22603180
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 …
-
comment
Comment #22593920
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 te…
-
comment
Comment #22593606
They did that last gen already, PS4 and XB1 are just PC laptop hardware.
-
comment
Comment #22593589
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 ea…
-
comment
Comment #22593483
>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 …
-
comment
Comment #22592361
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
-
comment
Comment #22592050
Okay and which optimization does this allow for? What's the difference in the emitted binary?
-
comment
Comment #22591769
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?
-
comment
Comment #22567616
"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. …
-
comment
Comment #22566408
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 thi…
-
comment
Comment #22566262
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 c…
-
comment
Comment #22555161
>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 lega…
-
comment
Comment #22555090
Reminder that the MySQL Timestamp type is still 32-bit. And probably will be until 2037, if we're lucky.