Code Monkey home page Code Monkey logo

compute-graph-optim's People

Contributors

mratsim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

magonser

compute-graph-optim's Issues

Tables not finding keys at compile-time

Probably related to the tables module using result internally and nim-lang/Nim#11637 but in the debugging branch

of Add, Mul:
if ast in visited:
return visited[ast]
if hash(ast) == 6289576662490420451 and visited.len > 3:
echo "##### Visited Nodes list #####"
for key in visited.keys():
echo hash(key), " - match: ", hash(key) == hash(ast)
echo "Hash: ", hash(ast)
echo "visited: ", visited.hasKey(ast)
raise newException(ValueError, "STOP")

We get this output:

Hash/Type: 8780388888841795503/Mul visited: false
Hash/Type: 6289576662490420451/Add visited: false
Hash/Type: 5843786413407749220/Add visited: false
Hash/Type: 8108552307534575344/Assign visited: false
Hash/Type: 5417227221498790525/Assign visited: false
Hash/Type: 5417227221498790525/Mul visited: false
#####   Visited Nodes list  #####
6289576662490420451 - match: true
5843786413407749220 - match: false
8780388888841795503 - match: false
8108552307534575344 - match: false
5469918968171799156 - match: false
5417227221498790525 - match: false
Hash: 6289576662490420451
visited: false
stack trace: (most recent call last)
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(923, 33) compile
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(811, 27) innerProcGen
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(355, 40) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(377, 31) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(355, 40) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(381, 31) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(410, 31) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(402, 9) walkASTGeneric
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(1114, 10) template/generic instantiation of `generate` from here
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(1086, 14) template/generic instantiation of `compile` from here
/home/beta/Programming/Nim/compute-graph-optim/e12_syntax_revamp.nim(402, 9) Error: unhandled exception: STOP

Meaning that key exists in the table but is not found ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.