top | item 42245695

(no title)

nihil75 | 1 year ago

I don't get it. How is this different than starting new threads?

In the article example, it doesn't look like anything is returned from each parallel function call. the main loop just invokes the func for each I, and they print when done. No shared memory, no scheduling or ordering.. what's the advantage here?

In code examples, seems shared memory & scheduling are not a thing either. More like functional or chain programming - a function calls next func and passes output to it. Each loop runs independently, asynchronously from others. Reminds me of ECS model in gamedev.

That's great and all, but it doesn't solve or simplify intricacies of parallel programming so much as it circumnavigates them, right?

Is the advantage it being low-level and small?

I think the same "concept" can be done in Bash: ```for i in $(seq 1 100); do fizzbuzz $i & ; done```

discuss

order

cess11|1 year ago

What is the equivalent of Prolog facts in your Bash example? Are they as easy to add and retract as in Prolog?

nihil75|1 year ago

Are Facts used in the the Fleng fizzbuzz example?

You're probably right - I'm sure this has more features coming from Logic programming, And I'm just too hung-up on the Concurrent part of the title.