Nim for Beginners #26 Reference Objects

2021-09-21 Thread michy
_“Another noteworthy characteristic of this manual is that it doesn’t always tell the truth. When certain concepts of TeX are introduced informally, general rules will be stated; afterwards you will find that the rules aren’t strictly true…. The author feels that this technique of deliberate lyi

Show Nim: Pixie, a fast 2D vector graphics library we are excited to share!

2021-02-28 Thread michy
Petr Kobalicek is very responsive, when it comes to discussions about his approaches. He is an enthusiast and optimization freak and loves to share his experiences.

Show Nim: Pixie, a fast 2D vector graphics library we are excited to share!

2021-02-28 Thread michy
Comparisons show huge differences in speed between blend2d and cairo, at least for most examples: So _still a bit slower than blend2d " does not really harm. But *slower than Cairo_ is a different thing and asks for optimizations. Speed in b2d is mainly due

Show Nim: Pixie, a fast 2D vector graphics library we are excited to share!

2021-02-28 Thread michy
Great stuff! BTW: Are you aware of the blend2d-project? / I think he is the absolute winner when it comes to benchmarking.

NiGUI: Custom widgets

2021-01-14 Thread michy
Shouldn't your 'handleDrawEvent' method have the same signature as the example?

handmade hero in nim ( warning: noob)

2020-11-05 Thread michy
Question beside: The loop could be written using `let` instead of `var`. Should one really care about it at trivial places like this in order to maximize performance? Or is the compiler clever enough anyway? for y in 0 ..< globalHeight.int: for x in 0 ..< globalWidth.int:

What is Kernel32?

2020-10-30 Thread michy
Yes, a @Ward, it is a good habit to treat the source code as a source and representation of knowledge rather than to be tempted to over-clean it to something 'just working'.

Subrange check during initialisation

2020-10-29 Thread michy
This compiles and prints 0 : type DiceVal = range[1..6] var d : DiceVal echo d # -> 0 Run Obviously the 0-initialisation is not checked. Compiler bug?

Nim videos and tutorials survey

2020-10-28 Thread michy
I think generics/templates/macros are good topics for some extended treatment by videos. These topics need much more of a stepwise and gentle introduction than the official docu can give room for.

Multiline conditions

2020-10-08 Thread michy
Or even if a == "A" and b == "B" : echo "aaaHuzzah!" Run

First project with Nim: a little word search game which is also a "shooter"

2020-09-24 Thread michy
Nice project report by Intas. And very helpful answer bei Hlaaftana. Loved to read such useful stuff.

Pros vs. Cons Of Nim In The Large?

2020-09-11 Thread michy
Well written critics, thanks.

Pros vs. Cons Of Nim In The Large?

2020-09-02 Thread michy
you meant "namespaces" ?

Brainstorming ideas to improve Nim's landing page

2020-08-28 Thread michy
> Nim can bootstrap > > Translation: "The Nim compiler, library, and tools are written in Nim." Exactly. The whole documentation would benefit from more 'translations' like this. It often feels like _from language-developers for language-developers_ , which however misses the vast part of t

String interning (seen on Github) : Is it good? has anybody been using it?

2020-07-30 Thread michy
NPL? > NPL - What does NPL stand for? The Free > Dictionaryacronyms.thefreedictionary.com › ... >Acronym, Definition. NPL, > National Priorities List (US EPA). NPL, National Physical Laboratory (UK). > NPL, >Nepal (ISO Country code). NPL, Nigeria Premier ... please help