Commit Graph
100 Commits
Author SHA1 Message Date
Dan Buch bed7e5bef4 Working through 1.3 with Bags, Queues, and Stacks 2013-01-09 21:26:52 -05:00
Dan Buch d246fc20a0 Filling in tree walker and asserting it yields simplates 2012-12-25 14:22:21 -05:00
Dan Buch dc4fe12631 Asserting generated file can successfully compile 2012-12-25 10:19:54 -05:00
Dan Buch 887919098f Playing with generic maps 2012-12-25 00:07:26 -05:00
Dan Buch c8b4612c2e Making generated code worky better
but straying from the TDD path ... which is sad...
2012-12-25 00:06:55 -05:00
Dan Buch 0bb83f358d TRIVIAL whitespace change 2012-12-24 23:26:18 -05:00
Dan Buch 58272a076a Goofing around with code generation
which feels crazy brittle so far and I'm thinking I'd rather do with
ast/parser stuff.
2012-12-24 15:38:32 -05:00
Dan Buch 3dd1fc9635 Moving output name calculation into method of Simplate 2012-12-24 12:03:21 -05:00
Dan Buch 8654aacea3 Starting work on rendering out simplates to Go sources. 2012-12-24 00:12:11 -05:00
Dan Buch 8314d97ade Making assertions about TemplatePage assignment 2012-12-23 12:11:48 -05:00
Dan Buch dcb060b246 More assertions about simplate parsing
beyond simple type detection.
2012-12-23 11:07:23 -05:00
Dan Buch f61d845eca More tests for simplate type detection 2012-12-22 23:32:26 -05:00
Dan Buch bfc7c0cdc6 Starting to goof around with a Go implementation of Aspen 2012-12-22 22:51:14 -05:00
Dan Buch 5d5ada2dfc Filling in Accumulator implementation and test client
as well as fixing the Canvas implementation so that it doesn't pop up an
X window on init.
2012-12-21 22:49:50 -05:00
Dan Buch 209e074503 Filling in Date implementation 2012-12-21 22:31:33 -05:00
Dan Buch b7480b78a8 Closing window on 'q' instead of space
since it fits my brain better, was a leftover from the x-go-binding
example.
2012-12-21 17:29:05 -05:00
Dan Buch 809e5ae69e Fixing rectangle drawing
which was broken because I was treating the 3rd and 4th args to
`image.Rect` as width and height rather than end coords.
2012-12-21 09:19:35 -05:00
Dan Buch be0c529381 Drawing pixel "misses" now
but looks like something is awry in how rectangles are being drawn.
2012-12-21 09:14:12 -05:00
Dan Buch 71ab8b249d Futzing around more with drawing API
including implementation of `Rectangle(...)` and supporting methods,
making `Draw()` a method of `Canvas`, other crap.
2012-12-21 00:34:30 -05:00
Dan Buch d009f8b70d Getting a bunch more of the drawing API implemented
including drawing to a very plain X window, albeit an image of
nothingness.
2012-12-20 23:40:31 -05:00
Dan Buch 2b688fd385 Sourcing Go workspace env if present 2012-12-20 19:49:26 -05:00
Dan Buch c2dc9cfe02 Starting work on the Interval2D example
and filling in drawing library along the way.
2012-12-20 10:47:12 -05:00
Dan Buch 5bf03a1a40 Cleaning up rolls implementation
to be a bit more idiomatic, I suppose.
2012-12-20 08:36:35 -05:00
Dan Buch e81b35471e Fixing a few places where I was using "crypto/rand"
to use "math/rand" with a proper seeding instead.
2012-12-20 00:34:24 -05:00
Dan Buch 7a40632ca8 Implementing "Average" example
and supporting `Stdin.ReadDouble` method.
2012-12-19 23:23:35 -05:00
Dan Buch e0101b4c69 Not using that GOROOT after all 2012-12-19 23:22:36 -05:00
Dan Buch 9a1c045581 Implementing the "RandomSeq" example
with supporting implementation of `StdRandom.uniform`
2012-12-19 22:58:37 -05:00
Dan Buch 6ebbf04980 Re-namespacing one more time to get sources back in the same tree.
I dunno...  this whole thing should be its own repo, probably.  Meh.
2012-12-19 22:33:46 -05:00
Dan Buch 76c392967d Re-namespacing everything and fixing imports to match 2012-12-19 21:10:56 -05:00
Dan Buch 335fe2e9bd Adding a shell script variant of web assets generator
mostly just for silly comparison, as a shell scripting exercise I guess.
2012-12-19 18:36:50 -05:00
Dan Buch 18efe35c95 Yup, I think I prefer left-aligned. 2012-12-19 00:25:43 -05:00
Dan Buch 142c802a70 Giving image representation a top and left border
plus some other minor visual cleanups to web game.
2012-12-19 00:23:22 -05:00
Dan Buch 45c45bb838 Wrapping base64-encoded files at 76 chars
like it should be!
2012-12-19 00:06:15 -05:00
Dan Buch 6818d0ee01 Serving random state images, now need to tackle state transfer 2012-12-17 09:17:01 -05:00
Dan Buch 8b536de45c Playing around with images and drawing
mostly in preparation for doing image stuff in the Conway's Game of Life
implementation.
2012-12-16 19:58:01 -05:00
Dan Buch 3e013ce1a5 Too much crap for one commit
Breaking out console runner into its own file, adding an empty web
runner, and starting to test that games and game states are able to
represent themselves as images.
2012-12-16 17:59:54 -05:00
Dan Buch 3bfa23fff2 Have we achieved torus? 2012-12-16 16:04:54 -05:00
Dan Buch 8056d86cbf A bunch more work towards achieving torus 2012-12-16 12:17:44 -05:00
Dan Buch 7567f1c991 Starting work on making the game exist on a torus 2012-12-16 09:56:38 -05:00
Dan Buch fc3f94e78f Goofing around with Qt a bit 2012-12-14 20:35:01 -05:00
Dan Buch 39fdd6fdd6 Reflection thing from Jesse :-) 2012-12-13 21:02:19 -05:00
Dan Buch 44999623da Collapsing tree into more sane Go project layout
since I was in here looking at something unrelated...
2012-12-13 18:12:43 -05:00
Dan Buch 270eb1fc2d Moving bulk of console runner into library func 2012-12-12 21:34:28 -05:00
Dan Buch 6bbe19c26f Whoops, was double-eval'ing generations 2012-12-12 08:11:33 -05:00
Dan Buch f22abc0430 Detecting 3-period oscillators
and properly (?) checking for zero-oscillator stasis.
2012-12-10 09:39:58 -05:00
Dan Buch 78625088e8 Detecting statis with blinkers or beacons or some other 2-period oscillator 2012-12-10 09:14:29 -05:00
Dan Buch 8ff1125452 Even better, I guess 2012-12-10 00:55:39 -05:00
Dan Buch 3ff6e2e999 Ending game automatically when statis is reached
plus properly seeding math/rand and swapping the chars used for grid to
better match black/white from canonical example.
2012-12-10 00:35:09 -05:00
Dan Buch ad1bd2537a Introducing concept of mutation
which appears to delay the onset of stasis until about twice as many
generations (???)
2012-12-10 00:22:31 -05:00
Dan Buch ea5bb19b0b Flagging up the command-line interface
and using unicode chars instead of X and _, dangit!
2012-12-09 23:38:38 -05:00
Dan Buch 00b750e2b0 Plugging stuff into command-line runner
including adding random initial state generation.
2012-12-09 23:20:43 -05:00
Dan Buch 32095ef057 Ensuring the game can display itself
albeit in very simple string form.
2012-12-09 22:51:10 -05:00
Dan Buch ffb8d1e43c Implementing dead cell reproduction 2012-12-09 22:33:42 -05:00
Dan Buch c2ffaee979 Implementing overcrowding rule 2012-12-09 22:16:16 -05:00
Dan Buch aaba7c22df Getting two of the four rules (sorta) working
with some gnarly and probably way too big scoring code.
2012-12-09 21:05:40 -05:00
Dan Buch f6546e7186 More tests, including finally getting into implementation of real reqs 2012-12-09 00:22:10 -05:00
Dan Buch 8a858a9a11 Filling in a few more tests 2012-12-08 23:08:40 -05:00
Dan Buch f1ab95c68f (finally!) doing some TDD in Go 2012-12-08 22:44:45 -05:00
Dan Buch ecffff2a60 Starting work on a Go implementation of Conway's Game of Life
since I had a decent amount of practice at
http://globalday.coderetreat.org/
2012-12-08 21:47:21 -05:00
Dan Buch 6bd27f93b8 picking up the android thing again 2012-12-08 07:57:46 -05:00
Dan Buch 5228eba27e Using the more explicit Java symbol access pattern 2012-12-02 20:28:07 -05:00
Dan Buch e1a07fadd9 Working through an old @why post on metaprogramming
since I'd like to make the JRuby rabbitmq stuff a bit less boilerplate.
2012-12-02 20:21:14 -05:00
Dan Buch 9fd03cab2f Implementing rpc example in Go 2012-12-02 08:41:05 -05:00
Dan Buch b0553c1b8d Renaming some stuff and starting on ch. 4 rpc example implemented in Go 2012-12-01 19:06:23 -05:00
Dan Buch 4c63923238 Ignoring symlinked bin dir from main go workspace 2012-12-01 18:50:30 -05:00
Dan Buch 9802fe8ca5 Removing obsolete autoenv file and updating imports to match new layout 2012-12-01 18:41:06 -05:00
Dan Buch 80e5b8fa5e Attempting to correct Go project layout 2012-12-01 18:34:55 -05:00
Dan Buch bbb709be31 Accepting fib count from os.Args, whoopdittydooo 2012-12-01 08:08:31 -05:00
Dan Buch b01f9d70fd Doing the bit of the go tour on select 2012-12-01 07:52:03 -05:00
Dan Buch 42b7abccc0 Re-namespacing stuff, but not quite going the whole way with "correct" go layout
since I don't really want the overhead of separate repos for silly crap
like this.
2012-11-30 19:31:24 -05:00
Dan Buch b8d83c830c Playing with round-robin behavior 2012-11-27 00:11:56 -05:00
Dan Buch 10aa737d1d Adding the picture resizing consumer 2012-11-26 23:42:08 -05:00
Dan Buch b3f0f5c4ec Touching up the add-points consumer
to really fake implement points-adding method and more cleanly stop
consuming.
2012-11-26 23:29:20 -05:00
Dan Buch c4e8e39176 Adding the alert consumer
plus a tiny bit of touchup to fanout producer.
2012-11-26 22:47:57 -05:00
Dan Buch 952604d431 Adding fanout publishing script for the picture upload example 2012-11-26 22:36:28 -05:00
Dan Buch 6d5cc71aa4 Printing awesomely 2012-11-23 09:45:11 -05:00
Dan Buch 91f9d80e16 Finishing the consumer side of the alert example from chapter 4 2012-11-23 09:28:45 -05:00
Dan Buch 4acbd0a911 Getting the alert producer JRuby implementation working 2012-11-23 08:17:53 -05:00
Dan Buch d42c036909 Adding another creds env var 2012-11-22 16:40:39 -05:00
Dan Buch d3918bd79c Goofing around with JRuby implementation of chapter 4 alert stuff 2012-11-22 16:40:19 -05:00
Dan Buch c01332ff84 Updating rakefile setup task to pull in gson, too 2012-11-22 16:23:42 -05:00
Dan Buch 12bd530e6f Meant to go clean, too 2012-11-22 14:07:11 -05:00
Dan Buch 61a748bd44 Finishing up the alert consumer and producer
I think...
2012-11-20 07:57:06 -05:00
Dan Buch 4e980011d6 Filling in the chapter 4 alerts consumer 2012-11-20 07:39:33 -05:00
Dan Buch 0be6b37318 Adding setup script for ch. 4 alerting user 2012-11-20 07:04:34 -05:00
Dan Buch 19350d73ca Having a level helps 2012-11-19 22:46:25 -05:00
Dan Buch d418a7ae38 Beware the trailing slash 2012-11-19 22:38:11 -05:00
Dan Buch 2bf7d416e2 Using a separate admin '/' vhost login
and shutting down more cleanly.
2012-11-19 22:37:23 -05:00
Dan Buch 0e5566367c Setting up separate admin user for use with log consumers 2012-11-19 19:50:42 -05:00
Dan Buch 9e0e2ab567 Goofing around with log consumers
although it would appear the logging exchange doesn't exist on all
vhosts (???)
2012-11-19 19:00:51 -05:00
Dan Buch 351a7dc5ba Kinda fixing rake to at least only download once 2012-11-19 08:45:55 -05:00
Dan Buch 5500be5264 Playing with rolls of dice or whatebbs 2012-11-18 22:09:49 -05:00
Dan Buch 0bad7fe2f9 Playing with counters and flips 2012-11-18 21:46:49 -05:00
Dan Buch 9cb1be13fe TRIVIAL go fmt 2012-11-18 20:21:16 -05:00
Dan Buch e99e5165bd Filling in example binary search thing with real implementation 2012-11-18 20:20:29 -05:00
Dan Buch 0c300d7cdd Adding test for binary search rank func 2012-11-18 20:20:07 -05:00
Dan Buch b867cd616a Adding implementation of binary search rank 2012-11-18 20:19:47 -05:00
Dan Buch 1ddd54676c Goofing around more with mechanics instead of reading the dang book 2012-11-18 19:00:50 -05:00
Dan Buch 3f696f3060 Filled in "ReadInts" implementation and test 2012-11-18 18:51:59 -05:00
Dan Buch 869142a314 Getting sidetracked writing utility functions 2012-11-18 13:47:26 -05:00