Re:Stellarium Web: Online Planetarium
by pvg on Tuesday September 04, 2018 @01:48AM
(#17906909)
Wait, so the web version is a C rewrite that is then emscriptened to JS but was specifically intended for the web? That's really interesting. Can you say a little bit about how you decided to take that approach?
[ Parent
| on HN ]
Re:Stellarium Web: Online Planetarium
by guillaumec on Tuesday September 04, 2018 @02:03AM
(#17906938)
In the end the target is web assembly, so even writing the code directly in js would require some compilation. Why C and not an other language that can be compiled to web assembly? I guess that was mostly a question of taste.
Ah, the web assembly target is for performance? I'm curious about the process of getting from 'let's put Stellarium on the web' to 'we're going to do a clean, pruned rewrite in C and spit out web assembly'. Like, did you sit around and think deep thoughts about various options? Or did someone look at web assembly and think 'huh, webassembly might be a neat way to port Stellarium to the web'.
Re:Stellarium Web: Online Planetarium
by guillaumec on Tuesday September 04, 2018 @02:35AM
(#17907049)
I think it was mostly because we knew we could do it this way. Having a C code base is also nicer for integrating back into Stellarium desktop, do other platform ports, etc.