Skip to content

Instantly share code, notes, and snippets.

View timfel's full-sized avatar
👨‍🍼
Parental leave through 2024

Tim Felgentreff timfel

👨‍🍼
Parental leave through 2024
View GitHub Profile
SplayTree;1;0.7674418604651163;0.20116279069767443;0.012015503875968992;0.020387596899224807;0.0020930232558139536
Compiler;1;0.09012464046021093;0.4995206136145734;0.01725790987535954;0.016145733461169702;0.00014381591562799616
Json;1;0.310580204778157;0.3993174061433447;0.10921501706484642;0.049931740614334474;0.0034129692832764505
ArrayAccess;1;0.0410958904109589;0.5110502283105023;0.007123287671232876;0.23726027397260274;0.001917808219178082
ClassVarBinding;1;0.04855275443510738;0.49654528478057897;0.005243252448501502;0.07142857142857144;0.0011204481792717088
FloatLoop;1;0.019064124783362217;0.4832755632582322;0.0026863084922010396;0.15008665511265165;0.0012998266897746966
InstVarAccess;1;0.21551724137931036;0.5629310344827586;0.04741379310344828;0.06469827586206896;0.0006810344827586207
IntLoop;1;0.04924242424242423;0.5075757575757576;0.005743805375949732;0.07282196969696969;0.0011363636363636363
Send;1;0.05577689243027889;0.5345617529880479;0.005377116873062125;0.08197211155378487;0.0007470119521912352
SplayTree;benchmarks.without.log;1;0.7674418604651163
SplayTree;benchmarks.with.log;0.20116279069767443;0.012015503875968992
SplayTree;benchmarks.cog.log;0.020387596899224807;0.0020930232558139536
Compiler;benchmarks.without.log;1;0.09012464046021093
Compiler;benchmarks.with.log;0.4995206136145734;0.01725790987535954
Compiler;benchmarks.cog.log;0.016145733461169702;0.00014381591562799616
Json;benchmarks.without.log;1;0.310580204778157
Json;benchmarks.with.log;0.3993174061433447;0.10921501706484642
Json;benchmarks.cog.log;0.049931740614334474;0.0034129692832764505
ArrayAccess;benchmarks.without.log;1;0.0410958904109589
TABLE-OF-CONTENTS on ~/papers/phdthesis/Felgentreff_2015_Babelsberg.tex
SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r [?]Help
------------------------------------------------------------------------------
Part I Solving Constraints on Object Behavior
1 Introduction
1.1 Challenges
* Constraint Solvers are Non-deterministic ``Magic''
* Object-oriented Imperative Programming is the Norm
* Solvers Are Highly Specialized
* Practical Performance Requires Trade-Offs
@timfel
timfel / manual.md
Last active August 29, 2015 14:19
Reproduce RSqueak Windows Crash
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "/home/tim/dev/pypy/rpython/translator/goal/translate.py", line 321, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "/home/tim/dev/pypy/rpython/translator/driver.py", line 732, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "/home/tim/dev/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "/home/tim/dev/pypy/rpython/translator/driver.py", line 283, in _do
[translation:ERROR] res = func()
import os
import requests
build_name = os.environ['filename']
f = open(build_name, "rb")
response = requests.post('http://www.topazruby.com/builds/create/', {
'build_secret': os.environ['BUILD_SECRET'],
'sha1': os.environ['sha1'],
'platform': 'windows32',
'success': 'true',
}, files={'build': (build_name, f)})
@timfel
timfel / gist:5481905
Created April 29, 2013 14:26
failures on ubuntu precise 32bit
Started by upstream project "ha:AAAAmR+LCAAAAAAAAABb85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAz2EgZe/az8JP2Q/ILEKmMjfQCcHZdXwgAAAA==Topaz32" build number ha:AAAAmx+LCAAAAAAAAABb85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAymEgZ+/az8JP2Q/ILEKmMjfSNLAAeYdPTEAAAA29
originally caused by:
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on Precise32 in workspace /home/vagrant/workspace/Topaz32/TEST_TYPE/own/label/Precise32
Checkout:Precise32 / /home/vagrant/workspace/Topaz32/TEST_TYPE/own/label/Precise32 - hudson.remoting.Channel@60be9782:Precise32
Using strategy: Default
Last Built Revision: Revision 1363b8df311f1fe703259143fa4d3074ac1ae2c2 (origin/master)
Cloning the remote Git repository
Cloning repository git://github.com/topazproject/topaz.
[86efafb9d4101] {jit-log-opt-loop
# Loop 0 (each at LOAD_DEREF) : loop with 134 ops
[p0, p1]
+33: i2 = getfield_gc(p1, descr=<FieldS topaz.frame.Frame.inst_stackpos 60>)
+39: p3 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_w_self 64>)
+42: p4 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_lastblock 40>)
+45: p5 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_lexical_scope 44>)
+48: p6 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_parent_interp 52>)
+51: p7 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_block 24>)
+57: i8 = getfield_gc(p1, descr=<FieldS topaz.frame.Frame.inst_last_instr 36>)
import time
import os
from pypy.rpython.tool import rffi_platform
from pypy.rpython.lltypesystem import rffi, lltype
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from rupypy.module import ClassDef
from rupypy.objects.objectobject import W_Object
from rupypy.objects.exceptionobject import W_ArgumentError
@timfel
timfel / bench_red_black.rb
Created August 7, 2012 06:31
Modified R/B Bench
# require 'benchmark'
# Algorithm based on "Introduction to Algorithms" by Cormen and others
class RedBlackTree
class Node
attr_accessor :color
attr_accessor :key
attr_accessor :left
attr_accessor :right
attr_accessor :parent