Skip to content

Instantly share code, notes, and snippets.

@harfangk
harfangk / rich_hickey_fogus_interview.md
Last active February 14, 2025 07:22
Rich Hickey Interview with Fogus on CodeQuarterly (likely from around June 2011)

The original website containing this interview has disappeared. I've googled a bit to find this transcript. I'm saving it myself to provide another link to the great interview and preserve it.

Rich Hickey Q&A by Michael Fogus

Best known as the inventor of Clojure, a Lisp that runs on the Java Virtual Machine and the first new member of the Lisp family to attract any widespread interest since Scheme and Common Lisp, Rich Hickey has been a software developer and consultant for two decades.

Prior to starting work on Clojure, he made four attempts to combine Lisp with either Java or Microsoft’s Common Language Runtime: jfli, Foil, Lisplets, and DotLisp but Clojure was the first to draw significant attention. To date there have been four books published on Clojure, including The Joy of Clojure by interviewer Michael Fogus. The first Clojure conference, ClojureConj held in 2010, drew over two hundred attendees. And the Clojure Google group has, as of this writing, 4,880 members who have posted over 46,000 mes

type Request
= User User.Msg
| Room Room.Msg
type Endpoint
= User
| Room
type User.Msg
= Create UserPayload
defmodule Rps do
def run(input) do
if valid?(input) do
input
|> String.codepoints()
|> Enum.zip(challenge())
|> score()
|> print_result()
else
IO.puts("bad input")
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
➜ haskell-ide-engine git:(master) cabal install Cabal
Resolving dependencies...
Configuring Cabal-2.4.1.0...
Failed to install Cabal-2.4.1.0
Build log ( /home/len/.cabal/logs/Cabal-2.4.1.0.log ):
cabal: Error: some packages failed to install:
Cabal-2.4.1.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-2383/Cabal-2.4.1.0/Distribution/Parsec/ParseResult.hs:32:0:
main :: IO ()
main = hakyll $ do
match "images/*" $ do
route idRoute
compile copyFileCompiler
match "css/*" $ do
route idRoute
compile compressCssCompiler
@harfangk
harfangk / gist:7e7ec0005bb74e885b9f40c73ab4f1ca
Last active April 5, 2019 14:01
error log for syntax highlighter
➜ syntax-highlighting git:(master) ✗ cmake ./ && make && make test
Checking file [/usr/local/share/ECM/cmake/ECMConfig.cmake]
Checking file [/home/bonghyunkim/Qt5.10.0/5.10.0/gcc_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake]
Checking file [/home/bonghyunkim/Qt5.10.0/5.10.0/gcc_64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake]
Chec
@harfangk
harfangk / gist:a87189e8365efe3630d2ec9c683cb49c
Created April 5, 2019 14:02
error log for HTMLHighlighterTest
➜ syntax-highlighting git:(master) ✗ bin/htmlhighlighter_test [91/1992]
********* Start testing of HTMLHighlighterTest *********
Config: Using QtTest library 5.10.0, Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
PASS : HTMLHighlighterTest::initTestCase()
PASS : HTMLHighlighterTest::testHighlight(Dockerfile)
PASS : HTMLHighlighterTest::testHighlight(Doxyfile.example)
PASS : HTMLHighlighterTest::testHighlight(Kconfig)
PASS : HTMLHighlighterTest::testHighlight(Makefile)
PASS : HTMLHighlighterTest::testHighlight(adblock.txt)
PASS : HTMLHighlighterTest::testHighlight(apache.conf)
@harfangk
harfangk / gist:2aca21664c5e0ada40c9833db00085f4
Created April 5, 2019 14:05
error log for TestHighlighterTest
➜ syntax-highlighting git:(master) ✗ bin/testhighlighter_test
********* Start testing of TestHighlighterTest *********
Config: Using QtTest library 5.10.0, Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
PASS : TestHighlighterTest::initTestCase()
QDEBUG : TestHighlighterTest::testHighlight(Dockerfile) Using syntax "Dockerfile"
PASS : TestHighlighterTest::testHighlight(Dockerfile)
QDEBUG : TestHighlighterTest::testHighlight(Doxyfile.example) Using syntax "Doxyfile"
PASS : TestHighlighterTest::testHighlight(Doxyfile.example)
QDEBUG : TestHighlighterTest::testHighlight(Kconfig) Using syntax "Kconfig"
PASS : TestHighlighterTest::testHighlight(Kconfig)
➜ syntax-highlighting git:(master) ✗ bin/folding_test [91/1864]
********* Start testing of FoldingTest *********
Config: Using QtTest library 5.10.0, Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
PASS : FoldingTest::initTestCase()
PASS : FoldingTest::testFolding(Dockerfile)
PASS : FoldingTest::testFolding(Doxyfile.example)
PASS : FoldingTest::testFolding(Kconfig)
PASS : FoldingTest::testFolding(Makefile)
PASS : FoldingTest::testFolding(adblock.txt)
PASS : FoldingTest::testFolding(apache.conf)