TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A lambda expression visualizer for the web

43 点作者 notb超过 12 年前

4 条评论

notb超过 12 年前
The source is kinda crude at this point, but I hope to eventually allow named abstractions as well as direct manipulation of the tree (click n drag). Supporting types might be interesting as well.
Sniffnoy超过 12 年前
The notation is cumbersome, but I like the visualization. I wish eta-reduction were implemented rather than just beta-reduction.<p>Unfortunately there appear to be some errors. Try entering the following expression:<p>#(##2 1)<p>This, if I've understood the notation correctly, means λx.(λy.λz.y)x. Thus, it should reduce to λx.λz.x, or ##2. However, the program instead reduces it to ##1, or λx.λz.z.<p>So, something's really wrong here.
评论 #5230833 未加载
DanWaterworth超过 12 年前
The text at the bottom says this is simply typed lambda calculus, but surely this is untyped lambda calculus.
评论 #5230674 未加载
tqs超过 12 年前
I think this would be really great with back and forward controls, i.e. rewind.