mjmahone17

Joined 14 years ago

Karma
1,408
Submissions
383
Member since
Dec 31
I work on GraphQL.

Contacting me:

www.linkedin.com/in/mahoneymatthew

Alternatively, via email, contact mahoney dot mattj at gmail.

View on Hacker News

Recent submissions

Comment · 3 months ago
A good GraphQL server and client should be relatively straightforward to make in OCaml. Especially if you start from the premise that fragment spreads compose, rather than inherit.

Relay’s (second) compiler was prototyped in OCaml, but we ended up switching to Rust for the main rewrite in the belief that we’d be able to use the same runtime code across iOS, Android and JS environments.

Please somebody make a good OCaml GraphQL compiler, server, and client.

Comment · 3 months ago
Terminals are scary because it feels insurmountable. What are you supposed to do? If you just type “start python program” it gives you this absurd error that doesn’t make sense. What do you mean start is not in path?

The moment you interact with an LLM it gives you feedback that you’re doing things right. It feels like a gradual climb instead of a series of abrupt jumps. People really don’t like feeling like they don’t know what they’re doing, and the terminal constantly reminds you that you are making mistakes.

Comment · 10 months ago
It’s kind of the same argument as that for Node: having a singular language for everything you do lets you have “thick” tightly coupled packages that do everything, which you can compose or decompose in a safe(r) refactor as business needs change.

Once you start using JNI or Objective-C++ to hand off “computationally expensive” work to common C++ (now Rust) libraries, you end up needing to become an expert across a lot of areas.

If 95% of your competitive advantage lies in doing things everywhere with low memory, then taking on an additional 2-3 stacks (SwiftUI + React + Compose) as well as all the bindings and build system and etc overhead can be pretty gnarly.

If 95% of your value add is in your web-based UI, consolidating to a single JS stack of React + React Native + Node can greatly reduce your idea-to-market time, I’d imagine a full Rust stack could do the same if your value add requires maximum performance and only a little UI iteration.

Comment · 11 months ago
This was kind of true for Spain: they imported so much silver that they had inflation causing massive economic destabilization.
Comment · 1 year ago
In your mind is 700 files a lot or a little? It feels very small to me, and Xcode really ought to be able to handle that tiny scale on modern machines with ease.

I struggle to imagine a team of more than 10 people writing an iOS app with less than 700 files.

Comment · 1 year ago
It’s probably the lawns and yards, primarily. Including things like pools: in Arizona there’s about one pool for every 13 people. The US averages much larger lot sizes, and those yards consume water.

I’m not saying the US isn’t profligate in other areas like appliances or taking longer showers, but in most the country there’s so much land, such cheap water and very little regulation preventing you from using however much water that you want. Some of the land even comes with a guaranteed quantity of water for irrigation guaranteed, at little to no cost.

Comment · 1 year ago
Most code I’ve seen is written in an environment where people can’t afford to “intuit”: thinking through the repercussions of specific language or algorithm choices comes second to solving a problem “well enough”. Building an intuition takes learning how you’ve built something poorly, and for a specific problem can take hours to gain context and walk yourself through many paths.

Bring in a performance expert and their intuition can quickly identify many performance improvements. The tough part for the business is when and where do you pay for the experience of performant code, and when is good enough to leave alone?

Comment · 1 year ago
It’s reasonable for people to take either approach: are microplastics more like asbestos or are they more like cellulose in terms of harm?

The answer being unclear means it makes sense to treat them, from a regulatory standpoint, closer to asbestos. It also makes sense to treat them as an unknowable and not regulate, because any alternative might be worse.

But it does point to there being a dearth in research and answers, and we should solve that as quickly as possible and maybe limit our exposure when viable, known to be non-toxic alternatives exist.

Comment · 2 years ago
Couldn’t the school just build taller too?
Comment · 2 years ago
No. In most American suburbs you can get more density by taking 2 single family homes and replacing them with one 6-plex. You’ll also have more open space, because a 6-plex takes up around one single family lot. Especially if the 6-plex can be 4-6 stories tall. Everyone can have more (private) interior and more (shared) exterior space if the neighborhood allows a little bit of density.

As a bonus having more neighbors means things like grocery stores within walking distance become good businesses, so you need a car dramatically less and less space needs to be taken up by parking lots.

Comment · 2 years ago
“Half one” is archaic English, and common German, for 12:30. Similarly “my 27th year” just sounds archaic to me: I wonder if you went through a bunch of 19th century writing if you’d see ages more often be “Xth year” vs “X-1 years old”.

There may be something cultural that caused such a shift, like a change in how math or reading is taught (or even that it’s nearly universally taught, which changes how we think and speak because now a sizeable chunk of the population thinks in visually written words rather than sounds).

Comment · 2 years ago
So long as only 10% or less of your incremental successes are mirages, and so long as the downside of shipping a mirage is only a small incremental harm, then shipping 9 success and 1 harm should still get you an overall ~78% win vs just shipping the 9 successes (assuming the bad result is an equivalently negative result to the good ones).

How much are you willing to spend to reduce the downside risk, and how many “good” experiments are you willing to throw away in the process?

Comment · 2 years ago
In your scheme, how do I transfer money from my bank after my phone is stolen and I need to get a new phone without access to the original sim? Or access my email?

If that’s just impossible, how do I fix the issue? A “fallback 2FA” what is that exactly?

Comment · 2 years ago
On the parks/“natural land”: would you rather land exist as an empty razed dirt field for speculators to wait to sell, or given back to the city?

Taxing the land value means there’s no incentive to own land that won’t be productive. The city or municipality can guarantee land it owns can have natural growth on it, whereas when private individuals own it the state can’t really stop the land from transforming into a parking lot.

As to how to value the land: the market decides. What is the price for the land, if you took away all existing improvements on the land itself? There is usually enough vacant similar land around where this is pretty easy to figure out.

The government can charge for services like upgraded electricity and keep the land value low, or they can bring the electricity to the land and count “lots of electricity available” as part of the value of the unimproved land.

Comment · 2 years ago
There is absolutely not an oversupply of apartments in my city, nor in Seattle proper. it should be non-controversial to let the market supply as many apartments in the locations people want to be as people are willing to rent. Especially any regulatory changes that enable family sized apartments to be built at relatively lower cost should be encouraged.

Even if there were an “oversupply”, if someone could build new apartment buildings at 50% the cost with larger, safer, more comfortable units than most apartments nearby, it would drive rents down for existing buildings while still allowing the developer to make a profit. We should be enabling these opportunities as much as possible.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton