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: My current App Store Featured Game was written entirely in Scheme

290 pointsby rrradicalabout 11 years ago

21 comments

Shivetyaabout 11 years ago
After reading the story I just have to recall stories from the guys who flew and serviced F4s, they joked they could fly without either wing simply because it was just a rocket sled.<p>We had one guy knicknamed Major Cablecutter as he &quot;clipped&quot; the guidelines of a radio tower one time. He also had come back more than once with branches stuck to his F4. Being that they were only &quot;Recon&quot; they tended to be aggressive during war games and this game guy over stressed his airframe turning into some F18s trying to tag him.<p>So many military planes have such high thrust to weight ratios I do not doubt that wings merely become the means to stable flight
评论 #7362781 未加载
评论 #7362806 未加载
评论 #7363001 未加载
评论 #7363613 未加载
评论 #7362773 未加载
评论 #7365106 未加载
评论 #7362771 未加载
rrradicalabout 11 years ago
I&#x27;m the author. I wrote the game and engine using the wonderful, and fast, Gambit Scheme (<a href="http://gambitscheme.org/" rel="nofollow">http:&#x2F;&#x2F;gambitscheme.org&#x2F;</a>).<p>I needed a lisp to manipulate the puzzles, because they aren&#x27;t based in a strict grid. It ended up being way more natural to program the block structures as lists rather than traditional matrices.<p>Gambit compiles the Scheme code down to C, which I can then link to Objective-C for iOS, or port to Android or any other platform that Gambit supports.
评论 #7362235 未加载
评论 #7362700 未加载
评论 #7362283 未加载
评论 #7362182 未加载
评论 #7363095 未加载
评论 #7362291 未加载
评论 #7362374 未加载
评论 #7362473 未加载
jlongsterabout 11 years ago
Awesome work! I&#x27;m continually blown away that people still reference my old work on porting Gambit Scheme for iOS.<p>Almost makes me want to play around with it again. :)
评论 #7362354 未加载
评论 #7362513 未加载
评论 #7363748 未加载
keithflowerabout 11 years ago
The Gambit interpreter (REPL) itself also runs on the iPhone<p><a href="https://itunes.apple.com/us/app/gambit-repl/id434534076?mt=8" rel="nofollow">https:&#x2F;&#x2F;itunes.apple.com&#x2F;us&#x2F;app&#x2F;gambit-repl&#x2F;id434534076?mt=8</a><p>and on the Android platform (updating it with the latest version of Gambit is on my todo list):<p><a href="http://apps.keithflower.org/?page_id=152" rel="nofollow">http:&#x2F;&#x2F;apps.keithflower.org&#x2F;?page_id=152</a><p><a href="http://apps.keithflower.org/?p=223" rel="nofollow">http:&#x2F;&#x2F;apps.keithflower.org&#x2F;?p=223</a><p><a href="https://play.google.com/store/apps/details?id=org.keithflower.gambit" rel="nofollow">https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=org.keithflowe...</a><p>Note that this is just the interpreter itself - not a very good way of writing games for Android.
评论 #7362828 未加载
matheusbnabout 11 years ago
Well done! Gameplay video link: <a href="https://www.youtube.com/watch?v=1T11wl70wjc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1T11wl70wjc</a>
codegeekabout 11 years ago
Good stuff. Interestingly, the very first programming language offered in introductory CS class at my college was Scheme at the time (2000). The power of &#x27;car&#x27; and &#x27;cdr&#x27; still resonates in my head. At times, the parenthesis used to give me dyslexia but good old days of doing stuff like:<p><pre><code> (car(cdr(car(cdr(cdr a)))))</code></pre>
评论 #7362714 未加载
评论 #7362683 未加载
alvatarabout 11 years ago
Great work! :) Congratulations! For those who want to try developing in Scheme, I&#x27;m working on a project that could help you get started. Currently only Android is available, but as soon as possible iOS will be as well. <a href="http://schemespheres.org" rel="nofollow">http:&#x2F;&#x2F;schemespheres.org</a>
tokipinabout 11 years ago
I thought &quot;non-Objective C&quot; languages weren&#x27;t allowed in the App store, or something like that.
评论 #7362637 未加载
评论 #7362631 未加载
评论 #7362622 未加载
评论 #7362649 未加载
lumensabout 11 years ago
I love the originality on display with this game mechanic. Too many &quot;samesies&quot; games out there for my tastes.<p>This developer has another puzzler in the App Store as well: Button Brigade, also quite original, but more of an adventure style puzzle game.<p><a href="https://itunes.apple.com/us/app/button-brigade/id542991688?mt=8" rel="nofollow">https:&#x2F;&#x2F;itunes.apple.com&#x2F;us&#x2F;app&#x2F;button-brigade&#x2F;id542991688?m...</a><p><a href="http://asivitz.com/button_brigade/index" rel="nofollow">http:&#x2F;&#x2F;asivitz.com&#x2F;button_brigade&#x2F;index</a>
Flowabout 11 years ago
Dear rrradical,<p>Tried your game, was not disappointed. :-) It&#x27;s almost spooky that your post came at this time, for I have read a lot about Scheme-&gt;C systems this week. This PDF made a great impression on me of the gambit scheme system. <a href="http://www.iro.umontreal.ca/~gambit/Gambit-inside-out.pdf" rel="nofollow">http:&#x2F;&#x2F;www.iro.umontreal.ca&#x2F;~gambit&#x2F;Gambit-inside-out.pdf</a><p>I have a few questions for you:<p>1. I installed Gambit-Scheme via Brew and compiling any scheme file results in a clang segfault. How did you get around this? For now I use gcc instead. :-&#x2F;<p>2. Why Gambit-Scheme and not Chicken-Scheme? I can&#x27;t really decide which is the better choice for writing a game.<p>3. Do you use continuations to make coroutines in your game?
评论 #7366636 未加载
eddierogerabout 11 years ago
Somewhere, deep in Lindley Hall at Indiana University, is an old professor exclaiming, &quot;I told them people used it!&quot;<p>I wonder if I&#x27;d have taken more to Scheme if I were learning it now. At the time, I was double majoring CS and Telecom, but the world of open source hadn&#x27;t been as friendly to Mac as it is now, and Macs were a prereq for TCom. Getting Scheme running on my old iBook was a pain in the ass, let alone the assignments (which still didn&#x27;t match the untouchable stability of our automated grading system). I conceptually understood why I needed to learn it, and even grasped many of the concepts of what I was learning, but it wasn&#x27;t the language for me.
dogprezabout 11 years ago
I play around with this a bit, a few things I learned is that XCode 5.0&#x27;s llvm crashes when compiling Gambit-C 4.7.0&#x27;s generated C code. The beta for 5.1 has a fix. Here are a few demos that might help a few people:<p>scheme REPL over TCP using chibi scheme: <a href="https://github.com/clarkeaa/Scheme_iOS_REPL" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;clarkeaa&#x2F;Scheme_iOS_REPL</a><p>calling in and out of Gambit-C: <a href="https://github.com/clarkeaa/HelloGambit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;clarkeaa&#x2F;HelloGambit</a><p>You can grab a precompiled Gambit-C library from the later project if you want.
feeleyabout 11 years ago
I just downloaded the game. Very cool! I wish I has written it... oh wait... given that I wrote Gambit, in a sense I wrote most of the game! It gives me a warm fuzzy feeling!<p>Your in game REPL is neat. For developing games, where there&#x27;s a need to explore variations quickly, it is a powerful tool. I&#x27;m currently working on a remote REPL for Gambit-JS, so that you can remotely debug Scheme code (possibly games) running in the browser.
hoprockerabout 11 years ago
It&#x27;s truly inspiring to see a project like this completed. I&#x27;ve been wanting to combine mobile (specifically Android) and some sort of Lisp dialect for a while.<p>Am I interpreting correctly from some of the other components that doing the programming in a language-once-removed (ie Scheme instead of Obj-C) opens an easier path to compiling for both iOS and Android?
评论 #7364446 未加载
seivanabout 11 years ago
I am so jealous and incredibly happy that you shipped - nice work. I wish I could do that as well.
评论 #7362284 未加载
armsabout 11 years ago
Very cool! I always like seeing when something is built using a typically non-traditional language for the environment. I downloaded the game to see how well it performed, and I gotta say, it&#x27;s a lot of fun. Great job!
xkarga00about 11 years ago
Just downloaded and tried the app. Simple and elegant, very good work!
minikomiabout 11 years ago
Wow, I&#x27;ve been thinking about this a lot lately. I would pay for a good series of tutorials or an ebook on this topic maybe implementing something well known like Tetris etc.
elwellabout 11 years ago
It shows how spoiled I am that I expected a github link.
mjt0229about 11 years ago
Nice work! I think I played ultimate with you this past summer, and we talked about this on the way to a game.
评论 #7362709 未加载
评论 #7363119 未加载
oliverlordabout 11 years ago
great work :) congrats
评论 #7364424 未加载