How to sort dynamically allocated wordlists -- Sorting UncheckedArray type

2024-08-16 Thread Araq
Use `system.toOpenArray(arr, 0, myLength-1)` which can construct an open array from an unchecked array.

How to sort dynamically allocated wordlists -- Sorting UncheckedArray type

2024-08-16 Thread DMisener
Background: I have a 3,000,000 entry unsorted **word2vec** model (_each word has a 300 floating point vector_). I have to sort this wordlist in alphabetic order and also reorder the associated vectors to allow binary search lookups of _word - > vector_ The problem is that I can't seem to write

Created my first binding! I am impressed!

2024-08-16 Thread giaco
Congrats! The hard part is writing idiomatic wrapper, handling memory and stuff. The low level wrapping is mostly automatic today with c2nim and futhark

OSError errorCode is always 0

2024-08-16 Thread mishalcz
Hello nim community, I'm playing with nim and came across a problem. I'm not sure what's wrong with my code (see below). I'm bulding cron backoff utility, which takes a command and some arguments from the user and than executes it. If the user passed wrong command, the `startProcess` raises OSE

what is the type of exception raised by malebolgia?

2024-08-16 Thread Araq
I couldn't get Nim's runtime to duplicate the precise exception type (it's missing an API for that) but I also didn't try too hard. PRs are welcome, to system.nim or Malebolgia.

Compile times normal or my fault?

2024-08-16 Thread ITwrx
lol. It sounds like you will beat me to release then. :)

BEST SCAMMED CRYPTO RECOVERY COMPANY DIGITAL HACK RECOVERY

2024-08-16 Thread stellakim8
Growing up as a poor girl raised by a single mother, I learned early on about the value of hard work and resilience. My mother, despite her limited resources, made immense sacrifices to ensure that I had the opportunity to go to school. She worked tirelessly to provide for me, always prioritizin

nimja; compiled and statically typed template engine (like twig or jinja2)

2024-08-16 Thread termer
Thanks for the improvement, it was much needed. Your library is great, I've been using it in production for a small site for years and it has always served me well.

what is the type of exception raised by malebolgia?

2024-08-16 Thread pixel
Many thanks for the prompt reply and the info. But why is malebolgia doing this (it seems a strange thing to do), and how can I get malebolgia to return the desired error type? (The ValueError that malebolgia returns in this example does contain "MyError" in its message string so if all else fa

Where to Order Smart Hemp Gummies NZ?

2024-08-16 Thread smarthempinbuy
πŸ‘‡β—Buy Now :- β—πŸ‘‡ πŸ‘‡β—Official Facebook:-β—πŸ‘‡ πŸ‘‡β—Main Blogs:-β—πŸ‘‡

what is the type of exception raised by malebolgia?

2024-08-16 Thread PMunch
It's a `ValueError`, if you put `echo getCurrentException().repr` in your "other error" branch you can see all that it contains. Unfortunately though it doesn't set your exception as the parent, so you can't cast a custom exception up through this mechanism.

what is the type of exception raised by malebolgia?

2024-08-16 Thread pixel
The malebolgia documentation says that if a spawned task raises an exception then it will be rethrown after awaitAll. But the example code given below does not seem to do this: it prints 'other error' and only when I i remove 'm.spawn' does it print 'my error'. Very likely I am misunderstanding

Fitness Keto Gummies Australia Official Website [Get Upto 60% Off] - Buy Now

2024-08-16 Thread benny892
Fitness Keto Gummies Australia Reviews Visit Now: The ketogenic diet has become more well-known in recent years due to its capacity to promote weight loss by using fat as the main source of energy. Many people are using supplements like Fitness Keto Gummies, which supports the body's transition

Notifying the dispatcher from a different (foreign) thread

2024-08-16 Thread darkestpigeon
The following setup with `AsyncEvent` seems to work. Not sure how to clean up the event properly, so used `close` and `unregister` (from the nim thread) defensively. Improvements are welcome. type Context = object refCount: int foreignRefCount: int lock: Lock

https://www.facebook.com/events/427918933389223/

2024-08-16 Thread smarthempinnzbuy
Buy Now :- Smart Hemp Gummies NZ: Smart Hemp Gummies NZ can be bought online from a power webpage by tapping on the authority interface under. You can do online shopping at the comfort of your own home by filling in the development with your nua

why Nim shows different behavior on int overflow?

2024-08-16 Thread 221V
ok, but.. there is no table of value here too.. only func description .. ok, I understand about overflow in Nim ok, so there are no ranges table in any manual/tutorial ? There is only so much you can do for readers who don't read. ;-) Run and cannot be read that what

why Nim shows different behavior on int overflow?

2024-08-16 Thread dlesnoff
The min-max values are not specific to C nor to the Nim language. They are a result of conventions for values representations (2's complement). They are usually taught in the first weeks of computer science classes. The wrapping around mechanism has some uses even though I never used it myself.

Created my first binding! I am impressed!

2024-08-16 Thread jackhftang
FYI, Nim can also inline code, though its usage is discouraged. {.emit:""" static char* hello_world() { return "Hello, World!"; } """.} proc hello_world(): cstring {.importc: "hello_world".} echo hello_world() Run

Nexalyn 리뷰 - μ„±λΆ„, 가격, 효과, 사기 λ˜λŠ” 합법성 읽기 ?

2024-08-16 Thread nexalynkoreanp
Nexalyn 남성듀은 λ‚˜μ΄κ°€ λ“€λ©΄μ„œ μ •μž μˆ˜κ°€ κ°μ†Œν•œλ‹€λŠ” 사싀을 μ•Œκ²Œ 되면 λ‚™λ‹΄ν•˜κΈ° μ‹œμž‘ν•©λ‹ˆλ‹€. μ¦κ°€λœ μ •μž μˆ˜λŠ” λͺ¨λ“  λ‚¨μ„±μ˜ 더 μ’‹κ³  만쑱슀러운 μ„±μƒν™œμ„ κ²°μ •ν•˜λŠ” 데 큰 역할을 ν•©λ‹ˆλ‹€. Nexalyn μ •μžλŠ” 기본적으둜 λ‚¨μ„±μ˜ 신체 λ‚΄ μ •μ•‘ μˆ˜μ€€μ„ μ¦κ°€μ‹œν‚€λŠ” 역할을 ν•©λ‹ˆλ‹€. λ˜ν•œ κ°•λ ¬ν•œ 였λ₯΄κ°€μ¦˜μ— 역할을 ν•©λ‹ˆλ‹€. μ •μž μˆ˜κ°€ κ°μ†Œν•˜κ³  결과적으둜 μ •μ•‘ 생산이 κ°μ†Œν•˜λ©΄ 남성은 μ μ ˆν•œ μ„±μƒν™œμ„ ν•˜λŠ” 데 λ§Žμ€ λ¬Έμ œμ— μ§λ©΄ν•˜κ²Œ λ©λ‹ˆλ‹€. Nexalyn 쒋은 발기λ₯Ό μ–»κ³  μœ μ§€ν•˜κΈ°κ°€ 맀우 μ–΄λ €μ›Œμ„œ ν•˜μ²΄μ— 톡증과 λΆ“κΈ°λ₯Ό 느끼기 μ‹œμž‘ν•  수