Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Google Technology

Google Earth Ported To Browsers With WebAssembly (infoq.com) 51

The Google Earth team recently released a beta preview of a WebAssembly port of Google Earth. The new port runs in Chrome and other Chromium-based browsers, including Edge (Canary version) and Opera, as well as Firefox. From a report: The port thus brings cross-browser support to the existing Earth For Web version, which uses the native C++ codebase and Chrome's Native Client (NaCl) technology. Difference in multi-threading support between browsers leads to varying performance. Google Earth was released 14 years ago and allowed users to explore the earth through the comfort of their home. This original version of Google Earth was released as a native C++ based application intended for desktop install because rendering the whole world in real time required advanced technologies that weren't available in the browser. Google Earth was subsequently introduced for Android and iOS smartphones, leveraging the existing C++ codebase through technologies such as NDK and Objective-C++. In 2017, Google Earth was released for the Chrome browser, using Google's Native Client (NaCl) to compile the C++ code and run it in the browser.
This discussion has been archived. No new comments can be posted.

Google Earth Ported To Browsers With WebAssembly

Comments Filter:
  • by DickBreath ( 207180 ) on Tuesday July 02, 2019 @02:35PM (#58862744) Homepage
    How about please port a web browser to WebAssembly.

    More people use web browsers than use Google Earth.
    • by KiloByte ( 825081 ) on Tuesday July 02, 2019 @02:46PM (#58862804)

      How about please port a web browser to WebAssembly.

      And release it as an Electron "app" -- a browser is something users may want to use stand-alone.

    • How about please port a web browser to WebAssembly.

      How about someone first port WebAssembly to emacs, then port the browser and run it from there?

  • by jellomizer ( 103300 ) on Tuesday July 02, 2019 @02:58PM (#58862882)

    The use of Web Assembly has its limitations for most "Web Apps" due to the lack of ability to quickly interact with DOM.
    Sure for Google Earth, where you are calculating a lot of data at once, it works well (especially compared to Java Script) However most Web Apps are slow not from all the calculating it is doing, but (especially in IE) from rendering changed HTML on the fly. I run a query, my server returns a JSON list of data, in no time, then it takes seconds for the table to render on the page. If I were to take the same generated HTML, and Dump it to a textbox, it would process and complete in a split second.

    A Web Assembly for DOM would be much handier, where instead of giving table commands, and having the browser to auto adjust its size, you can contol the rendering at a lower level.

    • by Anonymous Coward

      Browsers have to auto-adjust content to window, that's their job. Your own Web Assembly + DOM custom job would cut corners and be incompatible with some screen sizes, etc.

      If you want faster rendering, use fixed sizes via CSS where appropriate, at least that way the browser won't try to re-shuffle the whole page.

    • by phantomfive ( 622387 ) on Tuesday July 02, 2019 @06:10PM (#58863854) Journal

      The use of Web Assembly has its limitations for most "Web Apps" due to the lack of ability to quickly interact with DOM.

      It will eventually. Here is the proposal [github.com]. No reason to do it quickly, that's how we ended up with the Javascript mess. Better to take it slow and produce something good.

      (Some languages, most notably Rust, have bindings to the DOM already, through some tricky glue code)

    • by sbaker ( 47485 )

      DIM interaction is a really minimal issue. Wasm can access DOM through JavaScript calls - so spend a happy hour or two writing a neat re-usable C++ class that hides the JavaScript calls - and voila you have DOM access. Sure it would be nicer if we could have direct access for speed - but DOM accesses are inherently rather slow - so I don't think that the extra JS call is a gigantic overhead.

      If you wrap it all up in a neat little C++ class - then as soon as "native" DOM access DOES arrive - you only have

  • The port thus brings cross-browser support to the existing Earth For Web version, which uses the native C++ codebase and Chrome's Native Client (NaCl) technology.

    My doctor told me to reduce my salt intake, you insensitive clods!

  • Does not work with network-streamed KMZ files, just like the shitty iPhone/Droid app.

  • Tried in Firefox, which was nearly unusable, so then I tried with Chrome... even worse!

    Meanwhile, this Google Earth WASM implementation was burning up my CPU, even which I was nowhere near it.

    I know, it's beta. Great work. Please keep going! I want to believe in WASM. Please make it work.

A committee takes root and grows, it flowers, wilts and dies, scattering the seed from which other committees will bloom. -- Parkinson

Working...