Strange race condition on Windows

2024-04-07 Thread firq
If you install Nim using Homebrew, you'll get version 2.0.2 compiled for Arm.

Slow image processing with pixie

2024-03-02 Thread firq
Hi. I wrote tpix. I haven't updated tpix in a long time for two reasons: the first is that I bought a Macbook Air and I have mostly been using iTerm2 instead of Kitty since then, and the second is that tpix was more or less feature complete as far as I was concerned (though I have been consideri

Advent of Nim 2022

2022-12-02 Thread firq
I'll post my solutions at

Problem with strformat and templates

2022-09-16 Thread firq
Ok, will do. After doing some further testing I discovered that you can at least work around this issue by using a temporary variable: import strformat template myTemplate(s: string) = let s2 = s echo s2 echo s2 proc main() = myTemplate fmt"

Problem with strformat and templates

2022-09-16 Thread firq
Hey guys. I've encountered a problem when using `strformat` which I can't figure out. If I have a template that accepts a string and I use that string twice in the template body, I get a C compiler error, but only if the string is generated using the `fmt""` macro. Here's a minimal example: