englishmaninmadrid,

V.

livingcoder,

Rust, easily.

mrkite,
@mrkite@programming.dev avatar

C. I’ve been programming for over 30 years and it’s the only language to survive. Imagine if I was asked this question 30 years ago and picked perl or Pascal, I’d be screwed today.

Spider89,

JavaScript

Agent641,

Is everything alright at home mate?

Spider89,

👌

pingveno,

I would be torn between Python and Rust.

The case for Python is that I’m already very experienced in it (nearly 20 years), there’s a good job market out there for it, and the ecosystem is one of the best in existence. It’s like a comfortable well made jacket, maybe a tad worn in some areas but very functional. And it’s not standing still, with a community that’s committed to constant improvement.

Rust is more fun. I like the way it’s been put together. It can also be used in more areas. There are some niches (wasm, low level, kernel) where Python just doesn’t work. It has been able to benefit from the years of mistakes from Python and other languages on things like how it handles Unicode strings. I don’t know it as well as Python, but I barely get a chance to work with it so that could change quickly in time.

philm,

Behold, Rust is blazingly fast in approaching the most popular language :)

Also, in comparison to Python you can do pretty much everything throughout the stack, which would be the reason I would go for Rust (not mentioning all the other niceties it has to offer).

Also learning Rust nowadays is much more approachable compared to say 7+ years back (ecosystem got way better)

pingveno,

All of this is very true! But it’s has to stack up against the large amount of experience with Python, both personally and in the industry. I have had to make decisions on project languages with an eye towards the abilities not just of myself, but of other people on my team. Fortunately, someone who knows Rust recently transferred onto my team, so we may do a project in Rust soon.

philm,

True, Python has a very big userbase and a lot of cool libraries and is nice to quickly hack something together.

Though the title of the post is

If you had to choose one programming language that you had to use for the rest of your life, what would it be?

So TMU I want to predict the future in a way that it positively affects me, and find a language that fulfills this role best (throughout the stack, so that I’m not limited). And honestly I wouldn’t want to touch Python with a long stick, if the project is moderately complex (and isn’t easily off-loadable to native libraries that Python builds upon) and say > 5000 LOC, the super dynamic nature of python is a curse in this regard.

asciimage,

C

CADmonkey,

GW Basic

cout970,

Kotlin without a doubt.

Gives you more flexibility and freedom that most scripting languages. The syntax is clean and concise, the tooling is amazing and can compile to JVM, JS, Native and WASM.

CodeMonkey,

I have used Kotlin a bit for a hobby project and it felt like they were 95% done with a 1.0 version. I love the promise of a single code base that can run on the JVM and browser, but it is not all there. Until recently, the API was not guaranteed to be stable. Every one in a while, I hit a feature that is JVM only or does work right in JavaScript. The JS compiler will “helpfully” remove uncalled public functions unless you explicitly mark them with JsExport.

Also, from what I can tell, only InteliJ is the only supported IDE (which makes sense, since they are the language developers). There is an official Eclipse Plugin, but the last time I tried it, it did not work and tried to take the entire IDE down with it.

Having said that, it was very close to complete and I have not worked on that project for a few months, so it could all be perfect now.

snowe,
@snowe@programming.dev avatar

Kotlin jvm is extremely stable, not sure what issues you could be encountering there. The API has been guaranteed to be stable for years and years now. And sure, the other stuff has experimental functions, but they’re clearly marked.

CodeMonkey,

Kotlin jvm is extremely stable

I don’t want to use Kotlin on (just) JVM. The reason I am working with Kotlin is Kotlin Multiplatform (so JVM and JavaScript). The JavaScript side is where all of my frustrations have come from.

muhanga,

Clojure. Simple language for complex things. It also has java interop and Javascript interop and c# interop. So I will be fine.

Ray,

Go or Rust

olafurp,

I don’t like writing Rust but I choose Rust. I like Microsoft Java also

Cryan24,

Definitely lolcode… HAI Can Has stdio KTHXBYE :)

kaffiene,

Java

DLSantini,

DNA

Knusper,

Rust:

  • It covers all bases, from embedded to backend to webdev to gamedev.
  • I could create libraries with it, which can be called from other languages.
  • It’s good.
  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming@programming.dev
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • Durango
  • Youngstown
  • everett
  • slotface
  • rosin
  • cubers
  • mdbf
  • kavyap
  • GTA5RPClips
  • JUstTest
  • cisconetworking
  • osvaldo12
  • ethstaker
  • Leos
  • khanakhh
  • normalnudes
  • tester
  • modclub
  • tacticalgear
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines