MHN

Ask HN: Which alternative to Python for personnal use would you recommend?

20 points by Nickydigit·831 days ago·Show in HN

As a professional fullstack dev that specialize in PHP backends (Symfony and Laravel mostly) and does a bit of Bash when required, I am looking for a general purpose programming language to use for fun little personal projects at home (essentially API consuming, local LLM use and I/O interactions through either websockets or similar tools)...

... that isn't Python !

I had a really bad first experience with the language and find it quite messy in terms of syntax and debugging, so ideally I would like to avoid it.

Looking at popular and/or similar languages, I found quite a few that seems like they could match what I am looking for, but I would love to have some feedback from people who used them in order to make an educated pick.

Here are the languages :

  • Rust (seems rather complex and inadequate for "fun little projects on the side" but powerful)
  • Go (fast, reliable, with quite a few community packages to extend its capabilities)
  • Ruby (a personal preference probably because I am using PHP at work, syntax looks really appealing)
  • Kotlin (apparently good for GUI, much more than Rust for example, surprised that it was recommended but who knows...)
  • Lua (another one that was recommended to me, could be useful as I am also interested in modding some games in the future)

Thanks in advance for your feedback and help :D

Add a comment on Hacker News →
1 of 37 comments
  1. This list is not meant to say "this is the best language for this", but rather, "you'll have an interesting learning experience with this":

    • web backend => ruby (with RoR)
    • web frontend => JS
    • network => go
    • gui => dart
    • perf sensitive => rust
    • mac os only => swift
    • windows only => F#
    • cli scripting => nim
    • embed => zig
    • new perspective on programming => lisp
    • want to experience clean theoretical concept => haskell
    • need super reliable service => erlang
    • lots of data processing => julia
    • lots of number exploration => j
    • video game => C# (with unity)

    And I say this as someone who would likely use Python for 80% of those.