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

Comments

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

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

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

China detains Panama-flagged ships after cancellation of canal concession

https://www.semafor.com/article/03/27/2026/china-detains-panama-flagged-ships
1•ilamont•1m ago•0 comments

How Can America Be So Miserable When It's So Rich?

https://www.nytimes.com/2026/03/26/opinion/economy-attitudes-republicans-democrats.html
1•paulpauper•2m ago•0 comments

"All files are numbers"

https://owl.billpg.com/all-files-are-numbers/
1•speckx•2m ago•0 comments

Ask HN: Is consumer AI boxes a viable idea?

1•spprashant•2m ago•0 comments

FaceTime with My 19-Year-Old Self

https://www.davidtran.me/facetime-with-my-19-year-old-self/
2•rickyyean•4m ago•0 comments

Back to FreeBSD – Part 2 – Jails

https://hypha.pub/back-to-freebsd-part-2
1•vermaden•5m ago•0 comments

A Life of Paying Attention

https://www.theatlantic.com/newsletters/time-travel-thursdays/
1•paulpauper•5m ago•0 comments

TurboQuant: Building a Sub-Byte KV Cache Quantizer from Paper to Production

https://demo.aitherium.com/blog/turboquant-sub-byte-kv-cache-from-paper-to-production
1•wizzense•6m ago•0 comments

The 'Engineer State' Is a Fairy Tale. I Was There. (2026)

https://badclimateadvice.com/blog/engineer-state-fairy-tale
1•vietthan•7m ago•0 comments

Canada loaning millions to rare earth project linked to Trump White House

https://www.cbc.ca/news/canada/nunavik-rare-earth-mining-project-9.7138515
1•cf100clunk•8m ago•0 comments

The vanishing "Proof of Work" in software engineering

1•shivang2607•8m ago•0 comments

Vibe-Coded Ext4 for OpenBSD

https://lwn.net/SubscriberLink/1064541/1a399d572a046fb9/
2•corbet•9m ago•0 comments

The Powerful Men Who Think Introspection Is Dumb

https://www.theatlantic.com/ideas/2026/03/introspection-andreessen-thiel-bezos/686566/
1•littlexsparkee•9m ago•0 comments

TurboQuant: Online Vector Quantization with Near-Optimal Distortion Rate

https://openreview.net/forum?id=tO3ASKZlok
1•tamnd•11m ago•0 comments

Ask HN: What is your home AI programming hardware setup?

1•danielovichdk•12m ago•0 comments

Arm is burning its business model on the altar of AI

https://www.datacenterdynamics.com/en/opinions/arm-is-burning-its-business-model-on-the-altar-of-ai/
1•ZinedineF•13m ago•0 comments

Show HN: Paste Image to Claude Code over SSH

https://github.com/AlexZeitler/claude-ssh-image-skill
1•alexzeitler•14m ago•0 comments

Framework Becomes a KDE Patron

https://ev.kde.org/2026/03/27/framework-becomes-kde-patron/
2•TangerineDream•14m ago•0 comments

LLMs are ruining my craft

https://www.briancarpio.com/blog/llms-are-ruining-my-craft
1•linsys•15m ago•1 comments

Snow flies create their own heat to avoid freezing

https://news.northwestern.edu/stories/2026/03/some-like-it-cold-snow-flies-create-their-own-heat-...
1•gmays•18m ago•0 comments

Finding a typo in Fourth Wing using AI

https://variety.is/posts/fourth-wing-typo/
1•sync•19m ago•0 comments

The Guy in the Garage

https://demo.aitherium.com/blog/the-guy-in-the-garage
1•wizzense•19m ago•0 comments

Custom kernel mode code signing policies on Windows

https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-c...
1•ZeroWidthJoiner•21m ago•1 comments

CAS Internals – 825 pages on how a 400-module Spring Boot app works

https://leanpub.com/cas-internals/c/hn
1•dknj•22m ago•1 comments

Is It Impossible to Cool a Datacenter in Space? [video]

https://www.youtube.com/watch?v=FlQYU3m1e80
1•jasoncartwright•22m ago•0 comments

The Surprising Reason for the New Homophobia

https://www.theatlantic.com/culture/2026/03/modern-homophobia/686547/
3•JumpCrisscross•23m ago•0 comments

US Diesel prices surpass $5.38

https://www.truckingdive.com/news/diesel-prices-higher-iran-war-above-5-dollars/815529/
2•Betelbuddy•23m ago•0 comments

Appaca: Personal Software Platform

https://www.appaca.ai
1•susros•23m ago•0 comments

ZDI-CAN-30207: Unpatched 9.8 RCE zero-day in Telegram

https://www.zerodayinitiative.com/advisories/upcoming/
2•km•24m ago•0 comments

Researchers accuse ICLR 2026 paper TurboQuant of misrepresenting RaBitQ

https://twitter.com/gaoj0017/status/2037532673812443214
1•VoVAllen•26m ago•0 comments