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.

Ask HN: Those who quit tech, moved back home, what do you do?

1•akudha•1m ago•0 comments

Show HN: SignalHQ – Stop searching for SaaS clients, get them delivered daily

https://signalhq.tech/
1•reena_signalhq•3m ago•0 comments

Cloudflare – Elevated 500 errors for customers using User Service Keys

https://www.cloudflarestatus.com/incidents/v65nsz2lnly4
2•TheGuyWhoCodes•4m ago•0 comments

I Made a Million Dollar Product from My Dorm Room

https://nick.winans.io/blog/nice-nano/
1•RGBCube•5m ago•0 comments

Juggle – CLI Ralph Loops with Good UX

https://github.com/ohare93/juggle
1•ohare93•5m ago•1 comments

What we know about Iran's Internet shutdown

https://blog.cloudflare.com/iran-protests-internet-shutdown/
4•kwar13•6m ago•1 comments

Revelations from Elon Musk's lawsuit against OpenAI

https://sources.news/p/20-revelations-from-elon-musks-lawsuit
1•donsupreme•7m ago•0 comments

Ripple and UC Berkeley Launch the University Digital Asset Xcelerator (UDAX)

https://ripple.com/insights/ripple-and-uc-berkeley-launch-the-university-digital-asset-xcelerator...
1•mikhael•9m ago•0 comments

Meta retreats from metaverse after virtual reality check

https://www.theregister.com/2026/01/16/meta_quest_horizon_workrooms/
2•beardyw•10m ago•0 comments

ChatGPT is getting ads. Sam Altman once called them a 'last resort.'

https://www.businessinsider.com/chatgpt-ads-openai-2026-1
3•donpott•11m ago•1 comments

RFC: Distributed Computation Mesh in Logos Language

https://github.com/Brahmastra-Labs/logicaffeine/discussions/18
1•tristenharr•12m ago•0 comments

Trump Delays Plan to Seize Wages of Student Borrowers Amid Affordability Push

https://www.bloomberg.com/news/articles/2026-01-16/trump-delays-plan-to-seize-wages-of-student-bo...
2•toomuchtodo•13m ago•1 comments

U-Haul Growth Index: Texas Back on Top as No. 1 Growth State of 2025

https://www.uhaul.com/Articles/About/U-Haul-Growth-Index-Texas-Back-ON-Top-As-No-1-Growth-State-O...
2•RickJWagner•14m ago•1 comments

English is the new programming language

https://deadneurons.substack.com/p/english-is-the-new-programming-language
1•nr378•18m ago•0 comments

Meta's Internal Research

https://metasinternalresearch.org
1•throwfaraway4•19m ago•2 comments

Ask HN: Local media server, receive and send audio?

1•thedangler•19m ago•0 comments

The YC AI Student Starter Pack

https://www.ycombinator.com/blog/the-yc-ai-student-starter-pack/
1•todsacerdoti•20m ago•0 comments

Monovalent pseudo-natural products supercharge degradation of IDO1 by E3 KLHDC3

https://www.nature.com/articles/s41557-025-02021-5
1•bookofjoe•20m ago•0 comments

Trump Bought Netflix and Warner Bros. Bonds in Days After Megadeal Was Announced

https://www.hollywoodreporter.com/business/business-news/trump-bought-netflix-warner-bros-discove...
7•andsoitis•21m ago•0 comments

Kubernetes Broke the AWS Cloud Monopoly

https://thenewstack.io/bryan-cantrill-how-kubernetes-broke-the-aws-cloud-monopoly/
1•tosh•22m ago•0 comments

Grok's biggest danger isn't what it says – it's where it lives

https://restofworld.org/2026/grok-ai-danger/
3•devonnull•22m ago•0 comments

Why AI hasn't changed everything (yet)

https://rizwaniqbal.com/posts/why-ai-hasnt-changed-everything-yet/
1•riz1•22m ago•2 comments

Show HN: Pypersistent – Functional Data Structures for Python

https://pypi.org/project/pypersistent/
2•cmarschner•23m ago•1 comments

LWN is currently under the heaviest scraper attack seen yet

https://social.kernel.org/notice/B2JlhcxNTfI8oDVoyO
56•luu•24m ago•7 comments

Show HN: Drako is a customizable Command-Deck Launcher. Likely first of its kind

https://odysee.com/lucky7xz-drako:e
1•lucky7xz•24m ago•1 comments

Bully Online mod taken down abruptly one month after launch

https://arstechnica.com/gaming/2026/01/online-mod-for-rockstars-classic-bully-is-abruptly-taken-d...
1•omnibrain•24m ago•0 comments

Deep reading can boost your critical thinking and help you resist misinformation

https://theconversation.com/deep-reading-can-boost-your-critical-thinking-and-help-you-resist-mis...
5•billybuckwheat•27m ago•0 comments

RAG-select: an end-to-end optimization package for selecting RAG architectures

https://github.com/conclude-ai/rag-select
1•agnim25•27m ago•1 comments

Show HN: toran – a read-only outbound API inspector

https://toran.sh
1•kxb4032•28m ago•1 comments

Adamah – A portable Vulkan compute library for Python and FFI

https://github.com/krokodil-byte/ADAMAH
1•krokodil-byte•28m ago•1 comments