Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Cor—An object system for the Perl core

by etj (Deacon)
on Apr 21, 2022 at 08:37 UTC ( [id://11143163]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Cor—An object system for the Perl core
in thread Cor—An object system for the Perl core

When I was updating the slightly-outdated PDL::Dataflow doc recently, it occurred to me that
  • Perl is single-threaded and there are various ways to get round that, but no amazing ones
  • PDL's current multi-core functionality (which is indeed shared-memory, using POSIX threads) freezes the main thread until all the broadcasted operations are finished
  • it doesn't use the GPU at all yet
  • so long as there's only one POSIX thread running Perl, there's no reason PDL couldn't fire off other pthreads (or, in due course, GPU operations) then "await" (pun intended) / react to the completion of those in an async fashion with a suitable event loop
That would be a lot closer to proper SMP, within Perl. My limited knowledge of parallel programming suggests that it's hard to reason about unless you have a "main" thread that's in overall charge, which this model would retain.
  • Comment on Re^4: Cor—An object system for the Perl core

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-16 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found