Chame 0.14.0 released

2024-02-22 Thread WashingtonOsman
I recently utilized EssayPro's case study writing service for a sociology project focusing on urban development issues, and I must say, I was thoroughly impressed. The writer didn't just provide a superficial analysis; they delved deep into the

How do Nim exceptions work?

2024-02-22 Thread AllenJayda
thanks for the explanation))

Beginner question: mixing types in a sequence

2024-02-22 Thread MisterDrgn
Hi, total newcomer here, so apologies if this isn't a clear question. As a basic experiment, I'm thinking about how to represent a graph, in which I have two types of objects: Branch: This object has a list of children. Leaf: This object is an endpoint with no children. This means that each bra

Do not understand the error when trying to add to seq inside loop

2024-02-22 Thread thecryptogeek
That's really sad to hear and I hope a way can be found to improve these compiler errors. I say this because the 5 people I have turned on to Nim all loved it at first, but all left it because they didn't understand the compiler errors and therefore ended up getting stuck. 1 went to Rust, 1 to

Fused multiply-add instruction

2024-02-22 Thread dlesnoff
Thanks for the additional information concerning CPUs and your opinion on the question. I do not think that `-march=native` is mandatory for FMAs. The JS backend is problematic, we probably have to either emulate the FMA or replace it with an axpy. I would go the first route. I have opened an

Fused multiply-add instruction

2024-02-22 Thread awr1
there are many (recent!) x86 and ARM processors that do not support true non-rounded FMAs, e.g. the Celerons. implicitly setting `-march=mative` would also inherently makes many nim programs non-portable by design which is an assumption we really do not want to make. the libc impl does implicitl

How to use Weave isReady?

2024-02-22 Thread ggibson
To put a bow on this thread for now. C++ speed parity achieved! I've rewritten my code without any threadpool library, relying only on creating 1 thread per core requested, and having those threads block/wait using Channels of a simple enum type `[Ready, Begin, Quit]`. The main host thread then

Buildroot host-nim package?

2024-02-22 Thread shirleyquirk
my buildroot is pretty rudimentary but i came up with: # # Nim # NIM_VERSION_MAJOR = 2.0 NIM_VERS

Fused multiply-add instruction

2024-02-22 Thread dlesnoff
I wonder how one would use the fused multiply-add intrinsic defined by the IEEE754-2008 specification in Nim. Right now, I only found these instructions (slightly modified) on a nine-year old Github gist: {.passC: "-march=native".} proc fma(x,y,z: float32): float32 {.impor

Tom Green Sugar Defender: Reviews, Benefits, Price & Buy Now !

2024-02-22 Thread SandrIsmael
╰┈➤Official Website:- ╰┈➤Facebook Pages:- Tom Green Sugar Defender:The necessary mineral chromium lowers insulin resistance, promotes

How to use Weave isReady?

2024-02-22 Thread ggibson
Interestingly, in a test that runs many work items for a total of about 10 seconds with 1 thread, my Nim implementation is only about 1% slower than the C++ one, if that even statistically holds up. However, scaling this to 4 threads suddenly my Nim implementation is 2x slower than C++. Investig

Spawning a new terminal from a nim program

2024-02-22 Thread janAkali
You need to open new terminal with your command as an argument. I don't know much about MacOS, but quick search returns this command from [stackexchange](https://superuser.com/questions/174576/opening-a-new-terminal-from-the-command-line-and-running-a-command-on-mac-os-x) osascript

Spawning a new terminal from a nim program

2024-02-22 Thread JohnLuck
Got it to work, thank you!

Spawning a new terminal from a nim program

2024-02-22 Thread JohnLuck
I have 2 programs, a server and a client and I want to spawn both of them from a single nim executable. I can spawn them using startProcess, but then they don't start in their own new terminal windows. It would be great for debugging if I could spawn them in new terminal windows, is there a way