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)

Hang on to Your Firefox

https://www.newsonaut.com/articles/hang-on-to-your-firefox
611•speckx•6h ago•325 comments

Claude Fable 5.1 and Claude Mythos 5.1

https://www.anthropic.com/claude-fable-and-mythos-5-1
964•denysvitali•8h ago•902 comments

How accurate have Ed Zitron's AI skeptic predictions been?

https://danluu.com/zitron/
452•jatins•8h ago•530 comments

The efficient frontier of LLM inference

https://www.baseten.co/blog/the-efficient-frontier-of-llm-inference/
48•philipkiely•2h ago•7 comments

Show HN: Weedout – Safari extension that hides YouTube AI-labeled videos

https://masteranza.github.io/weedout/
66•masteranza•4h ago•21 comments

My local model setup on an M4 Pro Mac Mini

https://lws.io/blog/my-local-model-setup/
80•raybb•4h ago•33 comments

Introducing Ad Blocker for Firefox on iOS

https://blog.mozilla.org/en/firefox/ad-blocker-on-ios/
323•HieronymusBosch•12h ago•110 comments

Sonic Pi

https://sonic-pi.net/
40•Bluestein•4d ago•5 comments

The ChatGPT/Codex app bundles a full copy of LibreOffice

https://simonwillison.net/2026/Sep/1/codex-libreoffice/
255•timpera•6h ago•119 comments

Building an interactive instrument for a one-of-a-kind festival

https://benholmen.com/blog/halfmoon-chimes/
19•tjwds•4d ago•2 comments

The creator of Jujutsu has joined ERSC

https://ersc.io/blog/martin-joins-ersc
189•steveklabnik•8h ago•149 comments

Path to Astra: critical capabilities and frontier safeguards

https://openai.com/index/path-to-astra/
97•jithinraj•6h ago•43 comments

Launch HN: Nori Robotics (YC S26) – A low-cost humanoid robot for development

https://www.norirobotics.com/
115•AntonioLi•9h ago•40 comments

Ambient CSS v3 – Blender meets CSS

https://ambientcss.vercel.app/
199•kikkupico•11h ago•68 comments

Refurbishing a Tektronix TDS7104 Oscilloscope

https://tomverbeure.github.io/2026/08/23/Tektronix-TDS7104-Refurbishing.html
90•jwise0•6h ago•45 comments

Show HN: HN Match Maker – Matching "Who Wants to Be Hired?" With "Who's Hiring?"

https://hnmatchmaker.com/
45•all2•5h ago•26 comments

Movie Scene Map – 13,312 films, series, games, anime and manga

https://moviescenemap.com/
157•Flightmussy•10h ago•28 comments

Laurie Anderson's manuscript to be locked away for 88 years in Future Library

https://www.theguardian.com/books/2026/aug/29/laurie-anderson-manuscript-88-years-future-library-...
8•mitchbob•3d ago•2 comments

Show HN: Running 104GB Qwen3.8-Flash-Next on 48GB Mac with at ~12 tok/s

https://github.com/carloslfu/slotstream
147•carloslfu•9h ago•90 comments

Ask HN: Who is hiring? (September 2026)

186•whoishiring•11h ago•210 comments

Building Autonomous Goal Loops That Deliver

https://jx0.ca/building-autonomous-goal-loops-that-deliver/
14•jarredkenny•3d ago•0 comments

Play Store blocks AuroraStore, hurting GrapheneOS users

https://gitlab.com/AuroraOSS/AuroraStore/-/work_items/1566
474•erikvanoosten•10h ago•200 comments

Atlas: A World Model for Spatial Intelligence

https://www.worldlabs.ai/blog/atlas
155•johnsutor•8h ago•40 comments

Improving our alignment and security efforts

https://www.anthropic.com/news/improving-alignment-security-efforts
17•reasonableklout•3h ago•7 comments

Quill (YC W20) Is Hiring a Fullstack SWE

1•R_R•9h ago

Magic eye tube

https://en.wikipedia.org/wiki/Magic_eye_tube
82•peter_d_sherman•3d ago•23 comments

Fluorescent lamps (don't) have ears

https://blog.coredump.cx/p/fluorescent-lamps-dont-have-ears
28•zdw•5h ago•8 comments

AnkiDroid: Google Play no longer allowing Open Collective donation link

https://github.com/ankidroid/Anki-Android/issues/21656
840•hexa555•16h ago•253 comments

Ask HN: Who wants to be hired? (September 2026)

79•whoishiring•11h ago•243 comments

Make a Portable Wide-screen Mechanical TV

https://spectrum.ieee.org/mechanical-tv-2677767814
27•Brajeshwar•4d ago•4 comments