8,214 karma · joined Nov 7, 2019 (7y ago) · 5,323 submissions
comment 4y ago · link · parent
Algos in Plain English – Mult, Div, and Mod make for Efficient Division
The "binary intuition" is that "what you already know from grade school about multiplying and dividing numbers the long way on paper, by lining up and shifting columns of numbers, is even easier in binary because shifting is multiplication and binary only has a 1 or a 0 in every place.
I just think it's a little wrong to say "we're not mulitplying" when we are. And when you use Mult, Div, and Mod operators, that's what they do.
comment 4y ago · link · parent
here's a simple case you may have encountered yourself: you order a shopping cart of a fair amount of stuff (not even that much) from Amazon, and click purchase. Later you're wondering about an Amazon charge on your credit card so you look in your emails from Amazon and you log into your account on Amazon, and you can't match the charges on your card with any of your shopping transactions with Amazon, the numbers bear no resemblance to one another. Amazon is not bookkeeping in a way that's at all useful to you. Since you are the consumer of the data, they're not fulfilling their accounting obligation which is clear presentation of the record.
I have no doubt that their calculations are correct, but just as computers can free us from the burden of adding up numbers correctly, computers can also do other tasks we find burdensome, like double entry bookkeeping. When as a programmer I used to resist writing code that seemed inelegant, my old boss used to remind me that the computer was the drudge, a mere servant to the whims of the various humans using it. If Amazon wants to rejigger your shopping carts with respect to backorders and shipping, they could easily do it in a way that allowed you to reconcile your statements simply.
comment 4y ago · link · parent
exponential has two meanings depending whether you studied and understood what exponentials are in a math class, or did not.
if you did not but you've learned the word through repeated verbal contexts, it means "bigly"
also, in the example given of F=ma, the "a" is characterized as "speed" (per second) which it is not; but rather "acceleration" (per second per second) which is related to speed via an integration over time (seconds), but that's a f(unctional) relationship as is exponentiation, so from context I think people pick up that exponential means something like biglyly
(When I read the Mysticization title I was prepared for a pun on the game Myst, but it didn't show up. Myst and SimCity date from the same period of time, and SimCity is a system dynamics game. I was disappoint.)
comment 4y ago · link · parent
for the readers, contra accounts keep track of expected adjustments, particularly "opposites", So when you sell items you also expect a percentage to be returned later by dissatisfied customers. If you book all sales revenues as they occur, that will show an "untrue" number, so you book expected returns into a contra account so you can see what your actual revenues are expected to be. Then later when you have accurate information on returns you use those values to unwind the expected values you put in.
Accounting is all about providing accurate information to various "stakeholders" who might be looking at the books.
comment 4y ago · link · parent
Brutalist buildings are generally very unpleasant to visit.
comment 4y ago · link · parent
double entry bookkeeping not only "checksums" these quantities for errors, but also gives you different snapshots of your business, how much money do you owe in the short term, how much in the long term, on average what's the profit margin, how much tax do you owe this year.
other people can also look at your accounts and check up on random sample pieces of information to ensure it's not all made up.
It creates a clear picture where the raw data is somewhat murky, which enhances trust on many levels.
comment 4y ago · link · parent
people are used to thinking of personal debt which they need to repay.
Corporate debt is not repaid, the %age is considered part of the "capital structure" of the company. It's a type of ownership, equity holders own the frothy top of the company, bondholders own the underlying assets at the bottom. As corporate bonds are repaid, new bonds are issued, renewing the debt. The fixed %age interest payments on the debt are a cheap way for the equity holders to increase their profits.
Government debt is more in the category of corporate debt, repaying it is not part of the plan, the goal is to move future spending into the present for long term infrastructure projects, etc. And as long as the economy grows so the debt percentage stays manageable, it's not an issue.
comment 4y ago · link · parent
the strategic reserve is for times of national defense. As long as it's lowered, we are more vulnerable to expanding threats from Russia and China, with potential disruptions to supply lines.
Otherwise, it's good for our oil prices to fluctuate with the market, things cost what they cost.
The strategic reserve is so we have ready access to oil at any price; it's not big enough to buffer very much of world market consumption.
comment 4y ago · link · parent
The US doesn't do that. You're probably confusing the increase in the US debt with money supply. So long as the economy grows (as it has over the last 20 years) then the debt is not a problem
comment 4y ago · link · parent
I agree except that the more naive among them are always one click away from being wide open to downloading and installing malware, you can't lock that stuff down without making the account very inconvenient to use.
Linux, at least it's at least a bit of a pain in the ass to download and install something even if you want to.
comment 4y ago · link · parent
It was a hot mess and took over several bash/emacs control keys. It did a nice job of searching history, but I hated that it paralyzed my keyboard usage
comment 4y ago · link · parent
> ...and they are not organized into teams. Here, the title qualifies Battle Royale...
but in this incident they were organized in teams
comment 4y ago · link · parent
https://en.wiktionary.org/wiki/battle_royal#English
https://en.wikipedia.org/wiki/Battle_royal
books.google.com search "battle royale" in the 19th century, you'll see talk of ladies squabbling and how to conduct a mass cock-fight
comment 4y ago · link · parent
>> I do however expect the compiler documentation to have an extensive section on stuff undefined by the specification and he should have said which is defined by the compiler
so your response is not to what he meant
> There is an entire section of the C specification that lists every single undefined behavior. What more do you want?
a similar section wrt the compiler he is using, because he's talking about "behavior undefined by C but defined by implementation"
comment 4y ago · link · parent
pure ethanol is flammable, particularly when aerosolized https://firefighterinsider.com/ethanol-flammable/
boric acid (an irritating white powder) is highly effective