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.

UK university degree no longer 'passport to social mobility', says King's VC

https://www.theguardian.com/education/2026/jan/03/uk-university-degree-no-longer-passport-to-soci...
1•teleforce•47s ago•0 comments

The Hazy Haskell Compiler

https://discourse.haskell.org/t/the-hazy-haskell-compiler/13497
1•internet_points•1m ago•0 comments

Building a speech-to-Markdown app with three coding agents

https://www.apptornado.com/blog/building-speech-recognition-app-three-coding-agents
2•thijser•2m ago•1 comments

How to Find Developer Cummunity?

2•SRMohitkr•2m ago•0 comments

Show HN: Unified multimodal memory framework, without embeddings

https://github.com/NevaMind-AI/memU
2•k_kiki•7m ago•0 comments

The Quiet Unraveling of the Power Grid Monopoly

https://oilprice.com/Energy/Energy-General/The-Quiet-Unraveling-of-the-Power-Grid-Monopoly.html
2•ViewTrick1002•10m ago•0 comments

RAG That Works

https://thehyperplane.substack.com/p/data-modeling-for-rag-that-works
2•alexvesa•11m ago•0 comments

Product Description Generator

https://sellygenie.com
2•archivarix•12m ago•1 comments

Redstone.dart, create mods in Dart or full GUIs using Flutter in Minecraft

https://xcancel.com/norbertkozsir/status/2008627921800323518
1•Alifatisk•13m ago•0 comments

The most popular Go dependency is

https://blog.thibaut-rousseau.com/blog/the-most-popular-go-dependency-is/
1•thiht•16m ago•0 comments

Go.sum Is Not a Lockfile

https://words.filippo.io/gosum/
1•birdculture•17m ago•0 comments

Show HN: Code Recap – Generate year-in-review reports from your Git history

https://github.com/NRB-Tech/code-recap
1•dignick•21m ago•0 comments

E∞ = (L₁ × U) / D "Life-First Decision Invariant" Protocol (LFDI)

https://zenodo.org/records/18171608
1•DavidWishengrad•23m ago•0 comments

IMAP Tunnel - A fast SOCKS5 proxy disguised as email traffic to bypass DPI

https://github.com/x011/imap-tunnel-proxy
1•lobito25•24m ago•0 comments

Paste URL and generate your brand page in seconds with AI

https://brandfast.co/
1•daniloao•24m ago•0 comments

Show HN: AI that picks your best credit card for every purchase

https://payvo.ai
1•iman_malhi•27m ago•0 comments

Show HN: An open-source AI researcher that generates reports with 3D animations

https://github.com/precious112/prism_ai
1•PreciousH•32m ago•0 comments

C-from-scratch: Learn to build safety-critical systems in C

https://github.com/williamofai/c-from-scratch
1•todsacerdoti•32m ago•0 comments

Aviation emissions could be halved without cutting journeys

https://www.theguardian.com/environment/2026/jan/07/aviation-emissions-halved-flights-efficiently...
1•trocado•33m ago•1 comments

Show HN: Omni Podcast: AI Podcast Generator

https://omnipodcast.org/
1•dond1986•34m ago•1 comments

Goblin SuperMarket Part I

https://medium.com/luminasticity/goblin-supermarket-part-i-c3b7642103bf
1•bryanrasmussen•36m ago•0 comments

Breeching_(boys)

https://en.wikipedia.org/wiki/Breeching_(boys)
1•throwfaraway135•41m ago•0 comments

Shame Surrounding Spreadsheets

https://rubenerd.com/shame-surrounding-spreadsheets/
2•Tomte•44m ago•1 comments

Firefox extension to redirect x.com to xcancel.com

https://addons.mozilla.org/en-US/firefox/addon/toxcancel/
28•maelito•45m ago•15 comments

China seeks to enhance ties with Ireland to boost relations with EU

https://www.reuters.com/world/china/china-seeks-closer-ties-with-ireland-xi-tells-martin-beijing-...
5•saubeidl•46m ago•0 comments

Measuring AI Agents in Production

https://arxiv.org/abs/2512.04123
1•ac1djazz•46m ago•0 comments

Show HN: Titan Planet – JavaScript back end framework now powered by V8

1•soham_byte•46m ago•0 comments

Dev visibility for non-technical founders

2•akhnid•46m ago•1 comments

pgpm – A Postgres Package Manager for Modular Postgres Development

https://pgpm.io/
1•soheilpro•46m ago•0 comments

Which Does Korea's Gen Z Prefer: Apple vs. Samsung?

https://www.youtube.com/watch?v=-SZbxrilRm8
1•mgh2•47m ago•0 comments