TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

77 pointsby pschanelyover 9 years ago

5 comments

gamegoblinover 9 years ago
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 未加载
madkangasover 9 years ago
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 未加载
reilly3000over 9 years ago
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-2over 9 years ago
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 未加载
tluyben2over 9 years ago
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 未加载