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.

Show HN: Draw Battle

https://vidzert.com/draw-battle
1•vidzert•2m ago•0 comments

Why do Oregon farms plant red clover every spring?

https://a.wholelottanothing.org/why-do-oregon-farms-plant-red-clover-every-spring/
1•speckx•2m ago•0 comments

The Fast Way to Sweden – BGP Routing Experiments

https://alastairbarber.com/Fast-Way-to-Sweden-Optimal-BGP-Prefix-Announcement/
1•alibarber•6m ago•0 comments

Primary-source deep-dive of The Pentagon's PURSUE UAP release (Top findings)

https://gist.github.com/Pantheon-Investigations/77e9d88041a0a60e45a650eded607cf1
1•pantheon_inv•7m ago•0 comments

API Hell

https://neonwalker.dev/posts/api-hell/
1•neonwalker•10m ago•0 comments

The Atari 800 – By Paul Lefebvre

https://www.goto10retro.com/p/inside-the-atari-800
2•rbanffy•10m ago•0 comments

LM Link: Use your local models, remotely

https://lmstudio.ai/link
1•Olshansky•13m ago•0 comments

FreeBSD: Local Privilege Escalation via Execve()

https://www.freebsd.org/security/advisories/FreeBSD-SA-26:13.exec.asc
5•Deeg9rie9usi•14m ago•1 comments

I Caught the Car

https://undecidability.net/senior/
2•holden_nelson•15m ago•0 comments

Show HN: Simple Exif an App that allows creators take control of their metadata

https://simpleexif.com/
1•0x10ca1h0st•15m ago•0 comments

Blink – AI Assistant. A knowledge destination

https://blink-oi.vercel.app
1•Pascal1997•15m ago•0 comments

The Middle East had everything data center builders and hyperscalers wish for

https://www.tomshardware.com/tech-industry/the-middle-east-had-everything-data-center-builders-an...
3•flyaway123•16m ago•0 comments

Lobotomized Claude Code and it works better

https://github.com/skrabe/lobotomized-claude-code
3•skrabe•16m ago•0 comments

7 days of public development are complete; Thanks to everyone

https://github.com/sel8888/harmonic-shape-transform-2026-koncept
1•sel8888•16m ago•0 comments

Show HN: Vibe-coding video games with Claude (Day 26: Primetime)

https://gamevibe.us/26-primetime
1•pzxc•19m ago•0 comments

Show HN: CLI to budget Claude Code session costs

https://github.com/jher7/tokenyst
1•herrj•19m ago•0 comments

Reverting the incremental GC in Python 3.14 and 3.15

https://discuss.python.org/t/reverting-the-incremental-gc-in-python-3-14-and-3-15/107014
3•curiousgal•20m ago•0 comments

Mirage · Unified Virtual Filesystem for AI Agents – Strukto

https://www.strukto.ai/mirage
1•imperialWicket•22m ago•0 comments

OpenRouter Pareto Code: Automatic Model Routing Based on Given Performance Score

https://openrouter.ai/openrouter/pareto-code
1•theanonymousone•23m ago•0 comments

Pixels I Have Known And Loved: Memorable pixel art from the Amiga demo scene

https://datagubbe.se/pihkal/
1•arexxbifs•24m ago•0 comments

The Gemini Protocol in 2026

https://kevinboone.me/gemini_2026.html
1•birdculture•24m ago•0 comments

The next biggest moat in AI

https://twitter.com/JayaGup10/status/2052870394093408558
1•eamag•29m ago•0 comments

I Will Not Add Query Strings to Your URLs

https://susam.net/no-query-strings.html
3•speckx•30m ago•0 comments

'Devil Wears Prada 2' deal: Streep, Hathaway and Blunt make equal $12.5M

https://variety.com/2026/film/news/devil-wears-prada-2-salaries-meryl-streep-hathaway-pay-1236741...
1•firasd•33m ago•0 comments

Widely reported study suggesting divorce more likely when wives fall ill axed

https://retractionwatch.com/2015/07/21/to-our-horror-widely-reported-study-suggesting-divorce-is-...
1•user_7832•33m ago•1 comments

DNSBunker CTI – Cyber Threat Intelligence

https://codeberg.org/xRuffKez/tif
1•madspindel•33m ago•0 comments

M.stow Biopic

https://bsky.app/profile/did:plc:ves4mvlhzdg3ov7q2auhgqda/post/3mlgzvrtxhs2d
1•mstow25•36m ago•0 comments

Plan9: The Squeal to Unix [video]

https://www.youtube.com/watch?v=mbsQCnDHkZo
2•tambourine_man•37m ago•0 comments

Blog widget that switches 14 languages instantly, scroll preserved

https://blog.devforkhire.com/tech-ep1-en.html
1•hashedit•38m ago•0 comments

Ask HN: Is the job market actually bad or just different?

3•sovenyr•40m ago•0 comments