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.

TurboBird – Firebird Database Tool

https://github.com/mdadali/TurboBird
1•mariuz•48s ago•0 comments

Google Plans to Invest Up to $40B in Anthropic

https://www.bloomberg.com/news/articles/2026-04-24/google-plans-to-invest-up-to-40-billion-in-ant...
3•elffjs•2m ago•0 comments

Show HN: Kadō, an open source habit tracker app for iOS

https://github.com/scastiel/kado
3•scastiel•4m ago•0 comments

Visual-base is a second brain from your eyes

https://github.com/oilbeater/visual-base
1•recrush•5m ago•0 comments

I Cancelled Claude: Token Issues, Declining Quality, and Poor Support

https://nickyreinert.de/en/2026/2026-04-24-claude-critics/
3•y42•7m ago•0 comments

Is the Novelty Budget Dead?

https://simonshine.dk/articles/is-the-novelty-budget-dead/
1•sshine•10m ago•0 comments

PGO Build TPC-C Analysis MariaDB v11.8.6 TideSQL

https://tidesdb.com/articles/pgo-build-tpc-c-analysis-mariadb-v11-8-6-tidesql/
1•alexpadula•11m ago•0 comments

LLMs – What Experienced Practitioners See

https://dr-knz.net/llms-in-practice.html
1•knz42•12m ago•1 comments

Ask HN: How does Google crawls x.com website?

1•iaziz786•13m ago•0 comments

Games for Change

https://www.gamesforchange.org/
1•csmillie•15m ago•0 comments

What Anthropic's Mythos Means for the Future of Cybersecurity

https://spectrum.ieee.org/ai-cybersecurity-mythos
2•Brajeshwar•17m ago•0 comments

Refuse to let your doctor record you

https://buttondown.com/maiht3k/archive/why-you-should-refuse-to-let-your-doctor-record/
10•speckx•18m ago•2 comments

Space Reactor 1

https://en.wikipedia.org/wiki/Space_Reactor%E2%80%911_Freedom
1•hansmayer•20m ago•0 comments

Intel stock hits new all-time highs for first time since 2000

https://cryptobriefing.com/intel-stock-all-time-high-since-2000/
2•mgh2•20m ago•1 comments

Content credentials – hardware signing of photo and video cameras

https://contentcredentials.org/
1•sveme•20m ago•0 comments

Why I'm Done Making Desktop Applications

https://www.kalzumeus.com/2009/09/05/desktop-aps-versus-web-apps/
10•claxo•22m ago•2 comments

Six things I'll remember when I think about Tim Cook's version of Apple

https://arstechnica.com/gadgets/2026/04/six-things-ill-remember-when-i-think-about-tim-cooks-vers...
1•01-_-•27m ago•0 comments

UK Biobank health data listed for sale in China, government confirms

https://www.bbc.com/news/articles/cpvxgl3n138o
1•01-_-•27m ago•1 comments

What I learned asking 11 AI models to grade each other's AI predictions

https://shimin.io/journal/what-i-learned-asking-11-ai-models-to-grade-each-other/
1•recurrence•28m ago•0 comments

Why High-Testosterone Men Don't Perform for the Crowd

https://www.nature.com/articles/s41386-023-01570-y
2•bilsbie•28m ago•0 comments

El Salvador Adds New Tools in National Health App to Track and Treat (DoctorSV)

https://ticotimes.net/2026/04/19/el-salvador-adds-new-tools-in-national-health-app-to-track-and-t...
1•catlikesshrimp•29m ago•1 comments

Asia's Billionaires Are Bankrolling a Push for More Babies

https://www.bloomberg.com/news/articles/2026-04-24/asia-s-billionaires-offer-cash-incentives-to-b...
1•snidane•30m ago•0 comments

Rubbing testosterone gel on men's upper arms eliminates the audience effect

https://www.psypost.org/rubbing-testosterone-gel-on-mens-upper-arms-eliminates-the-audience-effec...
1•bilsbie•30m ago•0 comments

Show HN: Tarot Down Detector – a status page as a tarot reading

https://down.artemistarot.app/tarot-down-detector
3•suzgoldblatt•34m ago•0 comments

The Design of Design – Gordon L. Glegg(1969)

https://annas-archive.gl/md5/ea8f706c8ba56aaa741d5b45245ba25d
1•num42•35m ago•0 comments

You know what consciousness is: you live in soul land

https://aeon.co/essays/you-know-what-consciousness-is-you-live-in-soul-land
1•speckx•35m ago•0 comments

Unfounded Health Concerns Are Powering a Solar Backlash

https://www.propublica.org/article/michigan-solar-farms-health-concerns-st-clair-county
2•Brajeshwar•36m ago•0 comments

Printing a Check for Free

https://www.check.supply/check-printer
1•pfista•36m ago•0 comments

Ask HN: Anyone else get fatigued by interaction with LLMs?

3•yesitcan•37m ago•4 comments

Show HN: PrivateClaw – AI agents running in confidential VMs you can verify

https://privateclaw.dev
5•lambence•41m ago•0 comments