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

On the GPU #46

Closed
YafahEdelman opened this issue Nov 14, 2014 · 2 comments
Closed

On the GPU #46

YafahEdelman opened this issue Nov 14, 2014 · 2 comments

Comments

@YafahEdelman
Copy link
Contributor

Libraries do exist for interfacing with the GPU in Java Script (such as https://github.com/timoxley/saltmine or other, more mature alternatives which do exist). Parsing is definitely something that can benefit from being on the GPU sometimes, the biggest problem being we'd have to convert parts of the parser too the languages they support on the GPU (such as https://en.wikipedia.org/wiki/OpenGL_Shading_Language). If we do lazily compute post proccessing then this could be quite useful when you have a specific expression that is large, complicated to check, or otherwise would benefit from being on the GPU.

@kach
Copy link
Owner

kach commented Nov 15, 2014

I'm not sure writing code for GLSL is going to be a huge speed-up. Keep in mind that GPU programming is very restrictive and read/write operations are expensive (because pixels). Also, it won't work on node without extensive hacks.

@YafahEdelman
Copy link
Contributor Author

There seem to be a few modules that get it working on node reasonably easily. Although now that I think about it it would probaly only be useful if you are parsing over a million characters or something.

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

No branches or pull requests

2 participants