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: Lua Carousel, create little programs on desktop or mobile devices

165 pointsby akkartikover 1 year ago

13 comments

surprisetalkover 1 year ago
Oh, hey Kartik!<p>(Just merged your PR into wigwam.directory haha thanks!)<p>For those who don&#x27;t know, Kartik&#x27;s &quot;freewheeling&quot; apps are incredible.<p>Very much fits in the spirit of Uxn and other small ecosystem projects.<p>I recommend watching his short lecture and following along with the slides:<p>[1] <a href="https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;freewheeling" rel="nofollow noreferrer">https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;freewheeling</a><p>[2] <a href="http:&#x2F;&#x2F;akkartik.name&#x2F;freewheeling&#x2F;" rel="nofollow noreferrer">http:&#x2F;&#x2F;akkartik.name&#x2F;freewheeling&#x2F;</a><p>He totally sold me on the viability of Lua, LOVE, and small apps for making better software.<p>He also has a lovely VM called mu that&#x27;s worth checking out:<p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;akkartik&#x2F;mu">https:&#x2F;&#x2F;github.com&#x2F;akkartik&#x2F;mu</a>
Llamamoeover 1 year ago
Okay here&#x27;s my initial feedback:<p>- You probably should do the different projects as tabs on the bottom instead of full-height side buttons, especially on Android where the horizontal space is sparse, and make the text editor full-screen.<p>- The other UI elements OTOH are way too small on android.<p>- The BG&#x2F;FG sliders can be interacted with even while invisible.<p>- On Android, sliding space left&#x2F;right which moves text normally, doesn&#x27;t work.<p>- If you don&#x27;t run the abbreviations snippet, subsequent examples fail.<p>- When you touch to move text cursor position, for a frame, a selection flashes<p>- Automatic indentation and highlighting Lua keywords at least would be cool to have.<p>- In the sweep trails example, set T to less, otherwise it looks like it&#x27;s lagging.
评论 #38405328 未加载
评论 #38496247 未加载
lioetersover 1 year ago
This part is brilliant, the user can modify the app itself while it&#x27;s running.<p>&gt; Lua Carousel is a &quot;freewheeling&quot; app that you can read and modify the source code for as it runs. The app contains all its source code.<p>It feels similar to a self-hosting language that&#x27;s written in itself. I love the idea of giving the user the power to modify not only their own programs as they run, but the editor and runtime environment. ..Ah, the readme of the Git repo goes into more detail how it works.<p><a href="https:&#x2F;&#x2F;git.sr.ht&#x2F;~akkartik&#x2F;carousel.love" rel="nofollow noreferrer">https:&#x2F;&#x2F;git.sr.ht&#x2F;~akkartik&#x2F;carousel.love</a>
评论 #38409842 未加载
评论 #38406527 未加载
Tijdreizigerover 1 year ago
Seems very similar to Processing. [1] I think this was one of the first programming environments I used as a child.<p>[1] <a href="https:&#x2F;&#x2F;processing.org&#x2F;tutorials&#x2F;gettingstarted" rel="nofollow noreferrer">https:&#x2F;&#x2F;processing.org&#x2F;tutorials&#x2F;gettingstarted</a>
CyberDildonicsover 1 year ago
Looks like this is all based on Love2D.<p>Love2D is amazing. This is cool, but you can just use whatever text editor or IDE you want and dynamically load and replace functions every second or two. Then you can type in a lua development environment and have the love2D window be separate instead of text in your way, which works well in the age of high resolution and multiple monitors.<p>If you catch errors you can just print the error in the Love2D window. With this structure&#x2F;technique you can make games in real time while they are running, because you don&#x27;t have to clear your global state to sub in a different draw function &#x2F; input handling function etc.
评论 #38406018 未加载
paulclingerover 1 year ago
Look great! I&#x27;ve done something similar with exactly the same approach of fully reevaluating Love functions, which allows changing the app behavior on the fly: <a href="http:&#x2F;&#x2F;notebook.kulchenko.com&#x2F;zerobrane&#x2F;live-coding-with-love" rel="nofollow noreferrer">http:&#x2F;&#x2F;notebook.kulchenko.com&#x2F;zerobrane&#x2F;live-coding-with-lov...</a>. This is only running on a desktop (as it&#x27;s controlled from the ZeroBrane Studio IDE running on the same machine) and allows both changing the source code and using virtual sliders on any numbers in the script to drag left&#x2F;right to affect the behavior.<p>It was very interesting to work on that and to see the behavior of the script changing in real time. I&#x27;ve seen some of the users creating simple applications in a matter of minutes using this approach; here is one that was done at about the same time as the Love demo (although it&#x27;s using Gideros SDK): <a href="https:&#x2F;&#x2F;notebook.kulchenko.com&#x2F;zerobrane&#x2F;gideros-live-coding-with-zerobrane-studio-ide" rel="nofollow noreferrer">https:&#x2F;&#x2F;notebook.kulchenko.com&#x2F;zerobrane&#x2F;gideros-live-coding...</a>
082349872349872over 1 year ago
every once in a while, HN actually surfaces something for hacking ;-)
Llamamoeover 1 year ago
What are the different versions? Which do I download? I tried AD with Love 11.4 on Android 11, but it crashed. The safe version worked.
评论 #38404813 未加载
Tistronover 1 year ago
This looks so cool for people learning to program.<p>Is there anything these days that is simple for making a simple gui app, like shoooes was?
评论 #38404551 未加载
评论 #38404739 未加载
doawooover 1 year ago
Always a fan of programming &quot;sketchbooks&quot; like this. Awesome project!
xeonmcover 1 year ago
How do you run a complete love2d script with the full rendering&#x2F;event loop?
评论 #38409985 未加载
runlaszlorunover 1 year ago
This looks great! I was curious to see how it looks on ios but couldn’t determine how to install it or love2d.<p>Anyone have suggestions?
评论 #38414029 未加载
scopecrestoutlsover 1 year ago
Neat!