kivikakk.ee

OCaml: sakta men säkert.

A trie:

type lex_node = Letter of char * bool * lex_tree
and lex_tree = lex_node list;;

A function to test whether a word belongs in the dictionary (answer to an exercise from the book “Deploying Applications With Objective Caml”):

let exists word trie =
let rec exists_aux acc nl =
let exists_inner = function
Letter(c,b,nl) -> let wc = (acc ^ (String.make 1 c))
in if b && (wc=word) then true
else exists_aux wc nl
in List.exists exists_inner nl
in exists_aux "" trie;;

Now working on “insert”.

Telstar:s farväl

Idag tog jag farväl av min ’86 Telstar, min alldra första bil. Det var en bra bil!

NativeApplicationUpdater (for AIR 2.0)

baby spinach leaves

tea clouds, er lang (stupid boy), re re re. RE. Religious education (Regular expression). Religion is a regular expression? /religion/g. Religion as a global religious expression. /religion/i; case-insensitive religion. Insensitive expression. Stunning prophecy on p.LXXI.

Don’t get started on labels again. I love jumping to labels. They drive me along on my little way, helping me avoid all actual inclination to do things, but just to say “oh yes I’m X and therefore I can have the opinion Y.”

I have applied the following terms to myself in the past:

girl. felon. agnostic. Australian. wife. solipsist. son. alone. pilot. husband. monk. nihilist. daughter. friendly. Christian. enemy. vegan. Buddhist. assured. right. Estonian. parent. vague. transwoman. lover. man. gay. heterosexual. polyamorist. boyfriend. queer. genderqueer. boy. atheist. girlfriend. unfriendly. wrong. transgender. father. Zen practiser. Sikh. antipatriot. vegetarian. feminist. universalist. woman. omnivore. friend. humanist. relativist. theist. programmer. homosexual. interpreter. Muslim. Mahayana practiser. mother. monogamist. Theravadin.

myself?

That’s one label I should keep.

書く

書くのは書くから始まる。 Writing starts with writing.