163 karma · joined May 14, 2019
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.
'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.
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!
[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.)
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.
I'll know that the stone masons crashed planes into the world trade center to destroy the studio where they faked the moon landing?
> 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.
Wow it didn't take long for evidence of that to surface:
https://www.wsj.com/articles/facebook-knows-instagram-is-tox...
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...
"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.
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?
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
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?
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.
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-...
Also yes. Also white flight.
IIRC that was based on the ford pinto
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.
https://www.languagemagazine.com/2015/08/17/whistled-turkish...
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.
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.
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.
We are such barbarians that I assume that tech will not exist to future generations.
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.