Oh threadpool, my threadpool

2024-06-17 Thread Araq
If it runs "without one line code modify", that is probably why. arc/orc needs different annotations and things like `.shallow` or `shallowCopy` are not supported, you need to `move` things around, for example.

Oh threadpool, my threadpool

2024-06-17 Thread slangmgh
I have an program with 50k lines source code, it is cpu extensive, and it run fine with refc. The program can compile with arc/orc without one line code modify, but run very slowly.

Introducing an async library inspired by Go in Nim

2024-06-17 Thread ingo
A beautiful fiber that threads and yarn are produced from is Silk, Seta in Interlingua SetaFile, SetaSoccet SilkFile, SilkSoccet

https://www.facebook.com/GetUltraAirCooler/

2024-06-17 Thread Ultracoolerusa
Ultra Air Cooler And staying cool and wet helps you to be focused and feel at ease in wearing out your every day ordinary. It also will increase your productivity at your work, agree with me no person can give attention to their mission in a warm climate. Ultra air cooler is what you need to mai

Oh threadpool, my threadpool

2024-06-17 Thread LokeX
> Hyperbole, but I can see where you're coming from. Thanks - so any chance for a rescue attempt?

Oh threadpool, my threadpool

2024-06-17 Thread Araq
It is arc/orc only.

Oh threadpool, my threadpool

2024-06-17 Thread slangmgh
Sorry, Is malebolgia support refc or arc/orc only?

Oh threadpool, my threadpool

2024-06-17 Thread LokeX
> Why do you think Malebolgia is 'very very bad' compared to thredpool ? Because it doesn't have an intuitive bone in its body...

Go through siblings in HTML

2024-06-17 Thread EnteryName
I did something similar, saving the element in a variable while iterating over all elements using the items iterator.

Oh threadpool, my threadpool

2024-06-17 Thread Clonk
* Why do you think Malebolgia is 'very very bad' compared to thredpool ? * There is

Oh threadpool, my threadpool

2024-06-17 Thread LokeX
Actually, when compared to the threadpool solution, it's not just bad: it's really, really bad. Threads don't feel like first class citizens - why is that? I wonder...

Introducing an async library inspired by Go in Nim

2024-06-17 Thread Araq
N:M scheduling was done long before Go was invented and in Java land these were called "green threads".

Oh threadpool, my threadpool

2024-06-17 Thread Araq
import malebolgia, malebolgia / ticketlocks proc move*(hypothetical:Hypothetic,dice:openArray[int]):Move = var flowMoves = initTicketLock[seq[Move]]() var m = createMaster() m.awaitAll: for pieceNr,fromSquare in hypothetical.pieces: if fromSquare !=

Oh threadpool, my threadpool

2024-06-17 Thread Niminem
Agreed, and I have the same question

Oh threadpool, my threadpool

2024-06-17 Thread LokeX
I guess this is for Arraq: Threadpool has been deprecated, but it's such a clever and handy api. It allows me to write something like this: proc move*(hypothetical:Hypothetic,dice:openArray[int]):Move = var flowMoves:seq[FlowVar[Move]] for pieceNr,fromSquare in hypotheti

Go through siblings in HTML

2024-06-17 Thread Araq
Remember the parent during traversal, it's not stored in the tree as it would be redundant.

Introducing an async library inspired by Go in Nim

2024-06-17 Thread Alogani
However, Golang developers justify it by saying Goroutines are not alike Coroutines. (I agree the name is marketing one with Go + Routines). They don't really define Goroutines, but it is a lightweight thread run inside an Os Thread. So it is executing more or less in parrallel, which is the onl

Go through siblings in HTML

2024-06-17 Thread EnteryName
I'm using the standard xmltree and htmlparser, and I'm trying to iterate over each children of a parent, however I am not able to find a suitable method to do so.

Introducing an async library inspired by Go in Nim

2024-06-17 Thread Araq
The name "goroutine" itself was just a marketing gag. A dozen of terms like "coroutine", "fiber", "pico-thread", "process" were available. The project should be called "NimFibers" or "Nibers" or "Fibim" or something like that.

mm:sharedOrc

2024-06-17 Thread Araq
Well it depends on the overhead they introduce and how good the tooling (sanitizers, custom annotations for static tools?) becomes at detecting data races. Swift, for example started with what is basically `mm:atomicArc` and introduces isolation too, to prevent data races at compile-time:

Introducing an async library inspired by Go in Nim

2024-06-17 Thread Alogani
Hi ITwrx, Thanks for the appreciation ! I think you are right in your suggestion, NimGo, although short, is quite a confusing name. I prefer NimGoroutines. I created an issue for this to let me time to think about it: And I will certainly change the

Introducing an async library inspired by Go in Nim

2024-06-17 Thread ITwrx
Cool project, but i don't love the name. It's not specific enough and IMHO, "NimGo" would be for something that implements, or interfaces/converts to/from, the whole Go lang in some way, not for a project that implements some specific Go feature, or feature set, in Nim. I think it would be best

mm:sharedOrc

2024-06-17 Thread didlybom
Is the plan to eventually replace - -:arc with - -mm:atomicArc (hopefully by renaming “atomicArc” to just “arc”) and, if someone implements sharedOrc, to have it replace regular orc as well?

Realtime thread in Nim (SCHED_FIFO) in Linux

2024-06-17 Thread Clonk
> Maybe copy/paste createThread into createThreadRealtime, add scheduling and > put into Nimble package. That was my idea, yes. All you need to modify from the base proc `createThread` is a few `posix. pthread_attr_setinheritsched`, `posix. pthread_attr_setschedpolicy` etc. Another possibility

Realtime thread in Nim (SCHED_FIFO) in Linux

2024-06-17 Thread cmc
Thanks!!! Oh yes I love std/posix- the emphasis here was 'quick'. A `pthread` solution is throwaway, any more effort would have to go towards Nim threads with `SCHED_FIFO`. Maybe copy/paste `createThread` into `createThreadRealtime`, add scheduling and put into Nimble package. But I don't know

Nim version 2.0.6 released

2024-06-17 Thread miran
Two months after the last release, here is Nim 2.0.6, and it is a huge one: We recommend everyone to upgrade to it.

https://www.facebook.com/GlycensNervesAid/

2024-06-17 Thread glycensnerves
Glycens NervesAid Glycens NervesAid is formulated with herbal, non-GMO, and non-dependancy-forming factors, ensuring you obtain a herbal and easy product. As such, it's miles normally taken into consideration safe for maximum clients. However, as with every complement, it is recommended to consu

Realtime thread in Nim (SCHED_FIFO) in Linux

2024-06-17 Thread Clonk
All the functions you use are in std/posix so you can implement it in pure Nim. You could also use `createThread` as a starting point which already has a pthread_attr struct in usage :

Smart hemp oil Australia: Game-Changer for Human's Health

2024-06-17 Thread LisaJBeran
Smart hemp oil Australia: Game-Changer for Human's Health Presentation In the steadily developing universe of wellbeing and health, a rising star has arisen: smart hemp oil. This regular item has accumulated significant attention for its possible advantages and flexibility. Whether you're curiou

Smart hemp oil AUs.& NZ: Users Satisfaction! Read Experience

2024-06-17 Thread MaryMNash
Smart hemp oil AUs.& NZ: Users Satisfaction! Read Experience Thing Name — Smart hemp oil Key Benefit — Further Help from bother Piece — Standard Normal Compound Unconstrained impacts — Na Rating: — ⭐ Avaliable — On the web ➲➲ Official Website ➲➲ Click Here ➲➲ Huge Discount Related Articl

Realtime thread in Nim (SCHED_FIFO) in Linux

2024-06-17 Thread cmc
Okay so I got myself a a quick-and-dirty interim quick fix that works... I noticed I could just compile the C example into Nim and run it, getting a `runRealtime` proc that I can just feed a callback to. Primitive! But does work! I found you can use proper Nim threads for everything that isn't r

how can be compile nim by nvc compiler?

2024-06-17 Thread Araq
It's just `cc:clang` with an appropriate `clang.exe = "..."` entry in your `nim.cfg`. I think.

https://www.facebook.com/Official.Alpha.Labs.CBD.Gummies/

2024-06-17 Thread Yugito026
Alpha Labs CBD Gummies Labs CBD GummiesAssuming you are looking for disquiet help or alleviation from distress or just have to additionally foster your overall thriving CBD Gummis could be a surprising improvement to your regular

mm:sharedOrc

2024-06-17 Thread Isofruit
In addition to what araq wrote the following scenarios: You get user-input via a GUI widget and want to send that to another thread to do some computation. You are not the code that is generating the data. Therefore, you **can not** isolate what comes out of the widget, for all you know it is s

how can be compile nim by nvc compiler?

2024-06-17 Thread physicphy
i tried this nim c --cc:nvc -r ~/workspace/nim_test/nvc_test.nim Run then i met this error how can i use nvc?? command line(1, 2) Error: unknown C compiler: 'nvc'. Available options are: gcc, switch_gcc, llvm_gcc, clang, bcc, vcc, tcc, env, icl, icc, cla

mm:sharedOrc

2024-06-17 Thread Araq
Imagine a webservice that reads a `.cfg` file at startup. The configuration is readonly after startup and contains a `JsonNode` part. Can you send an "isolated" configuration to your threads? No, it's shared. You can send a copy, sure. But that is not as convenient and it fails to work when you

mm:sharedOrc

2024-06-17 Thread Clonk
> I know you all like "isolation" but I find it lacking and it's hardly used > out there, afaict. Could you (or someone else) expand on that - and that'd be a great blog post as well - on what / why isolation is lacking ? What problem does --mm:atomicArc / --mm:sharedOrc solve and what do they

It is annoying that the template doesn't resolve the symbol at template caller.

2024-06-17 Thread sls1005
You need to give it the symbol (by passing it as an argument). template t2() = template t1(r: untyped) = r.add("hello") var res = "" t1(res) echo res proc p1() = t2() when isMainModule: p1() Run

Realtime thread in Nim (SCHED_FIFO) in Linux

2024-06-17 Thread cmc
I'm looking to create a realtime thread in Nim- Linux-only is fine for now. In C, [according to the LInux foundation](https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/application_base), creating a realtime thread looks like this (shortened C-like pseudocode):

https://www.facebook.com/VitaminDEEGummiesInSouthAfrica/

2024-06-17 Thread vitamindeezacost
Facebook@Facebook

Vitamin DEE Gummies South Africa: Benefits, Price & Buy?

2024-06-17 Thread vitamindeezacost
Facebook@Facebook

https://www.facebook.com/GetNervesAid/

2024-06-17 Thread nervesaidus
NervesAid > In this in-intensity exploration, we delve into this complement’s mechanisms > of motion, benefits, and trendy effectiveness, losing mild on its > transformative capacity in assuaging nerve ache, enhancing mobility, boosting > immune system fitness, raising energy degrees, and impar

It is annoying that the template doesn't resolve the symbol at template caller.

2024-06-17 Thread sls1005
> before the macro substitution. I think it happens _after_ the macro substitution, in which `i` has been _gensym_ 'd. This later caused `i` to be unaccessible with its original name (when `fmt` resolves). This macro/template thing seems to be some kind of FIFO. And the secret is to use the _s