Movatterモバイル変換


[0]ホーム

URL:


leafo.net

My projects

View more →

Recent guides

View all →

Recent posts

MoonScript v0.2.3

PostedJanuary 24, 2013 by leafo (@moonscript)
Tweet

Today marksMoonScript version 0.2.3, the CoffeeScript inspired languagethat compiles to Lua. It’s been about 3 months since last release. I've got acouple new features, fixes, Lua 5.2 support and a backwards incompatible change.

MoonScript 0.2.3 — moonscript.org

You canfollow me on twitter for updates or complaints. Also if you'reusing MoonScript I'd love to hear about it:leafot@gmail.com.

Changes

  • For loops when used as expressions will no longer discard nil values whenaccumulating into an array table.This is a backwards incompatiblechange. Instead you should use thecontinue keyword to filter outiterations you don’t want to keep.Read more here.
  • Themoonscript module no longer sets a global value formoonscript andinstead returns it. You should update your code:
moonscript=require"moonscript"

New Things

Bug Fixes

  • Numbers that start with a dot, like.03, are correctly parsed
  • Fixed typo infold library function
  • Fix declaration hoisting inside of class body, works the same aslocal * now

Other Stuff

MoonScript hasmade its way intoGitHub..moon files shouldstart to be recognized in the near future.

Web

I've started a couple interesting projects for MoonScript as a web programminglanguage.

  • Lapis — A MoonScript friendly webframework. Includes application routing, a HTML construction MoonScript DSL,and a basic ORM.
  • cloud_storage — A MoonScript/Luamodule for interacting with Google Cloud Storage.

Using the following I've created a community powered Lua rock hosting websitecalled MoonRocks:

http://rocks.moonscript.org. (source)

Compiled MoonScript runs inside of the nginx distributionOpenResty. I created a created aLua rock for runningOpenResty on Heroku in conjunctionwith myHeroku Lua buildpack.

Games

Ludum Dare happened again, two games were created inMoonScript:

Additionally, Michael F has created a game engine, BoxEngine, whichnatively supports MoonScript.

Thanks

Thanks to everyone who provided feedback for this release. See you next time.

MoonScript 0.2.3 — moonscript.org

leafo.net · Generated Sun Oct 8 13:02:34 2023 bySitegenmastodon.social/@leafo


[8]ページ先頭

©2009-2025 Movatter.jp