Skip to content

Instantly share code, notes, and snippets.

View ekoontz's full-sized avatar

Eugene Koontz ekoontz

View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active May 9, 2024 07:47
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@onlurking
onlurking / programming-as-theory-building.md
Last active April 19, 2024 22:31
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@enforser
enforser / lazy-side-effects.clj
Last active August 1, 2023 18:31
Lazy side effects in clojure - overcoming chunking
;; Unlike fully lazy languages such as Haskell, Clojure seqs often implement chunking.
;; This means that when accessing the first element of a sequence, 32 members will be evaluated.
;; An example of this can be seen by implementing some side effect in a map.
(first (map (fn [x] (prn x) x) (range 5))) ;; prints 0 through 4, then returns 0
;; The above example will return 0 (as expected), but you'll notice it prints off all 5 elements
;; of (range 5).
;; In the next case we can see that the evaluation caused by the access of the first element stops after
;; the first 32 elements are evaluated.
@cgrand
cgrand / core.cljc
Last active October 14, 2020 12:18
Mixing macros and code in cljc and supporting clj, cljs and self-hosted cljs, see https://github.com/cgrand/macrovich
;; SEE: https://github.com/cgrand/macrovich
;; macros and code in a single cljc working across clj, cljs and self-hosted cljs
;; require clojurescript from master
(ns foo.core
#?(:cljs (:require-macros
[net.cgrand.meta-macros :refer [macros no-macros]]
[foo.core :refer [add]])
:clj (:require
@fogus
fogus / fp.dot
Created May 2, 2012 13:34
early influence graph of fp languages -- this is not meant to be a complete time line. I'm mostly concerned with the root and inner nodes.
digraph G {
ranksep=1.0;
ratio=0.6;
APL [color=Blue, shape=box];
Simula [color=Blue, shape=box];
LISP [color=Blue, shape=box];
ALGOL [color=Blue, shape=box];
Planner [color=Blue, shape=box];
ACTOR [shape=hexagon];
@ekoontz
ekoontz / gist:1772396
Created February 8, 2012 19:16
Make Sun/Oracle's java the default rather than OpenJDK
#do all as root:
#(download and install jdk-6u26-linux-amd64.rpm from Oracle)
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1500
alternatives --set java /usr/java/latest/bin/java
alternatives --install /usr/lib/jvm/jre-1.6.0 jre_1.6.0 /usr/java/latest 1500
alternatives --set jre_1.6.0 /usr/java/latest
@ekoontz
ekoontz / repeat.sh
Created October 31, 2011 23:33
repeat a given Zookeeper test
#!/bin/sh
# TODO: fold into ant (current) or maven (future).
# example usage (run from top-level zookeeper directory) :
#
# src/repeat.sh ZooKeeperTest
test_output=yes
testcase=$1
i=0
ant test-init
@ekoontz
ekoontz / repeat.sh
Created October 14, 2011 19:01
repeat a given HBase test
#!/bin/sh
# example usage (run in top-level HBase directory) :
#
# src/repeat.sh TestRegionServerCoprocessorExceptionWithAbort
testcase=$1
# see also http://hbase.apache.org/book/hbase.tests.html
i=0
mvn clean
while [ "$?" -eq "0" ] ; do
@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.