Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by StreakyCobra on Thursday March 23, 2017 @12:46PM
(#13941459)
> Actually, it would take one hour because you would use Poppler, and it would be cross-platform. It would also be faster than pdf.js.
I don't really know poppler. If there are Poppler bindings for the language you are developing in, I believe you that this is possible. This is only one use case though, I'm not sure you will find native libraries in your language for all features that VSCode can offer almost for free, like live markdown preview for instance.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by spdionis on Thursday March 23, 2017 @01:29PM
(#13941916)
> I don't really know poppler.
Exactly. Web developers live in a bubble, and because they don't know much about native alternatives, they assume they don't exist.
Note: I'm a web developer and I don't know poppler.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by mixedCase on Thursday March 23, 2017 @01:01PM
(#13941624)
I don't think the implication you're making here is valid. In Electron you're forced to use JavaScript or a compile-to-JavaScript language. In the desktop it's pretty much the same deal but with C. And we've been doing C FFI since way before JavaScript was conceived.
Actually, it would take one hour because you would use Poppler, and it would be cross-platform. It would also be faster than pdf.js.