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

Comments

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

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

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

Show HN: Books mentioned on Hacker News in 2025

https://hackernews-readings-613604506318.us-west1.run.app
70•seinvak•1h ago•34 comments

Show HN: WalletWallet – create Apple passes from anything

https://walletwallet.alen.ro/
87•alentodorov•1h ago•37 comments

E.W.Dijkstra Archive

https://www.cs.utexas.edu/~EWD/welcome.html
41•surprisetalk•2h ago•4 comments

ARIN Public Incident Report – 4.10 Misissuance Error

https://www.arin.net/announcements/20251212/
81•immibis•2h ago•14 comments

Structured Outputs Create False Confidence

https://boundaryml.com/blog/structured-outputs-create-false-confidence
51•gmays•2h ago•35 comments

Reasons Not to Become Famous (2020)

https://tim.blog/2020/02/02/reasons-to-not-become-famous/
89•Tomte•2h ago•55 comments

I Program on the Subway

https://www.scd31.com/posts/programming-on-the-subway
30•evankhoury•4d ago•21 comments

Coarse Is Better

https://borretti.me/article/coarse-is-better
114•_dain_•4h ago•58 comments

ELF Crimes: Program Interpreter Fun

https://nytpu.com/gemlog/2025-12-21
18•nytpu•1h ago•6 comments

Show HN: Jmail – Google Suite for Epstein files

https://www.jmail.world
1225•lukeigel•20h ago•263 comments

Backing up Spotify

https://annas-archive.li/blog/backing-up-spotify.html
1602•vitplister•23h ago•534 comments

Three Ways to Solve Problems

https://andreasfragner.com/writing/three-ways-to-solve-problems
50•42point2•3h ago•9 comments

Ruby website redesigned

https://www.ruby-lang.org/en/
252•psxuaw•10h ago•94 comments

Indoor tanning makes youthful skin much older on a genetic level

https://www.ucsf.edu/news/2025/12/431206/indoor-tanning-makes-youthful-skin-much-older-genetic-level
156•SanjayMehta•12h ago•109 comments

A2UI: An Open Spec for Agent-Generated User Interfaces (Google)

https://developers.googleblog.com/introducing-a2ui-an-open-project-for-agent-driven-interfaces/
5•nkko•5d ago•0 comments

Show HN: Shittp – Volatile Dotfiles over SSH

https://github.com/FOBshippingpoint/shittp
92•sdovan1•5h ago•54 comments

What I Learned About Deploying AV1 from Two Deployers

https://streaminglearningcenter.com/articles/what-i-learned-about-deploying-av1-from-two-deployer...
16•breve•5d ago•11 comments

Measuring AI Ability to Complete Long Tasks

https://metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks/
199•spicypete•13h ago•149 comments

Show HN: RenderCV – Open-source CV/resume generator, YAML → PDF

https://github.com/rendercv/rendercv
28•sinaatalay•4h ago•15 comments

Decompiling the New C# 14 field Keyword

https://blog.ivankahl.com/decompiling-the-new-csharp-14-field-keyword/
49•ivankahl•4d ago•16 comments

Show HN: The Official National Train Map Sucked, So I Made My Own

https://www.bdzmap.com/
36•Pavlinbg•5h ago•8 comments

Go ahead, self-host Postgres

https://pierce.dev/notes/go-ahead-self-host-postgres#user-content-fn-1
619•pavel_lishin•1d ago•369 comments

Claude in Chrome

https://claude.com/chrome
266•ianrahman•20h ago•148 comments

The uncertain origins of aspirin

https://www.asimov.press/p/aspirin
46•dearwell•4d ago•11 comments

Ireland’s Diarmuid Early wins world Microsoft Excel title

https://www.bbc.com/news/articles/cj4qzgvxxgvo
282•1659447091•21h ago•101 comments

Log level 'error' should mean that something needs to be fixed

https://utcc.utoronto.ca/~cks/space/blog/programming/ErrorsShouldRequireFixing
445•todsacerdoti•4d ago•274 comments

Isengard in Oxford

https://lareviewofbooks.org/article/isengard-in-oxford/
95•lermontov•12h ago•12 comments

Pure Silicon Demo Coding: No CPU, No Memory, Just 4k Gates

https://www.a1k0n.net/2025/12/19/tiny-tapeout-demo.html
401•a1k0n•1d ago•63 comments

Inca Stone Masonry

https://www.earthasweknowit.com/pages/inca_construction
115•jppope•10h ago•34 comments

OpenSCAD is kinda neat

https://nuxx.net/blog/2025/12/20/openscad-is-kinda-neat/
296•c0nsumer•1d ago•230 comments