HNHacker News
TopNewBestAskShowJobs

elbasti

2,024 karma · joined December 20, 2015

submissionscomments
elbasti··on A real case of Bobby Tables?
A quick search[0] of the Companies House site gives the following "cheeky" SQL names:

- DROP TABLE LTD

- DROP TABLE USERS LTD

- DROP TABLE CONSULTANTS; LTD

- ROBERT'); DROP TABLE STUDENTS; LIMITED

[0] https://find-and-update.company-information.service.gov.uk/s...

elbasti··on Deno Cron
What makes jobs "tricky" is that jobs are--by definition--entirely side-effects.

So: - What happens if the process where you called the job crashes? - What happens if the entire application crashes? - What happens if two threads/processes schedule the same job? - Should jobs be stored in memory? On disk? In a db?

Are all sort of interesting questions. Presumably the Deno runtime deals with this in a way that's opaque to the user, but that using "a library" does not, especially in a language like Javascript where processes/jobs are not really first-class.

elbasti··on Elixir at Ramp
> The one area where IMHO the jury is still out is LiveView.

Agree 100%. Unfortunately LiveView is quickly becoming the way of doing things, which I think is ill-advised. It makes the language larger, and is still too much in flux (it's not even v1 yet).

LiveView is great, but it's not perfect and has real drawbacks.

elbasti··on Elixir at Ramp
It's true that you can create custom guards, but they are still very limited, and they can only be made of a small list of allowed expressions [0].

[0]: https://hexdocs.pm/elixir/1.6.6/guards.html#list-of-allowed-...

elbasti··on AI.gov
Do you have a source for AWS employing 15K H1B holders? That's an insane number!
elbasti··on Why every microwave sucks these days
It seems like you have an amazing talent for reviewing electronics, and that you've identified a kind of review that doesn't exist in the market and people might find valuable!

NYT bought Wirecutter for 30 million dollars so... who knows, there might be a business here.

elbasti··on FTX "insurance fund" calculated by multiplying trading volume by random number
Gotta avoid bugs, imagine if they lost some customer funds due to poorly written code.
elbasti··on Show HN: Paisa – Open-Source Personal Finance Manager
The gnuCash documentation has it as you describe: debits checking and credits salary.

https://stuff.mit.edu/afs/sipb/project/gnucash/1.6.4/arch/i3...

elbasti··on A basic guide to using Asian names
Not at the mall, but at the park in a low-crime American suburb.

You're not going to get arrested but it wouldn't be surprising to get a "wellness check" from a suspicious police officer if children are playing at the park after 10pm.

elbasti··on A basic guide to using Asian names
Cultural considerations in visiting Norman, Oklahoma:

- *Hospitality*: Oklahomian's will make a great fuss about their level of hospitality, and will often invite you to visit them in their home, using a phrase like "show up whenever! welcome to the neighborhood!" This is not a genuine invitation, and actually appearing in someone's home without a formal invite will be considered highly rude. This is an American phenomenon known as "chit-chat".

- *Dress:* Oklahomians have rigid norms around clothing and dress, specifically around sportswear. There are two kinds of sportswear and wearing one in place of the other is considered highly rude. Sports items like sneakers, shorts, t-shirts, and even sports jerseys are considered appropriate wear for almost all occasions ("casual"), but not for actual sporting, unless of a specific cut called "activewear" (lycra, spandex, etc). Wearing activewear in a social setting and casual wear in an active setting are both considered highly rude.

- *Children:* Oklahomians have very strict norms of childcare. Under no circumstances should you allow your children under the age of 12 to leave your home without supervision. This includes walking or riding a bicycle in your neighborhood. Young children under 10--even while under adult supervision--are not allowed in public places after 8pm. Expect to get comments or looks if you take your children to a park or shopping mall after dark. After 10pm expect police intervention.

elbasti··on Nvidia announces financial results for second quarter fiscal 2024
A stock buyback trades certainty of wealth transfer (you're not sure the price will go up, or by how much!) for flexibility in when the investor takes the gains for purposes of fiscal planning.
elbasti··on Ask HN: As a self-taught developer, what are your self-directed learning tips?
In software development, there is such a thing as "good taste."

There are ways of structuring code, of naming variables, of writing documentation, that simply are better than others even though functionality may be the same.

There is no way of acquiring this good taste except by reading code written by people with good taste.

If you're self taught, the easiest way to do this is by jumping into some code bases that have been written by people with good taste. Look at how they name things. Which private functions they define vs which things are inlined. Which bits of code merit a comment.

The best way to do this is to find some oss libraries that _you_ use, and just looking at the source code for them. You'll quite quickly realize which are easy for an outsider to understand and which are hard. You'll empathize with a 3rd party reader. And you'll learn more about how they work too!

elbasti··on Ask HN: Who wants to be hired? (July 2023)
I've worked with marcandre before and can wholeheartedly endorse him. ← I was not asked to post this.
elbasti··on There Is No CD Revival
That math is incorrect. Imagine a simplified world with 100 listeners. They are all average listeners and listen to 10 songs per day, for a total of 1000 plays per day.

99 are pop fans and listen entirely to top 20. 1 is an outlier and listens entirely to jazz.

Royalty payments are $10/mo per user. ie every month there's $1,000 to be split between artists.

Under Spotify's current scheme, top 20 artists receive ($1,000 * (999/1000)) = $999 dollars. Jazz artists get $1.

Under my proposed scheme, top 20 artists would receive 99*10 = $990, while jazz artists would receive $10.

In other words, multiplying the income of "smaller" artists by 10x. Artists shouldn't get money from people that don't listen to them.

elbasti··on There Is No CD Revival
> And streaming is not returning enough to musicians for them to survive; it is only serving to increase income inequality in our industry. The revival we need, urgently, is of recorded music income - and that revival is not coming from silver discs.

The fundamental problem is that streaming income is distributed as a percentage of total (worldwide) plays, instead of being normalized as a percentage of plays per listener.

Let's say that Olivia Rodrigo accounts for 2% of all plays on Spotify this month. Even though I have never heard one of her songs, she's going to get 2% of whatever percentage of my subscription goes to royalties (75% I think, or $7.50). So even though I have never heard her music, she's getting my money. By the same logic, even if I spent 100% of my time play Obscure Band, they are getting basically nothing.

Instead, Spotify should pay artists as a percent of plays per listener. So if 10 indie artists this month account for most of my streams, they would each get ~0.75 each. Which is starting to look reasonable.

elbasti··on The End of Uber with Cory Doctorow
Uber was incentivizing new drivers—in the form of artificially high payments and losing money on rides.

This would have been fine if the market were winner takes all, but it turns out that it wasn't, so in a way they ended up subsidizing their competition.

elbasti··on The End of Uber with Cory Doctorow
Yes, but "people" also used the same arguments to describe the failure of facebook, snapchat, airbnb, amazon, etc. A sort of unsophisticated "these businesses are stupid/illegal/throwing money away" bearishness.

The reason those bears were wrong was because fb, snap, and airbnb are network-effects businesses. If ride-sharing had turned out to be a network-effect service as well, the bears would have lost.

I don't remember any arguments back then talking about why Uber was not a network effects business. And it's actually quite subtle!

For example, why did AirBnB win? On the surface homesharing seems VERY similar to ridesharing and yet it's behaved very differently as a bushiness and has not been a race to the bottom.

elbasti··on The End of Uber with Cory Doctorow
Uber's story is actually very rational.

When Uber started, we all thought it was a winner-takes-all market. The theory went something like this:

1. The more drivers are on a given platform, the more value users will derive from the platform in the form of cheaper rides, shorter waits, etc. This will result in more riders.

2. The more riders are on a platform, the more value drivers will derive in the form of higher utilization and more overall income.

3. Therefore, all drivers and riders will naturally gravitate to the winning platform. It's a winner takes all market. QED.

Honestly, at the time (and I'm old enough to remember that time), the theory made sense. But it was wrong.

The reason the theory was wrong is that there is actually zero cost for drivers in having multiple apps open at the same time. The switching cost is zero (actually, it's negative--we'll get to that in a second). And so point (3) doesn't happen.

The reason switching cost is negative is that it actually costs money to start driving (and to convince people to become drivers). People quit jobs, and get/fix cars, and invest in a bluetooth headset, whatever. So Uber was actually subsidizing every other platform's drivers.

So instead of an extremely defensible market you end up with a race to the bottom, with no barriers to competition.

While in retrospect the mistake and dynamics are obvious, at the time it seemed like a reasonable, risky, ambitious bet.

At some point these dynamics became obvious to Uber, which is when they started investing in self driving cars (never gonna work), uber eats, etc.

elbasti··on Key M1 Mac Engineer Departs Apple for Intel
More proof that California not allowing non-competes is a key driver of innovation.
elbasti··on Copyright doesn't need 95 years to get the job done
> and the real authors' influences and creativity would be extremely apparent in the character.

Is this true? The character of Phil Coulson is exactly this kind of character--created by the studio--and now a "mainstay" (if not a "VIP") of the MCU.

from wikipedia:

> Agent Phil Coulson was created by Mark Fergus, Hawk Ostby, Art Marcum and Matt Holloway for Iron Man, the first feature film in the MCU.

elbasti··on Copyright doesn't need 95 years to get the job done
I used to be very gung-ho about short copyright periods but my thinking has gotten a bit confused for two reasons:

1. I think there's virtue in limiting the modification --as opposed to the reproduction-- of works for some time after the death of the author. There's something distasteful about thinking of (to the use OP's example) Winnie the Pooh merchandise at Target, or The Winnie Pooh Movie having nothing to do with the "real" Winnie The Pooh. There is some value to the "sanctity" of a work IMHO, for some time.

In other words, avoiding the "dracula-ization" or "frankenstein-ization" (read: "gross commercialization") of works for some time.

That being said, it makes sense for the original, unmodified work, to enter the public domain. I think this is a distinction worth exploring.

2. More controversially, there are some works where there's a credible argument that the author is a "corporation." An example here is the Marvel Cinematic Universe. Each movie has the imprimatur of the director, but in the aggregate they feel very much "MCU" in style. If anything, the authors seem to be Kevin Feige, Louis D'esposito, and Victoria Alonso.

The characters were originally created by Stan Lee et al, but if Marvel Studios were to create a new character (and make that character a flagship one, etc) that character would genuinely be a corporate creation.

Would love a discussion on these topics.

elbasti··on This website has 81% battery power remaining
Wouldn't the correct css for the dithered image be `crisp-edges`? From the specification:

> The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process. [...] This value is intended for pixel-art images, such as in browser games.

elbasti··on The pandemic has deepened an epidemic of loneliness
One of thing that is obvious to me is the bizarre cultural norm that, in the US, people are expected to move away from home at the age of 18 and then relocate more-or-less permanently far away from family and childhood friends.

To my American friends this seems totally normal, and suggesting something different is ridiculed.

An obvious consequence of this is that American adults have 3 or 4 "social fabric ruptures" as they grow up:

1. When they turn 18 they move far from home to go to college temporarily. They develop a new group of friends, at the expense of being far from family & home.

2. When they turn 22 they move to Big City for a job. Probably _not_ where their parents live, and almost certainly not where their college friends live.

3. There's another (optional) move to Different Big City in late 20s

4. Finally they marry and in their early 30s they move to Suburb (leaving their Big City friends behind).

The result of this is an absolutely frayed social fabric. Not only do people leave their friends behind just as they start to develop deep friendships, they do so in an environment where building new friendships is harder (because they keep getting older).

If one wanted to design a system that maximized unhappiness, it would be pretty close to this! Of course Americans are lonely! They keep leaving their family and friends behind!

There's two reasons for this, imho.

Firstly, the cultural norm of "the real college experience" requiring dorms, facilities, football stadiums, etc. Being a commuter student in the USA is weird at best at most colleges, and certainly the good ones.

Secondly (and perhaps most importantly), is a set of policies (transit, zoning) that make the places where old people/families want to live different from the places young people want to live. This results in the 30-something move to the suburbs, but it also results in the 18-something move to the city or ~disneyland~ college campus: of course you don't want to be a commuter student if your parents live in the suburbs: there's nothing to do! You can't drink, you can't party, you can't do anything.

This social norm has a whole other series of consequences besides just loneliness. Financially:

- It's inefficient at best and ruinous at worst: Not only is sleep-away college expensive, it also creates a rat race between schools for bigger/better facilities resulting in runaway costs.

- Young adults entering the workforce don't live at home, which means they don't create a savings cushion to help them buy their first home in their late 20s (compounded with college debt due to the point above)

- Families with kids often end up far from grandparents/family/trusted friends, further increasing the financial "overhead" of just living.

elbasti··on Testing Phone-Sized Faraday Bags
> our eyes aren't very sensitive instruments

I take umbrage with that statement! Our eyes are exquisitely sensitive, and most importantly, have staggering dynamic range.

Our eyes are capable of perceiving a single photon [1], albeit noisily (I've been lucky enough to have performed this experiment myself!).

But the greatest thing about our eyes is the dynamic range: the difference in brightness between a moonless, starry night (which we are perfectly capable of navigating by eyesight) and a bright sunny day is nine orders of magnitude. A bright day is a billion times brighter!

Show me an RF receiver or light camera with that dynamic range!

The one place our eyes are limited is in frequency range.

[1] https://www.nature.com/articles/ncomms12172

elbasti··on John Carmack on Hiring
The best book I've read on hiring is "Who: The A Method for Hiring." It's so good in fact that I feel kind of bad sharing it, almost as if I were giving away a competitive advantage.

It makes a very simple point that runs counter to most silicon valley talk about "hire for slope not Y intercept" or "hire hustle" or whatever:

Hire people that have the skills necessary for the job that needs to be done. That's it! It sounds simple to the point of ridiculousness, but the truth is that most job descriptions/roles in an organization are written in a lazy way, in which the org has not actually done the work to figure out what specific skills are required by the organization to complete it's mission.

So instead, they hire for generalists, or for "people they like" or for people that fit a pattern--all because they haven't actually done the work to figure out what skills are actually needed.

Examples. A small startup puts up a job description for "senior ruby engineer." If the org is bottlenecked because they are working on very tricky code they should be interviewing for a very different engineer than if they are bottlenecked because they actually need someone who can ship simple CRUD features fast. "oh, but see we only hire senior engineers because {reasons}." Balderdash! Think about the problems you actually have, the skills and experience required to guarantee (or as close to it) that a candidate can Do The Job, and go.

elbasti··on Ask HN: Who is hiring? (September 2021)
Super.mx | REMOTE or Mexico City | Senior elixir, ruby-to-elixir engineer, design systems engineer | https://super.mx

At Súper we help millions of Latin Americans get insurance for the first time, so that they have some resiliency in their life when things go sideways.

We have an amazing engineering team with two very heavy hitters on including @malafortune and @bruce

We are looking for three very specific skillsets to compliment our team:

1. A fast-shipping elixir or ruby -> elixir engineer.

You have deep MVC experience in one of these two languages, and probably some early stage startup experience. You like shipping e2e features FAST.

2. Senior elixir engineer.

You are very experienced with Phoenix and have used it to build large projects in production. You are opinionated about contexts.

3. Design systems engineer.

Make our site consistent, beautiful and accessible, with an emphasis on improving the developer experience for the rest of the team. You're a CSS wizard.

sebastian@super.mx

elbasti··on The emergence of heat and humidity too severe for human tolerance (2020)
35 wet-bulb temperature is not survivable. That is not a matter of opinion, it is a fact. Your body generates heat and at that temperature it is unable to shed it through any means and you will die in a couple of hours.

If a major city has such a heatwave, it will almost certainly be a mass casualty event, mitigated only by the duration of the wave and how many people have A/C (or how long the blackouts last).

A fan won't work because your sweat will not evaporate: in fact it just heats you up faster (like breathing on your skin in a sauna).

Such temperatures have only been measured a few times on earth, so no, you have not experienced them.

elbasti··on Ask HN: Who is hiring? (August 2021)
Super.mx | Senior elixir, ruby-to-elixir engineer, design systems engineer | REMOTE or Mexico City

At Súper we help millions of Latin Americans get insurance for the first time, so that they have some resiliency in their life when things go sideways.

We have an amazing engineering team with two very heavy hitters on including @malafortune and @bruce

We are looking for three very specific skillsets to compliment our team:

1. A fast-shipping elixir or ruby -> elixir engineer.

You have deep MVC experience in one of these two languages, and probably some early stage startup experience. You like shipping e2e features FAST.

2. Senior elixir engineer.

You are very experienced with Phoenix and have used it to build large projects in production. You are opinionated about contexts.

3. Design systems engineer.

Make our site consistent, beautiful and accessible, with an emphasis on improving the developer experience for the rest of the team. You're a CSS wizard.

sebastian@super.mx

elbasti··on Bay Area cities want to end single-family home zoning
> and more efficient roads.

The efficiency of roads is limited by the fact that the vehicles occupying them are large, individually piloted, and have slow reaction times.

Throughout is limited because, as cars go faster, they need to be spaced out more.

We have known this for seventy years. Automobile highways simply cannot work for ultra high throughput corridors.

elbasti··on Desert plants are struggling in higher heat
> We're at 50% over pre-industrial CO2 with no viable way of getting rid of it, so at best it's going to stay that way for a long, long time.

It's much worse than this. For a long time the "worst case scenario" was the possibility that we'd unlock positive feedback loops that release methane (80x as "warming" as CO2) that had been long locked in arctic permafrost.

Remember the phrase "runaway climate change"?

Yeah. It happened. Even if bring human carbon emissions to zero, the world will continue to warm.

This is why of the utmost importance to stop fossil fuel emissions NOW... so we can win ourselves some time to maybe, just maybe, figure out clean carbon removal.

← PreviousPage 4 of 8Next →