6 ms·
Hey all, I made MoonScript about 6 years ago. I used it to build a ton of opensource stuff in addition to the company I founded. I use it every day and I'm ver
by leafo 9y ago
Hey all, I made MoonScript about 6 years ago.
I used it to build a ton of opensource stuff in addition to the company I founded. I use it every day and I'm very happy with how it's turned out. I regret not updating the language more frequently, but I've been busy building a bunch of stuff in it.
The biggest open source project is a web framework for Open
Resty: https://github.com/leafo/lapis https://github.com/leafo/lapis
It's used for the following open source websites:
https://github.com/luarocks/luarocks-site https://github.com/luarocks/luarocks-site
https://github.com/leafo/streak.club https://github.com/leafo/streak.club
The company I made, https://itch.io https://itch.io also runs on it. There are a a ton of extra Lua modules I've made in MoonScript to facilitate it. Here's a list of my published modules: https://luarocks.org/modules/leafo https://luarocks.org/modules/leafo
I've also completed Ludum Dare 11 times now, making a game each time in MoonScript. I've used https://love2d.org/ https://love2d.org/ as the game engine. You can find the games on my GitHub: https://github.com/leafo?tab=repositories https://github.com/leafo?tab=repositories
Feel free to ask any questions
- vanderZwan 9y agoAre you aware that TIC-80 supports moonscript? It's one of the better PICO-8 "clones" out there. https://nesbox.itch.io/tic https://nesbox.itch.io/tic https://github.com/nesbox/tic.computer/wiki#cartridge-metadata https://github.com/nesbox/tic.computer/wiki#cartridge-metada...
- ricardobeat 9y agoIs that open source? I'm wondering if it uses SDL or a similar library - binaries look pretty small.
- goldfire 9y agoNo source code, but looking at the Windows binary it's using a statically linked copy of SDL 2. Plus that file's about 2 MB, so really not surprisingly small.
- mmjaa 9y agoA similar project, uses SDL, is open source, and came from antirez (of redis fame), LOAD81: http://github.com/antirez/load81.git
- leafo 9y agoI am, and I'm pretty exited about it. I haven't had a chance to work with it yet but I might mess around with it next ludum dare.
- throwaway7645 9y agoWhat's it like being a resident bad@$$? In all seriousness, what's it like running a company using a language you built or is there only a couple of other employees? Also, I guess you're not worrying about bitrot as you can maintain it yourself and it doesn't need anything other than lua to run correct? Also, why did you originally pick lua. I'm gonna stop and read the articles now :).
- nawtacawp 9y agoI was just looking at love2d, I don't know much about it. My son is 8 and is very bored with Scratch. A once over the documentation makes me think love2d might be a good fit for a next step from Scratch. How is the love2d community and is it active?
- striking 9y agoThe love2d community is definitely still active, especially on IRC. Some of the nicest folks I've ever spoken to over the internet. I can't recommend the language or its community highly enough.
- fb03 9y agoA couple of friends just successfully launched a commercial game on android/ios/steam using love2d, and they're really happy with the results. I couldn't believe it was made with lua, it runs really smooth. http://midipixel.com/warlockstower/ http://midipixel.com/warlockstower/
- arunaugustine 9y agoThe love2d source code is in C++. I believe Lua interpreter was embedded as a scripting mechanism https://bitbucket.org/rude/love/src https://bitbucket.org/rude/love/src
- praisethemoon 9y agoAFAIK, LÖVE integrates LuaJIT.
- Leka74 9y agoWhy wouldn't it run smooth if it was made with Lua?
- hugozap 9y agoProcessing may also be a good choice.
- eriknstr 9y agoDude, this is neat. Itch.io is a great site, I've bought a few things through it. I like how your HN profile page mentions only MoonScript and not itch.io, though, in that the former is an open source project and the latter is a company :)
- Cyph0n 9y agoHe's a very modest dude, so I make sure to advertise for him on HN whenever the chance arises. I've been following him since the early days of itch.io and the progress he's made with it is astounding.
- notgood 9y agoItch.io looks pretty nice except for the scrollbar on the left, I suggest you to add this in the css to make it look nicer on webkit browsers: https://gist.github.com/Ivanca/95e171e3d575001dd17787ec490c64b7 https://gist.github.com/Ivanca/95e171e3d575001dd17787ec490c6...
- gallerdude 9y agoWoah, thanks so much for itch.io - I'm a big fan of indie games and your site is amazing.
- OhSoHumble 9y agoIf you were to devote more time to MoonScript, what would be the likelihood of including Lua 5.3 compatibility?
- kapep 9y agoThe font you are using looks broken to me. (Win 10, Firefox) At 100% scaling, every "i" clearly looks like a "1". It reads "MoonScr1pt" for me: https://i.imgur.com/Ti12E5I.png https://i.imgur.com/Ti12E5I.png If I zoom in or out in the browser the i looks ok again.
- sigzero 9y agoI don't see that at all. Maybe you found a bug for Win10/FF? I am on Win7/FF.
- NoahTheDuke 9y agoSame for me as well: http://i.imgur.com/U0Cl2Sq.png http://i.imgur.com/U0Cl2Sq.png Win 10, Chrome 58
- Santosh83 9y agoExactly the same issue for me too. My configuration is Win 8.1 and the Firefox 53. I should add that only the font used to represent code has this issue. Other fonts are okay.
- shalabhc 9y agoThank you for Moonscript! > The biggest open source project is a web framework for Open Resty: https://github.com/leafo/lapis https://github.com/leafo/lapis Looks like lapis is ~15K lines. The Howl editor has ~58K lines (including bindings and tests) - making it bigger, technically ;)
- sunilkumarc 9y agoThat's a lot of work you've done alone :)
- jlebrech 9y agoI'm thinking of creating a blackbox site building service in lua and store people's code in db.
- rplnt 9y agoI have to say that if I see last update in changelog from few years ago I assume the project is dead and one should not use it.
- le-mark 9y agoYou should disabuse yourself of this notion, a lot of mature projects don't get updates because they don't have (known) bugs or are feature complete.
- rplnt 9y agoI don't do this with everything, it depends on what the project is and what my use of it would be. But with libraries or anything that would be a part of something you might find it won't work with your next OS update, browser update (js libraries), or it requires dependencies that are obsolete. I think it's a fair and quick filter.
- mysterydip 9y agoThis post was timely for me as I'm working on a game project that could benefit greatly from each of the projects you mentioned. Thanks!
- d08ble 9y agoHi, I made the far back side of MoonScript named ACPUL 5 years ago. I built it from the ground: high performance VM and expression based CPU assembly. It's growth up from small new language to high end gamedev mobile OS. Images: http://acpul.tumblr.com/ http://acpul.tumblr.com/ Code sample: https://github.com/d08ble/acpul-demo/tree/master/dota https://github.com/d08ble/acpul-demo/tree/master/dota Video: https://www.youtube.com/watch?v=CAcv12eBqcc https://www.youtube.com/watch?v=CAcv12eBqcc