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

Love the screenshot with the million shotgunners and cyberdemons, and a chainsaw.

comment 1y ago · link · parent

The way I think of it is "we can't know their state at all at some time in the future because we don't know their state exactly in the present."

comment 1y ago · link · parent

At a previous job they offered Linux laptops (yay!), but...

- umask was not 022, so installing pretty much anything with `sudo make install` would fail, as would some software.

- Running nmap caused an alert to phone home to IT, who would nag me on slack.

- Opening well-known ports to my LAN (like 22) caused an alert to IT.

- An "agent" program ran constantly, often using 100% of a CPU. The system overall had about 45 minutes of battery life.

- Various system settings were overridden by a sysctl.d/ file that was regenerated by the agent at boot. Fortunately I know how ASCII sorting works and could produce a file that overrode the overrides.

- Various capabilities (CAP_...) were disabled for my sudoer user.

It wasn't that bad, and IT was helpful, but it was a persistent annoyance. Maybe what happened is somebody googled "how to harden Linux" and then just made everything on the first page of results company policy.

comment 1y ago · link · parent

Lisp gives you an infinite amount of functions that operate on one data structure: the cons cell. :P

I guess all you really need are dynamically allocated arrays. A cons cell is an array of two. A struct with N fields is an array of N. Everything else is built on that.

comment 1y ago · link · parent

I tend to think of "rule of law" as describing the fairness of the courts. But then you need effective law enforcement for the courts to mean anything.

comment 1y ago · link · parent

In the [exec][1] family of POSIX functions, if the command path doesn't contain a slash, then it's looked up in the PATH.

> If the file argument contains a slash character, the file argument shall be used as the pathname for this file. Otherwise, the path prefix for this file is obtained by a search of the directories passed as the environment variable PATH [...]

[1]: https://pubs.opengroup.org/onlinepubs/009695399/functions/ex...

comment 1y ago · link · parent

It's the Innernette! <https://www.youtube.com/watch?v=x9S2ciB-6jc>

comment 1y ago · link · parent

Yeah I kept reading for the part where the author addresses the thesis, but that's not what it's about.

comment 1y ago · link · parent

The concern is that it's too easy to contribute to hot political topics. Moderation wants to prevent this forum from becoming identical to so many others, and the only tool available is to deemphasize posts.

comment 1y ago · link · parent

Suppose you can distinguish 16 colors. Somebody else can distinguish only 4. To accommodate the sees-only-4-colors person, you need to make sure that game elements are not differentiated by colors that look the same to the sees-only-4-colors person. One way to do this is to choose a color palette having only 4 colors and designing the game to still make sense that way. Also make sure that sees-only-4-colors can distinguish the 4 colors you chose.

comment 1y ago · link · parent

I'm reminded of a 2016 [talk][1] where Rob Pike describes the common-denominator assembly language that the Go compiler generates. Then that assembly is translated into machine-specific code via table lookups. See the 11 minute mark.

[1]: https://www.youtube.com/watch?v=KINIAgRpkDA

comment 1y ago · link · parent

> Tell me about other strongly-held positions you’ve changed as the result of a discussion like this one…

Fair point, but if somebody were actually to say that to me during a disagreement, I would assume that they were not acting in good faith.

Now instead of disagreeing about politics or whatever, you're asking a rhetorical question that insinuates "you are unreasonable."

comment 1y ago · link · parent

Python already has built-in data structure literals that allow you to express lispy DSLs:

    html(['ul', {'class': 'foo'}, *(['li', item] for item in items)])
I guess template strings do make it more concise. Kind of like Racket's "#lang at-exp racket".

The benefit of lisp-like representation is you have the entire structure of the data, not just a sequence of already-serialized and not-yet-serialized pieces.

comment 1y ago · link · parent

12 oz of 5% alcohol by volume water (let's say beer) has what mass of alcohol?

0.05 * (12 oz * ~30 mL/oz * ~800 mg alcohol / mL) = ~14 grams alcohol

comment 1y ago · link · parent

See point 1.

comment 1y ago · link · parent

The jobs I've had are about figuring out what to do, modifying code, and communicating why to other people.

It's fun to create a new thing or to remove an old thing that isn't needed anymore, but that's just when you can get away with it.

comment 1y ago · link · parent

"It's just the UI" is a prevalent misconception in my experience.

comment 1y ago · link · parent

Your friend would have to have quite the imagination for you to feel that you exist.

comment 1y ago · link · parent

Tidal effects from the sun are about 46% as strong as those from the moon.

<https://oceanservice.noaa.gov/education/tutorial_tides/tides...>

comment 1y ago · link · parent

This is addressed in the last paragraph of the article:

> Even if it works, the method will not generate energy from thin air. It would tap Earth’s kinetic energy and, in doing so, cause the planet’s spinning to slow over time — although only slightly. If the technique provided all of Earth’s electricity needs, which was around 11 trillion watts in 2022, this would slow the planet’s spin by 7 milliseconds over the next century, the authors calculate. This is similar to the change in speed caused by natural phenomena such as the Moon’s pull and changing dynamics inside the planet’s core.

comment 1y ago · link · parent

Paragraph after paragraph restating the question, then:

> In short ways, four forces of change – Kerala’s reintegration with the global economy, remittances from the Persian Gulf, strong welfare policies from a legacy of Leftist government, and private investment from individuals and businesses who shared the remittance flows – have combined to form the structure of Kerala’s miracle of human wellbeing with economic growth.

comment 1y ago · link · parent

In a sense this has been true of conventional programs for a while now. Gerald Sussman discusses the idea when talking about why MIT switched their introductory programming course from Scheme to Python: <https://youtu.be/OgRFOjVzvm0?t=239>.

comment 1y ago · link · parent

on the contrary, it sounds like the people in charge care enough about it to forbid the sale of books about it

comment 1y ago · link · parent

I didn't know that this was so widespread.

I assumed that people who are bothered by chewing noises are bothered because some parent traumatized them for making chewing noises, and that's all there is to it.

Sounds like there's more to it.

comment 1y ago · link · parent

It's better than it used to be, but I've long since had muscle memory for appending "mdn" to any webdevy or javascripty search.

I wish geeksforgeeks would die in a fire, no offense to its operators.

comment 1y ago · link · parent

As long as you hold it out towards the camera when it's somebody else's turn to speak.

comment 1y ago · link · parent

I second this. The cheap USB ones sound fine and never fail.

If I'm sitting at a desk at home anyway, I prefer to plug things in. Power: don't have to think about battery life or power saving modes. Ethernet: don't have to think about wifi. Headset: don't have to think about bluetooth, codecs, or battery. Keyboard: low latency, has followed me through four jobs.

I do use one of those wireless logitech mice, though. The AA battery gives it a nice weight.

comment 1y ago · link · parent

You know what grinds my gears about using XSD for message definitions? Namespaces. Namespaces are a good idea and were done well in XML, as far as I can see, but with XSD you run into this [problem][1]:

Namespaces are used to qualify tags and attributes in XML elements. But they're also used by XSD to qualify the names of types defined in the schema. A sequence element's type is indicated by the value of its "type" attribute. The attribute value is a string that is the namespace-qualified name of the type.

So, if you want to change the alias of an XML namespace in an XSD schema, you can't just use your XML library's facilities for namespace management. You also have to go find the "type" attributes (but not all of the "type" attributes), parse their values, and do the corresponding alias change in the type name.

Don't use a string for a thing that is not a string! I guess in XML attributes you have no choice. XAML improved on the situation a bit.

[1]: https://github.com/dgoffredo/stag/tree/master/src/stag/xsd-u...

comment 1y ago · link · parent

Their biz is ads, but since search is winner takes all they need only be marginally better than the competition... twenty years ago.

comment 1y ago · link · parent

[flagged]
1
101112
38