electron+js+webgl for game dev?

I agree that it's not going to be as performant as C++, but why are we just throwing out a language as non-capable for writing games because it's not compiled (static type checking is very possible with typescript)? JS also now has the ability to run code in background threads with workers and message passing. Again, you can achieve much better with C++ but unless you're writing some heavy FPS I don't think we should disregard JS for game development, especially since a lot of people on /r/gamedev are going to be using it for smaller indie games. I would think how you actually write the (web/open)gl code would have much bigger impact on performance than the language itself.

I have no idea how/if electron hurts performance. If it does hurt performance of JS+webgl then disregard everything I said above lol.

/r/gamedev Thread Parent