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)

Revealing the details of how OpenAI agents hacked Hugging Face

https://swarmtraces.org/
415•specked-citrus•10h ago•253 comments

A single function Jev-like wrapper for LLMs, including vision models

http://allanrbo.blogspot.com/2026/09/a-jev-like-wrapper-for-llms-including.html
43•allanrbo•3h ago•4 comments

Plan mode is dead

https://www.aymannadeem.com/artificial/intelligence,/developer/tools/2026/09/24/plan-mode-is-dead...
263•jmvldz•1d ago•235 comments

Ollaya – Ollama for open-source, Jev-style decision models

https://ollaya.dev/
414•Ardakilic•12h ago•114 comments

Show HN: Jev Plays Pokémon Red

https://jev-pokemon.vercel.app/
187•pancomplex•16h ago•80 comments

What even is an OS now?

https://sockpuppet.org/blog/2026/09/25/what-even-is-an-os-now/
166•fratellobigio•9h ago•263 comments

The Murky History of Soviet-Born Tetris

https://thereader.mitpress.mit.edu/the-bizarre-murky-history-of-soviet-born-tetris/
29•EA-3167•1d ago•7 comments

Postgres SELECT DISTINCT Does Not Scale

https://www.dbos.dev/blog/postgres-select-distinct-does-not-scale
63•KraftyOne•1d ago•20 comments

A new world airport and its baggage

https://computer.rip/2026-09-20-denver-baggage.html
11•firloop•2d ago•1 comments

Jury finds Facebook liable for deceiving users in Cambridge Analytica case

https://www.cbsnews.com/news/facebook-liable-deceiving-users-cambridge-analytica/
187•pseudolus•5h ago•36 comments

How I changed teaching after AI managed to do all my homework assignments

https://thelastsoftwareengineer.substack.com/p/how-i-changed-teaching-after-ai-managed
45•azhenley•1d ago•11 comments

Gravity seems holographic. What does that mean for reality?

https://www.quantamagazine.org/gravity-seems-holographic-what-does-that-mean-for-reality-20260925/
175•ibobev•15h ago•159 comments

Show HN: Hacker Atlas - A map of what Hacker News talks about

https://hackeratlas.com/
48•andrearitossa•17h ago•12 comments

One Piece of Flock Camera Data Put This Innocent Woman in Jail for 13 Days

https://www.jezebel.com/flock-cameras-data-innocent-woman-arrested-lindsey-isaacs-palm-beach-flor...
153•HotGarbage•6h ago•58 comments

Excel now supports multiple values in a single cell

https://techcommunity.microsoft.com/blog/microsoft365insiderblog/put-multiple-values-in-one-cell-...
164•luispa•10h ago•116 comments

We're gonna need a lot more mathematicians

https://terrytao.wordpress.com/2026/09/24/were-gonna-need-a-lot-more-mathematicians/
89•srcreigh•4h ago•86 comments

Lab on a Contact Lens Can Measure Stress Through Serotonin

https://spectrum.ieee.org/serotonin-stress-smart-contact-lens
39•marc__1•8h ago•6 comments

Fourier Analysis: Drawing Llamas with Circles

https://adekau.github.io/posts/2020/llamas.html
27•cebert•1d ago•2 comments

Two and a half years without a gallbladder

https://tracydurnell.com/2026/09/16/two-and-a-half-years-without-a-gallbladder/
25•surprisetalk•1d ago•19 comments

First Principles Thinking

https://sunilsadasivan.com/writing/first-principles-thinking/
254•sunils34•17h ago•107 comments

HomelabFest will be in St. Louis in September 2027

https://www.homelabfest.org
19•geerlingguy•5h ago•10 comments

I wrote a ray tracer in Brainfuck

https://epestr.com/blog/writing-a-ray-tracer-in-brainfuck/
62•epestr•21h ago•15 comments

U.S. appeals court upholds designation of Anthropic as supply chain risk

https://www.cnbc.com/2026/09/25/pentagon-anthropic-ai-risk-appeals-court.html
436•cramer4next•15h ago•750 comments

Remembering Johannes Doerfert

https://blog.llvm.org/posts/2026-09-24-rememberingjohannesdoerfert/
78•sdko•1d ago•2 comments

Microsoft abandons personal AI chatbot race with Copilot reboot

https://www.bloomberg.com/news/articles/2026-09-25/microsoft-abandons-personal-ai-chatbot-race-wi...
116•sbulaev•17h ago•106 comments

How video games inspire great UX (2019)

https://jenson.org/games/
122•andsoitis•5d ago•17 comments

How we learned to stop worrying and love campus surveillance

https://fnl.mit.edu/how-we-learned-to-stop-worrying-and-love-campus-surveillance/
190•cdrnsf•11h ago•108 comments

What happens when you analyze your favorite college football team like the CIA?

https://www.cultivatelabs.com/posts/what-happens-when-you-analyze-college-football-like-the-cia
53•adam•17h ago•30 comments

Show HN: Make math automatic with Mathy

https://gmays.com/making-math-automatic-with-mathy/
90•gmays•4d ago•25 comments

Platform-independent SIMD in Go

https://go.dev/blog/simd-experiment
381•yurivish•19h ago•138 comments