Live data from Hacker News

Mastering Nim – now available on Amazon

nim-lang.org

81–90 of 106 posts

Re: Mastering Nim – now available on Amazon

#81
post #63

Earlier quoted context omitted.

jasfi, I am actually following your project and wanted to take this moment to ask a couple of questions. How are you planning to solve for Postgres drivers/clients with async and pipelining support? I had added nim std lib to the Techempower benchmarks, and while Nim shines in the plain text and other non db related requests, it comes at the very bottom as far as tests like Fortune go. When I did the work, there were…

Glad to hear you're interested in Nexus. The ORM currently uses db_postgres (from Nim's stdlib) only. I'm going to implement support for db_mysql and db_sqlite as well, it should be easy enough given how similar the API for the stdlib DB drivers are. Actual work on DB drivers is out-of-scope for me though. I noticed there is an async Postgres driver available: https://github.com/treeform/pg . I don't know how well te…

I did some testing with Nim a couple of years ago for HashBackup. Here's one of the db_sqlite issues I created:

https://github.com/nim-lang/Nim/issues/13559

I had much better luck with tiny_sqlite: https://github.com/GULPF/tiny_sqlite

Re: Mastering Nim – now available on Amazon

#82

Earlier quoted context omitted.

Not having failure domains is worse than not having types IMO.

What are failure domains?

By default a green thread is the atomic failure domain. A 'panic' in this green thread is isolated, but sends an uncancellable notification to anyone who subscribes to it. You can tie multiple green threads together so that when one goes down the others do too.

Re: Mastering Nim – now available on Amazon

#83

There's 3 languages in the same class. Julia, Nim and Crystal. I'm specifically curious about Crystal vs. Nim. Benchmarks show that crystal is pretty much faster, but I'd also like to know the advantages of why someone would choose Nim over Crystal I'm looking for reasoning that is deeper then just superficial language syntax differences. Has anyone extensively used both? I would like an unbiased view from someone wh…

Gonna copy paste an old comment of mine: ----- Syntax wise: Nim is to python what Crystal is to Ruby Capability wise: both are incredibly powerful general purpose languages. Crystal is fully OOP, while Nim has a more functional/procedural bent. Nim is better for DSLs and has a fascinating macro system. For system language use, Nim is a better choice as you can use it with its Arc GC or no GC at all. Perf wise, Crysta…

Perfect! Thanks!

Re: Mastering Nim – now available on Amazon

#84
post #43

I absolutely hate Nim for spoiling pretty much all other programming languages for me. I wish it gained more traction. Congratulations on your book and keep up the great work, Araq. You did an outstanding job with Nim and I wish you all the best!

I totally agree, Nim is great but it really needs more traction. I'm developing a web framework for Nim with batteries included (an ORM, for one), Nexus: https://github.com/jfilby/nexus

Do you have a Discord or anything? I'm interested in helping, I love Django and I would love to help any way I can.

Re: Mastering Nim – now available on Amazon

#85

There's 3 languages in the same class. Julia, Nim and Crystal. I'm specifically curious about Crystal vs. Nim. Benchmarks show that crystal is pretty much faster, but I'd also like to know the advantages of why someone would choose Nim over Crystal I'm looking for reasoning that is deeper then just superficial language syntax differences. Has anyone extensively used both? I would like an unbiased view from someone wh…

Julia isn't in the same class and workflow usually differs significantly from the others.

It is. Ruby and python are in the same class despite python being more data oriented.

Julia is the same thing. Data oriented.

Re: Mastering Nim – now available on Amazon

#86

Earlier quoted context omitted.

Julia isn't in the same class and workflow usually differs significantly from the others.

It is. Ruby and python are in the same class despite python being more data oriented. Julia is the same thing. Data oriented.

Ruby and Python aren't data oriented. Python specifically was designed and used as system scripting language and Ruby was designed as an improved Python. Python only came to be used for analytics (as well as web and app development) because people made libraries for it. It could have been another language. Nim and Crystal could be utilized to write the underlying libraries (being performant static languages) but it will be hard to serve as exploratory frontend like the previous due to lacking interactivity. In contrast Julia can fulfill both the role of the underlying and the frontend language.

Re: Mastering Nim – now available on Amazon

#87
post #43

Earlier quoted context omitted.

I totally agree, Nim is great but it really needs more traction. I'm developing a web framework for Nim with batteries included (an ORM, for one), Nexus: https://github.com/jfilby/nexus

Do you have a Discord or anything? I'm interested in helping, I love Django and I would love to help any way I can.

There's no Discord yet, just GitHub issues. Here's an issue to track this request: https://github.com/jfilby/nexus/issues/14

I'll email you regarding what/how to help.

Re: Mastering Nim – now available on Amazon

#88
post #52

Earlier quoted context omitted.

thats exactly how I feel when it comes to web frameworks. nothing else has anything good enough to give up all the nice toys elixir gives me. haskell's types are cool vuetify makes me consider nuxt but only elixir has otp, immutable data structures, intercluseter message passing, channels, good performance, ease of use and descent ecosystem out of the box. rust is the only other new language Im looking at but for thi…

Elixir is indeed the most loved web framework according to the latest StackOverflow survey. I'll be looking to Elixir for ideas for Nexus (web framework).

I meant Phoenix, which is built on Elixir.

Re: Mastering Nim – now available on Amazon

#90

Earlier quoted context omitted.

What class of languages are those?

script style languages specifically designed with modern concepts and to be highly performant. V8 is likely the fastest interpreter (javascript) for a script style language but these languages should be a step above and beyond v8 in terms of performance.

Nim is not a "script style language". By default it compiles to C, and the generated C sources are then compiled with gcc or clang, etc.

As it says on nim-lang.org, "Nim is a statically typed compiled systems programming language".

Post reply on HN