Skip to content

Instantly share code, notes, and snippets.

View smarr's full-sized avatar
👨‍🏫
Researching and Lecturing

Stefan Marr smarr

👨‍🏫
Researching and Lecturing
View GitHub Profile
@smarr
smarr / GraalPrintfInvaludationTracking.diff
Created January 23, 2014 09:35
Track possible invalidation reasons for debugging.
diff --git a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java
index a7088a8..c9d9b8a 100644
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java
+++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java
@@ -294,6 +294,7 @@ public final class FrameWithoutBoxing implements VirtualFrame, MaterializedFrame
}
private boolean resize() {
+ System.out.println("FrameWB.resize");
int oldSize = tags.length;
@smarr
smarr / class-issue.cr
Created May 15, 2016 23:00
Issue with field containing class reference
class Benchmark
end
class A < Benchmark
end
class B < Benchmark
end
class Run
## 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
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.
|)(
@smarr
smarr / presentations.md
Last active November 25, 2016 04:53
Truffle/Graal at SPLASH'16

Truffle and Graal-related Presentations at SPLASH'16

Meta'16

  • [AST Specialisation and Partial Evaluation for Easy High-Performance Metaprogramming][7] ([PDF][7pdf])
    Chris Seaton, Oracle Labs
    Sun 30 Oct 2016, 11:30-12:00 - Meta'16

Abstract

@smarr
smarr / SOMns-tmLanguage.plist
Last active December 21, 2016 15:12
SOMns Syntax Highlighting as TextMate Grammar
{ patterns = ( { include = '#module'; } );
repository = {
accessModifier = {
match = '\b(public|private|protected)\b';
captures = { 1 = { name = 'keyword.modifier.som'; }; };
};
assignmentOperator = {
name = 'keyword.operator.assignment.som';
match = '(?<!:):=';
};
@smarr
smarr / proxy.js
Created July 6, 2016 21:53
VS Code Language Protocol Proxy
'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);
@smarr
smarr / download-missing-bibentries.py
Last active May 13, 2017 13:55
Download missing bib entries from Bibsonomy
#!/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)
@smarr
smarr / NewspeakMain.diff
Created July 28, 2017 14:49
Newspeak Parser Incompatibilities
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>
@smarr
smarr / build.log
Last active November 7, 2017 08:31
Build Script: https://github.com/smarr/are-we-fast-yet/blob/master/implementations/build-topaz.sh
Topaz|STD:Build Topaz
Topaz|STD:~/builds/5be4c5b4/0/stefan.marr/awfy-runs/awfy/implementations ~/builds/5be4c5b4/0/stefan.marr/awfy-runs/awfy/implementations
Topaz|STD:Load ./Topaz
Topaz|STD:Synchronizing submodule url for 'Topaz'
Topaz|STD:~/builds/5be4c5b4/0/stefan.marr/awfy-runs/awfy/implementations/Topaz ~/builds/5be4c5b4/0/stefan.marr/awfy-runs/awfy/implementations ~/builds/5be4c5b4/0/stefan.marr/awfy-runs/awfy/implementations
Topaz|STD:Collecting invoke
Topaz|STD: Downloading invoke-0.21.0-py2-none-any.whl (154kB)
Topaz|STD:Installing collected packages: invoke