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.

U.S. to Withdraw 5k Troops from Germany, Pentagon Says

https://www.nytimes.com/2026/05/01/us/politics/us-troops-germany.html
3•mikhael•5m ago•0 comments

uget – stupid get-file-over-HTTP program/function

https://github.com/troglobit/uget
1•peter_d_sherman•8m ago•0 comments

Visual Studio 2026 still ships the form designer Alan Cooper drew in 1987

https://evilgeniuslabs.ca/blog/winforms-still-ships-in-visual-studio-2026
2•jordand•14m ago•0 comments

Oregon's Non-Affiliated Surge and the Socialist Realignment Nobody Talks About

https://fullstack.ing/posts/the-flight-from-party-oregons-non-affiliated-surge-and-the-socialist-...
2•fullstacking•21m ago•0 comments

Humanity on the Page

https://www.commonwealmagazine.org/writing-artificial-intelligence-ai-rand-richards-cooper
1•cainxinth•21m ago•0 comments

Show HN: TTS Studio: AI-Powered Text-to-Speech Tool

https://tts.haroun.dev/
2•shmayro•22m ago•0 comments

I got infected with a crypto-miner via misconfigured qBittorrent

https://blog.vasi.li/well-i-got-hacked/
2•vsviridov•26m ago•0 comments

What Software Engineers Can Learn from the Aviation Industry

https://mwalterskirchen.dev/blog/piloting-agentic-engineering/
2•pseudolus•31m ago•0 comments

NASA's Curiosity and Perseverance rovers capture Mars panoramas [video]

https://www.space.com/astronomy/mars/nasas-curiosity-and-perseverance-rovers-capture-sweeping-mar...
2•teleforce•33m ago•0 comments

A Report on Burnout in Open Source Software Communities (2025) [pdf]

https://mirandaheath.website/static/oss_burnout_report_mh_25.pdf
3•susam•34m ago•0 comments

New v2 UALink specification aims to catch up to NVLink

https://www.networkworld.com/article/4155357/new-v2-ualink-specification-aims-to-catch-up-to-nvli...
2•mindcrime•34m ago•0 comments

Keep Android Open: Why Free Android Matters

https://tux.re/forum/viewtopic.php?t=203
4•tux033•35m ago•0 comments

On Taste

https://endler.dev/2026/taste/
2•lwhsiao•38m ago•0 comments

Palantir Workers Are Finally Noticing the Skulls on Their Caps

https://www.techdirt.com/2026/04/30/palantir-workers-are-finally-noticing-the-skulls-on-their-caps/
8•throawayonthe•39m ago•3 comments

WolfCOSE: Zero alloc, PQC, MISRA-C, FIPS 140-3 built with wolfCrypt

https://github.com/aidangarske/wolfCOSE
2•aidangarske•40m ago•0 comments

AI Companies Can't Regulate Themselves. They Should Regulate Each Other

https://www.lawfaremedia.org/article/ai-companies-can-t-regulate-themselves-they-should-regulate-...
1•nedruod•41m ago•0 comments

Pentagon officials broadly detail $55B drone plan under DAWG

https://breakingdefense.com/2026/04/pentagon-officials-broadly-detail-55-billion-drone-plan-under...
1•thegdsks•42m ago•0 comments

Show HN: News on the Go

https://hncast.com/
2•ynarwal__•43m ago•0 comments

Industrial Policy for the Intelligence Age [pdf]

https://cdn.openai.com/pdf/561e7512-253e-424b-9734-ef4098440601/Industrial%20Policy%20for%20the%2...
1•avaer•47m ago•0 comments

A Programmer's Guide to Common Lisp

https://archive.org/details/a-programmers-guide-to-common-lisp
8•jellinek•50m ago•1 comments

Running a custom trained Piper TTS model on Raspberry Pi Zero 2W

https://old.reddit.com/r/LocalLLM/comments/1t0xho8/running_a_custom_trained_piper_tts_model_on/
1•yakkomajuri•50m ago•0 comments

Disabling the new AF_ALG by default in gnulib (from 2018)

https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html
2•dxdxdt•51m ago•0 comments

Copy-Fail: Linux Privilege Escalation

https://copy.fail/#affected
2•joatmon-snoo•51m ago•1 comments

Bitcoin Is Venice (2021)

https://allenfarrington.medium.com/bitcoin-is-venice-bitcoin-is-741cc7d22e9
1•simonebrunozzi•52m ago•0 comments

Active exploitation of cPanel/WHM critical vulnerability

https://www.cyber.gov.au/about-us/view-all-content/alerts-and-advisories/active-exploitation-of-c...
1•Svoka•52m ago•0 comments

'Empire of Skulls' book review: When phrenology raced ahead

https://www.wsj.com/arts-culture/books/empire-of-skulls-review-when-phrenology-raced-ahead-1c1fdab0
4•hhs•52m ago•1 comments

Is Rise of the Robots (1994) the worst game?

https://old.reddit.com/r/amiga/comments/1t1407x/is_rise_of_the_robots_1994_actually_the_worst/
1•doener•53m ago•0 comments

Ask HN: Any nice project ideas that you know you'll never bring to life

1•atilimcetin•54m ago•1 comments

New study finds task switching raises risk in transplant surgeries

https://news.vt.edu/articles/2026/04/pamplin-bit-research-organ-transplant-task-switching.html
1•hhs•57m ago•0 comments

GameStop is preparing offer for eBay

https://finance.yahoo.com/markets/stocks/articles/gamestop-preparing-offer-ebay-wsj-212703455.html
2•avonmach•59m ago•0 comments