experimental: "inferGenericTypes" -- unknown experimental feature

2023-11-05 Thread icebergg
That works, thank you

NIR

2023-11-05 Thread tommo
4s for 250k Loc? What's the spec of your machine? With my M1 Max, recompiling my current test, 16k Loc of Nim, for a single value change in the user-end code, costs 4.2s. BTW, I also have a DLL based hot-reload workflow, which splits the codebase into smaller modules and separates "interface" an

Error running nim postgresql client os macos

2023-11-05 Thread geohuz
Thanks @treeform! I fixed it in the exact same way as your mentioned.

Detect replacement/binary characters?

2023-11-05 Thread stbalbach
Excellent, thank you.

experimental: "inferGenericTypes" -- unknown experimental feature

2023-11-05 Thread janAkali
This experimental feature was added after the Nim 2.0 release, so make sure you have the latest compiler with `nim -v` (devel branch is at v2.1.1 right now). You will have to compile it from source. If you have a [choosenim](https://github.com/dom96/choosenim) installed - just run `choosenim in

NIR

2023-11-05 Thread jmgomez
> For an enterprise to even start to consider using Nim, Nim must have the > capability to efficiently work with a code base of significant size. This has > a couple of implications. You can already achieve that, there are various companies using Nim. Plus I doubt any "enterprise" app is larger

Error running nim postgresql client os macos

2023-11-05 Thread treeform
I ran into the same thing. Except of sym-linking it to `/usr/lib/libpq.5.dylib` a protected folder I just sym-link it right next to where I run the executable in the same folder.

Best way to architect a Nim dll/so that is used by other Nim dll/so/executables

2023-11-05 Thread bbbscarter
Thanks! Yes, Genny looks great (as do all the other Treeform packages actually - really impressive stuff!) My needs are currently fairly simple, and I'm trying to minimise dependencies/complexity; but I'll be taking a proper look at Genny in the near future. Thanks!

NIR

2023-11-05 Thread lou15b
My perspective, from a few decades in the SW industry. For an enterprise to _even start_ to consider using Nim, Nim must have the capability to efficiently work with a code base of significant size. This has a couple of implications. First, IC is a mandatory first step. The mandatory second st

Detect replacement/binary characters?

2023-11-05 Thread jrfondren
import unicode var s = "hello" s.add cast[char](247) # check-evading s.add cast[char](205) s.add cast[char](257) s.add "there" echo s echo s.validateUtf8 # not -1 for r in s.utf8: if r.validateU

experimental: "inferGenericTypes" -- unknown experimental feature

2023-11-05 Thread icebergg
As in the title, do I need to enable some other option or use a particular version of the compiler for `{.experimental: "inferGenericTypes".}` to work? It gets rejected for me with `unknown experimental feature`. Thanks!

Detect replacement/binary characters?

2023-11-05 Thread stbalbach
Replacement characters are those black diamonds with a ? in the middle. They are hard to detect. This has info how to do it in a bash script. Is there a way to do it in Nim? Thanks. The repl

Error running nim postgresql client os macos

2023-11-05 Thread geohuz
Getting the following error: dlopen(libpq.dylib, 0x0002): tried: 'libpq.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibpq.dylib' (no such file), '/usr/lib/libpq.dylib' (no such file, not in dyld cache), 'libpq.dylib' (no such file) could not load: libpq.dylib

How to pass an optional table as an argument to a function?

2023-11-05 Thread TKD
Thanks @araq, @cblake and @Isofruit, using the optional named table solves the problem as does the 2-procs solution.

Figuro updates: Scrollpane and more

2023-11-05 Thread mantielero
Thanks a lot for the clarifications.