Comments (5)
There are multiple kinds of execution graphs. Do you want a CFG (control flow graph)?
Wouldn't an AST (abstract syntax tree) visualizer be more adapted (not an "execution" graph)?
from bend.
Sorry, I couldn't understand exactly what kind of graph you're talking about.
Do you mean a graph of the parallel reductions over time, a diagram of the generated HVM interaction net (which is a type of graph), or something else?
from bend.
I would say a execution graph...
So that i see nodes for example [ (((1 + 2) + 3) + 4) ))) ] , if i see a node like this then i know i can split it more...
or similar , this helps to see what the compiler was able to parallelize and what i have to optimize "if possible"
bad example... but i think you get the point :-)
from bend.
Yes, that would be a very interesting tool to have.
We have some attempts of graphing things at the HVM level like
https://github.com/eduhenke/inet-vis
and
https://github.com/FranchuFranchu/inet-grapher
but those are hard to understand.
Once I bring back debug mode (printing the state of the runtime after each step) it would be much easier to do this at the Bend level
from bend.
Anotherway would be to create a Image of the "code" and color every "graph" with a background color (just a idea) that could be automatically output by the compiler.... maybe a dumb idea as i dont know if its possible... I just started with bend and did also take a look at HVM... but HVM is ... pretty difficult to read/understand.
from bend.
Related Issues (20)
- Converting between numbers and strings HOT 2
- HVM output reader thread not ending after HVM returns HOT 4
- Wrong reduction HOT 8
- Can't gen-cu directly HOT 2
- HVM install failing when compiling the Cuda runtime HOT 4
- HVM PARSE_ERROR expecting operator when copying the Map/get builtins.bend examples HOT 1
- Put constructor tags behind a reference in num-scott adt encoding
- Improve error message when the input file is not found
- Don't warn on unused generated definitions
- Make `with` clauses take a bind and an argument
- Evaluate using Profile-Guided Optimization (PGO) for the compiler HOT 2
- (Request) Regular Expression library
- (Request) Run in both the CPU and GPU at the same time HOT 1
- Running with all optimizations on is slower than running with the default optimizations HOT 2
- Mechanism to make recursive monadic functions not loop HOT 3
- Add syntax for a builtin tree type
- Pipe/Thread operator
- Error compiling cu generated code HOT 2
- Doesn't find CUDA on Nvidia PRIME Laptop HOT 3
- (Request) String-casting numbers for print() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bend.