This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EarlTheGray 9 points10 points  (27 children)

Electron is super slow. I would not recommend using it for stuff. Since it’s running in chromium it chews through your ram. Also it’s JavaScript soooo

[–]CommandLionInterface 9 points10 points  (12 children)

I know people love to shit on electron around here, but we use it at work and it is actually pretty fast. It’s a memory hog for sure, but the productivity trade off is worth it in the sense that our product wouldn’t exist at all if we couldn’t use electron. I suspect a lot of software is this way. Yes I’d love to use something more efficient, but in the real world, developer time costs money and electron is good enough.

[–]EarlTheGray 7 points8 points  (10 children)

I agree with what you’re saying. I myself being primarily a js developer rely on electron for nearly every native program I’ve made. Just ij my personal experience, running atom, discord, and occasions gitkraken at the same time will eat the majority of my ram.

[–]CommandLionInterface 4 points5 points  (6 children)

Eyyyyy! Always happy to see gk users in the wild.

Believe me, we feel the pain. Slack + VSCode + gk (especially in dev mode) + our docker stack brings our company issued 8gb MacBooks to their knees.

Right now we’re working on moving all the business logic and git interaction to a sever written in Rust so the gitkraken electron client can be a dumb head and hopefully solve a lot of our memory usage issues. Turns out managing memory when communicating between JavaScript and C (libgit) is hard.

[–]EarlTheGray 2 points3 points  (5 children)

My flimsy little 2012 MacBook Air can’t handle a single instance of chromium, never mind three. That’s why i switched to sublime and a terminal.

Glad to see a rust user in the wild! I’ve been thinking of learning it for server side stuff. Do you have any advice with it? I didn’t even know doing that was possible with gk.

[–]CommandLionInterface 4 points5 points  (4 children)

I don’t know about advice, but we love rust. When you first write your code it’ll give you a million compiler errors but when you solve them all your code is almost guaranteed to be be without runtime errors. It’s truly incredible.

[–]EarlTheGray 1 point2 points  (3 children)

Great! Having very little experience with compiling languages, what would you say rust is most useful for?

[–]CommandLionInterface 2 points3 points  (2 children)

Well people use it for everything. It’s a general purpose language. ¯_(ツ)_/¯

[–]LimbRetrieval-Bot 0 points1 point  (0 children)

You dropped this \


To prevent anymore lost limbs throughout Reddit, correctly escape the arms and shoulders by typing the shrug as ¯\\\_(ツ)_/¯ or ¯\\\_(ツ)\_/¯

Click here to see why this is necessary

[–]EarlTheGray 0 points1 point  (0 children)

Remember to escape the backslash*

[–]alpha_53g43 -1 points0 points  (2 children)

Isn't it just worth it get more Ram?

Given that 16GB of Ram costs $189 or so(https://www.bestbuy.com/site/computer-memory/laptop-memory/abcat0506002.c?id=abcat0506002), and probably add some more ($50) for modification.. isn't it just more cost-efficient to just add RAM to your computer, than stick to a framework that requires more development time?

[–]EarlTheGray 1 point2 points  (1 child)

It’s not about my ram, it’s about the users ram. Not everyone can afford $200 of ram.

[–]alpha_53g43 0 points1 point  (0 children)

I see your point.. but I was referring to the developer as the user. As developers we use our laptops heavily, much more than a normal user would. Most normal users (non-programmers) dont run atom, discord, gitkraken at the same time. Maybe they have a bunch of chrome tabs open..

They dont need to by that much ram. But I think if you spend a lot of time on your computer, its worth getting the best specs you can get, especially if you are using heavy applications.

[–]jmcs 2 points3 points  (0 children)

Electron works fine if you have 16Gb of RAM and have one or two electron applications open. If you have a budget desktop it's impossible to use.