this post was submitted on 20 Feb 2021
136 points (93.0% liked)

Programmer Humor

32443 readers
805 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ksynwa@lemmy.ml 1 points 3 years ago (1 children)

My work makes me use a VPN client that's built on electron. Eats up a lot of battery on my laptop.

[–] AgreeableLandscape@lemmy.ml 1 points 3 years ago (1 children)

Why? Just why?

Can't even imagine doing any sort of encryption from JavaScript, and how inefficient that would be.

[–] ksynwa@lemmy.ml 0 points 3 years ago (1 children)

From the code I think the client itself is written in Go and the electron part is a frontend. But I couldn't get the Go client to run without the electron frontend.

This is the page for the client in case someone wants to help get this tunning without the electron frontend: https://client.pritunl.com/

[–] AgreeableLandscape@lemmy.ml 1 points 3 years ago

Seriously, why?! Go has UI libraries (plus Qt/GTK bindings) and you don't need something that complicated for a VPN client.

Does the frontend need to be active all the time? Then you effectively have Chrome always running while doing literally nothing most of the time, can't imagine you have to fiddle with the VPN that often.