首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 标记的二进制协议

标记的二进制协议

  • 资源大小:6.01 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 协议 二进制 标记

资 源 简 介

TABI is a typeful tagged cross-language calling convention Shortly speaking, while with cdecl calling convention you pass parameters by position, TABI passes parameters by name and annotates each parameter with its type It may be used in following situations: * providing interoperatbility between C, Haskell and any other languages while avoiding complexity of language-specific FFI descriptions. For example, Lua function may receive all parameters as the table * passing complex datastructures between various languages forth and back, providing faster alternative to serialization approach * implementing APIs that may be extended without losing compatibility - new services and parameters may not be supported by all client and server implementations but everything will work together Let"s see some examples. Haskell code: -- |Client function calling server()client = TABI.call server "service-name" ["i" ==> (1::Int), "s&quo

文 件 列 表

tabi-0.1
Examples
LICENSE
Setup.hs
tabi.cabal
tabi.h
tabi.hsc
tabi.lua

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 开心快活人 37分钟前 成为了本站会员

  • 晋财 1小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

0.169663s