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•8mo ago
Downloadable: https://zenodo.org/records/15424968/files/deputy-els.pdf

Comments

droideqa•8mo 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•8mo ago
Pretty readable code
reuben364•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
> EMACS elisp

I used this to write the front end for an ATM machine.

wk_end•8mo 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•8mo 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•8mo ago
Any URL for this that we can open in a browser (as opposed to the dreaded "Content-Disposition: attachment")?
Jtsummers•8mo 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•8mo ago
Thanks! I've switched to that above, and put the downloadable link in the top text.
reikonomusha•8mo 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•8mo 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•8mo ago
Well... believe it or not, some have thought of using lisp for AI for quite some time. ;-)
froh•8mo 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•8mo 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•8mo 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•8mo ago
Impressive.

Beowulf's opening "What" is no interjection

https://www.poetryfoundation.org/poetry-news/69208/new-research-opening-line-of-beowulf-is-not-wh...
1•gsf_emergency_6•2m ago•0 comments

Paying attention to Attention

https://suyogdahal.com.np/posts/paying-attention-to-attention/
1•just-another-se•8m ago•0 comments

The War on Drugs Is Why Your Bus Never Showed Up

https://maxmautner.com/2026/01/17/bus-marijuana.html
2•mslate•14m ago•0 comments

The Case for a Product Manager's Personal Agent

https://substack.com/inbox/post/185033315
1•carni234•15m ago•0 comments

How to write a good spec for AI agents

https://addyosmani.com/blog/good-spec/
1•saikatsg•15m ago•0 comments

Reliability Engineering 0→1

https://medium.com/@sandhyavinjam/reliability-engineering-0-1-how-to-scale-from-startup-chaos-to-...
1•sandhyavinjam•16m ago•0 comments

The AI Engineer Roadmap

https://www.aihero.dev/ai-engineer-roadmap
1•saikatsg•23m ago•0 comments

Show HN: Automated Google Slide Reports for multiple entities

https://github.com/rvignesh89/gslides_automator
1•rvignesh•28m ago•0 comments

Show HN: Yashiki – A tiling window manager for macOS in Rust, inspired by River

https://github.com/typester/yashiki
2•typester•30m ago•1 comments

Show HN: Omelo- AI pet health companion, Health timelines and Daily care

1•animalcatcher•31m ago•0 comments

Show HN: Early web-inspired writing platform

https://writing.ink/
1•eamonobr•33m ago•0 comments

Farath's Bi-Weekly Code Security Brief – Jan 1-19 Vulns SAST/SCA/DAST Playbooks

https://farathappsec.substack.com/p/faraths-biweekly-code-security-brief
2•farathshba•36m ago•1 comments

Wdlite

https://wdlite.toolforge.org/?item=Q686797
2•altilunium•37m ago•0 comments

Corrupt pardons corrode trust: Coffeezilla – Voidzilla [video]

https://www.youtube.com/watch?v=0ydymkrshVc
2•lofihiphophop•40m ago•0 comments

A crash-resistant serial terminal for messy high-speed data

https://github.com/C3POAdmin/8N1Term
2•C3POAdmin•41m ago•0 comments

All is not well between Meta CEO Mark Zuckerberg and Meta's AI

https://timesofindia.indiatimes.com/technology/tech-news/all-is-not-well-between-meta-ceo-mark-zu...
1•nsoonhui•41m ago•0 comments

Hiring at India's Big Four outsourcers stalls, as AI seemingly makes an impact

https://www.theregister.com/2026/01/19/hcl_infosys_tcs_wipro_results/
2•Brajeshwar•42m ago•0 comments

Show HN: Jello, popular games with your own images and sounds

https://www.jello.app
2•postatic•42m ago•0 comments

Show HN: Online List Maker – simple, syncing lists built on Durable Objects

https://onlinelistmaker.com/
2•pw•47m ago•0 comments

Show HN: CodeAnswr – Stack Overflow alternative with E2E encryption

https://codeanswr.com
3•mobinpo•47m ago•1 comments

We used to celebrate science and innovation (2025)

https://www.freethink.com/the-material-world/techno-humanist-manifesto-chapter-9-section-1
1•Brajeshwar•49m ago•0 comments

Show HN: 100% Agentic AI Comedy Podcast

2•helsinki•58m ago•0 comments

MTV Rewind

https://wantmymtv.xyz/player.html
1•boilerupnc•1h ago•0 comments

I built a contract-aware invoice analysis tool

https://concilely.com
2•natedev•1h ago•1 comments

Is Bilt 2.0 worth it?

https://alexchao.substack.com/p/is-bilt-20-worth-it
1•alexchaomander•1h ago•1 comments

Bypassing Gemma and Qwen safety with raw strings

https://teendifferent.substack.com/p/apply_chat_template-is-the-safety
2•teendifferent•1h ago•1 comments

Thicc

https://github.com/elleryfamilia/thicc
1•handfuloflight•1h ago•0 comments

Show HN: Intent Layer: A context engineering skill for AI agents

https://www.railly.dev/blog/intent-layer/
2•Hunter17•1h ago•0 comments

Show HN: Pdfwithlove – PDF tools that run 100% locally (no uploads, no back end)

https://pdfwithlove.netlify.app
3•pratik227•1h ago•0 comments

Nano Banana Prompt Library – AI Image Prompts

https://nano-banana.app/nano-banana-prompts
3•leegrayson2023•1h ago•0 comments