Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monad DSL #11

Closed
sleexyz opened this issue Apr 5, 2016 · 4 comments
Closed

Monad DSL #11

sleexyz opened this issue Apr 5, 2016 · 4 comments

Comments

@sleexyz
Copy link
Owner

sleexyz commented Apr 5, 2016

A few things are inexpressible in the pure DSL:

  • rolled for loops: the cost of parsing unrolled loops grows linearly, so currently your compile times actually grow with higher iteration counts :(
  • custom uniforms
  • GLSL functions

In general we want to generate code that is concise as possible to minimize compile times of the generated GLSL

@sleexyz
Copy link
Owner Author

sleexyz commented Apr 7, 2016

@sleexyz
Copy link
Owner Author

sleexyz commented Apr 28, 2016

went with common subexpression elimination instead

@sleexyz sleexyz closed this as completed Apr 28, 2016
@sleexyz sleexyz reopened this Aug 30, 2016
@sleexyz
Copy link
Owner Author

sleexyz commented Aug 30, 2016

Even with CSE, not having rolled loops means high data transmission/shader compilation cost.

@sleexyz sleexyz changed the title Add monadic context Monad DSL Oct 2, 2016
@sleexyz sleexyz changed the title Monad DSL Top-level monad Oct 9, 2016
@sleexyz sleexyz changed the title Top-level monad Monad DSL Oct 9, 2016
@sleexyz
Copy link
Owner Author

sleexyz commented Oct 9, 2016

Splitting into #69 and #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant