Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have been thinking about this a bunch lately and I think that the main problem with all these approaches is that it's all built on top of a DOM and as a result it gets us to a local optimum and prevent us from reaching a global optimum.

The thing that these approaches don't account for is the rendering aspect which should ideally be done on the GPU.

There's this duality between Array of Structs and Struct of Arrays [0]. People find programming with Array of Structs easier but GPUs work with Struct of Arrays. I think that a language is needed that fundamentally compiles AoS to SoA.

Another advantage is that repainting the whole scene is much cheaper do you can be a lot more aggressive with repainting everything.

[0] https://en.wikipedia.org/wiki/AoS_and_SoA



> I think that a language is needed that fundamentally compiles AoS to SoA.

ISPC does that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: