You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
The text was updated successfully, but these errors were encountered: