start new:
tmux
start new with session name:
tmux new -s myname
;;;; Krivine's Machine in Scheme ;;;; | |
;;; 2012 Minori Yamashita <[email protected]> ;;add your name here | |
;;; | |
;;; reference: | |
;;; http://pauillac.inria.fr/~xleroy/talks/zam-kazam05.pdf | |
;;; http://pop-art.inrialpes.fr/~fradet/PDFs/HOSC07.pdf | |
;;; Notes ;;; | |
;; CLOSURE creates thunks that packs the continuation and environment together. | |
;; To create closures(function objects), CLOSURE the GRAB and expression followed by CONTINUE. |
/******************************************************************************* | |
* | |
* A minimal Forth compiler in C | |
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com | |
* Release 2014-04-04 | |
* | |
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial | |
* | |
* PUBLIC DOMAIN | |
* |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
-- Load FFI | |
local ffi = require("ffi") | |
-- Define FFI functions & structures by OS | |
local x11 | |
if ffi.os == "Windows" then | |
ffi.cdef([[ | |
typedef int BOOL; | |
typedef long LONG; | |
typedef struct{ |
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.