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.

Show HN: Wake – Terminal Session Context for Claude Code via MCP

https://github.com/joemckenney/wake
1•baobabmeeko•38s ago•0 comments

Exposing a Multi-Stage Malware Campaign on Windows Systems

https://thecyberedition.com/exposing-a-multi-stage-malware-campaign-on-windows-systems/
1•thehacknews•1m ago•1 comments

Roo Code 3.42.0 – ChatGPT usage tracking – Grey Screen Fix and more

https://docs.roocode.com/update-notes/v3.42.0
1•hrudolph•1m ago•1 comments

EmulatorJS

https://github.com/EmulatorJS/EmulatorJS
1•avaer•6m ago•0 comments

Financing the AI boom: from cash flows to debt

https://www.bis.org/publ/bisbull120.htm
1•gmays•9m ago•0 comments

Llanux, a "Boot to Llama" OS

https://github.com/telepath-computer/llanux
1•stlhood•10m ago•1 comments

eBay bans illicit automated shopping amid rapid rise of AI agents

https://arstechnica.com/information-technology/2026/01/ebay-bans-illicit-automated-shopping-amid-...
1•petethomas•11m ago•0 comments

Agentic Memory Is Still an Unsolved Problem

1•manthangupta109•12m ago•0 comments

What will tech jobs look like in 2026?

https://restofworld.org/2026/tech-jobs-2026-ai-layoffs-hybrid-work/
1•Brajeshwar•13m ago•0 comments

100% AI Coded Game on Steam – Full Dev Log

https://web3dev1337.github.io/epic-survivors-architecture/
2•BlueShrimpGames•18m ago•0 comments

Mail: RFC822:Address: regexp-based address validation (2012)

https://pdw.ex-parrot.com/Mail-RFC822-Address.html
1•vismit2000•18m ago•0 comments

Quantum physicists create largest ever 'superposition'

https://www.nature.com/articles/d41586-026-00177-9
1•typeofhuman•19m ago•0 comments

Show HN: A condo review site for Bangkok renters to avoid deposit scams

https://condoreviewsthailand.com
2•digi_wares•22m ago•0 comments

Finland sets tougher guidelines: No social media or smartphones for under-13s

https://yle.fi/a/74-20205877
1•brylie•30m ago•0 comments

Amazon Gears Up to Ax Thousands More Corporate Employees

https://finance.yahoo.com/news/amazon-gears-ax-thousands-more-224656699.html
1•_____k•31m ago•0 comments

Workplace rights agency scraps anti-harassment guidance

https://apnews.com/article/eeoc-harassment-workplace-gender-trump-lucas-lgbtq-0ac048763668ae4f894...
1•petethomas•35m ago•0 comments

Vibe Coding Kills Open Source

https://arxiv.org/abs/2601.15494
3•50kIters•35m ago•0 comments

Why External AI Reasoning Breaks Articles 12 and 61 by Default

https://www.aivojournal.org/why-external-ai-reasoning-breaks-articles-12-and-61-by-default/
1•businessmate•36m ago•1 comments

Show HN: ChartScout – Crypto chart pattern detection under 20 seconds

https://chartscout.io
1•chartscout•36m ago•0 comments

The Universal Pattern Popping Up in Math, Physics and Biology

https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/
2•kerim-ca•43m ago•0 comments

From Sketch to Masterpiece: Understanding Stable Diffusion Img2Img

2•bozhou•53m ago•0 comments

How do I fight 250 duplicate Amazon listings with fake reviews?

https://travelhead.medium.com/amazons-dirty-secret-the-chinese-marketplace-manipulation-destroyin...
2•travelhead•54m ago•1 comments

ClaudePad

https://github.com/marshallrichards/ClaudePad
2•ray__•57m ago•0 comments

I built a light that reacts to radio waves [video]

https://www.youtube.com/watch?v=moBCOEiqiPs
18•codetheweb•58m ago•0 comments

One year of Kash Patel running the FBI

https://www.nytimes.com/interactive/2026/01/22/magazine/trump-kash-patel-fbi-agents.html
3•osnium123•59m ago•2 comments

CEOs Say AI Is Making Work More Efficient. Employees Tell a Different Story

https://www.wsj.com/lifestyle/workplace/ceos-say-ai-is-making-work-more-efficient-employees-tell-...
12•1vuio0pswjnm7•1h ago•3 comments

"A public origin record for a phase‑resonance hybrid computing architecture"

1•LUMENPIXEL•1h ago•0 comments

Amazon planning job cuts next week after axing 14,000 due to AI: report

https://nypost.com/2026/01/22/business/amazon-planning-thousands-of-job-cuts-next-week-after-axin...
5•1vuio0pswjnm7•1h ago•1 comments

Tell HN: Cursor agent force-pushed despite explicit "ask for permission" rules

4•xinbenlv•1h ago•1 comments

ChatGPT gives answers. Agentic AI makes decisions

https://chungmoo.substack.com/p/chatgpt-gives-answers-agentic-ai
1•chungmoo•1h ago•0 comments