How to catch/ignore exception when iterating over a CSV file with CsvParser?

2023-02-10 Thread cblake
You may be able to re-structure your code like: import std/[os, syncio, streams, strutils, parsecsv] var x: CsvParser open(x, newFileStream(stdin), paramStr(1)) while true: try: if not readRow(x): break if len(x.row) == 17: echo join(x.row,

How to catch/ignore exception when iterating over a CSV file with CsvParser?

2023-02-10 Thread rmcdermo
I'm attempting to process a very large CSV file (300GB) and about 66GB into the file raises an raiseEInvalidCsv/CsvError exception and the program exits. I'd like to catch this error, ignore it and continue processing the next row. I tried to catch/discard it but that doesn't work:

Trouble compiling libraries with cpp header

2023-02-10 Thread francisl
Hi, I have a project I started 2 years ago to create a web view binding to and updated version of 'webview'. The compilation was working fine, but when I try update the code I start having issues. * while using the nimble command to run the example it wa

what's with deepCopy?

2023-02-10 Thread Hlaaftana
No, you have to redefine it in a way that recurses. proc deepCopy[T: ptr | ref](dst: var T, src: T) = deepCopy(dst[], src[]) proc deepCopy[T: Ordinal | string | cstring | proc | set](dst: var T, src: T) = dst = src proc deepCopy[I, T](dst: var array[I, T

`-d:nimPreviewSlimSystem` reduces the execution time of simple nimscript programs to a half

2023-02-10 Thread cblake
At least for me, timings around a few 10s of milliseconds tend to be fairly polluted by system noise. So, I reproduced your result like this: touch j.nims tim "nim e j.nims" "nim e -d:nimPreviewSlimSystem j.nims" 0.055969 +- 0.34nim e j.nims 0.026807 +- 0.71

what's with deepCopy?

2023-02-10 Thread sls1005
How about proc myDeepCopy[T](src: ref T): ref T = new(result) `=copy`(result[], src[]) proc myDeepCopy[T](dst, src: ref T) = `=copy`(dst[], src[]) Run

Nim for Beginners video series discussion thread

2023-02-10 Thread dlesnoff
I am reading the Nimib. I am very surprised you put the HTML in a Pastebin and did not publish it on your personal website or in a Github repository. One very small detail: Valgrind is the name of a software suite but is also the name of the memory profiler tool. The performance profiler you act

Great Results Keto ACV GummiesBest Weight Loss Support Read Before

2023-02-10 Thread JosRadolph
Great Results Keto ACV Gummies are delectable natural enhancements that help weight reduction through fat-consuming ketosis. The chewy candies dissolve fat quicker without abstaining from excessive food intake or normal activity.The equation upholds your body in entering a ketosis state, which m

The blockchain game in 2023

2023-02-10 Thread Khalibogi
Fairy Cat is an encrypted farming system game whose player base is growing rapidly. Players can upgrade cat pets through different adventures to get token rewards. There are five levels of cat pets. As the pet of the player, cats can be used to fight, upgrade and collect kittens to synthesize ca

`-d:nimPreviewSlimSystem` reduces the execution time of simple nimscript programs to a half

2023-02-10 Thread ringabout
A small speedup trick for simple nimscript programs. On my PC, echo "Hello, World" Run `time nim e test.nims` real0m0.104s user0m0.103s sys 0m0.001s Run `time nim e -d:nimPreviewSlimSystem test.nims` real