HNHacker News
TopNewBestAskShowJobs

abathologist

595 karma · joined November 18, 2014

I am interested in functional programming and logic programming and have a background in philosophy.

Find me at http://shonfeder.net/

submissionscomments
abathologist··on Why I love OCaml (2023)
As someone who has worked professionally in both, programming in rust does not feel much like programming in OCaml. Working with traits in an imperative manual memory managed language is really different than working with proper modules in a mixed paradigm language with an awesome GC.
abathologist··on Why I love OCaml (2023)
> It's got about the same amount of type safety

What?

abathologist··on Why I love OCaml (2023)
A different perspective is that JS has made practical application of PLT part of their secret sauce, and deepening into their PLT roots is thickening the sauce.
abathologist··on Why I love OCaml (2023)
I love SML, and came to OCaml a bit begrudgingly initially just for a larger ecosystem. But, I think the object system gets a unjustly bad wrap. The OCaml object system is dope. It is rarely needed and not the best feature for most use cases, but when you want structurally-typed records, or need open recursion (or need to represent JS objects for the amazing `Js_of_ocaml`), they are a perfect fit.
abathologist··on We chose OCaml to write Stategraph
All fine and good if you don't like it for whatever reasons, but AFAIK, people have been using OCaml software as parts of tech stacks in critical industries for around 20 years. So unless you have some qualifications to offer,

> I don't think OCaml is ready for production

seems to indicate your thinking is just not based on fact. This position is further belied by the stack of successful production applications you can see at https://ocaml.org/industrial-users/businesses.

abathologist··on We chose OCaml to write Stategraph
One of OCaml's outstanding, but too little mentioned, virtues is the community's commitment to extremely strong backwards compatibility guarantees.
abathologist··on Why don't you use dependent types?
I would be interested to read the author's take on F. Since they are focused on math applications in this post, and F is very much focused on verified software on not on mathematics, it is a bit off topic. My (inexpert) understanding is that F* is based on an extensional type theory (different that CoC in this way) and can, but needn't, work with proof objects, since its refinement typing can just push constraints into the SMT database. I've found it pretty light weight and "opt-in" on the dependent types, and so it seems quite nice from a usability perspective IMO. But, as I say, I think it really would not address the author's question "how do we know it's right". On this point, I think the worlds of software verification and automated theorem proving for mathematics can be quite far apart.
abathologist··on Using AI to negotiate a $195k hospital bill down to $33k
What a deeply dystopian future y'all are building for us :( -- (Including the fact that this link leads to nothing but a logo, for me).
abathologist··on Living Dangerously with Claude
What guarantees do you have it will actually follow the stated plan instead of doing something else entirely?
abathologist··on After the AI boom: what might we be left with?
Indeed, the critics can only be so critical because they are not convinced of the revealed truth that we are materializing machine god. How irrational.
abathologist··on After the AI boom: what might we be left with?
I am so sure because of the self-evidence of my experience, the results of 2 millennia of analysis into the nature of cognition and experience, and consideration of the material composition of our organism (we obviously have lots of critical analog components, which are not selecting tokens, but instead connecting with flows from other continua).

Prediction is obviously involved in certain forms of cognition, but it obviously isn't all there is to the kinds of beings we are.

abathologist··on Sora 2
TikTock, Face Book, Twitter etc. are all aiming to be AI already: https://fortune.com/2024/10/30/mark-zuckerberg-ai-generated-...
abathologist··on The real (economic) AI apocalypse is nigh
> The WSJ writers compare the AI bubble to other bubbles, like Worldcom's fraud-soaked fiber optic bonanza (which saw the company's CEO sent to prison, where he eventually died), and conclude that the AI bubble is vastly larger than any other bubble in recent history.

> ...

> Microsoft "invests" in Openai by giving the company free access to its servers. Openai reports this as a ten billion dollar investment, then redeems these "tokens" at Microsoft's data-centers. Microsoft then books this as ten billion in revenue.

> ...

> Plan for a future where you can buy GPUs for ten cents on the dollar, where there's a buyer's market for hiring skilled applied statisticians, and where there's a ton of extremely promising open source models that have barely been optimized and have vast potential for improvement.

abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
Good point. Non-determinism is not fundamentally problematic on many levels. What is important is that the essential behavioral invariants of the systems are maintained.
abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
> Isn’t trying to remove boilerplate how we end up with situations like left-pad?

No. That is a result of bad software engineer practices and stacks, not a symptom of proper abstraction.

abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
How big a dent do you think we could make if poured $252 billion dollars[0] just into paying down all our towers of tech debt and developing clean abstractions for all these known problems?

[0]: https://hai.stanford.edu/ai-index/2025-ai-index-report/econo...

abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
Not me, because I know how to avoid falling into nonsense speculation based on worthless analogies :D

Sand away! Enjoy copying and pasting your nails, or having LLMs apply your varnish or whatever. I hope it brings happiness.

abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
Ground Hog day is optimistic, I think. It will be like "The Butterfly Effect": every attempt to fix the systems using the same dumb, wrote solutions will make the next iteration of the architecture worse and more shitty.
abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
This is a terribly confused analogy, afaict. But maybe if you could explain in what sense boilerplate, as defined in https://en.wikipedia.org/wiki/Boilerplate_text, is anything like a nail, it could be less confusing.
abathologist··on Using Claude Code to modernize a 25-year-old kernel driver
This is the glaring fallacy! We are turning to unreliable stochastic agents to churn out boilerplate and do toil that should just be abstracted or automated away by fully deterministic, reliably correct programs. This is, prima facie, a degenerative and wasteful way to develop software.
abathologist··on Type checking is a symptom, not a solution
"Actually, proving things is bad. We should arrange the world so that everything is self evident."
abathologist··on Where's the shovelware? Why AI coding claims don't add up
My theory is that the digital revolution has mostly cancelled out potential productivity gains with its introduction of productivity sinks: the technology has tended to encourage less rigorous thinking, more distraction, more complexity; and even if you can do task T X times faster, most people as spending X * Y more time being distracted, overwhelmed, or just reflective button pushers.

The ways AI is being used now will make this a lot worse on every front.

abathologist··on C1ick and C⊗LLec⊥: Interactive linear logic prover
Github Page: https://github.com/etiennecallies/click-and-collect/wiki Linear Logic: https://en.wikipedia.org/wiki/Linear_logic
abathologist··on OCaml as my primary language
I am not a Haskell expert, nor an expert in effect systems, but, AFAIU, what mrkeen has provided is an analogous pattern in Haskell -- where effects are represented via the free monad with an interpreter -- and not an account of what is described in the article.

In OCaml we can (and do) also manage effects via monadic style. However, we don't have ad hoc polymorphism (e.g., no typeclasses), so that aspect of the dependency injection must go thru the more verbose (but more explicit, and IMO, easier to reason about) route of parametric modules.

The point in the article is that effect handlers allow direct-style code with custom effects, which enable a kind of "dependency injection" which actually looks and feels much more like just specifying different contexts within which to run the same program. If you are very used to doing everything in Haskell's monadic style, you may not really notice the difference, until you try to compose the handlers.

Here is an example I've put together to show what the author is talking about in practice: https://gist.github.com/shonfeder/a87d7d92626be06d17d2e795c6...

abathologist··on OCaml as my primary language
Almost as if the development of PLs is not a straight line of monotonically additive features XD
abathologist··on Ask HN: How can ChatGPT serve 700M users when I can't run one GPT-4 locally?
One clever ingredient in OpenAI's secret sauce is billions of dollars of losses. About $5 billion dollars lost in 2024. https://www.cnbc.com/2024/09/27/openai-sees-5-billion-loss-t...
abathologist··on Fast
Finally, someone has thought about the importance of making things go faster!

Is the most pressing problem facing the world is that we are not doing enough things fast enough? Seems a bit off the mark, IMO.

abathologist··on Learn OCaml
See https://ocaml.org/industrial-users

Current industry uses are largely in specialist areas including compiler engineering, static analyses, formal verification systems, and systems programming in critical domains.

abathologist··on Learn OCaml
Indeed it is.
abathologist··on Learn OCaml
Yes.
← PreviousPage 3 of 6Next →