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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A stack-based pure functional language for touch devices

77 点作者 pschanely超过 9 年前

5 条评论

gamegoblin超过 9 年前
Before I comment, I&#x27;ll just express how insanely cool this is. Mobile programming environments suck right now and this is a step in the right direction. Good proof of concept.<p>Excuse me if this is implemented and just not in the README:<p>It would be super awesome if there was a type inference engine that fed into the UI to increase productivity.<p>For example, if I start to define a function that returns an int, when I go to write out the definition, it suggests functions to me that return ints.<p>Suppose I pick a function &quot;string_length&quot; which takes strings and returns ints. Now I continue the composition, so it suggests functions (either built-ins or user-defined) which return strings.<p>Suppose I pick &quot;bool_to_string&quot; which takes a bool and returns strings. Then to finish off the function I pick from a list of bool-returning functions, say I pick &quot;xor&quot;.<p>So now with a few keypresses I have defined a function that, in C, would look like:<p><pre><code> int foo(bool x, bool y) { return string_length(bool_to_string(x ^ y)); }</code></pre>
评论 #10262130 未加载
madkangas超过 9 年前
My first thought was, &quot;How does this compare to Swift?&quot; But this is totally different: you want to create useful programs _on_ the touchscreen device.<p>It&#x27;s purely functional and stack-based. This is a clever approach to the UI problem - how to program when you can&#x27;t typeLongWords? Answer: use the stack! I expect the act of writing programs will feel a lot like using an old programmable calculator.<p>Really excited to see how this progresses!<p>PS: How do I run that demo locally?
评论 #10261856 未加载
reilly3000超过 9 年前
1. Holy shit that is a fantastic way to do mobile UX. Radials for each thumb? Fucking brilliant. I could imagine this could also make a great keyboard layout for certain domains<p>2. I would flip out even more if this UI was available for more mainstream functional languages like Haskell or Clojure. Do libraries break the process? I don&#x27;t think they have to.
评论 #10262097 未加载
评论 #10261756 未加载
V-2超过 9 年前
Very interesting, but it could be explained better. I have to admit that I didn&#x27;t really get it until I read some comments here.
评论 #10262656 未加载
tluyben2超过 9 年前
Nice work! I have been playing around with touch programming concepts for a while but did not yet dare to show any to the world. Let this stimulate me in that and hope others will follow. Even if just for fun.
评论 #10262147 未加载