UncheckedArray and closure issue

2024-08-17 Thread janAkali
If you are sure it's memory-safe ( I'm not πŸ˜… ) - you can cast `openArray` to `UncheckedArray` that can be captured: # Same as above but want to accept variable length element array proc newOrder2*[T](elements: var openArray[T]) = let length = elements.len var elements

UncheckedArray and closure issue

2024-08-17 Thread Araq
Start by not capturing `elements` in: (index.with_length length).sort do (a, b: int) -> int: elements[a].cmp elements[b] Run And in general it helps to know the language. For example `cast[ptr UncheckedArray[T]](cast[pointer](alloc(n * sizeof(T` should

Enabling compression on socket send/receive.

2024-08-17 Thread void09
bump. still no solution found yet

UncheckedArray and closure issue

2024-08-17 Thread DMisener
As a followup to **How to sort dynamically allocated wordlists -- Sorting UncheckedArray type** (): I am trying to use **UncheckedArray** types to support dynamic runtime dimensionality for **arrays** to avoid the overhead of **seqs**. How do I avoid the ref

How to sort dynamically allocated wordlists -- Sorting UncheckedArray type

2024-08-17 Thread DMisener
Thanks... that was very helpful. I played around with the following playground. I think I understand it. Now to integrate into production code. proc createUncheckedArray(n: int): ptr UncheckedArray[int] = cast[ptr UncheckedArray[int]](cast[pointer](alloc(n * sizeof(int

How to cite the Nim?

2024-08-17 Thread hc
Hello, What is the proper/preferred way to cite the Nim in an academic publication? Some languages suggest citing specific documents, like . Thanks!

yahttp - simple HTTP client

2024-08-17 Thread mishankov
Hi @MauroG Check out `sslContext` function argument in version 0.12.0 for providing custom SSL context

New OSX weirdness - extraneous ld warning

2024-08-17 Thread ringabout
See also fixes #22798; Duplicate libraries linker warning (i.e., '-lm') on macOS

New OSX weirdness - extraneous ld warning

2024-08-17 Thread khaledh-nim
I just came across this today. It's happening because of the multiple use of the `{.passl: "-lm".}` pragma as @matthesoundman mentioned. I was able to suppress the warning by adding this to my `nim.cfg` file: # suppress warning about duplicate "-lm" flag clang.options.linker = "

https://www.facebook.com/BloodSugarBalanceAustralia/

2024-08-17 Thread BloodBalancAus
Blood Balance Australia To summarize, Blood Balance Australia is a possible preference for humans searching for proper blood sugar help. The supplement, which has a completely unique mixture of natural components, addresses the numerous elements of maintaining appropriate glucose tiers even as

Glucovate Glycogen Support Reviews Critical REVEALED You Must Know Before Making A Purchase!!

2024-08-17 Thread wijkov
βœ… Keyword: -Glucovate Glycogen Support Glucovate Glycogen Support Bolster is fabricated in offices that comply with Great Fabricating Hones (GMP), the most noteworthy guidelines in the supplement industry. In any case, it is fundamental to note that the Nourishment and Medicate Organization (FD

Nexalyn 더 λ‚˜μ€ μ„ΉμŠ€μ˜ λΉ„κ²°? | μ—…λ°μ΄νŠΈ 2024 리뷰?

2024-08-17 Thread nexalynpriceorder
Nexalyn μ„± λ¬Έμ œλŠ” λ…Όμ˜ν•  수 μ—†λŠ” 문제 쀑 μΌλΆ€μž…λ‹ˆλ‹€. μ΄λŸ¬ν•œ μ„± λ¬Έμ œλŠ” μ˜€λŠ˜λ‚  λ§Žμ€ μ‚¬λžŒλ“€μ—κ²Œ μ£Όμš” λ¬Έμ œμ΄μ§€λ§Œ 아무도 이에 λŒ€ν•΄ μ΄μ•ΌκΈ°ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 성에 λŒ€ν•΄ μ΄μ•ΌκΈ°ν•˜λŠ” 것이 λΆ€λ„λŸ½κΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€. μ„± 건강 λ¬Έμ œλŠ” 맀우 μ‹¬κ°ν•˜κ³  λ―Όκ°ν•œ λ¬Έμ œμž…λ‹ˆλ‹€. 이 λ¬Έμ œλŠ” μ‚¬μƒν™œμ— 영ν–₯을 λ―ΈμΉ  뿐만 μ•„λ‹ˆλΌ λΆˆμ•ˆκ³Ό 슀트레슀둜 인해 직μž₯ μƒν™œμ—λ„ 영ν–₯을 λ―ΈμΉ©λ‹ˆλ‹€. Nexalyn μ„± λ¬Έμ œλŠ” μžμ‘΄κ°μ„ λ–¨μ–΄λœ¨λ¦¬κ³  λͺ¨μž„μ—μ„œ λΆˆμ•ˆκ°μ„ 느끼게 ν•  수 μžˆμŠ΅λ‹ˆλ‹€. μ„± 문제λ₯Ό κ²ͺ은 μ‚¬λžŒμ€ μƒνƒœκ°€ μ’‹μ§€ μ•Šμ•„ 관계λ₯Ό ꡬ좕할 수 μ—†μŠ΅λ‹ˆλ‹€. μ—¬μ„±λΏλ§Œ μ•„λ‹ˆ

The Genius Wave Mp3 Audio 2024/25- Don’t Buy Until You Read This Ingredients, Work

2024-08-17 Thread FeliciaKasper
The Genius Wave Mp3 Audio :- The sound record can further develop your cerebrum waves and examples as the sound contains Theta recurrence. Google Site@@:- Jimdo@@:- Read More@@:-

https://sweet-restore-glycogen-support.webflow.io/

2024-08-17 Thread faustonikolaus
Sweet Restore Glycogen Support is a dietary supplement crafted to help regulate blood sugar levels and improve glycogen storage in the body. Using a blend of natural ingredients, this supplement supports energy production, glucose management, and overall metabolic health. It’s ideal for individu