dependabot[bot] on github_actions
Bump actions/cache from 3.2.2 t… (compare)
dependabot[bot] on composer
Bump friendsofphp/php-cs-fixer … (compare)
Chemaclass on 540-create-cast-int-function
JesusValera on simplify-readExpression-method
JesusValera on master
Replace switch by match in Pars… Improve style Merge pull request #559 from ph… (compare)
I did some improvements on the phel snake game. https://github.com/Chemaclass/phel-snake#how-to-play The main change is using the compiled phel code instead of compiling it all the time. Aka: compile once, and play as much as you want.
I added some composer scripts to simplify it even more:
./tools/composer compile
./tools/composer play
./tools/composer start
After the game is compiled, you don't have to compile it again, so using directly the play command will give you a better user experience; the game will load way faster 🚀
# https://github.com/Chemaclass/phel-snake/blob/master/play.php
require_once __DIR__ . "/vendor/autoload.php";
$compiledFile = __DIR__ . "/out/phel_snake/game.php";
if (!file_exists($compiledFile)) {
exit('You have to compile the game first. Try with: `composer compile`');
}
$GLOBALS['argv'][] = 'play';
require_once $compiledFile;
Add __name__ to identify the execution of a script
I will talk about Phel next month, the 10. Oct, about Phel for the Software Crafters Madrid community https://www.meetup.com/es-ES/madswcraft/events/289206891/ I think it will be in Spanish, but if you attend, and you have any question in English, feel free to participate.
My plan is to present the language, the story and motivation behind, and most likely do some live coding 🚀
🚢Release 0.8.0
Yesterday we released version 0.8.0 of Phel. This release adds support for JSON. Read the blog post for more information:
phel compile
but it will be renamed to phel build
in the next version
I prepared last week a scaffolding/skeleton for a web project written in Phel: https://github.com/phel-lang/web-skeleton there you can see the phel-lang/router
project that @jenshaase mentioned above ☝️
It's just an idea with the intention to make it easier to start with the bare minimum and a working example. Feel free to give feedback and suggest changes as you see the need :)