Readit News logoReadit News
ThomasTJdev commented on Nim 2.2.6   nim-lang.org//blog/2025/1... · Posted by u/xz18r
ThomasTJdev · 4 months ago
Nice! Nim has been great for us - fast to code in and even faster once compiled! We're using it for the backend and microservices at https://cxplanner.com and loving it.
ThomasTJdev commented on Removing garbage collection from the Rust language (2013)   pcwalton.github.io/_posts... · Posted by u/mattrighetti
raincole · 3 years ago
I think it's quite unfortunate that there isn't a language with

1) Rust's type system or something as expressive 2) C#-level performance 3) GC by default 4) Ecosystem that is as big as Rust

The closest thing seems to be TypeScript (weirdly).

ThomasTJdev · 3 years ago
Nim-lang fits 1, 2 and 3! And in a couple of years the ecosystem is up to level ;)
ThomasTJdev commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
lairv · 3 years ago
What's the experience of writing web backend with Nim ? Did you use existing libraries / framework ? How good is the concurrency compared to something like Go ?
ThomasTJdev · 3 years ago
One of the reasons for choosing Nim was the ease of getting a production ready web backend. For the core part of managing the backend we are using existing Nim libraries [1], and they are easy to expand and work with. I cannot give you a comparison with Go since I haven't managed that large Go projects - but for Nim we are all into the async and threading. I think the channels within the threading is hardest part in Nim, but work is being done it.

[1] https://nimble.directory [1a] https://github.com/dom96/jester/ [1b] https://github.com/planety/Prologue [1c] https://github.com/guzba/mummy

ThomasTJdev commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
fuzztester · 3 years ago
>More and more large companies and startups are adopting Nim.

Ineresting.

Are there any stats / data on this, or is it anecdotal?

Even if anecdotal, can you name some names?

ThomasTJdev · 3 years ago
For startups, you can count us in[1]. Our backend, across all services, is using Nim. [1] https://cxplanner.com
ThomasTJdev commented on Keycloak – Open-source identity and access management interview   console.substack.com/i/12... · Posted by u/ph4ni
joshgermon · 3 years ago
This is timely. I am stuck on simple authentication for my small apps. Everyone tells me - "Don't roll your own auth EVER!!!!", and then tells me about some easy-to-use Auth as a service.

Ok, great. Well if I'm buying my auth I at the very least need some kind of 2FA, MFA or something. I don't care about anything other than user/pass and MFA. But every service wants to charge you well over $100/mth for any kind of MFA. Why can't they just forward the transactional SMS/Email charges on? Or better yet just give the authenticator app options.

I feel like user/pass + MFA isn't asking for the world and not including any kind of MFA to me feels like potentially worse security than "rolling my own" simple bcrypt + regular old sessions and then can add on MFA too using well defined standards and libraries.

Now I do like these open-source options but again, they seem faaaar too complex for what I want. I could definitely implement simple session and hashing auth much quicker than setting up any of these. Which I completely understand as this is complicated enterprise identity systems here. I don't need that though!

Anyway rant over. Anyone else have this experience or am I alone?

ThomasTJdev · 3 years ago
Have a look at Jackson from https://boxyhq.com . Spin up one container and a couple of simple endpoints - voila, up and running. And a really cool team too!
ThomasTJdev commented on Nim 2.0.0 RC2   nim-lang.org//blog/2023/0... · Posted by u/WithinReason
alexbezhan · 3 years ago
What app are you developing with it?
ThomasTJdev · 3 years ago
A full project management platform for construction projects. Webserver, websocket, microservices, etc.: https://cxplanner.com
ThomasTJdev commented on Nim 2.0.0 RC2   nim-lang.org//blog/2023/0... · Posted by u/WithinReason
jphoward · 3 years ago
I love Nim so much. I really hope some big company decides to use it as their workhorse language - it feels like the only thing holding it back is the lack of corporate 'buy in'. Most similarly good languages (except F# maybe?) seem to get lucky with becoming a poster boy for at least one company.
ThomasTJdev · 3 years ago
Ditto! Nim is just easy and incredibly fast (to develop and the code!). Our code base is Nim based - even normal bash script have been replaced!
ThomasTJdev commented on NimConf 2022 – Nim Online Conference   nim-lang.org/blog/2022/10... · Posted by u/WithinReason
Cwizard · 3 years ago
Anyone here used Nim for a bigger project? What was your experience like?
ThomasTJdev · 3 years ago
We use it at www.cxplanner.com for a mix of micro/mono-services. Statically typed and good compile time combined with really fast code makes Nim perfect for us.
ThomasTJdev commented on Nim Version 1.6.6 Released   nim-lang.org/blog/2022/05... · Posted by u/shaftoe444
cumshitpiss · 4 years ago
Hi, is Nim a good replacement for python? I write a lot of scripts, but I find that python can get cumbersome to maintain. I'm looking for something with stricter typing and a sane packaging/directory system, but also easy/fast to write. If Nim can work with numpy it's a plus
ThomasTJdev · 4 years ago
For me it was. Python was everything for me - but too slow. It was a pretty quick to convert software to Nim, and I have never looked back. You don't get the whole ecosystem from python, but you get fast code and easy syntax. We even often use Nim instead of small shell scripting.
ThomasTJdev commented on Set up a website with Nim (2019)   ttj.dk/blog/2019/01/20/se... · Posted by u/melissalobos
mysterydip · 4 years ago
I just started using Nim this weekend, so this is some nice serindipity :) Do you have more recommendations for someone who has programmed for years but new to Nim to get up to speed? Specifically I'm looking for using it to do hosting and websockets, but anything would be helpful.
ThomasTJdev · 4 years ago
I don’t know about other web-guides. Nim’s official website is made with Nim and available at Github[0], but it has become at bit more complicated after they switched to Karax[1]. Jester’s tests gives a good view on the routing procedures[2].

The official tutorials[3] are pretty good, when you get the grab on how to ”decode” them. For web development with websockets and microservices I would suggest you to have a look at the Redis package[4], and @treeform’s Websocket[5] and JsonParsing-packet[6].

[0] https://github.com/nim-lang/nimforum/ [1] https://github.com/karaxnim/karax [2] https://github.com/dom96/jester/blob/master/tests/alltest.ni... [3] https://nim-lang.org/docs/tut1.html [4] https://github.com/nim-lang/redis [5] https://github.com/treeform/ws [6] https://github.com/treeform/jsony

u/ThomasTJdev

KarmaCake day52September 24, 2019
About
Founder of https://CxPlanner.com - Quality management software

https://TTJ.dk

View Original