Copperbox revision 3002.
Initial work adding late binding of "dull" parameters through the Reader environment.
Tuesday, August 27, 2013
Monday, August 26, 2013
orca
Copperbox revision 3000.
I've implemented a new revision of Orca that simplifies the syntax builder monad. The intention is to then wrap this monad again in a Reader that simulates "environment acquisition" - so the dull parameters like table index for oscillators can be acquired from the environment rather than taken directly from function parameters. This should make the parameter lists of functions smaller (thus hopefully clearer) and allow late binding (so hopefully configuration is more flexible).
I've implemented a new revision of Orca that simplifies the syntax builder monad. The intention is to then wrap this monad again in a Reader that simulates "environment acquisition" - so the dull parameters like table index for oscillators can be acquired from the environment rather than taken directly from function parameters. This should make the parameter lists of functions smaller (thus hopefully clearer) and allow late binding (so hopefully configuration is more flexible).
Friday, August 16, 2013
pretty-expr-hpj
Copperbox revision 2999.
I've added initial support for pretty printing ternary operators like C's (_ ? _ : _). The code is untested and possibly wrong as it is a new feature not present in Norman Ramsey's original code.
I've added initial support for pretty printing ternary operators like C's (_ ? _ : _). The code is untested and possibly wrong as it is a new feature not present in Norman Ramsey's original code.
Wednesday, August 14, 2013
pretty-expr-hpj
Copperbox revision 2998.
I've done some clean up work on the code as I'm planning to add support for ternary (and possibly mixfix) operators.
I've done some clean up work on the code as I'm planning to add support for ternary (and possibly mixfix) operators.
Monday, August 5, 2013
flea circus
Copperbox revision 2996.
Move the Lua code (flea_motion and flea_circus) into the directory art_sound/lua.
Copperbox revision 2997.
mcommand - experiment with Missile Command (cursor!) style player control.
Side Note
Sadly my application to Light Night has been turned down - so work has stopped on the flea circus. Back to Haskell...
Move the Lua code (flea_motion and flea_circus) into the directory art_sound/lua.
Copperbox revision 2997.
mcommand - experiment with Missile Command (cursor!) style player control.
Side Note
Sadly my application to Light Night has been turned down - so work has stopped on the flea circus. Back to Haskell...
Sunday, August 4, 2013
flea circus
Copperbox revision 2994.
I've reworked the flea stack so it grows only from the top. This means that a fair amount of game play is now "working". It also illustrates that the current game play isn't up to scratch - I'm still going to need a lot of design work.
Update - revision 2995.
Minor changes to the player speed to reduce the arc of a jump.
I've reworked the flea stack so it grows only from the top. This means that a fair amount of game play is now "working". It also illustrates that the current game play isn't up to scratch - I'm still going to need a lot of design work.
Update - revision 2995.
Minor changes to the player speed to reduce the arc of a jump.
Saturday, August 3, 2013
flea circus
Copperbox revision 2993.
I've fixed some glitches where the stack of fleas wasn't being animated. Most heinously was I was calling self.play('...') rather than self:play('...') - the former causes a silent fail. Also I had some issues calling self (or not) in the class constructors.
I've fixed some glitches where the stack of fleas wasn't being animated. Most heinously was I was calling self.play('...') rather than self:play('...') - the former causes a silent fail. Also I had some issues calling self (or not) in the class constructors.
Thursday, August 1, 2013
Lua angst
Tonight I needed to use the Lua interpreter (mostly I run from Love) and it seems that Lua for Windows hadn't set an inadequate path when it installed.
The environment variable LUA_PATH in the control panel was just "C:\Program Files\lua\5.1\lua" but this means the Lua interpreter won't be able to load modules in the current directory when used interactively.
I had to prefix the path with "?;?.lua" - i.e. "?;?.lua;C:\Program Files\Lua\5.1\lua"
Question mark is the wildcard for Lua, the interpreter swaps it for the module name. Semicolon is the "path" separator, though apparently Lua doesn't have much of a notion of paths.
I couldn't find mention of this problem through various frustrated web searches, so I'm posting it here. I expect all Lua coders already know that the LUA_PATH should include "?;?.lua".
The environment variable LUA_PATH in the control panel was just "C:\Program Files\lua\5.1\lua" but this means the Lua interpreter won't be able to load modules in the current directory when used interactively.
I had to prefix the path with "?;?.lua" - i.e. "?;?.lua;C:\Program Files\Lua\5.1\lua"
Question mark is the wildcard for Lua, the interpreter swaps it for the module name. Semicolon is the "path" separator, though apparently Lua doesn't have much of a notion of paths.
I couldn't find mention of this problem through various frustrated web searches, so I'm posting it here. I expect all Lua coders already know that the LUA_PATH should include "?;?.lua".
Subscribe to:
Posts (Atom)
Blog Archive
About Me
- Stephen Tetley
- Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.