Skip to content

Instantly share code, notes, and snippets.

View jehrhardt's full-sized avatar

Jan Ehrhardt jehrhardt

View GitHub Profile
@vendethiel
vendethiel / scheme.sjs
Last active January 2, 2016 01:29 — forked from disnet/scheme.sjs
scheme.sjs (forked from https://gist.github.com/disnet/3854258)
macro sexp {
rule {()} => {
;
}
rule {($p)} => {
$p
}
rule {($x $y)} => {
$x($y);
}
@coudy
coudy / OctaneBenchmarkNashorn.java
Created April 3, 2014 16:43
Runs Google's Octane Benchmark using JDK8's Nashorn engine
package eu.coudy.nashorn;
import jdk.nashorn.api.scripting.NashornScriptEngine;
import javax.script.CompiledScript;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
@andelf
andelf / main.rs
Created May 14, 2020 10:31
Embed Deno in Rust
use deno_core::Op;
use deno_core::ZeroCopyBuf;
use deno_core::{CoreIsolate, StartupData};
use std::str;
fn main() {
println!("v8 version: {}", deno_core::v8_version());
let mut isolate = CoreIsolate::new(StartupData::None, false);