勇闖新世界︰ W!o《卡夫卡村》變形祭︰感知自然‧尖端‧六上

一時想起派生的『非同步計算』架構建議

PEP 3148 — futures – execute computations asynchronously

Abstract

This PEP proposes a design for a package that facilitates the evaluation of callables using threads and processes.

Motivation

Python currently has powerful primitives to construct multi-threaded and multi-process applications but parallelizing simple operations requires a lot of work i.e. explicitly launching processes/threads, constructing a work/results queue, and waiting for completion or some other termination condition (e.g. failure, timeout). It is also difficult to design an application with a global process/thread limit when each component invents its own parallel execution strategy.

───

 

,以及『 SCOOP 』 Python 『分佈式』可擴張『並行運算』平台,

 

SCOOP

SCOOP (Scalable COncurrent Operations in Python) is a distributed task module allowing concurrent parallel programming on various environments, from heterogeneous grids to supercomputers.

Philosophy

Our philosophy is based on these ideas:

  • The future is parallel;
  • Simple is beautiful;
  • Parallelism should be simpler.

These tenets are translated concretely in a minimum number of functions allowing maximum parallel efficiency while keeping at minimum the inner knowledge required to use them. It is implemented with Python 3 in mind while being compatible with 2.6+ to allow fast prototyping without sacrificing efficiency and speed.

Features

SCOOP has many features and advantages over Futures, multiprocessing and similar modules, such as:

  • Harness the power of multiple computers over network;
  • Ability to spawn subtasks within tasks;
  • API compatible with PEP 3148;
  • Parallelizing serial programs with only minor modifications;
  • Efficient load-balancing.

Anatomy of a SCOOPed program

SCOOP can handle multiple diversified multi-layered tasks. You can submit your different functions and data simultaneously and effortlessly while the framework executes them locally or remotely. Contrarily to most multiprocessing frameworks, it allows to launch subtasks within tasks.

_images/introductory_tree.pngThrough SCOOP, you can simultaneously execute tasks that are of different nature (Discs of different colors) or different by complexity (Discs radiuses). The module will handle the physical considerations of parallelization such as task distribution over your resources (load balancing), communications, etc.

Applications

The common applications of SCOOP consist of, but is not limited to:

  • Evolutionary Algorithms
  • Monte Carlo simulations
  • Data mining
  • Data processing
  • I/O processing
  • Graph traversal

───

 

也許如是方能將『一萬臺樹莓派』給組織起來,真可以同時協作的吧?畢竟根本不知那『 It 網』的構造方式原理,即使想問也不知該從何問起的哩!誰知此時 Mrphs 卻說道︰講起這『平行運算器』的發想原點和先生還有點關係。這可真是令人驚訝的了,急問︰與我有什麼關係??只見 Mrphs 緩緩的說︰不知先生是否記得寫過一篇

Tux@rpi ︰ 《春的祭典》───

△︰ 有如歷來一樣,在這神聖的『春之祭』之時,我們定舉辦『生生』之展︰

志在參與,
名實相符。

讓我們『揮手風迎』,今年『不息獎』得主,介紹『得獎作品』── tinyiot ── 的吧!

9404354_orig
深海經絡之發現者

不知是昏睡入夢,還是夢裡昏睡,彷彿

M♪o︰ ㄣ是啦…從沒想過得……這個獎!對!這個‧踢呦ㄊㄜˋ‧都…都是‧在往聖先賢…的‧的指導下………

,祇覺自己大嘆了一口氣!真是太八股了!!又因為氣息所嗆,一時醒來,不復知夢矣!!!

───

 

後來 M♪o 不得已回了一封『伊眉兒』,

Re: TinyIoT 踢呦ㄊㄜˋ From: M♪o@Tux.Anywhere───

 

ㄊㄊㄊㄜˋ↓→ ♀♂

法天  地

萬  物 同 碼 訊

萬物一馬

子午流注

☿☹☺

E-mail 信箱裡來了一封『☸郵』,真不知 M♪o 怎能避開檢查,寄的進來?除了『標題』── TinyIoT 踢呦ㄊㄜˋ ──,尚且明白易解之外,雖是有頭、有尾、一張圖、一個表,配上兩行象形文字,到底有什麼話要說??不過看來跟『踏天』『梯』有關!那象形文字似乎是『甲骨文』,若果真是,彷彿可以『譯作』︰

法太極天地

萬物同碼訊

???當真是『觀象繫辭』,能『擬議會通』之不易的啊!!!

 

這就種下了『蘋果種子』,而今結成了『正果』。…… 邊聽邊想︰苦也!凡走過必留下痕跡!!無怪乎,老祖宗講︰飯可以多吃,話可別亂說。待回神後,突覺自己哈哈一笑,『正果』、『蘋果種子 』……,這真是個『接待機器人』嗎?還真會搞笑,反正是未來的嘛??不也就是

一個奇想!!》的耶!!───

 

據『歷史典故』上說,東晉慧遠大師主持東林寺,立下了規矩『影不出山迹不入谷』;一過虎溪,寺後山虎則吼。一日大詩人陶淵明和道士陸修靜來訪,談的投機,送行時不覺過了虎溪橋,待聞得虎嘯後方恍然大悟,相視大笑而別,後世稱作『虎溪三笑』。其後有清朝唐蝸寄題的廬山東林寺三笑庭名聯:

橋跨虎溪,三教三源流,三人三笑語;
蓮開僧舍,一花一世界,一葉一如來。

今天的人或許較熟悉英國詩人布莱克的『一沙一世界,一花一天堂。』名句。這個名句出自一首長詩《純真的徵兆》的起頭︰

snadworld

天堂鳥-花

220px-Blake_jacobsladder

Auguries of Innocence

To see a world in a grain of sand,
一粒沙裡世界
And a heaven in a wild flower,
一朵花中天堂
Hold infinity in the palm of your hand,
掌尺足無限
And eternity in an hour.
時針能永恆

布莱克生於 1757 年,幼年就個性獨特討厭正統學校的教條氣息,因而拒絕入學,博覽眾書自學成家,由於潛心研讀洛克博克經驗主義哲學著作,於是對這個大千世界有了深刻認識早熟的他為減輕家計重擔和考慮弟妹前途,放棄了畫家夢想,十四歲時就選擇了去雕版印刷作坊當個學徒,二十二歲出師,…
是英國浪漫主義詩人的第一人
雅各的天梯,布莱克的版畫,布莱克『自爬』?

博克的名著【壯美優美觀念起源之哲學探究】,布莱克用來觀察飛鳥之姿』── Auguries ──,體驗預示藝術參與,果然恰當!!就像『掌尺』的可成無限,用時針的『循環』以度永恆一樣;也許布莱克浪漫充滿著理性思辨,其要總在觀察

這時海之涯的另一端正是『拓荒』的時代,1774 年出生的 Johnny Chapman ,譜出『蘋果種子Appleseed傳奇

200px-Johnny_Appleseed_1

Appleseed

那從一顆『蘋果種子』能見著什麼呢?是生命的強韌?或破土而出的喜悅?還是夏娃偷吃的那個?也許可以這樣說︰『』的掌握改變了人類當時的生活,而一顆種子傳承造就世世代代的持有強尼‧蘋果種子所代表的『拓荒精神』──

STAR TREK
星艦迷航記
Where No One Has Gone Before
前人未至之境

──,是否終將化作『概念種子』等待時機『發芽』?