HNHacker News
TopNewBestAskShowJobs

Zxian

59 karma · joined December 14, 2016

submissionscomments
Zxian··on The largest electric aircraft just flew [video]
Yeah, and they require a place to build. Do you think bridges between the Hawaiian islands is feasible?

Report recently from my area.

https://www2.gov.bc.ca/gov/content/transportation/transporta...

Zxian··on The Religion of Speed
You clearly didn't read this. It's about rowing. Not being on a playground.
Zxian··on AIs don't do what you want. This is bad
I had updated a GQL schema and wanted my agent to update the frontend to suit. I told it the server was running, that it could run specific commands to regen types, etc.

It got itself in a loop and killed the running backend process, then searched my filesystem for the changes it thought it needed (not the ones I gave it) in order to run its own copy of the backend.

That is precisely _not_ what I _told_ it to do. The other part of this is that I find, unless explicitly told to ask questions, they don't do a good job of gathering evidence before making such decisions. I'd much rather have my agent ask me a clarifying question than start killing processes at will.

Zxian··on I let LLMs write an Elixir NIF in C; it mostly worked
I'd also recommend having a look at the Zig library for Elixir. For simple stuff, you can just inline, but support for pretty complex setups too.

Also comes with a built-in BEAM allocator so the runtime properly reports NIF memory consumption.

https://hexdocs.pm/zigler/Zig.html

Zxian··on Dianne Feinstein has died
I don't think it's fair to assume that votes are representative of performance. Politics are a popularity contest first and unfortunately that means image is more important than actions.
Zxian··on The Asymmetry of Open Source
https://codecodeship.com/

They do exist.

Zxian··on Half of Americans now believe that news organizations deliberately mislead them
I lie to my children when I say that the TV needs to recharge after their morning shows. A way to divert their attention elsewhere, but not out of malice.
Zxian··on Is tipping getting out of control? Many consumers say yes
The business transaction between me and a restaurant is for the food and service they provide. I pay the restaurant, the restaurant pays the labour.

Refusing to tip isn't refusing payment. If it were, I'd be illegal (i.e. theft). Labelling this as "sharing the labour cost" is precisely the problem at hand.

If I hand my pizza delivery driver a $5 bill, I intend it to be a bonus for the driver, not a subsidy for the business. I have zero incentive to pay the business any more than the prices they advertise.

Zxian··on Manhattan rents cross $5k threshold for first time
New York City already has a significantly higher population density than Tokyo (~11,300/km2 vs ~6,300/km). It's easier to develop more housing when you have more land.
Zxian··on What’s in Which Python
Which OS prevents you from installing another python runtime?

I install python using asdf on both MacOS and various flavours of Linux.

https://asdf-vm.com/

Zxian··on There’s no need to change passwords if they're robust, unique and not breached
The intent of the policy doesn't match the real-world implementation of users. Users are lazy. Users will alter a single character or digit in the password and call it changed.

Most people don't use password managers, and some companies block their usage. Now add a requirement of a "secure" password.

Zxian··on Ask HN: App ideas to learn Phoenix / Elixir
To add to this, you don't need to come up with the game mechanics. I'm taking this approach with making a LiveView-based version of the board game Azul.
Zxian··on The purpose of DRM is not to prevent copyright violations (2013)
Time is a consumable. It is not infinite, and it is unique to each individual.

We do not "trade" time in jail between society and an individual. We deny certain freedoms for a period of time. There is no economic equivalent when it comes to time.

Learning is a process that consumes time now for improved capability or efficiency in the future.

Zxian··on Police in the US shoot dogs so often, an expert calls it an “epidemic” (2016)
Why is B much better here? It enables the officer to claim they felt threatened when no valid threat existed and then exercise lethal force in self defense (whether or not the threat was valid).

I can't think of any reason why someone should be justifiably disappointed they couldn't apply lethal force.

Zxian··on Breonna Taylor case: Louisville police nearly blank incident report
Correction: while minimizing the risk of death. Tasers can still kill people.

https://en.m.wikipedia.org/wiki/Robert_Dzieka%C5%84ski_Taser...

Zxian··on Résumés Are Starting to Look Like Instagram, and Sometimes Even Tinder
There have been many studies that show bias in the a screening process when gender or ethnicity are known. Ideally, the hiring manager should be given anonymized resumes so they can better make objective decisions about the candidates.

https://m.phys.org/news/2019-03-women-percent-hiring-men.htm...

Zxian··on Where will ‘garage orphans’ charge electric cars?
You need _some_ roads, but not to the extent of your typical suburban sprawl. Where I live (Vancouver, Canada), there are sufficient roads for most travel, but the city also has relatively high quality public transit and decent bike routes. I don't think GP meant that a city should have no roads, but rather that transportation infrastructure is almost always going to be an expenditure for a city. America has simply chosen to prioritize cars over other transportation options.

Higher density minimizes the need for cars.

Zxian··on Await in Rust
Your analogy works as long as there's a machine doing the washing and drying.

If you replace the machines with people, it makes much more sense for the function definition to define what is and isn't synchronous. If you have to do all the chores yourself, just call the functions synchronously. If you have family members you can delegate some work to, you can call the functions asynchronously and wait for them to complete while you're doing your own work (or twiddling your thumbs).

Elixir allows you to do this very cleanly. https://hexdocs.pm/elixir/Task.html#content

Zxian··on The Koch brothers are campaigning against tax rises for public transit projects
Many cities use automated light rail or subway systems. Vancouver, Canada has has such a system in place since late 1985.

https://en.wikipedia.org/wiki/List_of_automated_urban_metro_...

Zxian··on We looked at how a thousand college students performed in technical interviews
We have a sample repository with a simple, but broken, web application. We ask our candidates to review the code as they would if a coworker had submitted it as a merge request.

it gives quite a bit of insight about what aspects they latch onto as issues of note. Do they catch the insidious, subtle issues or just the low hanging fruit? Do they understand what stdlib function arguments expect as input? Do they just pass your review through a linter and call it a day?

Zxian··on The screen that set off the ballistic missile alert on Saturday
When deleting a repository in Gitlab, you are required to type the name of the repository in a field. This forces you to change the response based on the particular action.