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•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.
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.

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•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)

fithisux•1y ago
Impressive.

I'm Tired of Talking to AI

https://orchidfiles.com/im-tired-of-ai-generated-answers/
1671•theorchid•6h ago•792 comments

Tech CEOs are apparently suffering from AI psychosis

https://techcrunch.com/2026/05/27/tech-ceos-are-apparently-suffering-from-ai-psychosis/
183•IAmGraydon•2h ago•81 comments

I think Anthropic and OpenAI have found product-market fit

https://simonwillison.net/2026/May/27/product-market-fit/
44•simonw•1h ago•29 comments

PostHog will train AI models with your data (opted-in by default)

https://posthog.com/blog/training-ai-models
114•tartieret•1h ago•88 comments

DuckDuckGo search saw 28% more visits after Google said people love AI mode

https://www.pcgamer.com/hardware/duckduckgos-ai-free-search-saw-nearly-28-percent-more-visits-in-...
127•HelloUsername•1h ago•46 comments

Last.fm is now independent

https://support.last.fm/t/last-fm-is-now-independent/118591
274•twistslider•2h ago•84 comments

Reflex (YC W23) Is Hiring SWEs, Growth, and GTM Roles

https://www.ycombinator.com/companies/reflex/jobs
1•apetuskey•42m ago

Mini Micro Fantasy Computer

https://miniscript.org/MiniMicro/index.html#about
189•nicoloren•7h ago•67 comments

Theseus: Translating Win32 to WASM

https://neugierig.org/software/blog/2026/05/theseus-wasm.html
34•ingve•2d ago•8 comments

Matrix Multiplications on GPUs Run Faster When Given "Predictable" Data (2024)

https://www.thonking.ai/p/strangely-matrix-multiplications
104•tosh•4d ago•32 comments

A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

https://z3ugma.github.io/2026/05/25/a-comma-and-a-question-mark/
11•z3ugma•1d ago•0 comments

All of human cooking compressed into 2 megabytes

https://arxiv.org/abs/2605.22391
262•josefchen•9h ago•94 comments

Incident with Pull Requests, Issues, Git Operations and API Requests

https://www.githubstatus.com/incidents/xy1tt3hs572m
198•maxnoe•5h ago•156 comments

XLIDE: VBA without excel

https://github.com/WilliamSmithEdward/xlide_vscode
48•sts153•5h ago•13 comments

Phloto for My Photo Flow

https://cceckman.com/writing/phloto/
27•evakhoury•20h ago•2 comments

My new obsession: A horse-racing board game of pure luck

https://alexanderbjoy.com/horse-race-board-game/
29•surprisetalk•2d ago•18 comments

The Melancholy of Slaying Monsters

https://thereader.mitpress.mit.edu/the-strange-melancholy-of-slaying-monsters/
238•prismatic•22h ago•106 comments

Cloudflare Flagship

https://developers.cloudflare.com/flagship/
319•tjek•18h ago•163 comments

Raft Consensus with a Minority of Nodes

https://padhye.org/raft-minority/
102•moarbugs•1d ago•15 comments

Private Equity Bought America's Essential Services

https://rubbishtalk.com/economy/how-private-equity-bought-americas-essential-services/
317•NoRagrets•5h ago•373 comments

Show HN: Open-source Workspace (mail,docs,spreadsheet,drive) web/iOS

https://tinycld.org/
16•nathanstitt•3h ago•7 comments

Atomically precise mechanosynthesis of carbon structures on hydrogenated Silicon

https://arxiv.org/abs/2605.27250
31•gene-h•6h ago•4 comments

An Update on Composer and Packagist Supply Chain Security

https://blog.packagist.com/an-update-on-composer-packagist-supply-chain-security/
14•Seldaek•2h ago•1 comments

Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs

https://arps18.github.io/posts/claude-code-mastery/
256•arps18•12h ago•199 comments

The worst job interview I ever had

https://www.oliverio.dev/blog/the-worst-job-interview-i-had
561•oliverio•21h ago•451 comments

That Methyl Methacrylate Tank

https://www.science.org/content/blog-post/methyl-methacrylate-tank
403•nooks•22h ago•174 comments

Declassified CIA Cartography Maps from the 1980s

https://brilliantmaps.com/cia-maps-1980s/
49•speckx•3h ago•19 comments

The VibeSec Reckoning

https://martinfowler.com/articles/vibesec-reckoning.html
53•HieronymusBosch•3h ago•16 comments

Evolving Webflow for the Agentic Web

https://webflow.com/blog/evolving-webflow-for-the-agentic-web
32•rocketpastsix•3h ago•17 comments

BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass

https://badhost.org/
113•ylk•1d ago•41 comments