basilisp

Basilisp

Basilisp is a hosted list on python in the spirit of clojure. This is waht it looks like

( + 1 1)
2

This is what imports look like. We can use libraries found on the system’s path.

(import [os.path :as path])
(path/exists "test.txt") 
False

Pythons builtins are available in the python/ namespace.

(python/abs -1)
1

We can use libraries found on the system’s path.

(import sys)
sys/path
['/home/runner/work/basimol/basimol/docs',
 '/home/runner/work/basimol/basimol/.pixi/envs/default/lib/python311.zip',
 '/home/runner/work/basimol/basimol/.pixi/envs/default/lib/python3.11',
 '/home/runner/work/basimol/basimol/.pixi/envs/default/lib/python3.11/lib-dynload',
 '',
 '/home/runner/work/basimol/basimol/.pixi/envs/default/lib/python3.11/site-packages',
 '/home/runner/work/basimol/basimol/src']
(require '[basimol.core :as bc])
(bc/get-view)
([0.410028338432312 -0.4017423093318939 0.8188281059265137 14.727904319763184] [0.9119760990142822 0.19364340603351593 -0.36166468262672424 -6.505104064941406] [-0.01326450053602457 0.8950446248054504 0.44577887654304504 8.01802921295166] [-0.0 0.0 -0.0 1.0])