文件名称:fibers:Guile的类似ML的并发
文件大小:113KB
文件格式:ZIP
更新时间:2024-06-06 03:24:01
Scheme
纤维类 光纤是一种在并行ML的传统中为Guile计划提供类似Go的并发功能的设施。 有关使用Fibers的可粘贴介绍 ; ; Paste this into your guile interpreter! (use-modules (fibers) (fibers channels) (ice-9 match)) ( define ( server in out ) ( let lp () (match (pk 'server-received (get-message in)) ( 'ping! (put-message out 'pong! )) ( 'sup (put-message out 'not-much-u )) (msg (put-message out ( cons 'wat msg)))) (lp)))
【文件预览】:
fibers-master
----autogen.sh(32B)
----fibers.texi(56KB)
----AUTHORS(29B)
----COPYING(34KB)
----benchmarks()
--------scale-bench(1KB)
--------sieve.scm(1KB)
--------local-ping-pong.scm(1KB)
--------ping-pong.scm(1KB)
--------diagonal.scm(3KB)
--------Makefile(899B)
--------fan-out.scm(957B)
--------chain.scm(2KB)
----epoll.c(7KB)
----build-aux()
--------guile.am(689B)
--------config.rpath(0B)
----Makefile.am(2KB)
----fibers()
--------timers.scm(3KB)
--------conditions.scm(5KB)
--------scheduler.scm(16KB)
--------psq.scm(18KB)
--------stack.scm(2KB)
--------deque.scm(4KB)
--------nameset.scm(3KB)
--------web()
--------channels.scm(15KB)
--------epoll.scm(7KB)
--------interrupts.scm(3KB)
--------operations.scm(8KB)
--------config.scm.in(1KB)
--------counter.scm(2KB)
--------repl.scm(5KB)
--------posix-clocks.scm(6KB)
----guix.scm(3KB)
----examples()
--------memcached-server.scm(5KB)
--------memcached-client.scm(5KB)
--------concurrent-web-hello.scm(159B)
--------ping-server.scm(2KB)
--------web-hello.scm(160B)
--------ping-client.scm(3KB)
----TODO.md(4KB)
----COPYING.LESSER(7KB)
----web()
--------server()
----HACKING(472B)
----env.in(2KB)
----README.md(2KB)
----NEWS(1KB)
----fibers.scm(6KB)
----acinclude.m4(15KB)
----configure.ac(1KB)
----tests()
--------conditions.scm(3KB)
--------basic.scm(6KB)
--------channels.scm(3KB)
--------preemption.scm(3KB)
--------parameters.scm(3KB)
--------foreign.scm(2KB)
--------speedup.scm(3KB)
----.gitignore(412B)
----README(9B)
----ChangeLog(17B)