frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Lisp in the Cellar: Dependent types that live upstairs [pdf]

https://zenodo.org/records/15424968
88•todsacerdoti•10mo ago
Downloadable: https://zenodo.org/records/15424968/files/deputy-els.pdf

Comments

droideqa•10mo ago
Sadly "deputy clojure" on Google brings no results...

The only hint is this repo[0] referenced in the paper.

[0]: https://gitlab.com/fredokun/deputy

agumonkey•10mo ago
Pretty readable code
reuben364•10mo ago
Thinking out aloud here.

One pattern that I have frequently used in EMACS elisp is that redefining a top-level value overwrites that value rather than shadowing it. Basically hot reloading. This doesn't work in a dependently typed context as the type of subsequent definitions can depend on values of earlier definitions.

    def t := string
    def x: t := "asdf"
    redef t := int
redefining t here would cause x to fail to type check. So the only options are to either shadow the variable t, or have redefinitions type-check all terms whose types depend on the value being redefined.

Excluding the type-level debugging they mention, I think a lean style language-server is a better approach. Otherwise you are basically using an append-only ed to edit your environment rather than a vi.

extrabajs•10mo ago
I don’t see the connection to dependent types. But anyway, is ‘redef’ part of your language? What type would you give it?
reuben364•10mo ago
I just wrote redef to emphasize that I'm not shadowing the original definition.

    def a := 1
    def f x := a * x
    -- at this point f 1 evaluates to 1
    redef a := 2
    -- at this point f 1 evaluates to 2
But with dependent types, types can depend on prior values (in the previous example the type of x depends on the value t in the most direct way possible, as the type of x is t). If you redefine values, the subsequent definitions may not type-check anymore.
extrabajs•10mo ago
I see what you mean. But would you not experience the same sort of issue simply from redefining types in the same way? It seems this kind of destructive operation (whether on types or terms) is the issue. As someone who's used to ML, it seems strange to allow this kind of thing (instead of simply shadowing), but maybe it's a Lisp thing?
resize2996•10mo ago
> EMACS elisp

I used this to write the front end for an ATM machine.

wk_end•10mo ago
I've fantasized about some kind of a dependently-typed Smalltalk-like thing before, and in those fantasies the solution would be that changes would be submitted in the form of transactions - they wouldn't be live until you bundled them all together into one big change that would be fully type-checked, as you describe.
kscarlet•10mo ago
The only option that you described is called "hyperstatic global environment".

And it is called that for a reason, it is not very dynamic :) and probably too static to the taste of many Lisp and all Smalltalk fans.

dang•10mo ago
Any URL for this that we can open in a browser (as opposed to the dreaded "Content-Disposition: attachment")?
Jtsummers•10mo ago
https://zenodo.org/records/15424968 - This at least takes you to a webpage where you can view the paper. If you select to download it, it still downloads of course instead of just opening in the browser.
dang•10mo ago
Thanks! I've switched to that above, and put the downloadable link in the top text.
reikonomusha•10mo ago
Related context: The 2025 European Lisp Symposium [1] was just wrapped a few hours ago in Zurich. There was content on:

- Static typing a la Haskell with Coalton in Common Lisp

- Dependent typing with Deputy in Clojure (this post)

- The Common Lisp compiler SBCL ported to the Nintendo Switch

- Common Lisp and AI/deep learning

- A special retrospective on Modula and Oberon

- Many lightning talks.

[1] https://european-lisp-symposium.org/2025/index.html

no_wizard•10mo ago
I feel like Lisp would be an ideal language for AI development. Its exceedingly good for DSL development and pattern matching. Its already structurally like math notation as well, which I would think would lend itself to thinking how models would consume information and learn
rscho•10mo ago
Well... believe it or not, some have thought of using lisp for AI for quite some time. ;-)
froh•10mo ago
indeed.

Peter Norvig, 1992

Paradigms of AI Programming: Case Studies in Common Lisp

https://g.co/kgs/hck8wsE

https://en.m.wikipedia.org/wiki/Peter_Norvig

it's no coincidence Google is actively maintaining sbcl, either.

Zambyte•10mo ago
Why not go all the way to the source? John McCarthy coined the term "artificial intelligence", and then invented / discovered LISP in pursuit of it in the 1950s :D
ayrtondesozzla•10mo ago
https://quantumzeitgeist.com/lisp-and-the-dawn-of-artificial...

Lisp was the de facto language of artificial intelligence in the U.S. for many years. Apparently Prolog was popular in Europe (according to Norvig's PAIP)

fithisux•10mo ago
Impressive.

Velvet-auth – Production-ready auth plugin for Elysia and Bun

https://github.com/raloonsoc/velvet-auth
1•raloonsoc•6m ago•0 comments

C++ Algorithms Library

https://en.cppreference.com/w/cpp/algorithm.html
1•tosh•8m ago•0 comments

Ask HN: We need to learn algorithm when there are Claude Code etc.

3•JasonHEIN•10m ago•0 comments

Slope Rider

https://slopeonline.online/slope-rider
1•charelie142•15m ago•1 comments

Clawforge SaaS Starter: OpenClaw and Nvidia Starter for Local AI SaaS Workflows

https://github.com/autopilotaitech/clawforge-saas-starter
2•autopilotaitech•17m ago•0 comments

Ask HN: Is it time for "organic" coding?

2•lexi-k•26m ago•4 comments

Using AI a man developed a custom mRNA cancer vaccine for his dying dog

https://fortune.com/2026/03/15/australian-tech-entrepreneur-ai-cancer-vaccine-dog-rosie-unsw-mrna/
1•aureliusm•27m ago•0 comments

HitPaw VikPea

https://www.hitpaw.com/vikpea-video-enhancer.html
1•HitPaw•28m ago•0 comments

Show HN: I Built StatusDrop

https://statusdrop.dev
1•razvanmac•28m ago•0 comments

Folgpris.no (followprice) – A way to track any price from any store

https://folgpris.no/
2•falense•29m ago•1 comments

Mistral AI partners with Nvidia to accelerate open frontier models

https://mistral.ai/news/mistral-ai-and-nvidia-partner-to-accelerate-open-frontier-models
1•tosh•30m ago•0 comments

Clawdoc – Find out where your OpenClaw agents went wrong and get recommendations

https://github.com/ashishjaingithub/clawdoc
2•jainashish•32m ago•0 comments

Out-of-Context Reasoning in LLMs: A short primer and reading list

https://outofcontextreasoning.com/
1•Anon84•32m ago•0 comments

Orc – multi-agent orchestration framework

https://github.com/PietroPasotti/orc
1•ppasotti•35m ago•0 comments

Peter Thiel's Antichrist lectures in Rome spark questions in Italian parliament

https://www.euractiv.com/news/peter-thiels-antichrist-lectures-in-rome-spark-questions-in-italian...
4•vrganj•40m ago•0 comments

From black boxes to black holes

https://www.hypertesto.me/en/blog/2026/03/from-black-boxes-to-black-holes
1•sebtron•41m ago•0 comments

Bit Blit

https://en.wikipedia.org/wiki/Bit_blit
1•tosh•42m ago•0 comments

US health care spending is not an outlier

https://randomcriticalanalysis.com/2016/09/25/high-us-health-care-spending-is-quite-well-explaine...
1•MrBuddyCasino•42m ago•0 comments

Show HN: Create your own online community

https://kraa.io/kraa/trees
1•levmiseri•46m ago•0 comments

Encyclopedia Britannica sues OpenAI over AI training

https://www.reuters.com/legal/litigation/encyclopedia-britannica-sues-openai-over-ai-training-202...
5•1vuio0pswjnm7•50m ago•0 comments

Engine‑Lang: A New Experimental Programming Language

https://github.com/annuaicoder/Engine-Lang
1•User49•52m ago•0 comments

SymbolicAI: A Neuro-Symbolic Perspective on Large Language Models

https://extensityai.gitbook.io/symbolicai
1•sigalor•52m ago•0 comments

Show HN: Smartipedia - Wikipedia for Agents

https://smartipedia.com/
1•sksareen1•54m ago•1 comments

PWAs Without the Browser?

https://kver.ca/2026/03/strand-slipshod-vibe-coded-pwas-for-the-desktop/
1•MarcellusDrum•55m ago•0 comments

Ask HN: What signals do you look for when hiring?

3•kathir05•57m ago•2 comments

Overwhelmed as a PO? Build Systems

https://www.leadinginproduct.com/p/the-product-owner-bottleneck
1•benkan•57m ago•0 comments

AI CEOs are scaring America

https://www.axios.com/2026/03/16/ai-sam-altman-fear-mongering
5•1vuio0pswjnm7•58m ago•1 comments

Cheap drones are reshaping the war in the sky

https://www.reuters.com/graphics/IRAN-CRISIS/DRONES/dwpkyamxqpm/
2•giuliomagnifico•1h ago•0 comments

MCP Sux, Use CLIs

https://blog.ianchanning.com/2026/03/17/mcp-sux-use-clis/
1•icc97•1h ago•0 comments

How Elon Musk tried to gamify government

https://www.theguardian.com/news/ng-interactive/2026/mar/17/elon-musk-gamify-government
3•yzydserd•1h ago•0 comments