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.

How to transfer money from PayPal to PayPal

https://sites.google.com/view/weptransfermoneypaypaltopaypal
1•lesanancyasd•2m ago•0 comments

QuickQWERTY Touch Typing Tutor

https://susam.net/quickqwerty.html
1•susam•2m ago•0 comments

Show HN: Free security scanning for OSS projects

1•eskibars•3m ago•0 comments

Ask HN: What Happened to the CS153 Videos

1•mapleleaf1921•5m ago•0 comments

PyPI Fixes High-Severity Access Control Issues Found in Security Audit

https://socket.dev/blog/pypi-fixes-high-severity-issues-found-in-security-audit
1•feross•6m ago•0 comments

Measuring Strategic Work

https://fullhoffman.com/2026/03/30/on-measuring-strategic-work/
1•adunk•7m ago•0 comments

UK firm pioneers data centres using lampposts

https://www.bbc.com/news/articles/c98r4e594p7o
1•1659447091•10m ago•0 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
1•Tomte•12m ago•0 comments

Ask HN: What was your "why didn't I start doing this sooner" moment?

1•chistev•12m ago•1 comments

Show HN: Detecting running processes using AF_ALG

https://github.com/NHAS/detect-running-alg-socket
1•Nullence•12m ago•0 comments

gRPC service to MCP server with a single proto annotation, autogen for slackers

https://github.com/gdsoumya/protomcp
1•gdsoumya•14m ago•0 comments

I Do Not Recommend Bitwarden

https://xn--gckvb8fzb.com/i-do-not-recommend-bitwarden/
2•HotGarbage•20m ago•0 comments

Just-Bash: A Full Shell Environment That Never Touches Your Disk

https://www.codeline.co/thoughts/repo-review/2026/just-bash-virtual-shell-for-ai-agents
1•ankitg12•24m ago•0 comments

Majority of US Military sites in Middle East damaged by Iran [video]

https://www.cnn.com/2026/05/01/world/video/us-military-bases-iran-strikes-images-invs-digvid
2•hggh•28m ago•0 comments

Your App Should Ship an MCP Server

https://justin.poehnelt.com/posts/ship-mcp-server-native-app/
1•justinwp•31m ago•3 comments

Show HN: I made an AI task scheduling app

https://apps.apple.com/us/app/taskmaster-ai-assistant/id6761262496
1•omiliyomami•31m ago•0 comments

Apple Launches New All-in-One Apple Business Platform for Device Management

https://www.macrumors.com/2026/04/14/apple-business-platform-launches/
1•walterbell•34m ago•0 comments

Raspberry Pi 5 gets LLM smarts with AI HAT+ 2

https://www.theregister.com/2026/01/15/pi_5_ai_hat_2/
1•barqawiz•57m ago•0 comments

Show HN: Stop playing my matchstick puzzles, start building your own in seconds

https://mathstick.github.io
2•trangram•1h ago•1 comments

Why are neural networks and cryptographic ciphers so similar?

https://reiner.org/neural-net-ciphers
1•jxmorris12•1h ago•0 comments

Amazon.com (1999)

https://web.archive.org/web/19990828014913/http://www.amazon.com/
1•for_i_in_range•1h ago•0 comments

Show HN: Embed your Codex pets in React apps

https://github.com/backnotprop/codex-pets-react
1•ramoz•1h ago•0 comments

Isbell Duality (2022)

https://www.alphaxiv.org/abs/2212.11079
1•measurablefunc•1h ago•0 comments

You Have No Idea How Much You Still Use BlackBerry

https://www.wsj.com/tech/blackberry-qnx-software-cars-bf2a2280
3•thm•1h ago•1 comments

GrapheneOS: The Linux kernel is a fundamentally anti-security project

https://twitter.com/GrapheneOS/status/2035450069118296272
6•maxloh•1h ago•2 comments

Evenpairs – Curated Introductions for Professionals

https://evenpairs.com/
2•bharathkoyyedi•1h ago•1 comments

Why does it take so long to release black fan versions?

https://www.noctua.at/en/expertise/blog/how-can-it-take-so-long-to-release-black-fan-versions
11•buildbot•1h ago•0 comments

Texico: Learn the principles of programming without even touching a computer

https://www3.nhk.or.jp/nhkworld/en/shows/texico/
2•o4c•1h ago•0 comments

Dominant Resource Fairness: Fair Allocation of Multiple Resource Types [pdf]

https://amplab.cs.berkeley.edu/wp-content/uploads/2011/06/Dominant-Resource-Fairness-Fair-Allocat...
1•tibbar•1h ago•0 comments

Beware the Hats: A Warning from the Streets of Majorca

https://fshot.org/techzone/bewareofhats.php
1•victorkulla•1h ago•0 comments