A simple tetris clone in lisp using opengl
- SBCL:
sudo apt-get install sbcl
. - quicklisp: See project page.
- lispbuilder-sdl: Execute
sudo apt-get install libsdl1.2-dev
in Ubuntu 20.04.
A simple tetris clone in lisp using opengl
sudo apt-get install sbcl
.sudo apt-get install libsdl1.2-dev
in Ubuntu 20.04.Un primer paso es hacer un profiling de los distinto módulos de la aplicación para ver en que parte se esta usando el tiempo de procesamiento.
Lo ideal es hacer un profiling de cada módulo aislado y optimizar ahí. Pero también es importante un profiling en conjunto de toda la aplicación funcionando pues pueden surgir otros problemas durante el uso habitual.
const Tx = artifacts.require("./Parser/Tx.sol"); | |
const Simple = artifacts.require("./Simple.sol"); | |
module.exports = function(deployer) { | |
deployer.deploy(Tx); | |
deployer.link(Tx, Simple); | |
deployer.deploy(Simple); | |
}; |
{ | |
"contractName": "Test1", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "getB", | |
"outputs": [ | |
{ | |
"name": "", |
0xA95d7BaB606ef7C2e9574E108dF7e0B527300bDD |
const Storage = artifacts.require("./Storage.sol"); | |
module.exports = function(deployer) { | |
deployer.deploy(Storage); | |
}; |
var Web3 = require("web3"); | |
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:6020")); | |
var fs = require('fs'); | |
var test_code = fs.readFileSync('test.bin').toString(); | |
var test_abi = JSON.parse(fs.readFileSync('./test.abi').toString()); | |
var test_contract = web3.eth.contract(test_abi); | |
var test = test_contract.new({from: web3.eth.accounts[0], | |
data: test_code, |