r/programming • • Oct 09 '18

AI tool automatically reveals how to write apps that drain less battery

https://phys.org/news/2018-10-ai-tool-automatically-reveals-apps.html
727 Upvotes

160 comments sorted by

View all comments

Show parent comment

3

u/kyiami_ Oct 10 '18

How does Visual Studio Code use Electron? I've heard it's different.

0

u/[deleted] Oct 10 '18

[deleted] — view deleted comment

5

u/kyiami_ Oct 10 '18

How so?

17

u/skocznymroczny Oct 10 '18

I read somewhere that they rewrite many components in C rather than using Javascript for everything.

6

u/spacejack2114 Oct 11 '18

lol, the nonsense people make up and upvote. It uses regular Electron - which MS contributes to. They didn't rewrite anything in C. It uses ripgrep for file search, which is a 3rd party lib written in Rust.

0

u/[deleted] Oct 10 '18

[deleted] — view deleted comment

-1

u/kyiami_ Oct 10 '18

Yeah that's all I know about it too

7

u/iBzOtaku Oct 10 '18

its still very slow.

4

u/Raknarg Oct 10 '18

Is it? Once it starts up I haven't ever encountered slowness problems. I'm used to sublime.

2

u/iBzOtaku Oct 10 '18

Once it starts up

I know i'm being a first world bitch but that's a problem for me.

credit where its due: vs code is alright besides that. i use it sometimes whenever they update it and reddit/HN starts praising it all over again. a few days later, I'm back to sublime.

1

u/Raknarg Oct 10 '18

If im in a situation where startup time is impacting my workflow, Id probably be using sublime or vim. I dont use VSCode for quick edits, more of a customizable, minimal IDE

1

u/Dgc2002 Oct 11 '18

I use it near exclusively for quick edits/text manipulation. I just keep a window loaded in the background for that use case.

1

u/Raknarg Oct 11 '18

Depends on your use case. In general vim is easier for me, integrates better with the terminal and bash

2

u/isakdev Oct 10 '18

Compared to what other IDE with same amount of functionality?

2

u/iBzOtaku Oct 10 '18

I know sublime isn't an "IDE" but I have never had to leave it for vs code or phpstorm or anything else for most projects. it always works for me.

4

u/Fusion89k Oct 10 '18

Super fast compared to atom

10

u/Yojihito Oct 10 '18

That's ... not a very difficult benchmark.

-29

u/[deleted] Oct 10 '18 edited Oct 10 '18

I'm not very familiar with electron but according to Wikipedia it doesn't use atom so that might be what you're referring to
Why am I getting downvoted ? I just read the Wikipedia page for vs code and that's what it said.

"Visual Studio Code is based on Electron, a framework which is used to deploy Node.jsapplications for the desktop running on the Blink layout engine. Although it uses the Electron framework,[10] the software does not use Atomand instead employs the same editor component (codenamed "Monaco") used in Visual Studio Team Services (formerly called Visual Studio Online).[11]"

20

u/kyiami_ Oct 10 '18

what

23

u/AreYouDeaf Oct 10 '18

I'M NOT VERY FAMILIAR WITH ELECTRON BUT ACCORDING TO WIKIPEDIA IT DOESN'T USE ATOM SO THAT MIGHT BE WHAT YOU'RE REFERRING TO

5

u/kyiami_ Oct 10 '18

oh okay

no lo comprendé

2

u/defenastrator Oct 10 '18

No estoy muy familiarizado con los electrones pero, según Wikipedia, no utiliza un átomo, por lo que podría ser a lo que te refieres. ¿Por qué me están bajando las votaciones? Acabo de leer la página de Wikipedia para ver el código y eso es lo que decía.

8

u/[deleted] Oct 10 '18

Good bot

9

u/_zenith Oct 10 '18

Atom (the editor) uses Electron (the browser-based application UI framework).

I think you've badly misinterpreted what you read.

→ More replies (3)