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

Comments

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

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

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

•
1y 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•1y 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)

How to interpret medieval marginalia 101

https://weirdmedievalguys.substack.com/p/how-to-interpret-medieval-marginalia
1•speckx•1m ago•0 comments

Did Claude Increase Bugs in Rsync?

https://alexispurslane.github.io/rsync-analysis/
2•logicprog•1m ago•0 comments

The Bear Bash DeBugger: A lightweight debugger for Bash scripts

https://github.com/bearstech/bbdb
2•kadrek•3m ago•0 comments

Companies Are Using Reddit to Manipulate ChatGPT and Google AI Search

https://www.404media.co/companies-are-using-reddit-to-manipulate-chatgpt-and-google-ai-search/
1•randycupertino•7m ago•0 comments

Rampa – A color toolkit for AI agents and humans

https://rampa.design/
1•eustoria•7m ago•0 comments

As EV batteries improve, ChargePoint debuts 600 kW fast charger

https://arstechnica.com/cars/2026/04/as-ev-batteries-improve-chargepoint-debuts-600-kw-fast-charger/
1•PaulHoule•8m ago•0 comments

Observatory – A JavaScript Class to Simplify Managing Mutation Observers

https://chrisburnell.com/observatory/
1•eustoria•8m ago•0 comments

Fast Android File Manager that works

https://github.com/djanogly/fast-android-file-manager
1•jackjayd•11m ago•1 comments

Ad Blocker Test – Check If Your Ad Blocker Works

https://adblock.turtlecute.org/
2•eustoria•11m ago•0 comments

We built Tixio to replace 5 other expensive tools

1•UmanaR•12m ago•0 comments

What Makes Docs Beautiful?

https://passo.uno/what-makes-docs-beautiful/
1•crescit_eundo•12m ago•1 comments

Acorn Computers Announce Availability of 32-Bit RISC – The ARM (1986) [pdf]

https://chrisacorns.computinghistory.org.uk/docs/Acorn/PR/Acorn_announces_the_ARM_Evaluation_kit.pdf
1•helsinkiandrew•12m ago•0 comments

Programmers will document for Claude, but not for each other

https://blog.plover.com/2026/03/09/#documentation-wins-2
2•surprisetalk•14m ago•0 comments

Engine9000 – Amiga Game Engine

https://engine9000.com/
1•doener•14m ago•0 comments

vLLM: An Efficient Inference Engine for Large Language Models [pdf]

https://www2.eecs.berkeley.edu/Pubs/TechRpts/2025/Archive/EECS-2025-192.pdf
1•ankitg12•15m ago•0 comments

AI Hiring Tools Can Yield Racial Bias and Systemic Rejection

https://hai.stanford.edu/news/ai-hiring-tools-can-yield-racial-bias-and-systemic-rejection
2•breckenedge•15m ago•0 comments

How to force AI agents to use an egress proxy

https://simedw.com/2026/06/05/proxy-agents/
3•simedw•17m ago•0 comments

A cross-platform system tray app and CLI for Kubernetes port forwarding

https://kftray.app/
1•w3ll_w3ll_w3ll•22m ago•0 comments

Everyone on Google's Engineering Education team had been laid off recently

https://twitter.com/gergelyorosz/status/2062861559009820976
3•taubek•25m ago•0 comments

AI simply can't replicate it': Japan embraces zine trend

https://www.japantimes.co.jp/culture/2026/06/01/books/japan-zines-kyoto-shimbun/
1•Michelangelo11•28m ago•0 comments

Investigation: Russian censorship systems (TMCT) expose Chinese DPI signatures

https://freenet.monster/china-unicom.html?lang=en
2•aliowka•28m ago•0 comments

Becoming a Magician (2018)

https://autotranslucence.wordpress.com/2018/03/30/becoming-a-magician/
2•surprisetalk•29m ago•1 comments

The Attacker Lives Between Your Tools

https://medium.com/@eldorzufarov66/the-attacker-lives-between-your-tools-a312246f9712
1•EldorZ•32m ago•0 comments

Women are getting most of the new jobs. What's going on with men? – OPB

https://www.opb.org/article/2026/04/10/men-fall-behind-as-women-get-most-new-jobs/
2•bilsbie•32m ago•1 comments

Ask HN: Azure, GCP, AWS Free Tiers or Something Else

1•ARMack•33m ago•1 comments

New Free Online Survival Game

2•desinxstudio•34m ago•1 comments

Building a highly accurate digital twin of the Earth

https://destination-earth.eu/
1•ZacnyLos•35m ago•0 comments

Engineers building MCPs in regulated industries: what's been the hardest part?

https://deepsense.ai/resource/designing-compliance-first-architectures-for-regulated-production/
1•Applied_AI•35m ago•1 comments

RP2040 DMA is Turing Complete (2023)

https://people.ece.cornell.edu/land/courses/ece4760/RP2040/C_SDK_DMA_machine/DMA_machine_rp2040.html
1•birdculture•35m ago•0 comments

I built my own music collection and why you should too

https://blog.rishabhps.com/posts/2026-06-04-i-built-my-own-music-collection-and-why-you-should-too/
3•speckx•36m ago•0 comments