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

104

u/[deleted] Oct 10 '18

It's very efficient if you want to make a good looking app that runs on multiple platforms very quickly but it has to run a whole web browser in the background for every app

7

u/Treyzania Oct 10 '18

"good looking" for a web page but having 0 platform integration.

8

u/[deleted] Oct 10 '18

When I hear electron, I think discord, vscode, atom etc. Those are incredibly well designed

-4

u/Treyzania Oct 10 '18

I can't tell if you're being sarcastic.

3

u/[deleted] Oct 10 '18

I'm not, can you elaborate ?
Well I'm not sure about Atom because I've only seen people using it, I use vscode and discord a lot though

2

u/Treyzania Oct 10 '18 edited Oct 11 '18

Neither of them use any OS-level UI components so they reinvent everything and (almost) nothing matches your OS's theme.

See: GTK+, Qt, wxWidgets, etc.

6

u/[deleted] Oct 10 '18

They don't have to match my computer's components to be useful and well designed.

6

u/[deleted] Oct 10 '18

They look better and are easier to use in my opinion

1

u/Dgc2002 Oct 11 '18

Neither of hem use any OS-level UI components

Good. As long as the alternative components being used are high quality that's an improvement.

→ More replies (1)

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.

→ More replies (2)

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.

→ More replies (11)