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•11mo ago
Downloadable: https://zenodo.org/records/15424968/files/deputy-els.pdf

Comments

droideqa•11mo 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•11mo ago
Pretty readable code
reuben364•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
> EMACS elisp

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

wk_end•11mo 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•11mo 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•11mo ago
Any URL for this that we can open in a browser (as opposed to the dreaded "Content-Disposition: attachment")?
Jtsummers•11mo 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•11mo ago
Thanks! I've switched to that above, and put the downloadable link in the top text.
reikonomusha•11mo 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•11mo 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•11mo ago
Well... believe it or not, some have thought of using lisp for AI for quite some time. ;-)
froh•11mo 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•11mo 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•11mo 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•11mo ago
Impressive.

We built a machine-readable merchant verification layer for AI shopping agents

https://github.com/warwickwood-cell/gengeo-agent-registry
1•gengeo-ai•1m ago•0 comments

Recursive Self-Improvement Delivers New SOTA Coding Performance

https://poetiq.ai/posts/recursive_self_improvement_coding/
1•icodestuff•2m ago•0 comments

Honda posts first annual loss on $9B EV writedown, scraps EV sales goals

https://www.reuters.com/business/autos-transportation/honda-books-first-annual-loss-hit-by-hefty-...
2•kristianp•5m ago•1 comments

What's in My Cert Kit?

https://blog.networkprofile.org/whats-in-my-cert-kit/
1•monstermunch•6m ago•0 comments

Accelerating Hamming Quasi-Cyclic (HQC) with Additive FFT

https://eprint.iacr.org/2026/014
1•teleforce•7m ago•0 comments

The real singularity is the friends we made along the way

https://geohot.github.io//blog/jekyll/update/2026/05/09/real-singularity.html
1•oliculipolicula•14m ago•0 comments

Raindrop – Local Agent Debugger

https://github.com/raindrop-ai/workshop
1•felixbraun•16m ago•0 comments

Windows BitLocker zero-day gives access to protected drives, PoC released

https://www.bleepingcomputer.com/news/security/windows-bitlocker-zero-day-gives-access-to-protect...
1•akyuu•16m ago•0 comments

LLM Policy for Rust Compiler

https://github.com/rust-lang/rust-forge/pull/1040
1•liyanage•16m ago•0 comments

LLMs run on top of an OS designed for code, not weights

https://github.com/matthewworner/spike
2•matthewworner•17m ago•0 comments

Sam Altman Is Taking a Lot of Punches on the Witness Stand

https://www.motherjones.com/politics/2026/05/altman-musk-openai-lawsuit-witness-questioning-ai/
2•cdrnsf•17m ago•0 comments

New Fragnesia Linux flaw lets attackers gain root privileges

https://www.bleepingcomputer.com/news/security/new-fragnesia-linux-flaw-lets-attackers-gain-root-...
1•akyuu•21m ago•0 comments

AMD EPYC CPUs Reach Record Server Revenue Share of 46.2%

https://www.techpowerup.com/349029/amd-epyc-cpus-reach-record-server-revenue-share-of-46-2
4•akyuu•26m ago•0 comments

Have a Coherent AI Policy

https://brianmeeker.me/2026/05/14/have-a-coherent-ai-policy/
3•ai_critic•29m ago•0 comments

Shareable AI Editable Visualizations

https://framejs.io/docs/intro.html
1•dionjw•30m ago•0 comments

Boeing, Toyota Donated $1M Each to Transportation Secretary's Road-Trip Show

https://www.wsj.com/business/boeing-toyota-donated-1-million-each-to-transportation-secretarys-ro...
1•impish9208•31m ago•1 comments

Decisions in the past have long running repercussions

https://www.distributedthoughts.org/2026-05-07-roman-bridge-still-determines-your-commute/
2•prosaic-hacker•34m ago•1 comments

A Professor in Every Pocket – A New Framework for Higher Education

https://lagomor.ph/2026/01/a-professor-in-every-pocket/
1•ChilledTonic•42m ago•0 comments

Isaac Newton on Laputa

https://www.historytoday.com/archive/great-debates/isaac-newton-laputa
1•hhs•49m ago•0 comments

mimalloc: A new, high-performance, scalable memory allocator for the modern era

https://www.microsoft.com/en-us/research/blog/mimalloc-a-high-performance-scalable-memory-allocat...
6•matt_d•50m ago•0 comments

A scientist made a clone of a clone of a clone of a clone

https://www.nationalgeographic.com/science/article/scientists-reclone-mice+
1•mrtedbear•50m ago•0 comments

Learn Python the Hard Way Was Right About One Thing

https://fagnerbrack.com/learn-python-the-hard-way-was-right-about-one-thing-9b6ab0b67526
2•birdculture•56m ago•0 comments

AI to infest eight in ten premium phones within two years

https://www.theregister.com/personal-tech/2026/05/14/ai-to-infest-eight-in-ten-premium-phones-wit...
2•Bender•57m ago•0 comments

Cisco to fire 4k staff and generously give them free training – on Cisco

https://www.theregister.com/networks/2026/05/14/cisco-to-fire-4000-staff-and-generously-give-them...
3•Bender•58m ago•0 comments

To gain root access at this company, all an intruder had to do was ask nicely

https://www.theregister.com/security/2026/05/14/to-gain-root-access-intruder-just-had-to-ask/5239853
1•Bender•59m ago•0 comments

Encountering the roots of mathematics

https://www.ias.edu/ideas/encountering-roots-mathematics
1•hhs•1h ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
2•Cider9986•1h ago•0 comments

ICLR 2026 – Institutional Affiliations Dataset and Analysis

https://github.com/DmytroLopushanskyy/iclr2026-affiliations
4•stared•1h ago•0 comments

Do deep learning models recognize 3D shapes in the same way humans do?

https://www.santafe.edu/news-center/news/do-deep-learning-models-recognize-3d-shapes-in-the-same-...
1•hhs•1h ago•0 comments

Mirror Life's Doomsday Potential

https://www.noemamag.com/the-doomsday-organism/
1•littlexsparkee•1h ago•0 comments