HNHacker News
TopNewBestAskShowJobs

GLGirty

163 karma · joined May 14, 2019

submissionscomments
GLGirty··on SARS-CoV-2 infects human adipose tissue and elicits an inflammatory response
Maybe at levels of obesity where it affects mortality, the gender difference in fat composition is negligible?
GLGirty··on Lego has designed a set that can't be taken apart
bullwhip + lightsabre hilt = ghostbuster proton wand
GLGirty··on After 150 years, we should finally redesign the computer keyboard
My first task with a new system is to remap capslock. I like having it replace ijkl with arrows, but my muscle memory is now so dependent on this convenience I am impeded when I switch back to a vanilla keyboard.
GLGirty··on Modern PHP Cheat Sheet
I found that php8 has brought numerous features that will formalize things I am currently doing as hacks and workarounds.

Exceptions as expressions--I can stop writing, `$x = $context['x'] ?? ThrowWrapper::missingValue('x');`

Named Arguments -- I use a hacky diy `Reflection` heavy version of this for an RMI/dispatch where json key-vals mapped to function params.

Static return type and union types -- I have been relying on PhpStorm docstring hacks for this sort of type-hinting.

`readonly` will be very helpful to express performant, immutable classes. I have a number of classes that are immutable-by-convention, trusting the caller not to monkey with the internals. (The idiomatic way to do this, `$immutable->getAttr()` is too costly in tight loops compared to `$immutable->attr`)

PHP still has lots of warts (function calls why you so aspensive?!?!?) but I keep being pleasantly surprised by how good of a tool it's evolving into.

GLGirty··on Capitalism’s over: The man who made millions betting economy would never recover
> snappy 1 word reduction is generally not a very good idea. It just leads politicization

'Sound byte' reductive labels seem to be a symptom, not a cause, of political tribalism. Or they are both side effects of attention driven add-supported platforms, where the degenerate strategy for attention is outrage. Or they're all mutually reinforcing.

I want to live in the world where labels still have value. But that will require a cultural shift back to people listening to each other. "Supply and demand" is a simple label, but we can still say it and unpack all the ways it's manipulated. We just need to let words be stepping stones and not lines in the sand.

Anyway, that's getting very meta and further from a chat on feudalism. Insights I'd love to hear from a historian include: How much worse was serfdom than current wage slavery? How much of that was a function of technology? What alternative (better?) systems existed at the same technology level? What forces led to feudalism being replaced? Do they have contemporary analogues that can now help us reduce wealth inequality and protect the middle class?

Asking just because it sounds interesting. Not trying to pigeon hole your politics OR have you write my undergrad history paper. Cheers.

GLGirty··on Capitalism’s over: The man who made millions betting economy would never recover
"Neo Feudalism" is a dumb term... but people say "hold down the fort" O_o

I'd love a more nuanced term, but I don't think 'minimal social mobility' is snappy enough to catch on. What's a better label? Asking sincerely as a person with only a passing familiarity of historic economies.

> we know pretty well what mechanism drive the insane prices

Asking four people here would yield five different answers. And they'd all be somewhat correct and correlated!

GLGirty··on Will it rot my students' brains if they use Mathematica? (2002)
You make a good point that hiphop has a misogyny problem, (it also suffers from misogyny's sibling disease, homophobia,) but why keep that issue focused on black music when all music has a misogyny problem[1]. Is Kanye worse than Robin Thicke or The Nails?

[1]https://www.flavorwire.com/489278/25-of-musics-most-obnoxiou...

Edit: Thanks for your Soundcloud link. I like your flow. You make fair points, but I see no evidence that any of the issues you raise are worse in hiphop than any other genre. (Or that hiphop's issues are internally generated, and not amplified by an exploitative industry that makes bank off stereotypes.)

GLGirty··on Will it rot my students' brains if they use Mathematica? (2002)
Please let's not point fingers at hip hop as if there are not lots of examples of violence in rock, pop, and country. If you suggested "Janie's Got A Gun", "Pumped Up Kicks", and "Goodbye Earl" were making kids more violent, you would be laughed out of the room, Karen.

Music is a reflection of culture, and when there is violence in culture, artists make art out of it to cope. If black music seems more violent to you than white music, please meditate on how much more violence black people experience than white people, and why someone would presume one genre is reactive and another genre is causative.

GLGirty··on The metaverse is already here – it's Minecraft
> The internet will basically be an extension of your brain. What the internet knows, you'll know.

I'll know that the stone masons crashed planes into the world trade center to destroy the studio where they faked the moon landing?

GLGirty··on WhatsApp scaled to 1B users with only 50 engineers
The difference between hero or primadonna can be environmental. When there are multiple experts for a department/tech stack, you get heroes. If the bus number is one, a hero risks converting to a primadonna.
GLGirty··on 2006: Dwarf Fortress
Do you think software is a medium that can create one-person (or small team) masterworks in any form but games? Candidates that come to my mind are lisp, unix, and visicalc. I wonder if the nature of software means that craft code is destined to fossilize.

> If humanity survives to 2121, there are going to be some amazing games.

My great grandkids can enjoy that if they survive antibiotic resistant microbes and the water wars.

GLGirty··on Leaded gas was a known poison the day it was invented (2016)
> The people making money knew exactly how dangerous it was and the problems it caused

Wow it didn't take long for evidence of that to surface:

https://www.wsj.com/articles/facebook-knows-instagram-is-tox...

GLGirty··on The U.S. Army tried portable nuclear power at remote bases 60 years ago
Why the downvote? Here is a citation [1] that molten salt reactor was killed for political reasons.

Or was I jumping to conclusions to suggest that activists knew or cared about such details?

[1] http://moltensalt.org/references/static/downloads/pdf/WhyMSR...

GLGirty··on The U.S. Army tried portable nuclear power at remote bases 60 years ago
The safety concerns of the activists could have been quelled by developing thorium as a fuel. it appears to be very safe, too safe maybe to get funding. Instead, the technology that got developed was the one that created weapons grade material as a byproduct.

"We'll build one near you. Oh we could build a completely safe one, but instead we're going to build the mostly safe one. We're willing to put you at risk if the commies also feel more at risk."

I don't normally sympathize with nimbys, but I think that pitch deserved some pushback.

GLGirty··on Write an SQL query builder in 150 lines of Python
I'm in a similar environment--a very small crew.

I'm curious what feature subset you settled with. Ours got as far as aggregate ops, and the complexity of that turned out to be 'hydra'. (Surely I've cut off the last head!)

By that point we were painted into a corner with the in-house query builder... there was no off-the-rack ORM that had semantics for combining queries. (i.e. meld together query A and query B so that the result cells are union or intersection.)

You seem familiar with the problem space, I'm curious what your experience was. What feature(s) made you draw the line and say, 'when we need it we'll migrate to X'? What are your "real ORM" candidates for X to bridge that gap?

GLGirty··on Write an SQL query builder in 150 lines of Python
> simulating SQL via your languages nestable data structures

I've gone down this rabbit hole... you've described the in-house query engine I work with.

Instead of sql, queries are nested json representing a dumbest-possible sql parse tree. It's only a subset of sql features, but it provides, as you point out, composability. By having the query as a data struct, all sorts of manipulations become possible... toggle fields for access control; recovery from dropped or renamed columns (schema has a changelog); auto-join related tables as required; etc.

It's magic when it works but it suffers from the drawbacks noted elsewhere in the thread about traditional ORMS... onboarding new devs, debugging when something goes wrong.

Adding new features to the dsl is a pain because the surface area is not just _the query_ but _all the queries it might form_ when composed with other queries in the system O_o

GLGirty··on Canada to Ban Sale of New Fuel-Powered Cars and Light Trucks from 2035
'How do we power cars' is a red herring question.

Cars are a symptom of sprawl, and sprawl is exceeding it's scaling limits. Canada is well past the limits of traffic and noise and death by collisions that are tolerated by nations with happy citizens.

If we don't fix the egregious shenanigans in our housing market, by 2035 property owners will be a heridary caste. When rent and food cost 100% of median income who is buying cars?

GLGirty··on Stress does turn hair gray, and it’s reversible
Anecdata, but I've witnessed re-melanizing of formerly gray follicles.

My wife tried intermittent fasting after reading some health claims about it. (i.e. autophagy). In the beginning I was skeptical.

After a month or so of intermittent fasts, her hairdresser noticed an obvious line of salt and pepper hair that was growing in brown at the roots.

I now believe the health claims of fasting have merit, and I hope future research can quantify the degree of benefits.

GLGirty··on Catalytic Converter Theft
Yes the only thing in the way is a huge international lobby industry that pays politicians to turn a blind eye to systemic labour and environmental exploitation.
GLGirty··on Strong Towns Has Filed a Lawsuit Against the Minnesota Board of Engineering
In my travels, I have been to multiple cities where the advice is, NEVER USE UNLICENSED TAXIS. Tourists are grifted or worse by unlicensed drivers. I read a tragic hand written warning at a youth hostel by a victim who was held a knife point and driven around to every ATM in the city, draining their account $200 per machine (local limit.)

Closer to home, in my province, there have been issues with AirBnB operators not being properly insured. If you were injured because of something unsafe on the property, compensation could be difficult or impossible. There have been instances of airbnb rentals that have hidden cameras in rooms you would assume to be private. I personally would feel safer if bad behaviour can get a person banned from renting rooms.

Anecdata, but what the fork was going on here? And do we think it would happen at a hotel? https://torontosun.com/news/provincial/hunter-toronto-woman-...

GLGirty··on Strong Towns Has Filed a Lawsuit Against the Minnesota Board of Engineering
> Wasn't Detroit's problem that it

Also yes. Also white flight.

GLGirty··on Peloton recalling all treadmills after reports of injuries, one death
> The fight club defence

IIRC that was based on the ford pinto

GLGirty··on A house 3D printed from raw earth
Do you have have links for monastery? I have so many questions... how big is it? what does it look like? I love the idea of earth as a building material, and I'd love to see what the state of the art is now. Do we, as a species, possess the skill to build a Guastavino vault as good as a century ago in New York? Or something as pleasing Cuba's National Art Schools?

3d printing a building might be a cursed problem. If it doesn't scale past single-family dwellings, it's useless. Mo sprawl, mo problems. How could this tech scale up to the size of an apartment building? If you have a big crane, prefab panels are certainly cheaper and faster. Maybe if you built in the style of Agadez Mosque, with the scaffold incorporated into the structure, the robots could climb as they build. That seems to rule out toothpaste extrusion as a technique since the cure time would be a bottleneck. (Let's rule out energy intense curing agents.)

A bricklaying robot... supplied with bricks via the scaffold in the structure.... could the engineering to do that possibly be cost effective against skilled humans? Or the big crane? We haven't even considered aesthetics.

Cursed. Problem.

GLGirty··on What is the hardest language in the world to lip-read? (2020)
I am surprised they didn't mention whistled turkish, (which in my mind is the closest thing irl to astromec.)

https://www.languagemagazine.com/2015/08/17/whistled-turkish...

GLGirty··on Far-Right Misinformation Drives Facebook Engagement
I followed up and spent some time on media bias fact check, i found it really informative to see the far-left falsehoods. GMO foods show up a lot in the pseudoscience category. Outside of those, most falsehoods tend to be exaggerated stats, e.g. 70% of black inmates are incarcerated for minor drug charges.
GLGirty··on Far-Right Misinformation Drives Facebook Engagement
> It happens to the left too, even on Facebook

The researchers said they sampled for this and did not find it was the case.

Extreme leftist facebook feed may not be statistically likely, but if it exists screencaps please, i am morbidly curious what it looks like.

GLGirty··on I Like That the Boat Is Stuck
Being unmasked signals that you distrust ivory tower eggheads.

Absurdist beliefs are a strong social signal. It seems like a deep feature of human wetware. It's probably how facebook is so effective at incubating distributed cults. (Search hn archives for the essay on 'crony beliefs' for an excellent dissertation.)

To be fair, it's probably the case that both facets of the republicrat party believe false or useless things that serve as signals. (e.g. University for everyone is good. Electric cars save the environment. etc)

As a formerly religious person, I now assume some of my beliefs are nonsense and that I can't tell which ones. I try to engage with people whose political views are way outside my own just as a safety check on my own though processes.

GLGirty··on I don't want to learn your query language (2018)
This is an essay version of xkcd 'standards'. It's not wrong, but it's not the entire picture.

The author is correct, sql does everything they need, cause it's so expressive. (Mysql8 is turing complete with it's domain specific syntax duh-duh-daah...) But that power comes at the cost of scrutiny and composition.

ORMS are fish in a barrel--they fail because they are the wrong abstraction. Queries shouldn't be the language, they should be the verbs in the language.

With a very restricted query AST, introspection and composition are possible. If queries point to the same table, you can combine them into a new query whose result cells are union or intersection of the input result cells. You can automate joins and subquery indexing. You can recover from a dropped column by replacing references to it with null, and limp by with partial results instead of no results.

I agree with the author's hate on DSLs as a substitute for sql... when they have the same level of abstraction. But if you want queries to be lego bricks that snap together, the bricks can't have NP hard surface area. DSLs fill that need.

GLGirty··on Girls perform better academically in almost all countries (2015)
> They'll also be able to datamine the internet

We are such barbarians that I assume that tech will not exist to future generations.

GLGirty··on The decline of computers as a general-purpose technology
A had a similar reaction to the article, and I appreciate your cosmic analogy.

The metaphor that came to my mind was the long persistence of steam power after electric motors were invented. Initially, 'going electric' meant replacing your one giant steam boiler with one giant electric motor, and doing everything else the same way. The factory remained organized around the drive shafts and pulleys and mechanical distribution systems. There was little advantage. It took decades of experimentation to gain the insights of how many small motors and task lighting could allow a factory to be optimized for task flow, not power distribution. And then it took longer for those insights to diffuse through slow human networks.

Hardware has developed so fast that software had no time or incentive to mature. Each decade's tech just gets ossified into the stack because hardware was making the stack faster at a better rate than human insight.

Every few decades, we get lucky and an invention happens when the ecosystem can use it... so we get compilers and sql and automated tests. But then other insights like immutable data structs just stay niche.

I hope that as hardware progress flattens, opportunities emerge for better software paradigms. Maybe this will coincide with the craft of software becoming introspective about it's myriad social issues.

← PreviousPage 3 of 4Next →