>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…
>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 ask…
Because usually if I want to store something I put it inside the box? Not sure how that is contrived.
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…
>Defaults aren't permitted. So, what happens if a bank goes bankrupt?
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.
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.
>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…
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…
Well it can't really get much higher than 95% of the time!
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…
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…
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…
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 side effects ->…
They did that last gen already, PS4 and XB1 are just PC laptop hardware.
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?…
>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…
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
Okay and which optimization does this allow for? What's the difference in the emitted binary?
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?
"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…
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…
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…
>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…
Reminder that the MySQL Timestamp type is still 32-bit. And probably will be until 2037, if we're lucky.
>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…
>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 ask…
Because usually if I want to store something I put it inside the box? Not sure how that is contrived.
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…
>Defaults aren't permitted. So, what happens if a bank goes bankrupt?
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.
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.
>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…
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…
Well it can't really get much higher than 95% of the time!
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…
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…
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…
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 side effects ->…
They did that last gen already, PS4 and XB1 are just PC laptop hardware.
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?…
>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…
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
Okay and which optimization does this allow for? What's the difference in the emitted binary?
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?
"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…
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…
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…
>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…
Reminder that the MySQL Timestamp type is still 32-bit. And probably will be until 2037, if we're lucky.