frontpage.
newsnewestaskshowjobs

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)

Tailwind Labs is joining Shopify

https://tailwindcss.com/blog/tailwind-is-joining-shopify
544•EdwinHoksberg•4h ago•207 comments

GPT-6 Astra, looped transformers, and hidden reasoning

https://magazine.sebastianraschka.com/p/gpt-6-astra-looped-transformers-and
130•ModelForge•2h ago•36 comments

GNU Radio in the browser

https://gnuradioworld.com/
58•kristianpaul•1h ago•10 comments

Growing proof that autonomous cars save lives

https://spectrum.ieee.org/are-self-driving-cars-safe
15•bookofjoe•14m ago•3 comments

Planet Labs' open satellite feed

https://tech.marksblogg.com/planet-labs-open-satellite-feed.html
45•marklit•1h ago•10 comments

Desert Ant Labs: local, fast models that run on device

https://desertant.com/blog/introducing-desert-ant-labs/
279•willwhitedc•5h ago•77 comments

Understanding the recent DDoS attack against Read the Docs

https://about.readthedocs.com/blog/2026/09/2026-ddos-attack/
28•davidfischer•1h ago•10 comments

No Man's Sky Cosmos

https://www.nomanssky.com/cosmos-update/
123•Limb•1h ago•111 comments

Rivian's gambit for full autonomy

https://spectrum.ieee.org/rivian-self-driving
24•1970-01-01•22h ago•28 comments

We accidentally built a synthetic cell factory

https://bnext.bio/post/we-accidentally-built-a-synthetic-cell-factory
27•rajivm•1h ago•1 comments

The UN challenges five centuries of cartography

https://www.not-ship.com/united-nations-map/
8•speckx•55m ago•2 comments

Claude, change the "Add to Cart" button to blue

https://opusfived.dev/
686•matthieu_bl•7h ago•279 comments

I advertise malicious software on Google Ads

https://xlii.space/eng/malicious-software-on-google-ads/
261•xlii•5h ago•160 comments

Magic Move for Code Snippets from first principles

https://rahulrav.com/blog/magic_move.html
6•rahulrav•2d ago•0 comments

Bespoke: A Programming Language for People Who Say Please

https://blog.hofstede.it/bespoke-a-programming-language-for-people-who-say-please/
22•birdculture•3d ago•8 comments

DeepSeek launching v4.1 flash cheaper and more capable than v4 pro

337•nickweb•6h ago•175 comments

Roame (YC S23) Is Hiring Viral Content Editor

https://www.ycombinator.com/companies/roame/jobs/KuVVqSh-content-systems-builder-editor
1•zman0225•5h ago

Better AI code comment detector

https://entropicthoughts.com/better-ai-comment-classifier
17•ibobev•1h ago•13 comments

Show HN: Give your AI agent on-screen guides that show users where to click

7•pancomplex•2h ago•1 comments

I Haven't Lost a Customer Service Fight in Seven Months

https://www.sudomoin.com/p/consumer-claims
9•dimitri-vs•1h ago•0 comments

Muse – Meta’s personal AI agent

https://ai.meta.com/muse/
604•yks•22h ago•656 comments

Show HN: Rdltr – Inbox zero for your reading list

https://rdltr.app/
5•eduardosasso•22m ago•2 comments

Defining AI Psychosis. Part 2: "Prolific AI Psychosis"

https://jeffs.blog/p/defining-ai-psychosis-part-2-prolific
46•euthymiclabs•1h ago•26 comments

Every Millisecond Counts

https://jordivillar.com/blog/every-millisecond-counts
5•theanonymousone•31m ago•1 comments

Coyote v. Acme (1990)

https://www.newyorker.com/magazine/1990/02/26/coyote-v-acme
117•ChrisArchitect•3d ago•54 comments

Playing whack-a-mole is losing

https://dadrian.io/blog/posts/whack-a-mole-is-losing/
37•surprisetalk•3h ago•10 comments

Show HN: Geiger – See every AI agent on your machine and what it can touch

https://github.com/Atomburstofficial/geiger
30•atomburst•2h ago•16 comments

Smolts: A pedagogical IDE for a teaching language

https://eighty-twenty.org/2026/09/04/smolts
39•tonyg•5d ago•2 comments

Building a Wall Lamp from Scratch

https://mbugert.de/posts/2026-09-09-bedroom-lamp-build/
70•jcklie•7h ago•26 comments

Open-source 3D anatomy explorer: 2,234 selectable BodyParts3D meshes

https://github.com/ashemag/human-atlas
61•metrofun•1d ago•21 comments