Skip to content

Instantly share code, notes, and snippets.

Molly Everett mollymorphic

Block or report user

Report or block mollymorphic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mollymorphic
mollymorphic / Bench.java
Last active Aug 29, 2015
D vs Java - some benchmarks comparing D and Java in allocating dynamically sized arrays
View Bench.java
/**
Bench.java -
Allocation/Garbage collection benchmark for Java
*/
import java.util.ArrayList;
import java.util.Collections;
/**
*
* @author tommy
@mollymorphic
mollymorphic / fibs.js
Last active Dec 11, 2015
Clojuresque Fibs in JS.
View fibs.js
function allfibs(end) {
var x = 0, y = 1, count = 1;
yield 1;
while (count++ < end) {
[x,y] = [y,x + y];
yield y;
}
}
You can’t perform that action at this time.