Skip to content

Instantly share code, notes, and snippets.

@whostolebenfrog
whostolebenfrog / gcnotes
Created March 6, 2013 13:27
Notes from - Martjin Verburg - Garbage collection, the useful parts
Know more - Gil Tene
GC is about tracking live objects, not dead objects.
Poor GC -> OOM, high pauses, long pause times
Hotspot -> C/C++/Assembly
Heap is broken into several generations pools. [all this is tuneable]
-- Eden
@ahjones
ahjones / clojure-rest-driver.clj
Created June 1, 2012 22:41
Rest client driver with Clojure and Midje
(ns logging.web-test
(:use midje.sweet
ring.mock.request
my-thing.web)
(:import [com.github.restdriver.clientdriver
ClientDriverFactory
ClientDriverRule
RestClientDriver]))
(def driver (.. (ClientDriverFactory.) (createClientDriver 8123)))
@ghoseb
ghoseb / ns-cheatsheet.clj
Last active April 11, 2024 05:28 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.