# HG changeset patch # User Steve Losh # Date 1310045970 14400 # Node ID 15fc94698c920287f9f9ed4d31a9d640e0bb6347 # Parent cc621ecb4d27bf8d14a5da1ed486f9c7eb8fd4a3 Add a todo file. diff -r cc621ecb4d27 -r 15fc94698c92 todo.org --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/todo.org Thu Jul 07 09:39:30 2011 -0400 @@ -0,0 +1,66 @@ +* TODO Wrap all IO in io!. +* TODO Wrap class mutations in io!? +* TODO Use Clojure's ugly keyword arguments. + + (defn dothreads! [f & {thread-count :threads exec-count :times + :or {thread-count 1 exec-count 1}}] + ...) + +* TODO Use some pre/post conditions. +* TODO Make records for common pieces of data. +** TODO Locations +** TODO Entities +** TODO Chunks +* TODO Relayout the data structures. +** TODO Servers + + { 'localhost' world1, + '222.222.111.232' world2, + ... } + +** TODO World + + { :entities {}, + :chunks {}, } + +** TODO Entities + + { 123 {}, + 234 {}, + ... } + +** TODO Entity (ref) + + { :eid 123, + :location location, + ...? } + +** TODO Location + + { :x 100.0, + :y 100.1, + :z 80.3, + :stance 101.0, + :yaw 11.0, + :pitch 81.0, + :onground true } + +** TODO Chunks + + { [1,23,12] (ref? chunk), + ... } + +** TODO Chunk (ref?) + + { ? } + +** TODO Bot + + { :world world, + :eid 123, + :connections { :in in-conn, + :out out-conn }, + :packet-counts { :in (atom 123), + :out (atom 234) }, + ...? } +