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: A TUI for Markdown view an editing

https://mdee.bkh.dev
1•cloked•46s ago•0 comments

US State Department upgrades AI theft accusations to target China AI companies

https://www.chinapulse.com/data-news/2026/04/27/extraction-and-distillation-us-state-department-u...
2•devonnull•51s ago•0 comments

What is up with UK bridge height signs? [video]

https://www.youtube.com/watch?v=kH_bSvf7EVA
1•fortran77•1m ago•0 comments

Stop Wasting Brain Power

https://yusufaytas.com/stop-wasting-brainpower
8•london_safari•2m ago•0 comments

An AI-generated image is a finalist in Hasselblad Masters 2026 [video]

https://www.youtube.com/shorts/4MeO2wW5nOs
1•xuf•3m ago•1 comments

200 Journalists Applaud the Internet Archive's Role in Preserving Public Record

https://www.savethearchive.com/journalists/
1•doener•4m ago•0 comments

MSF: Israel uses water as a weapon of collective punishment against Palestinians

https://msf.org.uk/article/gaza-israel-uses-water-weapon-collective-punishment-against-palestinians
2•mef51•4m ago•1 comments

PowerDNS Security Updates – Vulnerabilities Explained CVE-2026-33257

https://tux.re/forum/viewtopic.php?t=179
1•Neteam•5m ago•0 comments

Fastembed – Lightweight Python Embedding Library

https://github.com/qdrant/fastembed
1•firasd•6m ago•0 comments

Escaping SaaS Trap: How Global Retailer Solved Data Sovereignty at 85% Less Cost

https://www.mydecisive.ai/case-study/luxury-retailer-data-sovereignty
1•jratkevic•9m ago•0 comments

Microsoft open sources DOS 1.0 – and it's more than the code

https://www.zdnet.com/article/microsoft-open-sources-dos-1-0-much-more-than-the-code/
2•CrankyBear•9m ago•1 comments

OpenAI Hits Back at Growth Fears, Says 'Firing on All Cylinders'

https://www.bloomberg.com/news/articles/2026-04-28/openai-hits-back-at-growth-fears-says-firing-o...
1•SilverElfin•10m ago•1 comments

One Man Broke the Marathon's Holy Grail

https://www.thefp.com/p/how-one-man-broke-the-marathons-holy
1•sorenKaram•11m ago•1 comments

Super fly: can an electric aircraft spark a quiet revolution in New York travel?

https://www.theguardian.com/us-news/2026/apr/28/electric-aircraft-new-york-air-travel
3•billybuckwheat•11m ago•0 comments

Ghostty is leaving GitHub

https://mitchellh.com/writing/ghostty-leaving-github
155•WadeGrimridge•11m ago•18 comments

Computing quantum waves from classical action

https://royalsocietypublishing.org/rspa/article/482/2336/20250413/481461/On-computing-quantum-wav...
1•orbifold•12m ago•1 comments

Lenovo acquires Phoenix Technologies' BIOS business

https://videocardz.com/newz/lenovo-acquires-phoenix-technologies-bios-business
2•LorenDB•15m ago•0 comments

Open-sourced the skills behind 353K views and 5,300 signups for a YC company

https://github.com/ScaleBrick/founder-marketing-skills
3•devgod•16m ago•1 comments

Lidl stirs up mobile market with discount phone plans

https://www.ft.com/content/52b9ba96-e86c-4ddb-ac1f-726051420fd2
1•doener•17m ago•0 comments

Why Everyone Is Obsessed with Claude Code

https://www.youtube.com/watch?v=gzt52Trk9w0
1•pythonic_hell•18m ago•0 comments

Two years without cookies on the site, here's where we ended up

https://blog.sentry.io/two-years-without-cookies-on-the-site/
3•annjose•18m ago•0 comments

Why Multi Window Multi Burn Rate SLO Alerting Sucks

https://eavan.blog/posts/multi-window-burn-rate-sucks.html
1•eavan0•24m ago•1 comments

You Take Notes but Never Get Smarter

https://meda.io/why-you-take-notes-but-never-get-smarter/
4•speckx•24m ago•0 comments

Show HN: CLI to for working with complex Google Docs using Markdown

https://github.com/think41/extrasuite
1•ksri•28m ago•1 comments

Why don't AI coding tools like REST?

3•sshadmand•30m ago•0 comments

It's dumb to study computer science thinking you can make a 'boatload' at Google

https://www.businessinsider.com/replit-ceo-dumb-to-study-computer-science-money-google-2026-4
1•austin-cheney•30m ago•0 comments

Interview with OpenAI and AWS CEOs about Bedrock Managed Agents

https://stratechery.com/2026/an-interview-with-openai-ceo-sam-altman-and-aws-ceo-matt-garman-abou...
16•translocator•32m ago•2 comments

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
2•susam•34m ago•1 comments

Beyond Maxxing: New Tech Slang for 2026

https://www.siliconsnark.com/beyond-maxxing-siliconsnark-creates-new-tech-slang-for-2026/
2•SaaSasaurus•34m ago•0 comments

A Model for Economic Freedom on Mars

https://arxiv.org/abs/2406.10380
1•AFF87•37m ago•0 comments