@dessalines@lemmy.ml

dessalines

@dessalines@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Do you think Rust should architecturally replace Kotlin?

Apologies if this question isn’t really appropriate for this community, but Rust and Kotlin are my two favorite programming languages, and currently, I use both for different projects. However, I’m curious as to if people here think Kotlin still has a place when Rust exists? I’m specifically speaking architecturally:...

dessalines,

I’m more experienced with java, but have used kotlin a bit too. The JVM languages are extremely versatile and capable of doing anything, but kotlin is probably the best of them in terms of syntax.

That said, after dealing with java’s garbage collector, I don’t think garbage-collected languages have a place in the future. Rust showed me that despite claims of garbage collected languages being easier, simple scoping and borrowing don’t really add any complication, and are better in terms of memory in the long run, and a better choice for pretty much every type of application.

But practically of course browsers aren’t going anywhere (so we’ll still need to learn javascript / typescript), and neither is android (so we’ll still need to learn a jvm language). I’ll still use kotlin, but only for android. Rust already has functioning web servers, UI toolkits, CLI toolkits, and everything you need for desktop or server apps.

dessalines,

I'm too scared to do this but someone who's braver than me plz tell if it creates an infinite loop or just stops right away.

dessalines,

Damn… inventing a web server programming language by just winging it.

dessalines,

Unironically yes for me. At least out of the languages I've worked most in, when I have to go back to them, I find myself saying that rust did this much better.

I used to use duck typed languages for scripting, but those quickly grow complex to where you wish you had compile time type checking anyway.

Unfortunately the main GUI platforms today are the web, and mobile apps, and neither can really use rust yet.

dessalines,

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.

dessalines,

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

dessalines,

Every time I update my rust-analyzer has to start from scratch and it takes like 5 minutes on lemmy :loudly crying face:

Nah I’m not complaining tho, its been getting so many updates and getting a lot faster as a result.

dessalines,

Strong moderation abilities, and instance admins like ourselves who actually ban white supremacist communities and not sit on their hands about hosting the largest one on the internet, for years.

edit: like just today, we had a few TERF communities try to set up here. It took us less than a day to ban them. Its not difficult.

dessalines,

Most subs block this domain, because domains you have to pay hundreds of dollars for are seen as legitimate.

dessalines,

I love searx but instances keep getting taken down, or results not coming back from the main sources.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • mdbf
  • magazineikmin
  • Durango
  • Youngstown
  • vwfavf
  • slotface
  • ngwrru68w68
  • khanakhh
  • rosin
  • kavyap
  • thenastyranch
  • PowerRangers
  • DreamBathrooms
  • Leos
  • ethstaker
  • hgfsjryuu7
  • osvaldo12
  • cubers
  • GTA5RPClips
  • modclub
  • InstantRegret
  • everett
  • tacticalgear
  • normalnudes
  • tester
  • cisconetworking
  • provamag3
  • All magazines