Skip to content

Instantly share code, notes, and snippets.

View arthurp's full-sized avatar
🙀
Working stiff.

Arthur Peters arthurp

🙀
Working stiff.
View GitHub Profile
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set(/v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/tasks/GetEnergy.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Creep.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Loop.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Builder.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/api/PathFinder.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Harvester.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/api/ScreepsContext.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Main.scala, /v/filer4b/v20q001/amp/tmp/amps-screeps/src/main/scala/org/singingwizard/screeps/ai/Upgrader.scala, /v/filer4b/v20q001/amp/tmp/amps-s
@arthurp
arthurp / keybase.md
Last active December 16, 2016 02:33

Keybase proof

I hereby claim:

  • I am arthurp on github.
  • I am amp (https://keybase.io/amp) on keybase.
  • I have a public key ASDLzu-ISUH6npPWKPIkQETh2muLJ0TAYVp9sTVlM2MNrQo

To claim this, I am signing this object:

diff --git a/OrcScala/src/orc/run/core/VirtualClock.scala b/OrcScala/src/orc/run/core/VirtualClock.scala
index 9bcbf52..998de4f 100644
--- a/OrcScala/src/orc/run/core/VirtualClock.scala
+++ b/OrcScala/src/orc/run/core/VirtualClock.scala
@@ -80,9 +80,16 @@ class VirtualClock(ordering: (AnyRef, AnyRef) => Int, runtime: OrcRuntime)
dequeueMins() match {
case Some((newTime, first :: rest)) => {
currentTime = Some(newTime)
+ println(s"Advancing to $newTime waking $first :: $rest")
first.publish(true.asInstanceOf[AnyRef])
#!/bin/sh
PREREQ="lvm2"
prereqs()
{
echo "$PREREQ"
}
case $1 in
@arthurp
arthurp / ExceptionOnOnlyPath.java
Last active August 3, 2017 14:53
A small Truffle test program which demonstrates that Truffle will never include exception handlers in compiled code in some cases
package org.singingwizard.exception;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.RootCallTarget;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.RootNode;
public class ExceptionOnOnlyPath {
/** A simple exception which doesn't capture a stack.
package org.singingwizard.exception;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.RootCallTarget;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.profiles.BranchProfile;
public class ExceptionOnOnlyPath {
@arthurp
arthurp / generate_scala_dict.sh
Last active May 10, 2018 18:37
cSpell Dictionary for Scala
MANGLING_TOKENS=$(paste -s -d'|' <<'HERE' | sed 's/|/\\|/g;s/\$/\\$/g'
$m[a-zA-Z]\+
MODULE$
$lzy
$module
_$eq
$_setter_$
$tilde
$eq
$less
@arthurp
arthurp / failurerate.sh
Last active December 14, 2018 04:18
Orc Issue #223 status
function opts {
(cat <<EOF
porc:eta-spawn-reduce
porc:try-catch-elim
porc:try-finally-elim
porc:tail-spawn-elim
porc:inline-spawn
EOF
) | sort
}
@arthurp
arthurp / experiments.ipynb
Last active February 14, 2019 01:42
MXNet Autograd Experiments
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arthurp
arthurp / generate_java_dict.sh
Last active April 1, 2019 14:46
cSpell Dictionary for Java
MANGLING_TOKENS=$(paste -s -d'|' <<'HERE' | sed 's/|/\\|/g;s/\$/\\$/g'
$[0-9]\+
HERE
)
jar tf /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar |
sed -n '\@^\(java/\|javax/\)@s/\.class//p' |
xargs javap |
sed '
# Drop header lines