What makes the nim compiler slow

2021-07-26 Thread arnetheduck
To give a bit of background, we've seen similar profiling results in applications we make, and fixing it comes down to two things: * avoid large stack allocations - these severely mess up the stack scanning * avoid allocating lots and lots of short-lived objects - this is a classic that GC l

What makes the nim compiler slow

2021-07-26 Thread arnetheduck
1. Looking forward to that! Though this comment highlights a few important points - ie how writing code for ORC/ARC and normal GC is different meaning lots of code that's been optimized for the latter will have to change to make the transition, and how difficult it is to write general-purpose

How I can help fix cross compilation?

2021-07-26 Thread wag
In Nim's docs declared cross compilation from Linux to Windows with Mingw toolchain But this not work, returned linking error Hint: used config file '/etc/nim/nim.cfg' [Conf] Hint: used config file '/etc/n

Youtube "Software Drag Racing" to count primes in Nim

2021-07-26 Thread cblake
> as fair as possible with all the variations in code and languages they have > to make fit into the definition I am only replying for clarity. I doubt we disagree at all. Mostly I think "sieve or iteration/list or count" is just ambiguity poison causing unnecessary confusion. Pick 1 well defin

Youtube "Software Drag Racing" to count primes in Nim

2021-07-26 Thread GordonBGood
@cblake: > FWIW, time - microsec/pass, not rate - passes/5sec - is better to report... For sieve comparisons and similar to your preference in putting something related to time on top, I actually like "CPU clock cycles per culling/marking operation" as that then allows one to compare "base", "w

parallel: invalid control flow for 'parallel'

2021-07-26 Thread veksha
Hello. I can compile the following code with gc:refc but not with gc:orc. Am I missing something? I had to use **n.unsafeaddr** for reasons unknown to me. who can shed some light on this for me? must be something special going on with for loop variable **n**. #[ nim c -r --gc:

parallel: invalid control flow for 'parallel'

2021-07-26 Thread veksha
for your information: nim 1.2.0 compiles this with ORC without errors. can this be a bug?

develop nim in SpaceVim

2021-07-26 Thread JamesMarlow
I know guys who are well versed in the development of internet things , it is also useful for your business, it will probably be useful for you to know the companies where professional people are engaged in this type of development. It is very

Mac GUI

2021-07-26 Thread mateli
"I really wish some one would just wrap Metal Graphics API." There are wrappers that allow OpenGL and Vulkan that are used for cross platform game programming. I know for sure that ImGui supports OS X so it should be viable for that use case. It is obviously not a "native" UI but I would persona

parallel: invalid control flow for 'parallel'

2021-07-26 Thread veksha
Interesting : #[ nim c -r --gc:refc --threads:on sometest nim c -r --gc:orc --threads:on sometest ]# {.experimental.} import json, threadpool proc job(node: ptr JsonNode) = #echo node let key1 = node[]["key"] # Error: invalid control

Buy punisher xtc pills

2021-07-26 Thread buyecstacy
Buy Punisher XTC Pills Online. Blue Punisher 300MG DUTCH IMPORT XTC. Place your orders directly online now Link:/

String formatting a number with Javascript backend

2021-07-26 Thread KerryC
I've encountered an error when trying to use `strformat` with a number in the Javascript backend. It's not a show stopper as there is another way. But it is really bugging me that I don't understand why I am encountering a problem and I would prefer to use the `strformat` approach. If I have th

String formatting a number with Javascript backend

2021-07-26 Thread juancarlospaco
Use `string` instead of `cstring`, `strformat` can take `string`, only use `cstring` on the outer borders and if you really need it.

Getting Started with googleapi module

2021-07-26 Thread treeform
The video you posted uses python, which has google-made-API for its services. They maintain the API and support every feature they have. They have hundreds of programmers maintaining the python google api. While the googleapi module in Nim is made by me, and used by practically no one except me

String formatting a number with Javascript backend

2021-07-26 Thread KerryC
Thank you for your reply! I'm still confused though. I can do this and `strformat` seems to have no issue with `cstring` import jsffi, strformat, jsconsole var obj = JsObject{field: "1".cstring} s = obj.field.to(cstring) var f = fmt"{s} is a string".cst