Skip to content

Instantly share code, notes, and snippets.

@bentxt
bentxt / gambit-scheme_to_js_minimal-lib.sh
Last active June 17, 2022 14:16
Compile scheme to javascript with Gambit and a minimal runtime library
# Compile scheme to javascript with Gambit and a minimal runtime library
# ======================================================================
#
# This example was posted by Marc Feeley in the Gitter Chat: https://gitter.im/gambit/gambit?at=62ac8949568c2c30d3d0b355
#
gsc -target js -c minimal-lib.scm
gsc -target js -l minimal-lib -exe minimal-app.scm
./minimal-app
# 2022-06-17T13:59:21.496Z
@bentxt
bentxt / Build.sh
Created December 14, 2021 10:40
Build.sh from cakelisp
#!/bin/sh
CAKELISP_BOOTSTRAP_BIN=bin/cakelisp_bootstrap
CC=g++
LINK=g++
echoerr () { echo "$@" 2>&1; }
warn (){
local msg="$1"
local code="$2"