| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
12年前发布

rpc-framework:在Haskell中远程方法调用框架

这是一个框架用于在Haskell中远程过程调用。

特性:

  • 用法非常简单

  • 调用一个远程方法是类型安全的Calling a remote procedure is type safe.

  • Modal logic inspired worlds, aka hosts:

    • Services run from the World IO monad, written Host w => WIO w
    • This allows world specific actions: if one world will be compiled to JS and one to x86, we could have the following types
    </li> </ul>
        putStrLn :: IO_World w => WIO w a     installTextBox :: JS_World w => WIO w () 
    • Arbitrily complex remote procedures:
      • Rather than only being able to call a remote function of one argument, we can call with any number of arguments
      </li> </ul>
          foo :: (Sendable a1 ,..., Sendable aN, Sendable b, Host w) => a1 -> ... -> aN -> WIO w b 
      • It can send pure functions across the wire and now garbage collect them.
          instance (Serializable a) => Sendable a a           instance (Sendable a' a, Sendable b b') => Sendable (a -> b) (a' -> IO b') 
      • Only local code can execute

        • unlike some modal logic aproaches to mobile languages, the only code that can be executed is the code you compiled, and not code passed from world to world
        </li>
      • State can be serialized with references.

      • </ul>

        项目主页:http://www.open-open.com/lib/view/home/1355467086372

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1355467086372.html
RPC XML-RPC 开发