Skip to content

Instantly share code, notes, and snippets.

@sciolizer
sciolizer / inference.rs
Last active November 12, 2022 00:56
Rust inference feeling somewhat arbitrary
trait MyTrait {}
struct MyStruct;
impl MyTrait for MyStruct {}
fn compiles1() -> Box<dyn MyTrait> {
Box::new(MyStruct)
}
fn compiles2() -> Box<dyn MyTrait> {

Keybase proof

I hereby claim:

  • I am sciolizer on github.
  • I am joshuaball (https://keybase.io/joshuaball) on keybase.
  • I have a public key whose fingerprint is 4651 AF9F D3F3 2EB8 1D54 B75B A0F3 EEE5 1FB6 E412

To claim this, I am signing this object:

@sciolizer
sciolizer / debug.log
Created February 9, 2016 03:23
Xtext 15 minute tutorial build log
This file has been truncated, but you can view the full file.
19:16:55.206 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface awdl0
19:16:55.207 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
19:16:55.209 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
19:16:55.209 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote address /fe80:0:0:0:8cf3:31ff:fe98:f598%awdl0
19:16:55.210 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding remote multicast interface awdl0
19:16:55.210 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface en0
19:16:55.211 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
19:16:55.211 [DEBUG] [org.gradle.messaging.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
@sciolizer
sciolizer / gist:10012375
Created April 6, 2014 23:10
Thaumcraft aspects
; for pasting into http://arborjs.org/halfviz
{color:none}
; choices
alienis -> vacuos
alienis -> tenebrae
arbor -> terra
arbor -> herba
auram -> praecantatio
@sciolizer
sciolizer / gist:8702641
Last active August 29, 2015 13:55
Death watch quarantine
import org.junit.Test
import akka.actor._
import akka.actor.Identify
import java.util.concurrent.atomic.AtomicInteger
import com.typesafe.config.{Config, ConfigFactory}
import java.io.StringReader
class ThousandActorsWatchingEachOther {
val countUp = new AtomicInteger(0)
@sciolizer
sciolizer / install-xmonad-with-java-patch.sh
Created August 29, 2012 01:34
Install xmonad with java patch
# Codification of discussion at http://code.google.com/p/xmonad/issues/detail?id=177
# Probably better to run each of these lines one by one instead of as a shell
# script, since there's a high probability of `cabal install` failing (usually
# fixed by installing the relevant libfoo-dev package)
# One person said these steps did not work.
# My Java version is:
# java version "1.6.0_34"
# Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
# Java HotSpot(TM) Server VM (build 20.9-b04, mixed mode)
@sciolizer
sciolizer / gist:2011793
Created March 10, 2012 15:30
Java garbage collection of circular references
/*
jball@localhost:~/tmp/javaref$ java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
jball@localhost:~/tmp/javaref$ java JavaRef
JavaRef$A@4fe5e2c3
JavaRef$Dog@7d8a992f
JavaRef$Tail@164f1d0d
JavaRef$A@8dc8569