-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
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
# Copyright © 2004-2013 Brent Fulgham | |
# | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
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
class Benchmark | |
end | |
class A < Benchmark | |
end | |
class B < Benchmark | |
end | |
class Run |
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
## get all the code | |
git clone --depth=1 https://github.com/graalvm/mx.git | |
git clone --depth=1 https://github.com/graalvm/graal-core.git | |
git clone --depth=1 https://github.com/smarr/are-we-fast-yet.git | |
git clone --depth=1 https://github.com/jruby/jruby.git | |
## build Graal as jvmci vm, i.e., with graal-core as top tier compiler | |
cd graal-core | |
../mx/mx --vm jvmci build |
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
'use strict'; | |
var vscode = require('vscode-languageserver'); | |
const target = process.argv[2]; // the actual language server protocol implementation | |
const spawn = require('child_process').spawn; | |
const p = spawn(target, []); | |
const writer = new vscode.StreamMessageWriter(p.stdin); |
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
class StackApp usingPlatform: platform = Value ( | |
| private Vector = platform kernel Vector. | |
private actors = platform actors. | |
|)( | |
private class Stack = ( | |
| private waitingPush = Vector new. | |
private waitingPop = Vector new. | |
private vector = Vector new: 2. | |
|)( |
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
{ patterns = ( { include = '#module'; } ); | |
repository = { | |
accessModifier = { | |
match = '\b(public|private|protected)\b'; | |
captures = { 1 = { name = 'keyword.modifier.som'; }; }; | |
}; | |
assignmentOperator = { | |
name = 'keyword.operator.assignment.som'; | |
match = '(?<!:):='; | |
}; |
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
#!/usr/bin/python3 | |
import re | |
import requests | |
bibkey_re = re.compile("Warning--I didn't find a database entry for \"(.*?)\"") | |
with open("paper.blg") as f: | |
content = f.readlines() | |
for line in content: | |
m = bibkey_re.match(line) |
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
diff -r 38a47c705f1a Collections.ns | |
--- a/Collections.ns Tue Jul 11 19:25:43 2017 -0700 | |
+++ b/Collections.ns Fri Jul 28 16:48:38 2017 +0200 | |
@@ -49,7 +49,7 @@ | |
binarySearchFor: el <EL> | |
between: start <Integer> | |
and: end <Integer> | |
-toCompare: compare <[:EL def:EL| Boolean]> | |
+toCompare: compare <[:EL def :EL| Boolean]> | |
^<Int> |