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.
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
fithisux•1y ago
Impressive.
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.

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

AI Engineers aren't safe from being replaced by AI

https://dmanco.dev/2025/08/17/fear-not-even-ai-engineers-will-be-replaced-by-ai.html
2•Doch88•9m ago•0 comments

Show HN: GymCoach – Self-hosted workout tracker where you bring your own LLM

https://github.com/Julien-Au/gymcoach
1•Julien-Au•9m ago•0 comments

Microrobots deliver stem cells for nerve regeneration

https://ethz.ch/en/news-and-events/eth-news/news/2026/06/microrobots-repair-spinal-cord.html
1•milmar55•12m ago•0 comments

Open Source alternative to Substack and Buttondown

https://github.com/scmmishra/picoletter
1•shivam-dev•12m ago•0 comments

Ask HN: What are good AI UIs now?

1•ramstar3000•14m ago•1 comments

Man Becomes the Sex Organs of the Machine World (2012)

http://2012diaries.blogspot.com/2012/05/man-becomes-sex-organs-of-machine-world.html
1•downbad_•14m ago•0 comments

Tell HN: AI programming has turned my "scope creep" to "scope leap"

1•wewewedxfgdf•16m ago•3 comments

Ten Years of Franz

https://meetfranz.com/blog/ten-years-of-franz
3•tosh•19m ago•0 comments

Topaz AI confirmed bug that can wipe host computer

https://community.topazlabs.com/t/heads-up-avoid-moving-default-app-folders-to-prevent-file-path-...
1•50kIters•20m ago•1 comments

Show HN: Browser-Native GPU Sharing

https://apssouza22-webgpu-cluster.hf.space/
1•bilekas•22m ago•2 comments

Quality in the Age of Slop

https://sinclairtarget.com/blog/2026/06/01/quality-in-the-age-of-slop/
1•signa11•26m ago•0 comments

Bill Gates Spent Years Crafting His Image. Now It's Cracking

https://www.wsj.com/business/bill-gates-image-epstein-e0b83243
2•Michelangelo11•28m ago•0 comments

Show HN: Phantom Chat – iOS messenger with NIST post-quantum encryption (PQXDH)

https://testflight.apple.com/join/rmSrMch9
1•VeilusDigital•29m ago•1 comments

Velotric Flight Kit

https://www.velotricbike.com/pages/velotric-flight-kit
1•foo12bar•29m ago•0 comments

He Quit Baidu. But First He Had to Build an AI Version of Himself

https://www.sixthtone.com/news/1018594
2•circadian•31m ago•0 comments

Where does the race to automate AI research end?

https://www.lesswrong.com/posts/gkbet5Gp7eoAE9bjY/where-does-the-race-to-automate-ai-research-end
1•joozio•31m ago•0 comments

Rehumanizing global health care with agentic AI

https://www.technologyreview.com/2026/06/02/1137827/rehumanizing-global-health-care-with-agentic-ai/
1•joozio•35m ago•0 comments

Nvidia RTX Spark

https://nvidianews.nvidia.com/news/nvidia-microsoft-windows-pcs-agents-rtx-spark
2•IblankI•44m ago•1 comments

XML and JSON in 2026

https://www.tbray.org/ongoing/When/202x/2026/06/01/XML-and-JSON-in-2026
1•mpweiher•49m ago•0 comments

$TLDC – Too Long; Didn't Code

https://cdbnk.github.io/tldc/
1•4k0hz•52m ago•0 comments

Greatest Bird Names of All Time

https://birdhistory.substack.com/p/the-100-greatest-bird-names-of-all
5•scylurus•53m ago•0 comments

UK media groups given power to opt out of Google AI search summaries

https://www.theguardian.com/business/2026/jun/03/uk-media-groups-power-opt-out-google-ai-search-s...
3•berlianta•58m ago•0 comments

Drones, spider cams and AI will bring World Cup 2026 to your TV

https://www.rte.ie/brainstorm/2026/0602/1575716-world-cup-2026-broadcasting-technology-spider-cam...
1•austinallegro•1h ago•1 comments

An MCP tool that lets ChatGPT check if a store is AI-readable

https://www.bridgetoagent.com/api/mcp
1•AI-agent-rdy•1h ago•0 comments

Leiden Declaration on Artificial Intelligence and Mathematics

https://leidendeclaration.ai/
2•zvr•1h ago•0 comments

Slim Binaries (1997)

https://dl.acm.org/doi/10.1145/265563.265576
1•tosh•1h ago•0 comments

A harness for every task: dynamic workflows in Claude Code

https://twitter.com/trq212/status/2061907337154367865
1•pretext•1h ago•0 comments

Nvidia Vera–The CPU for Agents [video]

https://www.youtube.com/watch?v=vLfrBembjsk
1•pretext•1h ago•1 comments

Can we trust AI to build a better version of itself?

https://www.ft.com/content/7cc7800f-18ed-47d8-9539-221ae3e16182
1•merksittich•1h ago•0 comments

open-spdd: Design Philosophy

https://github.com/gszhangwei/open-spdd/blob/main/docs/design-philosophy.md
2•pramodbiligiri•1h ago•0 comments