Yesterday and this morning was a lot of fun, and also very productive.
I had a SubEthaEdit+Skype session with Stevan; we worked out a sketch of the Object Space and primitive operations that supports them. Back when the focus at 6.2.x was about flow control semantics, I designed PIL with Chip and Leo to simplify the possible semantics Perl 6 can take. Now for 6.28.x, the ObjSpace and PrimOps are the logical counterpart for the OO part of the language. We learned whatever we can from Python's PyPy and Ruby's YARV (cf. Online Compiler), as the goal is identical to theirs -- have a shared minimal interface that all runtimes ought to provide, to support a consistent, fast and portable metamodel on top of it.
I also worked with Liz in two design sessions, which produced some rough notes of S17: Concurrency. Many of Liz's Threads::* modules on CPAN are workarounds for Perl 5's principle of most surprise ithread model, and we spent much time making sure that those won't happen under Perl 6 semantics.
Aside from that, we played with the idea of is atomic, is critical and
is throttled traits on Code objects, and they seem to capture many key abstractions
found in everyday concurrency programs. The idea of providing an unified interface to multiple
concurrency models -- lightweight multiplex, OS threads, and process forks -- is also alluring, so
we toyed with more bizzare ideas like having $thread.detach promote the thread into a
process so it can survive its parent's demise.
The feedback to both texts were so far very positive, although we really need to elaborate the text more. A new set of Visiolization diagrams won't hurt either, as it's about time to update the Cafepress merchandise designs.
Apart from Liz's amazing sense of "Right Thing"ness, Wendy has also been helpful during the design
process; not suffering from overexposure to perl5 workarounds and perl6 mindset, she provides the
much needed real-time usability feedback. I think I'll need to do a Type System design session
with her soon, as a sanity-check for the "incremental staticness" idea of Perl6's -- it is rare that I meet someone with a higher internal clock speed and raw mental capacity compared to mine.
Last night eric256 extended the test matrix concept with a wonderfully informative Test Catalog that visualizes the link between tests, synopses, and smoke results.
Also, reading PickAxe and PyPy documentations makes me rethink if Perl 6 is really dynamic enough.
For example, would defining &postcircumfix:<( )> for Hash classes do what
__apply__ does for Python, namely having arbitrary hash serve as closures? Definitely
p6l stuff, although I'll probably run those random thoughts off #perl6 before posting them.
Today I'm going to focus on coding up the lower layers of the object space, and see how much bootstrapping I can do with those bare primitives. It should be fun. Wish me luck!
Model of computation for concurrency (Score:1)
Links:
* http://graphics.cs.uiuc.edu/svn/kcrane/web/project_qjulia.html [uiuc.edu]
* http://www.gpgpu.org/ [gpgpu.org]
Re:Model of computation for concurrency (Score:2)
Re:Model of computation for concurrency (Score:1)