Very pleased with the result, as I am particularly planning to read large CSV
files with Nim in the near future.
Good work
I ran this snippet
from os import sleep
from random import random, randomize
from times import cpuTime
import threadpool
var chan: Channel[string]
chan.open
proc chanWaiting() {.thread.} =
let start = cpuTime()
var lastTime = cpuTime()
Hey @qqtop,
I fixed the first example above, could you try it again? Did you try importing
the second compiled module from python3? It compiles on my machine too, but
when I import the module from python3 it throws the error.
Thanks, Matic
Probably old news to you all but it appears that NIM 0.16 is in Arch repos
nowofficially supported...not AURpacman.
Maybe you have the newer python6 on Ubuntu or the .so file has a different link
name ? For me the second example compiles without error on openSuse Tumbleweed.
# The imported Python3 initialization function
proc initialize*(){.cdecl, importc: "Py_Initialize" dynlib:
Wow! I knew that Nim is fast, but SO FAST? Nice