-
-
Save jeroenvandijk/a15fa236ff86ad7b4cfa924c24aec1ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(println "hi from clojure") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { evalString } = require('@borkdude/sci'); | |
const { AWS } = require('aws-sdk'); | |
const fs = require('fs'); | |
var slurp = function(f) { return fs.readFileSync(f, {encoding: 'utf8'}) }; | |
var println = function (...args) { console.log(args.join(' ')); }; | |
const opts = {bindings: {println: println, | |
slurp: slurp, | |
AWS: AWS | |
}}; | |
evalString(slurp("sci.clj"), opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm --version | |
6.2.0 | |
npm init -y | |
npm install @borkdude/sci@0.0.12-alpha.12 | |
npm install aws-sdk | |
time node sci.js | |
hi from clojure | |
node sci.js 0.25s user 0.04s system 105% cpu 0.269 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment