Core streams QIP and POC - #210
Conversation
16ca6b0 to
e2d01b4
Compare
e2d01b4 to
adb3998
Compare
Describe Qi's "core performance issue" and remedies for cases of specific arity, proposing a unified stream runtime in the core language to address the general, variadic case.
adb3998 to
b107998
Compare
|
The part of this design that we discussed and accepted is modeling streams in the core language in general, and in particular, having separate producer, transformer, and consumer runtimes. This achieves rough parity with the naive Pac-Man implementation (which is itself comparable to The unified runtime was a later development that I came to while working on the QIP after our verbal discussions and is still to be considered in "DRAFT" status, as it currently performs worse than the tripartite runtimes. I have updated the QIP to reflect this. I did not spend much time trying to optimize it, and it's possible it can be addressed directly in our implementation. Otherwise, it would be very worthwhile to understand the cause of the performance shortfall by studying the compiled Chez output, and attempt to address it in the Chez compiler. If either of these approaches fails, we can fall back to using the proven tripartite model, which is treated in the QIP alongside the unified model. |
Summary of Changes
Qi Improvement Proposal (QIP) for modeling streams in the core language, along with an accompanying proof-of-concept.
Describe Qi's "core performance issue" and remedies for cases of specific arity, proposing a unified stream runtime in the core language to address the general, variadic case.
👉 Rendered HTML
🎛 Performance Report for Unified Runtime
🎛 Performance Report for Tripartite Runtime
Public Domain Dedication
(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)