I used C++ to write an artificial life simulation in the 1990s. Then in 1998 I discovered Python and didn't look back at C++. Python unleashed a joy in development for me.

Fast forward decades of experience and maturing.

Now I know Rust, which I enjoy using as well, and whole fields of software development that I left behind with C++ are opening back up.

#python #rust

Follow

@faassen
You should also try Golang, very simple and nice like python

@mur2501
Amusingly enough I have avoided Golang for that reason. I already have Python for simple and nice.

I wanted to learn a language that challenges me to think differently, and have a true systems language in my toolbox. I am sure Go is great, though.

@faassen @mur2501 Maybe try Zig which is a compiled language similar to Rust with a Python-like syntax

@HugeGameArtGD

@mur2501

Isn't that Nim? I played with that years ago. I know of Zig but didn't know it had a Python syntax

@faassen @mur2501
The ternary operation (x += if (a) 1 else 2) and logical expressions (and, or, not) are similar to Python/JavaScript I think.
Nim is almost identical to Python, though it outputs C/C++/Objective-C/JS Code while Zig compiles to LLVM IR Bitcode or ZIR/AIR (self-hosted).

@HugeGameArtGD

@mur2501

Python's ternary expression is "x if condition else z". JS has a ternary expression like C: "condition? x : y"

@faassen
nah it's not a total photocopy of python. The main place they are similar is in the simplicity part where golang doesn't throws on you any unnecessary format or syntax requirements as well as the package management is simple.

@mur2501 I realize it's not a photocopy of Python. I just haven't felt an inclination to add it to my toolbox as I was looking for something that stretches my programming muscles. I'm sure Go is great though!

@faassen
For stretching the programming muscle I think Lisp, Haskell, Erlang, Ada, etc would give a very fresh and new look into programming

@mur2501 Rust stretched my programming muscles, for me. I've used Haskell for a little bit too, and dabbled briefly with Lisp a long time ago. Erlang is definitely interesting (or Elixir).

I'm not sure what Ada would bring to the table, could you elaborate?

Stack languages like Forth, APL-style array languages and Prolog also stretch muscles.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.