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

Comments

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

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

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

Future of Vancouver's repair cafés uncertain after city cuts funding for 2026

https://www.cbc.ca/news/canada/british-columbia/city-of-vancouver-cuts-funding-repair-cafe-9.7006210
1•cf100clunk•48s ago•0 comments

Did Asteroids Invent Gum Billions of Years Ago?

https://www.universetoday.com/articles/did-asteroids-invent-gum-billions-of-years-ago
1•fcpguru•3m ago•0 comments

Thoughts on AI progress (Dec 2025)

https://www.dwarkesh.com/p/thoughts-on-ai-progress-dec-2025
1•paulpauper•8m ago•0 comments

How Much Are US Firms Using AI Tools?

https://conversableeconomist.com/2025/12/02/how-much-are-us-firms-using-ai-tools/
1•paulpauper•8m ago•0 comments

Pyramids to Columns

https://blog.andrewyang.com/p/pyramids-to-columns
1•paulpauper•8m ago•0 comments

One week left to wean Australian kids off social media platforms

https://www.themandarin.com.au/304293-one-week-left-to-wean-australian-kids-off-social-media-plat...
1•mooreds•9m ago•0 comments

High-quality, ubiquitous, and portable telemetry for effective observability

https://opentelemetry.io/
1•mooreds•12m ago•0 comments

Could a Gut Hormone Be Holding the Key to Switching on Human Fat Burning?

https://comuniq.xyz/post?t=593
1•01-_-•12m ago•0 comments

Yahoo Terms of Service

https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html
1•mooreds•14m ago•1 comments

X blocks EU Commission's advertising account after €120M fine

https://www.euractiv.com/news/x-blocks-eu-commissions-advertising-account-after-e120-million-fine/
3•giuliomagnifico•14m ago•1 comments

Preparing your repo for AI development

https://www.speakeasy.com/blog/making-gram-ai-friendly
1•subomi•15m ago•0 comments

The Inverted Triangle Architecture: how to manage large CSS Projects (2017)

https://www.freecodecamp.org/news/managing-large-s-css-projects-using-the-inverted-triangle-archi...
1•ciconia•17m ago•0 comments

Is There Any Hope for Asynchronous Design? (2024)

https://semiengineering.com/is-there-any-hope-for-asynchronous-design/
3•DustinEchoes•21m ago•0 comments

Solar Saved Pakistan's Economy [video]

https://www.youtube.com/watch?v=zEL1vcA6VuI
3•thelastgallon•21m ago•0 comments

I Tried and Failed to Rebuild the 1996 Space Jam Website with Claude

https://j0nah.com/i-failed-to-recreate-the-1996-space-jam-website-with-claude/
3•thecr0w•24m ago•0 comments

India's Biggest Airline Falls into Chaos, Canceling More Than 1k Flights

https://www.nytimes.com/2025/12/05/business/india-indigo-airline-cancelations.html
2•bookofjoe•26m ago•1 comments

Prosopometamorphopsia and Facial Hallucinations [pdf]

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(14)61690-1/fulltext
1•thunderbong•26m ago•0 comments

Sega Dreamcast port of Star Fox 64

https://github.com/jnmartin84/sf64-dc
1•Venn1•28m ago•0 comments

Endangered bottlenose whale population begins to recover off Canada's east coast

https://news.mongabay.com/2025/12/a-rare-bright-spot-for-whales-decades-of-conservation-pay-off-f...
3•randycupertino•29m ago•0 comments

The Quest to Replace Passwords: a comparative evaluation of Web authn schemes

https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-817.html
2•BinaryIgor•33m ago•0 comments

Show HN: Why I built (yet another) AI writing app for macOS

https://textwisely.ai/
1•EdgarsHQ•35m ago•0 comments

MYRA stack – Modern Java FFM based libraries

https://www.roray.dev/blog/myra-stack/
1•clanky•36m ago•0 comments

Apple's chief chip architect has reportedly talked to CEO Tim Cook about leaving

https://www.tomshardware.com/tech-industry/apples-chief-chip-architect-for-the-last-decade-has-re...
1•gloxkiqcza•37m ago•1 comments

Crash, bang, wallop what a picture – Shane Black's film writing techniques

https://www.theguardian.com/film/2009/may/22/shane-black-12-rounds
1•lifeisstillgood•38m ago•0 comments

Australian teens are planning to get around their social media ban

https://www.newscientist.com/article/2507241-how-australian-teens-are-planning-to-get-around-thei...
2•ironyman•38m ago•1 comments

Semantic Compression (2014)

https://caseymuratori.com/blog_0015
3•tosh•48m ago•0 comments

What the heck is going on at Apple?

https://www.cnn.com/2025/12/06/tech/apple-tim-cook-leadership-changes
9•methuselah_in•48m ago•3 comments

Fluently AI English app review, by a qualified English teacher [video]

https://www.youtube.com/watch?v=B5hQkrOGnmY
2•runarberg•50m ago•2 comments

Show HN: SigmaTest: A no-holds, < 60KB C testrunner with memleak detection

https://github.com/Quantum-Override/sigma-test/tree/v1.0.0-release
1•thebadkraft•52m ago•1 comments

Domain Modeling Made Denumerable

https://github.com/sgoguen/DenseCheck/blob/main/docs/2025/12/02-Happy-FS-Advent.md
1•dread88•52m ago•0 comments