Nim Weekly

I wrote a tool to convert Nim source files from camel to snake case and vice versa

streamable.com/c6t0bj

Discussions: discu.eu/q/https://streamable.

#nimlang #programming

shark_demoStreamable
Βασίλης Βαλατσός

@lemeteore well #nimlang has syntax that is very similar to python, but is low level, compiled, with static types rather than dynamic hint types

For example:

def add(a: int, b: int) -> int: return a + b print(add(10, 5)) # Output: 15 print(add(10.5, 4.5)) # Output: 15.0 print(add("10", "5")) # Output: "105"

versus

proc add(a: int, b: int): int = return a + b echo add(10, 5) # Output: 15 echo add(10.5, 4.5) # Error: type mismatch echo add("10", "5") # Error: type mismatch

plus because nim is compiled and it compiles to C and then machine code it can be as fast as C, but with a garbage collector (which you can disable for C speeds).

Βασίλης Βαλατσός

The more I learn about #python, as in the inner workings of the language, rather than learning how modules work for my use case, the more I think that I really should just move to #nimlang.

If I am to use type annotations and proper coding etiquette, I might as well benefit from it I guess.

Nim Weekly

Nim recap for week 11/2025

discu.eu/weekly/nim/2025/11/

#nimlang #programming

Get RSS feeds and support this bot with the premium plan: discu.eu/premium

Profoundly Nerdy

All languages have life cycles. Hell, some even go dormant and become popular — or unexpectedly critical – again.

What would qualities would a language need to have to eventually threaten Python's dominance? My fear is any innovative ideas will just get absorbed. Yes, I realize much of #Python's muscle is marketing by big industry players.

#programming #perl #python #raku #forth #assembly #cplusplus #cpp #js #fortran #cobol #BASIC #nimlang #golang