HNHacker News
TopNewBestAskShowJobs

ajx1001

4 karma · joined May 14, 2025

CEO of Marketcircle Inc. Makers of Daylite.app.

Father of two.

submissionscomments
ajx1001··on Midlife Vascular Risk Burden and Dementia-Free Survival Years
TFA? Not sure what you mean.

The hypothesis (I'm paraphrasing) is the fructose severely downgrades the mitochondria (this is well established).

The part that is really interesting to me is that patients with alzheimer's have huge amounts of fructose in their brains (that's covered the in the podcast).

So, lots of fructose, mitochondria impacted, thus neurons degraded. Makes sense to me.

As far as alternative hypothesis, there aren't any good ones that I'm aware of.

ajx1001··on Midlife Vascular Risk Burden and Dementia-Free Survival Years
The work of Dr. Rick Johnson is perhaps relevant. He links the effects of fructose on the mitochondria, which then affects the neurons in the brain, over time.

This hypothesis makes much more sense to me when you think to the associated diseases (diabetes, heart disease etc...)

You can get a overview of his research on this podcast (approx 75min): https://www.youtube.com/watch?v=59Oje6n2JLU

ajx1001··on Solid Queue 1.6.0 now supports fiber workers
Ironically, looking into Ruby Fiber led me to BEAM/Elixir. You are right, there is no going back!
ajx1001··on What ORMs have taught me: just learn SQL (2014)
I think there is no one answer for this. In some cases pure SQL is better, in other cases, you need higher level constructs to be efficient, consistent and less error prone.

We have lots of experience with ORMs based on dynamic languages (i.e. Objective-C and Ruby) and if not careful, you can indeed go sideways pretty quickly.

Recently, we've been using https://ash-hq.org. It tries to solve the same problems as an ORM, but using a pure functional language (Elixir). You are using structs instead of objects, so it can feel very close to using raw dictionaries/hashes. It also makes it super easy to drop down to raw sql, while maintaining that struct interface at the top.

While it does take some getting used to (especially coming from a dynamic, OO language), I'm liking this alternative a lot!

ajx1001··on Ash Framework – Model your domain, derive the rest
Yes, this is a good description. The way I explain it is that "Ash is a declarative, composable application framework."

It is the middle layer between DB (Ecto) and Phoenix (with or without LiveView) -- where your actual application lives.

The difference between a Resource and a Model (or ActiveRecord) is Models typically define attributes and relationships vs a Resource defines attributes, relationships, actions (read, write, destroy, custom...), behaviours (i.e. multi-tenancy, jobs) and what I call facets (i.e. JSON api, GraphQL).

When you read the code for a Resource, you grok all of this in a nice, consistent way (we have 100* resources - all are consistent). This is because of the DSL.

When compiled, it all boils down to a Struct that you can easily inspect. That Struct enables all kinds of stuff.