3
submitted 3 years ago* (last edited 3 years ago) by AgreeableLandscape@lemmy.ml to c/rust@lemmy.ml

Genuinely serious since this is so much of a meme.

top 8 comments
sorted by: hot top controversial new old
[-] arthur@lemmy.zip 2 points 1 year ago

Programming languages are tools. And specific problems are better handle by its proper tools. Rust is great, but not for every-and-all problems.

As example, data exploration. For that I really prefer Python, the ergonomics are far better than Rust for this use case. (And even in this case, Rust can help with Polars)

[-] curious@lemmy.ml 2 points 3 years ago* (last edited 3 years ago)

Do you actually think that Rust can and should replace all or most other programming languages?

No, Rust is the wrong tool for that. Rust is a good choice if your working on low level code or have high speed requirements. Like 95% of the time it is a better decision to trade some speed and space for better productivity. I would even argue that we don't push simplicity enough. Computers are becoming faster and faster, we should create simpler programming languages that use more resources.

In my ideal world we would write operating systems and drivers in Rust and all other things in a Lisp like language. Yes Lisp, because Lisp is decades ahead of what most other programming languages offer and at the same time Lisp is very simple at its core. The developer workflow is totally superior, to an extend, that when explaining it to a normal developer, it will be outside of the scope of understanding. Not because its difficult, but because it is so different. Too bad, that a lot of Lisp languages are outdated and have a not so practical std lib for today's world. This doesn't change the fact that Lisp is IMHO the best solution to programming humanity has invented. If you don't believe me that Lisp like languages are so fare ahead, watch this talk . There are a lot of interesting and very good ideas outside of the usual programming world that should be used by the mainstream (no I don't think Clojure is THE language, they just have some good videos online).

[-] dessalines@lemmy.ml 14 points 3 years ago

Computers are becoming faster and faster, we should create simpler programming languages that use more resources.

Devs thinking like this are the reason our chat apps and some text editors are in electron, wasting tons of system resources, by running what is essentially its own operating system, chromium.

Just to give an idea, here's some things I have running on my laptop right now:

App | Ram

  • | - Signal Desktop (Electron) | 368 Mb Lightcord (Discord, Electron) | 367 Mb Element (Electron) | 212 Mb

Before electron, back in the AIM / IRC / MSN messenger days, these were tiny programs easily runnable on a 256 MB ram machine.

This article is about website bloat, but it equally applies to so many of our chat apps that went from using system libraries and GUI frameworks, to the browser.

[-] AgreeableLandscape@lemmy.ml 5 points 3 years ago

When an app is installed on millions of devices, making it more efficient can actually make a not insignificant difference in overall power consumption, and therefore environmental impact.

[-] dessalines@lemmy.ml 3 points 3 years ago

I'd love if someone did that calculation too. Could be a LOT of watt-hours per day just wasted by things like discord.

[-] IlliteratiDomine@infosec.pub 1 points 1 year ago

The KDE project has been focusing on sustainability, as a system efficiency metric, for some time now.

If you'd like to read more.

[-] sunbeam60@lemmy.one 5 points 1 year ago

Amen! Electron is a scourge. Look at MicroSIP, a full SIP chat and call client done in MFC. Exe is 3 MB, uses less that 10 MB RAM. Runs super stable, super quick (native GUI) and light enough to always be on.

[-] bluefish@lemmy.ml -4 points 3 years ago

Not at all, There will be some language which half designed by AI, other half designed by Human.

this post was submitted on 04 Dec 2020
3 points (100.0% liked)

Rust Programming

7734 readers
1 users here now

founded 5 years ago
MODERATORS