Skip to main content

Blog Archive for opinali during June 2010

I was doing some JavaFX hacking, and I had to create a sequence initially full of zeros. How can you do that? There's apparently only one way: <p>var bits = for (i in [1..64]) (0 as Long);</p> Problems: First, I need a loop - OK, a comprehension - to initialize the sequence. There is no syntax, no API helper or type constructor, that directly expresses "Long[] with N elements...
I've finished the development of my Game of Life, with a couple final fixes and new features... including a solution to the bad performance reported before. Once again the work has uncovered some surprises; read on. Un-Scripting JavaFX Script The first version used a "scriptish" style, all code thrown in a single .fx file, only average effort in structure. Now I have three files: World....