HNHacker News
TopNewBestAskShowJobs

asa400

1,194 karma · joined April 10, 2013

submissionscomments
asa400··on Elixir v1.20: Now a gradually typed language
This framing is misleading. I'm not sure what AI has to do with any of the examples you cited. All of the examples you cited are moves - and in some cases, not even moves, as Shopify is not ditching Ruby - to more performant runtimes and architectures in response to operational concerns at scale, which have a tenuous link to language, and no link to AI that I can see, as these companies all significantly predate LLMs.

Ruby's runtime in the early 2000's compared poorly against the JVM or the BEAM. People used Ruby then and now because it worked well to get products to market quickly. Even after a ton of investment in Ruby's implementation, the JVM and the BEAM are still better able to handle the types of high-traffic, high-concurrency workloads those companies serve, which makes them relevant to mature, high-scale companies.

Tellingly, there are dynamic language implementations that are performance-competitive with static language implementations, like Javascript's V8/Bun/Deno, Lua's LuaJIT, and Common Lisp's SBCL (among others, this is not an exclusive list).

asa400··on Nobody understands the point of hybrid cars [video]
Yeah, there’s just so much you can do (or not do, depending on how you look at it) when you have a well-integrated ~50hp electric motor and decent sized battery.
asa400··on Nobody understands the point of hybrid cars [video]
This is exactly correct, and I can't count how many times I've had to have this argument, thank you for pointing it out.

My hybrid (not a Prius, actually) doesn't have a dedicated starter motor, the traction motor starts the ICE engine. The climate control is electric and powered by the hybrid battery (with the added benefit of being able to run the A/C while the ICE engine is off). The power steering is electric so there's no hydraulic power steering pump to fail. I'm sure there's more I'm forgetting. Mechanically, it's just simpler than an ICE engine alone.

> ability to avoid high-stress operation because of the electric side of the power train.

This one is huge, also, and people always forget about it, so thank you for raising it. ICE hate being heavily loaded at low RPMs (also known as "lugging"), and the electric motors alleviate a lot of that low-end workload. It's a big win not just for efficiency, but also drivability, as almost all non-diesel engines make terrible torque low in their RPM range.

asa400··on New stainless steel can survive conditions for hydrogen production in seawater
Entirely possible! I'm definitely not an expert. I own a few of these (LC200N and Magnacut) and I can confirm they've held up well in my own use of getting wet/dirty/etc. vs. other tool steels I have. Where they stack up against non-tool steels or steels not commonly used in cutlery, I couldn't say.

That said, I have heard plenty of anecdotes confirming these properties from other folks. People losing a knife in a stream or field and then finding it the following year, etc.

> In any case, this new alloy is weird -- it seems like it specifically has excellent resistance to electrochemical corrosion when it is used as an anode, which is not what people usually use stainless steel for :)

100%. Probably almost no crossover into cutlery, but super cool regardless!

asa400··on CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq
Great context, thanks. I wasn't in the industry then so this is interesting to hear how decisions were being made at the time.
asa400··on The limits of Rust, or why you should probably not follow Amazon and Cloudflare
> Is async in Rust really this bad?

No, it's not. It works. Perfect? No, absolutely not. There is plenty you could improve, plenty of rough edges you could smooth out. Stuff that caused us problems at the job I had writing low-ish level machine control services. But it's totally workable and we were able to ship working devices, especially compared to doing async stuff in other most other languages, especially the memory-unmanaged ones.

Kind of like Rust itself, a ton of people have tried it and bounced off it because they couldn't get it working in 10 minutes, and in doing so have declared it impossible/for geniuses only/broken/ecosystem-destroying. The narrative around async Rust is probably 70% meme/bad PR, 30% real, actual issues that could be improved.

I hope this comes off as fair. I don't want to excuse any of the shortcomings, but it's a working, useful tool.

asa400··on CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq
For folks with more experience in this specific domain, dumb question: why is more software in this space not written in e.g. Erlang or some other garbage collected, concurrent language runtime?
asa400··on New stainless steel can survive conditions for hydrogen production in seawater
Very interesting. Highly corrosion resistant "unconventional" steels have become somewhat popular in cutlery, with steels like LC200N, H1/H2, and MagnaCut. LC200N and H1/H2 in particular can be left in body of water uncoated/unpainted and come back in a year and they'll be fine. Obviously that's a different setting than electrified seawater for hydrogen production, though. So much cool materials science happening!
asa400··on How do I deal with memory leaks? (2022)
> having to worry about Send and Sync and Pin and fighting with the borrow checker and all that fun stuff.

To be fair, the alternative to having to worry about Send/Sync/Pin is not "not worrying about Send/Sync/Pin". It's having to worry about correctly enforcing the constraints they describe on your own, without any kind of mechanical help. E.g., not moving data to another thread that shouldn't be and not accessing data from multiple threads that shouldn't be. This stuff is intrinsic.

In this sense the Rust mental model is simpler, because failing to uphold these constraints is no longer "your fault", it's Rust's fault.

asa400··on Vibe coding and agentic engineering are getting closer than I'd like
Similarly, I once worked somewhere that had an HTTP API that returned status code 200 {“error”: “ok”} to indicate an error occurred.
asa400··on UAE to leave OPEC
They probably won't buy Honda Civics, but they (or their children, more realistically) might buy the electric equivalent of an F150 if the market produces one that can fulfill what they perceive their needs to be.

I just bought a (small, hybrid) truck because I need to do some truck stuff. I 100% would have bought an electric if the market produced one with comparable capability and competitive price, but we're not there yet, and I don't have Rivian money (yet! lol maybe someday).

My point being: there is still a huge demand for trucks from both a capability and culture standpoint, and very little supply of a cost-comparable product that doesn't take gas or diesel. Rivian is around double what most people want to pay, and the F150 Lightning was marketed poorly and had bad towing/hauling range compared to gas/diesel equivalents.

I'm not here to defend "truck culture" but I do believe that if you offer people a better product, they will figure it out and buy it. An electric truck with 400+ miles of towing range, an onboard 2kW+ inverter, 500 ft-lbs of torque, and fast charging for the same price as a comparable gas F150 will sell. Unfortunately the battery energy density and EV supply chain economies of scale aren't there yet in North America.

asa400··on Work with the garage door up (2024)
> Should one accept that noone will read 99% of what one shares and just use sharing as a way to record and reflect on own process?

Yes, 100%. Almost no one has found either my public code or my writing useful, but the process of writing and documenting has been tremendously useful to help me clarify what I _actually believe_ at that point in time. This is the primary benefit.

That said, a few projects have taken off unexpectedly and clearly helped some folks, and I've received a few cold emails from folks who somehow ended up on my blog, and all have been pleasant conversations!

One thing I recommend is trying to lower the threshold of what is acceptable to publish. Publish scraps, publish "today I learned", publish "look at this stupid thing I discovered" stuff. Gradually your threshold will rise, but one mistake I see people making is the belief that they have to publish finished projects and novel-quality writing in order for it to be worth it. Nothing could be further from the truth.

asa400··on Ask HN: Why Hasn't Clojure Caught On?
> And consequently the company needs to continue building its own adapters and SDKs to use existing commercial and open-source solutions (e.g. in data and observability), because Clojure and Datomic are almost never supported out of the box by any tools.

But Java almost certainly is. Why not just use the Java stuff? All of the Clojure I've worked on (especially in the data space) has made use of a ton of Java SDKs and libraries.

asa400··on Alberta startup sells no-tech tractors for half price
tl;dr engines today are not the same as an early 2000s Subaru EJ25 with a massive turbo bolted on.

> they overstrain them

Debatable. Materials science and engine construction science have advanced significantly since the V6 and V8s of the 1980s and 1990s Toyotas. Almost every auto manufacturer on earth is capable of getting >100hp/L out of a gas engine reliably. Toyota is certainly not the only OEM doing this reliably at scale. This stuff is no longer exotic. Gas engines today are designed from the ground up to be turbocharged and direct injected (and in Toyota's case, both direct and port injected), and built with the cooling systems to match.

> The outcome is a strictly worse engine

No one makes or has made a perfect engine but there's a lot of romanticizing engines from the past. These newer engines make more peak torque, their torque curves start much lower in the RPM band and remain more useful through whole rev range, they burn significantly less fuel when not under load, and the hybrid electric drivetrain mean the gas engine spends less of its life idling or lugging at low speeds and high loads. Whether some of these tradeoffs are worth it is debatable, but in no way are these engines "strictly worse".

asa400··on Official Clojure Documentary page with Video, Shownotes, and Links
Couldn't agree more. And I actually kind of like Typescript, but man, typical Typescript projects are so verbose and sprawling, it's crazy.
asa400··on Official Clojure Documentary page with Video, Shownotes, and Links
This is like asking if violins are still relevant because we have cars now.
asa400··on AI Will Be Met with Violence, and Nothing Good Will Come of It
> 2. You've wiped away the incentive for getting-big mentality which drove some of the billionaires to innovate which advances society to this point. Think - discouraging a future Jobs from making another iPhone-like device.

Am I meant to believe that we wouldn't have iPhone-level innovation if inventors couldn't become billionaires?

This makes no sense. We have so much more innovation than we have billionaires, always have. Ability to become a member of the 0.001% is not a barrier to innovation, not in America, not anywhere, and never has been.

No one serious is claiming there should be zero wealth inequality. Inequality is ineradicable. The claim is that wealth inequality can reach a degree that becomes corrosive to society as a whole and severs the link between innovation and profit, because it becomes more profitable to hoard wealth and collect capital gains and interest than it does to innovate and create things in the real world.

It's entirely possible to preserve (and in fact would actually strengthen) the profit motive if we changed incentives to get rid of the wild capital hoarding we see today.

asa400··on Good ideas do not need lots of lies in order to gain public acceptance (2008)
> and companies that granted them outcompeted companies that did not

What are you basing this claim on?

asa400··on Bringing Clojure programming to Enterprise (2021)
> i don't think you're wrong necessarily...but rust, golang, zig, mojo, etc are gaining popularity and imo they wouldn't be if they were JVM languages.

> understood, i'm just pointing out that people seem to prefer the apple over the orange.

This is kind of like saying that fewer people are drinking Coke every year and are choosing other beverages. It might be objectively true but it glosses over the fact that literally billions of people drink Coke daily and will continue to do so for decades to come.

The JVM is the same. Some people and organizations might be using zig or mojo (and I have absolutely nothing against zig or mojo, to be clear, I hope they succeed) but many multiple orders of magnitude more individuals and organizations run JVM stuff in a given year and will continue doing so.

At this point, the JVM is a civilizational technology. If it went away tomorrow, multiple banks would fail, entire countries would no longer be able to administer social services, millions of people would die. The JVM is in everything.

Developers on HN using zig, mojo, etc. aren't really a representative sample.

asa400··on Bringing Clojure programming to Enterprise (2021)
> the opposite of boring

I have to push back on this one, respectfully.

Clojure is easily the most boring, stable language ecosystem I’ve used. The core team is obsessed with the stability of the language, often to the detriment of other language values.

This attitude also exists among library authors to a significant degree. There is a lot of old Clojure code out there that just runs, with no tweaks needed regardless of language version.

Also, you have access to tons of battle tested Java libraries, and the JVM itself is super stable now.

I won’t comment on or argue with your other points, but Clojure has been stable and boring for more than a decade now, in my experience.

asa400··on Why the US Navy won't blast the Iranians and 'open' Strait of Hormuz
> Worst outcome is the US attacks Cuba, Cuba allies with Iran, it turns out that Cuba has been stocking up on Iranian drones, and Cuba becomes a forward base for drone and missile attacks on the southern US.

If this happens and Cuba decides to launch drones/missiles against the US homeland, it's not an exaggeration to say that Cuba is flattened and invaded that same afternoon. After 9/11, there's no world in which any attack on the US homeland, however small or local, is met with anything other than overwhelming retribution.

Having difficulty projecting force from the air with fighter bombers launched from air craft carriers and refueling caravans from the Indian Ocean or Mediterranean Sea against a determined enemy that has been preparing for this eventuality since 1979 is one thing. Being able to fly non-stop B-52 and B-2 sorties from home air bases with single-digit-hour flight times is a different thing entirely.

asa400··on We rewrote JSONata with AI in a day, saved $500k/year
This was amazingly common in the 2010s during the Big Data craze. I know, because I was the one slapping the bad queries together.

Most startups didn’t care (to a point) because at that point in their lifecycle, the information they needed to get from those queries (and actions they could take based on it, like which customers were likely to convert and worth spending sales time on, etc) was more important than the money spent on the insane redshift clusters.

The mantra was almost always some version of, “just do it now, as fast as possible, and if we’re still alive in a year we’ll optimize then.”

asa400··on Data Manipulation in Clojure Compared to R and Python
Oh, I completely agree. Like I said, it's not rational, but it is what it is.
asa400··on Data Manipulation in Clojure Compared to R and Python
Unfortunately, having to mess around with a JVM is a tough sell for a lot of data analysis folks. I'm not saying it's rational or right, but a lot of people hear "JVM" and they go "no thank you". Personally I think it's a non-issue, but you have to meet people where they are.
asa400··on We rewrote our Rust WASM parser in TypeScript and it got faster
Fun story! Performance is often highly unintuitive, and even counterintuitive (e.g. going from C++ to Python). Very much an art as well as a science.

Crazy how many stories like this I’ve heard of how doing performance work helped people uncover bugs and/or hidden assumptions about their systems.

asa400··on Astral to Join OpenAI
The leadership and product direction work are at least as hard as the code work. Astral/uv has absolutely proven this, otherwise Python wouldn't be a boneyard for build tools.

Projects - including forks - fail all the time because the leadership/product direction on a project goes missing despite the tech still being viable, which is why people are concerned about these people being locked up inside OpenAI. Successfully forking is much easier said than done.

asa400··on Python 3.15's JIT is now back on track
Not necessarily UB, but absolutely "spooky action" nondeterministic race conditions that make things difficult to understand.
asa400··on Python 3.15's JIT is now back on track
> The problem is that Python was meant for scripting not properly designed software system engineering.

What something was meant to do has never, ever stopped people. People find creative ways to use tools in unintended ways all the time. It's what we do.

We can call this dumb or get misanthropic about it, or we can try to understand why people all over the world choose to use Python in "weird" ways, and what this tells us about the way people relate to computing.

asa400··on Technical Excellence Is Not Enough
100%. The thing I'm currently working on has been a pain probably 80% because the work was underspecified and didn't take a bunch of legacy concerns into account and probably 20% because of nature of the code itself.

If it was better specified I'd be done already, but instead I've had to go back and forth with multiple people multiple times about what they actually wanted, and what legacy stuff is worth fixing and not, and how to coordinate some dependent changes.

Most of this work has been the oft-derided "soft skills" that I keep hearing software engineers don't need.

asa400··on What years of production-grade concurrency teaches us about building AI agents
This is gonna rankle folks who like one or the other, but they're basically the same language. When it comes to languages that run on the same VM, Erlang and Elixir are very close together. They aren't nearly as far apart as say, Java and Clojure.

Elixir adds a few things (a lisp-style macro system, protocols, UTF-8 as the default string type, a builtin build tool, streams) but Elixir is not a huge departure from Erlang in the way that Clojure is a huge departure from Java.

By far the biggest things you're going to learn when you learn either one are going to be the BEAM runtime itself and the OTP libraries, which both Elixir and Erlang have in common.

← PreviousPage 2 of 10Next →