Skip to content

Instantly share code, notes, and snippets.

View systay's full-sized avatar

Andrés Taylor systay

View GitHub Profile
@systay
systay / gol.adoc
Last active August 29, 2015 13:58 — forked from boggle/gol.adoc

Game Of Life

Game of Life is mathematic toy world that was invented by John Horton Conway in 1970. Game of Life is played on a grid of cells that are either dead or alive by simluating how the world evolves over a series of rounds. In each round cells die, survive, or are reborn depending on the number of neighbours they have. You can find out more about Game of Life by watching the video below or reading up on it in Wikipedia.

Projection
|
+Filter
|
+Expand(0)
|
+Expand(1)
|
+AntiSemiApply
|
scalac: Error: assertion failed:
while compiling: /Users/ata/dev/neo/neo4j/community/cypher/cypher-compiler-2.1/src/test/scala/org/neo4j/cypher/internal/compiler/v2_1/planner/logical/steps/ProjectionTest.scala
during phase: superaccessors
library version: version 2.10.4
compiler version: version 2.10.4
reconstructed args: -Xmax-classfile-name 100 -bootclasspath /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Content
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Rewriting query: MATCH a WITH a MATCH a-->b RETURN *
ASTRewriter in: --> Query(None,SingleQuery(List(Match(false,Pattern(List(EveryPath(NodePattern(Some(Identifier(a)(6)@523848e8),List(),None,true)))),List(),None), With(false,ListedReturnItems(List(UnaliasedReturnItem(Identifier(a)(13)@1e9ba5aa,a))),None,None,None,None), Match(false,Pattern(List(EveryPath(RelationshipChain(NodePattern(Some(Identifier(a)(21)@4356cf6c),List(),None,true),RelationshipPattern(None,false,List(),None,None,OUTGOING),NodePattern(Some(Identifier(b)(25)@784bddfd),List(),None,true))))),List(),None), Return(false,ReturnAll(),None,None,None))))
nameMatchPatternElements$ --> Query(None,SingleQuery(List(Match(false,Pattern(List(EveryPath(NodePattern(Some(Identifier(a)(6)@523848e8),List(),None,true)))),List(),None), With(false,ListedReturnItems(List(UnaliasedReturnItem(Identifier(a)(13)@1e9ba5aa,a))),None,None,None,None), Match(false,Pattern(List(EveryPath(RelationshipChain(NodePattern(Some(Identifier(a)(21)@4356cf6c),List
Plan assuming independence
Projection(0)
|
+Top
|
+Projection(1)
|
+Filter(0)
|
Plan assuming dependence
50 rows returned
Compiler CYPHER 2.2-cost
Projection(0)
|
+Top
|
+Projection(1)
/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin/java "-Dspecs2.ex=should not be here. delete when in sight" -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Users/ata/Library/Application Support/IntelliJIdea13/Scala/lib/scala-plugin-runners.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachine
[{
"plans":["NodeByLabelScan[al](al, Right(LabelId(4)), Set())","Selection[al](ArrayBuffer(HasLabels(al, LabelName(\"Album\") ⸬ ⬨)))\n↳ AllNodesScan[al](al, Set())"],
"winner":"NodeByLabelScan[al](al, Right(LabelId(4)), Set())",
"calculations":[{
"plan":"Selection[al](ArrayBuffer(HasLabels(al, LabelName(\"Album\") ⸬ ⬨)))\n↳ AllNodesScan[al](al, Set())",
"cost":227508.0,
"cardinalityEstimations":[{
"plan":"AllNodesScan[al](al, Set())",
"result":113754.0,
"selectivityCalculations":[{
/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.