Better HN
topnewbestaskshowjobs
Log inSign up

MathMonkeyMan

2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions

Submissions

comment 1y ago · link · parent

Even three bodies under newtonian gravity can lead to chaotic behavior.

The neat part (assuming that the result is valid) is that precisely the equations of fluid dynamics result from their billiard ball models in the limit of many balls and frequent collisions.

comment 1y ago · link · parent

It's interesting that by overdrawing methane (for energy), you introduce oxygen, which makes the compost pile too hot. I wouldn't have thought of that.

Lets build an aerobically bio-heated power station!

comment 1y ago · link · parent

Unsigned ints are the non-negative integers mod 2^n.

Signed ints behave like the integers in some tiny subset of representable values. Maybe it's something like the interval (-sqrt(INT_MAX), sqrt(INT_MAX)).

comment 1y ago · link · parent

And the operators +, -, *, and / lack some of the properties of addition, subtraction, multiplication, and division.

Tom7 has a good video about this: https://www.youtube.com/watch?v=5TFDG-y-EHs

comment 1y ago · link · parent

I was responding to the question:

> So why not have the worker get/keep more of his money, instead of giving it to a different group of "others"?

The quote is implying: "rather than tax people and give that money to others, just have people keep the money they make."

My point is that this would not necessarily help the taxi driver much, since he probably doesn't pay much in taxes anyway. His issue is that his wage is not high enough.

One could argue that taxi driving shouldn't exist or should be relegated to some impoverished underclass, or one could argue that the issue is with the taxi driver's lifestyle expectations and not with the low wage, or that taxi drivers should find other employment, thus reducing the supply of drivers and either raising wages or "rightsizing" the driver workforce.

In any case, I don't agree with the parent poster's implication that lowering taxes is a viable alternative to tax-funded universal basic income.

Lowering taxes benefits most those who pay a lot of taxes, and those are the people who are least directly affected by the removal of tax-funded welfare programs. Sending the money to "others" is the point.

Keep in mind that the taxi driver is just a made up example, and I myself am not sold on the idea of universal basic income.

comment 1y ago · link · parent

> Channels should remain a low-level primitive to build pipelines, but they're not what you should use as your main API surface.

I remember hearing (not sure where) that this is a lesson that was learned early on in Go. Channels were the new hotness, so let's use them to do things that were not possible before. But it turned out that Go was better for doing what was already possible before, but more cleanly.

comment 1y ago · link · parent

Because the taxi driver could keep all of his money and still wouldn't make very much.

comment 1y ago · link · parent

I didn't look, but I don't think of channels as a pub/sub mechanism. You can have a producer close() a channel to notify consumers of a value available somewhere else, or you can loop through a bunch of buffered channels and do nonblocking sends.

A different design, without channels, could improve on those.

comment 1y ago · link · parent

I don't want to read the news often enough that I'd pay for a subscription. Not anymore, anyway.

Maybe I should go back to paying [7 bucks](https://store.nytimes.com/products/print-newspapers) every time I want to sit down and read the news.

comment 1y ago · link · parent

It seems the lawyers are making it difficult: https://www.nyc.gov/site/dep/environment/idling-citizens-air...

comment 1y ago · link · parent

I do this so I can watch powerpoint style math videos with the colors inverted, so it's white text on black background instead of black text on white background.

Download the video and then open with `mpv --vf=negate --hwdec=no`.

comment 1y ago · link · parent

Yeah I've been getting the initial delay with the popup "find out why playback is slow." No thanks, I already know, and it's not so bad.

comment 1y ago · link · parent

Entropic gravity is a compelling framework. I think that most Physicists admit that it would be nice to believe that the yet unknown theory of everything is microscopic and quantum mechanical, and that the global and exquisitly weak force of gravity emerges from that theory as a sort of accounting error.

But there are so many potential assumptions baked into these theories that it's hard to believe when they claim, "look, Einstein's field equations."

comment 1y ago · link · parent

I've read comments like this on hacker news more and more recently. What narrative is behind it, and what is the evidence for this narrative?

Is it "Enemies of the USA are deploying social media based psyops that destabilize the country by astroturfing propaganda?"

That's an interesting idea, probably true, but also sounds like a conspiracy theory. Even if it is true, how would we know to what extent it affects public opinion?

Or maybe you're referring to something else.

comment 1y ago · link · parent

No, it's more like watching a mob poison the town well, and then yelling at the mob. It's not a meteorological problem, it's a social one.

comment 1y ago · link · parent

Fair point. Maybe I had a better than average Calc 2 teacher, and then went to a (good) state university with lackluster entry courses.

comment 1y ago · link · parent

And, in my limited experience, a high school teacher getting 10-30 kids ready for an AP exam is way better than sitting in a lecture hall with 300 premed weedouts.

comment 1y ago · link · parent

I thought the same thing. Maybe "working" as in "providing value to investors." Or maybe "getting clicks on hacker news."

comment 1y ago · link · parent

One of Rob Pike's talks convinced me that the tendency to add features from other languages causes languages to all resemble each other. It's not a bad thing, but it's something to note. Consider the alternative: What if we had different languages for different tasks, new languages appearing from time to time, rather than accreting features onto existing general purpose languages every few years?

He also made the point that if you have two ways of coding something, then you have to choose every time. I've noticed that people disagree about which way is best. If there were only one way, then all of the same problems would be solved with the same amount of effort, but without any of the disagreement or personal deliberation.

Maybe Go should have exceptions beyond what panic/recover became, or maybe there should be a "?" operator, or maybe there should be a "check" expression, or some other new syntax.

Or maybe Go code should be filled with "if" statements that just return the error if it's not nil.

I've worked with a fair amount of Go code, but not enough that I am too bothered by which pattern is chosen.

On the other hand, if you spend more than a few weeks full time reading and editing Go code, you could easily learn a lot of syntax without issue. If you spend most of your career writing in a language, then you become familiar with the historical vogues that surrounded the addition of new language features and popular libraries.

There's something to be said for freezing the core language.

comment 1y ago · link · parent

Looks like it. There's [ar][1] and that's all I can find about it. [pax][2] is linked at the bottom, but is not required to understand the ar format.

[1]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/ar.html

[2]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/pax.html

comment 1y ago · link · parent

> I find it easier to think about the utility of semicolons from the perspective of individual sentences to be combined. And therefore, if a properly used semicolon were to be replaced with a period, the two resulting sentences should still make sense in isolation, they'd just feel ever so slightly too far apart.

I find it easier to think about the utility of semicolons from the perspective of individual sentences to be combined; and, therefore, if a properly used semicolon were to be replaced with a period, the two resulting sentences should still make sense in isolation -- they'd just feel ever so slightly too far apart.

comment 1y ago · link · parent

Here's one with 16 tables: <https://raw.githubusercontent.com/dgoffredo/sqliteviz/refs/h...>.

Not the prettiest, but workable.

I wouldn't try it on 100 tables.

comment 1y ago · link · parent

If it's sqlite compatible, then there a many solutions. In general it's trickier.

plug: https://github.com/dgoffredo/sqliteviz

Not web based, though.

comment 1y ago · link · parent

The author's wife could only tolerate so much.

comment 1y ago · link · parent

Wikipedia says that the bomb that destroyed Hiroshima had a yield of about 16 kilotons of TNT. 600k of those would be 16*600 megatons, or 9600 megatons. That's 96 times more than the original target yield of 100 megatons for Tsar Bomba.

I don't know if that's possible, but it makes sense that it would "reduce a region the size of France to ashes." Maybe the design had a lot of stages.

comment 1y ago · link · parent

Trust us, bro. We paid bottom dollar for this software.

comment 1y ago · link · parent

time flies like an arrow

comment 1y ago · link · parent

> 88.2 m/s^2

Isn't that more like 9g?

1
91011
38