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.

The Iran War Just Broke the Petrodollar

https://www.bloomberg.com/opinion/articles/2026-04-06/the-petrodollar-loop-supporting-the-treasur...
1•rantingdemon•54s ago•0 comments

Linux Executes Binaries: ELF and Dynamic Linking Explained

https://fmdlc.github.io/tty0/articles/linux-elf-dynamic-linking/Linux_ELF_Dynamic_linking_EN.html
1•sarimkx•1m ago•0 comments

Sky – an Elm-inspired language that compiles to Go

https://github.com/anzellai/sky
2•whalesalad•5m ago•0 comments

Claude Code Down

4•theahura•5m ago•1 comments

Show HN: Detect phantom and unused dependencies across multiple languages

https://github.com/ojuschugh1/ghostdep
1•ojuschugh1•6m ago•1 comments

Self-Hosting from Scratch

https://wwj.dev/posts/self-hosting-from-scratch/
1•wjohnsto•8m ago•0 comments

5 Years of Lessons from Running My Own Bookstore

https://ryanholiday.net/5-years-of-lessons-from-running-my-own-bookstore/
1•speckx•8m ago•0 comments

Open Source Lawyers and AI

https://www.thomas-huehn.com/open-source-lawyers-and-ai/
1•speckx•12m ago•0 comments

Multi-model intelligence in MS Copilot Researcher

https://techcommunity.microsoft.com/blog/microsoft365copilotblog/introducing-multi-model-intellig...
1•kumrayu•12m ago•0 comments

Ask HN: What do you use the internet for?

1•mghackerlady•12m ago•0 comments

Cowardice of the AI plagiarist: Writers risk becoming ventriloquist's dummies

https://unherd.com/2026/04/the-cowardice-of-the-ai-plagiarist/
1•thinkingemote•13m ago•0 comments

Show HN: Kubernetes cluster simulation that runs in the browser to prepare CKA

https://kubemastery.com/en
1•antoine_flo•13m ago•0 comments

The Family That Decided to Have Their Stomachs Removed

https://www.theatlantic.com/health/2026/03/stomach-cancer-total-gastrectomy/686623/
1•gmays•14m ago•0 comments

Amounts of nanoplastics discovered in tap and bottled water

https://news.mongabay.com/short-article/2026/03/huge-amounts-of-nanoplastics-discovered-in-tap-an...
1•PaulHoule•14m ago•0 comments

Chiemgauer

https://en.wikipedia.org/wiki/Chiemgauer
1•simonebrunozzi•15m ago•0 comments

My (uninformed) theory about Jeff Bezos and the Washington Post

https://statmodeling.stat.columbia.edu/2026/04/06/my-uninformed-and-completely-speculative-theory...
1•Tomte•16m ago•0 comments

Doing Impressions: Monet's Early Caricatures (ca. late 1850s)

https://publicdomainreview.org/collection/claude-monet-caricatures/
1•prismatic•16m ago•0 comments

You will not be a member of the permanent underclass

https://thingofthings.substack.com/p/you-will-not-be-a-member-of-the-permanent
2•surprisetalk•17m ago•0 comments

Small Engines

https://scottlocklin.wordpress.com/2026/03/25/very-small-engines/
1•surprisetalk•17m ago•0 comments

A Dictator Built the Richest Country [video]

https://www.youtube.com/watch?v=aI5Kz0OBGWA
1•surprisetalk•17m ago•0 comments

What oral argument told us in the birthright citizenship case

https://www.scotusblog.com/2026/04/what-oral-argument-told-us-in-the-birthright-citizenship-case/
1•Tomte•17m ago•0 comments

The Bottleneck Has Moved

https://beforetheprompt.substack.com/p/the-bottleneck-has-moved
1•aditgupta•17m ago•0 comments

Athlete ran 500 miles to Moab in 11 days, eating psychedelics the whole way

https://coloradosun.com/2025/11/14/dante-liberato-documentary-psychedelics/
1•mooreds•19m ago•0 comments

Show HN: A Open Source Claude Code setup to publish Research papers 10x faster

https://github.com/sunnnybala/Rstack
1•FurstFly•19m ago•0 comments

I built a project management tool where AI agents are actual team members

https://www.indiehackers.com/post/i-built-a-project-management-tool-where-ai-agents-are-actual-te...
1•spotlayn•19m ago•0 comments

Show HN: TUI Settlers of Catan built with Llamafile and Bonsai PrismML Models

https://github.com/mozilla-ai/settl
1•river_otter•19m ago•0 comments

Take Take Take and Lichess.org Announce Play Zone Partnership

https://taketaketake.com/blog/lichess-partnership
1•mellosouls•19m ago•1 comments

Agentic Design Patterns in the leaked Claude Code's source code

https://jigarkdoshi.bearblog.dev/agentic-design-patterns-in-production/
1•j_juggernaut•20m ago•1 comments

Clutch (real-time session finder for gamers, no LFG spam)

https://clutch-app.co/
1•royalec•21m ago•0 comments

Show HN: Trappsec – Active Defense via Business Logic Deception

https://trappsec.dev
2•kyuradar•21m ago•0 comments