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

Comments

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

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

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

Show HN: Nexa-gauge – Cache/cost-aware graph-based eval for LLM and RAG

https://github.com/harnexa/nexa-gauge
1•Sardhendu•3m ago•0 comments

Venom and Hot Peppers Offer a Key to Killing Resistant Bacteria

https://www.wired.com/story/mexican-science-transforms-scorpion-venom-and-habanero-chile-into-ant...
1•littlexsparkee•6m ago•1 comments

Accelerator Applicant's AI System Makes Faux Pau; Critical of Accelerator Model

https://news.novonavis.com/news/intel_080526_2297
1•capagg•10m ago•1 comments

Show HN: Launch and Run Companies on Autopilot

https://lakyus.com/live
1•edonnie•12m ago•1 comments

Claude FM music for thinking and building [video]

https://www.youtube.com/watch?v=AUQKjgKQF7w
1•davidk42•13m ago•0 comments

CVE-2026-7413: Persistent undocumented backdoor access with Yarbo

https://takeonme.org/cves/cve-2026-7413/
1•shakna•14m ago•0 comments

AI Canasta Scoring App

https://canastascore.com/
1•alohaplannerapp•16m ago•0 comments

Playing Around with OpenAI's GPT Realtime Voice API

https://nathancooper.io/blog/2026-05-08-gpt-realtime-audio
1•coop57•19m ago•0 comments

Show HN: AI-native tech assessments (end of LeetCode)

https://www.openround.ai/
2•vetted_so•20m ago•0 comments

The Big Engine That Could

https://medium.com/human-offset/the-big-engine-that-could-de152076bb82
1•gdessau•22m ago•0 comments

Archive.today Reverts to Monero-Only Donations

https://archive.fo
1•Cider9986•23m ago•1 comments

Opentype.js 2.0.0 Released

https://github.com/opentypejs/opentype.js/releases/tag/2.0.0
1•ILOVEPIE•23m ago•0 comments

Dirty Frag Linux kernel local privilege escalation vulnerability mitigations

https://ubuntu.com/blog/dirty-frag-linux-vulnerability-fixes-available
2•zajio1am•23m ago•0 comments

Show HN: MOG Simulator, Emergent galaxies via ensemble of grids [video]

https://github.com/tbmo/mog-solver
1•tbmo•23m ago•1 comments

X A "Clean Room" for 2026 technical and logistical news

https://xreport.news/
1•XREPORTNEWS•25m ago•0 comments

James Schuyler's Genius

https://yalereview.org/article/james-schuylers-genius
1•Thevet•25m ago•0 comments

A Robot Just Became a Monk at a Buddhist Temple in South Korea

https://www.smithsonianmag.com/smart-news/meet-gabi-the-new-robot-monk-at-a-buddhist-temple-in-so...
1•lisper•27m ago•0 comments

Loom -single line install TTY IDE for agent coding

https://github.com/claytantor/loom-tty-ide
1•claydronze•28m ago•1 comments

Porn website at center of CNN investigation into sexual abuse taken offline

https://www.cnn.com/2026/05/08/europe/porn-site-motherless-taken-down-dutch-authorities-intl
1•NDlurker•30m ago•1 comments

Jane Street earned $10B in first quarter as it doubled trading revenue

https://www.ft.com/content/fe483e68-097a-4b80-ad3a-0792dda8f94a
2•KnuthIsGod•31m ago•0 comments

I built a pixel oven that tells you if you're cooked

https://broamicooked.com/
1•HealthAI47•33m ago•0 comments

Ask HN: What are the most joyful AI projects you've seen?

3•adagradschool•34m ago•1 comments

San Francisco's housing market has lost its mind

https://techcrunch.com/2026/05/08/san-franciscos-housing-market-has-lost-its-mind/
1•littlexsparkee•37m ago•0 comments

Iran war's global energy crisis sharpens China's advantage in clean tech

https://apnews.com/article/iran-middle-east-war-energy-asia-china-05d198d6e8dc99d0209dddfff26ae52a
4•breve•44m ago•0 comments

Reduce friction and latency for long-running jobs with Webhooks in Gemini API

https://twitter.com/GoogleAIStudio/status/2051421109506228656
1•gmays•50m ago•0 comments

Pushing Local Models with Focus and Polish

https://lucumr.pocoo.org/2026/5/8/local-models/
1•wrxd•51m ago•0 comments

Show HN: [Video] Tribute to LLM releases in April 2026

https://www.youtube.com/watch?v=uu5ffMH_X9w
2•everlier•56m ago•0 comments

The FCC Wants Your ID Before You Get a Phone Number

https://reclaimthenet.org/the-fcc-wants-your-id-before-you-get-a-phone-number
8•bilsbie•1h ago•1 comments

You Might Be a Late Bloomer (2024)

https://www.theatlantic.com/ideas/archive/2024/06/successs-late-bloomers-motivation/678798/
2•breve•1h ago•0 comments

The Tax of Living in a Low-Trust Society: How Collapsed Trust Costs You

https://yourbrainonmoney.substack.com/p/low-trust-society-cost
22•ot•1h ago•7 comments