Electron | [object Object]

June 6, 2018

Retrospective: building WebAssembly powered javascript module

I’ve recently implemented new spellchecker module to improve current implementation based on node.js native addon. Both are based on well-known spellchecker library Hunspell but new module enables possibility for performant spellchecking even on web browsers via WebAssembly. This post summarizes short retrospective around considerations and further improvements for those. Modules I implemented are Hunspell-asm for wasm bindings of hunspell spellchecker and Cld3-asm for Chromium’s languade detector CLD3. Additionally Electron-hunspell is published to use hunspell-asm in Electron based applications. ... Read more

July 15, 2017

Multi target Electron debugging in VS Code

Electron 1.7 introduced v8 inspector protocol added in node.js 6.3. This protocol replaces legacy debugging protocol in node.js, allows to debug Electron’s main process via v8’s inspector protocol. Since Chromium uses same protocol for its devTools, now Electron can have seamless debugging experience between main process and renderer process. Simply run Electron with --inspect command argument and open given url in Chrome, now devTools will open up pointing main process code. ... Read more

May 28, 2017

Profiling Electron's BrowserWindow using contentTracing

Electron’s main process exposes few useful module for BrowserWindow to debug or profiling its behavior. contentTracing is one of them provides binding to Choromium’s Trace api allows to profile BrowserWindow without manual recordings. It is similar to modules like Lighthouse or Speedracer does internally to profile pages via Chrome browers. contentTracing quick overview If you open up about://tracing(or chrome://tracing depends on version) on Chrome browser you can see UI of Trace event profiler Chrome provides by default. ... Read more

OJ Kwon