Design Q: Why was result chosen? Why not re-use return?

2024-06-20 Thread Calonger
>From Delfi

Nim version 2.0.6 released

2024-06-20 Thread PMunch
The odd numbers are used for dev versions

Nim version 2.0.6 released

2024-06-20 Thread minesquar
more info about version number can be found at nim SDK : lib/system/compilation.nim const NimMajor* {.intdefine.}: int = 2 ## is the major number of Nim's version. Example: ## ``` ## when (NimMajor, NimMinor, NimPatch) >= (1, 3, 1): discard #

Design Q: Why was result chosen? Why not re-use return?

2024-06-20 Thread PMunch
Probably just ambiguity. Consider this: proc test(x: int): string = if x < 100: result = "Number is small" result = if x < 10: "Number is very small" else: result if result.len == 0: return "Number is pretty big" Ru

Design Q: Why was result chosen? Why not re-use return?

2024-06-20 Thread mig
Why was `result` chosen over overloading the `return` keyword to act as a variable? e.g. proc foo(): int = let x = 3 return = x*x Run vs. proc foo(): int = let x = 3 result = x*x Run

Nim version 2.0.6 released

2024-06-20 Thread tocariimaa
> The reason for this many commits in this release is that this is planned as > the last 2.0.x release before Nim 2.2 No 2.1.x branch?

Nim version 2.0.6 released

2024-06-20 Thread mig
Can you expand on: > NOTE: If your program uses threads (--threads:on became the default in the > 2.0.x line) please also use the -d:useMalloc switch. This problem will be > fixed in a future release, sorry for the inconvenience. What is this issue here? Does this affect 2.0.2, 2.0.4, or just 2

Nim ask for the Aptos Blockchain, nimAptos

2024-06-20 Thread Cnerd
Thank you for the feedback, I'll look into it and implement a fix immediately.

Nim ask for the Aptos Blockchain, nimAptos

2024-06-20 Thread demotomohiro
I just skimed your code and looks like std/random module is used for cryptographic purposes in `randomSeed` proc: Please read:

Conversion from apointer to a seq

2024-06-20 Thread PMunch
> Is it because the original sequence, once dereferenced, is copied to "var > arr", hence "cols" is not added to it but to a copy which is deleted once the > proc returns? Yup, spot on

Nim ask for the Aptos Blockchain, nimAptos

2024-06-20 Thread Cnerd
I present to you folks, after a year of working on this project. . This is Nim's sdk for the Aptos Blockchain. Also accompanying this project is which is implementation of binary canonical serialization in Nim. BCS is great

Conversion from apointer to a seq

2024-06-20 Thread Alogani
Good question, I don't remember any cases. So, let's just say this is skill issue on my part ;-) and that result variable can be used and abused (i see no reported issues about it)

Conversion from apointer to a seq

2024-06-20 Thread Alogani
Hello @phoenix27, Sorry to be straightforward, but you are doing all wrong ! ;-) If I'm not mistaken, the seq object looks like this () : type NimSeqPayload[T] = object

Conversion from apointer to a seq

2024-06-20 Thread ElegantBeef
> I have found the result variable it a little "touchy" sometimes. In what way?

Conversion from apointer to a seq

2024-06-20 Thread phoenix27
type TRow = seq[string] TRows = seq[TRow] proc dbGetRowsCb(arr: pointer; colCount: int32; values, columns: cstringArray): int32 {.cdecl.} = var cols:TRow for i in 0..

Openziti (zero trust networking)

2024-06-20 Thread PMunch
I would recommend Futhark as well. Manual wrapping is tricky to get right even if you know C, and c2nim is fairly unmaintained and can create some bad results on certain inputs (granted for a header you might be fine). To put it like this, I wrote Futhark because I was tired of wrestling with ma

Oh threadpool, my threadpool

2024-06-20 Thread LokeX
> What do you mean? I don't know what I mean anymore. I tried this though: import taskpools,cpuinfo template taskPoolsAs(pool,codeBlock:untyped) = var pool = Taskpool.new(num_threads = countProcessors()) codeBlock pool.syncAll pool.shutdown proc m

Nexalyn 테스트 ➤ 응용, 효과, 경험 및 평가 2024

2024-06-20 Thread nexalyn
Nexalyn은 발기 및 효능 문제를 해결하기 위한 제품입니다. Nexalyn 제조업체는 젤이 발기를 강화하고 성감대에 대한 에로틱한 접촉이나 접촉을 더욱 강하게 느끼고 성욕을 증가시키는 데 도움이 된다고 말합니다. 제조업체에 따르면 젤을 사용하면 더 많은 성적 경험, 테스토스테론 생산 증가, 정자의 질 향상 및 더 강한 사정이 가능하다고 합니다. Nexalyn 그러면 섹스에 대한 욕구가 다시 증가하고 전반적인 연애 생활이 향상됩니다. 우리는 제조사의 약속이 지켜지고 있는지 알고 싶었고, 그에 따라 Nexalyn을 시험해

En ärlig recension av Nexalyn

2024-06-20 Thread NexalynDanmarkPrisIn
Nexalyn er et produkt, der er beregnet til at eliminere erektions- og potensproblemer. Producenten oplyser, at gelen styrker erektionen og hjælper med at mærke erotisk berøring eller berøring af erogene områder stærkere og til at øge libido. Ifølge producenten er mere seksuel erfaring, øget tes

Openziti (zero trust networking)

2024-06-20 Thread firyx
Hey Clonk, thanks for the tips!!! `futhark` looks like the thing to try first. This opened the whole universe for me :) Now I need to learn how do I statically include OpenZiti C lib into Nim executable.

Nature's Leaf CBD Gummies Reviews

2024-06-20 Thread Boruto026
Nature’s Leaf CBD Gummies THC Content: Nature’s Leaf CBD Gummies contain under 0.3% THC, consenting to government guidelines in the U.S. Nature's Leaf CBD GummiesNature’s Leaf CBD Gummies can be purchased directly from the power s

Can I use OpenACC pragma in nim?

2024-06-20 Thread physicphy
import strformat {.emit:""" #include "openacc.h" """.} const num = 512 type DataSeq = ref object x, y, z: seq[cdouble] Data[N:static[int]] = object x, y, z: ref array[N, cdouble] proc newDataSeq(N: static[int], T:ty

https://www.facebook.com/My.Natures.Leaf.CBD.Gummies.Official/

2024-06-20 Thread kofjof
can be compelling. This post will help in clarifying this and give arrangements to the questions t (ACT Presently & Spare) Press Here to Purchase Nature’s Leaf CBD Gummies From The Official Websit Nature’s Leaf CBD Gummies Surveys:

Openziti (zero trust networking)

2024-06-20 Thread Clonk
Hi, C FFI is very easy in Nim. There is essemtially 3 way of doing it : * Manually wrap the thing you need. * Use [c2nim](https://github.com/nim-lang/c2nim) to generate a starting point for your bindings and work from there * Use [futhark](https://github.com/PMunch/futhark) to generate bin

Nim version 2.0.6 released

2024-06-20 Thread Yelena
Thanks for sharing this helpful insights.

Openziti (zero trust networking)

2024-06-20 Thread firyx
Hi, I'm new to Nim. I'm developing a multi-platform desktop app (Windows/Linux/Mac) that would be running at my clients' PCs and I'm considering to connect to external servers (under my control) using zero trust networking via OpenZiti from inside my app: * *

Vitamin DEE Gummies South Africa - A Extraordinary Power Booster For Mens (Adults)

2024-06-20 Thread vitamindeezaofficial
Buy Now Official website:- Other Official Facebook:- Main Blogs:-

Iterators dont inline

2024-06-20 Thread Araq
Who knows what you are measuring.