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 / mandelbrot.golo
Created July 2, 2015 11:54
Mandelbrot
# 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.
#
@smarr
smarr / truffle-material.md
Last active March 16, 2023 14:06
Truffle: Languages and Material
@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
@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);
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 / 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>