rpi/~:lua
The JIT version of the Lua VM is also already installed; you can verify evaluating rpi/~:luajit |
sudo apt-get update sudo apt-get install lua5.1
sudo apt-get install lua-socket
apt-cache search '^lua-.*'
luajit -i m8n.lua
print(smalltalk.Object:selectors():asLiteral())to print messages implemented in Object class
If you have a snapshot file (e.g. s8.snapshot.lua) try the commandluajit -i s8.snapshot.lua |
luajit -i m8n.lua
dofile("s8/library/luasocket.st.lua")
print(smalltalk.DNS:gethostname())
luajit -i m8n.lua
dofile("s8/library/luasocket.st.lua")
dofile("s8/library/systemServer/SystemServer.st.lua")And the required files (luasocket.st.lua SimpleHTTPServer.st.lua SimpleJson.st.lua) to run the SystemServer
smalltalk.SystemServer:start()
In case of running in a console window, you can run the server (until the server is closed) with smalltalk.SystemServer:current():run() To stop the server remotelly, you can evaluate the expression "SystemServer current close" |
If runnning in a loop (e.g. rendering/game engine) you can evaluate a server step on each round withsmalltalk.SystemServer:current():step() |