Code Monkey home page Code Monkey logo

pony-zmq's Introduction

pony-zmq CircleCI

Pure Pony implementation of the ZeroMQ messaging library.

Testing

  1. Get stable (to manage dependencies).
  2. Get libsodium (required for pony-sodium). On OSX just to `brew install libsodium'.
  3. Fetch dependencies: stable fetch
  4. stable env ponyc --debug zmq/test
  5. ./test

pony-zmq's People

Contributors

d-led avatar jemc avatar lispmeister avatar sheerluck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pony-zmq's Issues

Does not compile with latest Pony version.

Cannot compile with ponyc:

0.11.1-bdb7cc1 [release]
compiled with: llvm 3.8.0 -- Apple LLVM version 8.0.0 (clang-800.0.42.1)

There's a couple of lambdas using the old syntax of lambda ... end instead of { ... }, but once that's fixed a lot of other errors come up:

/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:17:1: type does not implement its provides list
class _SocketTCPNotify is TCPConnectionNotify
^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: method result None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: _SocketTCPNotify ref is not a subtype of TCPConnectionNotify ref: method 'received' has an incompatible signature
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_peer_tcp.pony:29:7: argument not a subtype of parameter
      _SocketTCPNotify(this),
      ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: method result None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: _SocketTCPNotify iso is not a subtype of TCPConnectionNotify iso: method 'received' has an incompatible signature
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_peer_tcp.pony:56:9: argument not a subtype of parameter
        _SocketTCPNotify(this),
        ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: method result None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: _SocketTCPNotify iso is not a subtype of TCPConnectionNotify iso: method 'received' has an incompatible signature
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_bind_tcp.pony:28:21: function body isn't the result type
    _SocketTCPNotify(_SocketPeerTCPBound(_parent, _socket_opts))
                    ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_bind_tcp.pony:27:47: function return type: TCPConnectionNotify iso^
      fun ref connected(listen: TCPListener ref): TCPConnectionNotify iso^ =>
                                                  ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:20:3: function body type: _SocketTCPNotify iso^
      new iso create(parent: _SocketTCPNotifiable) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: method result None val is not a subtype of Bool val
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/_socket_tcp_notify.pony:35:3: _SocketTCPNotify iso^ is not a subtype of TCPConnectionNotify iso^: method 'received' has an incompatible signature
      fun ref received(conn: TCPConnection ref, data: Array[U8] iso) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:10:1: type does not implement its provides list
class val Message is (Stringable & Equatable[Message box] & Seq[Frame])
^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:43: Message ref^ is not a subtype of None val
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:3: method result Message ref^ is not a subtype of None val
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'reserve' has an incompatible signature
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:43: Message ref^ is not a subtype of None val
      fun ref clear():                        Message ref^ => _inner.clear(); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:3: method result Message ref^ is not a subtype of None val
      fun ref clear():                        Message ref^ => _inner.clear(); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'clear' has an incompatible signature
      fun ref clear():                        Message ref^ => _inner.clear(); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:43: Message ref^ is not a subtype of None val
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:3: method result Message ref^ is not a subtype of None val
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'push' has an incompatible signature
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:43: Message ref^ is not a subtype of None val
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:3: method result Message ref^ is not a subtype of None val
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'unshift' has an incompatible signature
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:28:5: Message ref^ is not a subtype of None val
        Message ref^ => _inner.append(seq, offset, len); this
        ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:27:3: method result Message ref^ is not a subtype of None val
      fun ref append(seq: ReadSeq[Frame], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:27:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'append' has an incompatible signature
      fun ref append(seq: ReadSeq[Frame], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:26:5: Message ref^ is not a subtype of None val
        Message ref^ => _inner.concat(iter, offset, len); this
        ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:25:3: method result Message ref^ is not a subtype of None val
      fun ref concat(iter: Iterator[Frame^], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:25:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'concat' has an incompatible signature
      fun ref concat(iter: Iterator[Frame^], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:43: Message ref^ is not a subtype of None val
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:3: method result Message ref^ is not a subtype of None val
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:3: Message ref^ is not a subtype of Seq[String val] ref^: method 'truncate' has an incompatible signature
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:12:3: constructor result Message ref^ is not a subtype of Seq[String val] ref^
      new create(len: USize = 0) => None
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:12:3: Message ref is not a subtype of Seq[String val] ref: method 'create' has an incompatible signature
      new create(len: USize = 0) => None
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:43: Message ref^ is not a subtype of None val
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:3: method result Message ref^ is not a subtype of None val
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:17:3: Message ref is not a subtype of Seq[String val] ref: method 'reserve' has an incompatible signature
      fun ref reserve(len: USize):            Message ref^ => _inner.reserve(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:43: Message ref^ is not a subtype of None val
      fun ref clear():                        Message ref^ => _inner.clear(); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:3: method result Message ref^ is not a subtype of None val
      fun ref clear():                        Message ref^ => _inner.clear(); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:18:3: Message ref is not a subtype of Seq[String val] ref: method 'clear' has an incompatible signature
      fun ref clear():                        Message ref^ => _inner.clear(); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:43: Message ref^ is not a subtype of None val
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:3: method result Message ref^ is not a subtype of None val
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:20:3: Message ref is not a subtype of Seq[String val] ref: method 'push' has an incompatible signature
      fun ref push(value: Frame):             Message ref^ => _inner.push(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:43: Message ref^ is not a subtype of None val
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:3: method result Message ref^ is not a subtype of None val
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:22:3: Message ref is not a subtype of Seq[String val] ref: method 'unshift' has an incompatible signature
      fun ref unshift(value: Frame):          Message ref^ => _inner.unshift(value); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:28:5: Message ref^ is not a subtype of None val
        Message ref^ => _inner.append(seq, offset, len); this
        ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:27:3: method result Message ref^ is not a subtype of None val
      fun ref append(seq: ReadSeq[Frame], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:27:3: Message ref is not a subtype of Seq[String val] ref: method 'append' has an incompatible signature
      fun ref append(seq: ReadSeq[Frame], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:26:5: Message ref^ is not a subtype of None val
        Message ref^ => _inner.concat(iter, offset, len); this
        ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:25:3: method result Message ref^ is not a subtype of None val
      fun ref concat(iter: Iterator[Frame^], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:25:3: Message ref is not a subtype of Seq[String val] ref: method 'concat' has an incompatible signature
      fun ref concat(iter: Iterator[Frame^], offset: USize = 0, len: USize = -1):
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:43: Message ref^ is not a subtype of None val
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
                                              ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:3: method result Message ref^ is not a subtype of None val
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
      ^
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/message.pony:24:3: Message ref is not a subtype of Seq[String val] ref: method 'truncate' has an incompatible signature
      fun ref truncate(len: USize):           Message ref^ => _inner.truncate(len); this
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/greeting.pony:47:45: couldn't find 'strip' in 'None'
    other_mechanism.append(buffer.block(20)).strip(String.push(0))
                                            ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:34:18: can't recover to this capability
    let buffer = recover iso _Buffer.append(orig_bytes) end
                 ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:34:30: expression type is None val
        let buffer = recover iso _Buffer.append(orig_bytes) end
                                 ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:36:21: cannot infer type of buffer

    version_major = buffer.u8()
                    ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:59:18: can't recover to this capability
    let buffer = recover iso _Buffer.append(orig_bytes) end
                 ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:59:30: expression type is None val
        let buffer = recover iso _Buffer.append(orig_bytes) end
                                 ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:61:40: cannot infer type of buffer

    long_nonce = recover String.append(buffer.block(16)) end
                                       ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:82:18: can't recover to this capability
    let buffer = recover iso _Buffer.append(orig_bytes) end
                 ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:82:30: expression type is None val
        let buffer = recover iso _Buffer.append(orig_bytes) end
                                 ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:84:36: cannot infer type of buffer

    cookie = recover String.append(buffer.block(96)) end
                                   ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:104:18: can't recover to this capability
    let buffer = recover iso _Buffer.append(orig_bytes) end
                 ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:104:30: expression type is None val
        let buffer = recover iso _Buffer.append(orig_bytes) end
                                 ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:106:41: cannot infer type of buffer

    short_nonce = recover String.append(buffer.block(8)) end
                                        ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:123:12: right side must be a subtype of left side
    reason = recover String.append(orig_bytes) end
           ^
    Info:
    /Users/renato/programming/programs/pony/ponyc/packages/builtin/string.pony:782:3: None val is not a subtype of String val
      fun ref append(seq: ReadSeq[U8], offset: USize = 0, len: USize = -1) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:141:18: can't recover to this capability
    let buffer = recover iso _Buffer.append(orig_bytes) end
                 ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:141:30: expression type is None val
        let buffer = recover iso _Buffer.append(orig_bytes) end
                                 ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command_auth_curve.pony:143:41: cannot infer type of buffer

    short_nonce = recover String.append(buffer.block(8)) end
                                        ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:25:5: function body isn't the result type
    recover val String.append(bytes) end
    ^
    Info:
    /Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:23:68: function return type: String val
      fun tag write_string_as_metadata(metadata: CommandMetadata box): String =>
                                                                       ^
    /Users/renato/programming/programs/pony/ponyc/packages/builtin/string.pony:782:3: function body type: None val
      fun ref append(seq: ReadSeq[U8], offset: USize = 0, len: USize = -1) =>
      ^
    /Users/renato/programming/programs/pony/ponyc/packages/builtin/string.pony:782:3: None val is not a subtype of String val
      fun ref append(seq: ReadSeq[U8], offset: USize = 0, len: USize = -1) =>
      ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:31:17: couldn't find 'size' in 'None'
    while buffer.size() > 0 do
                ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:36:45: couldn't find 'u8' in 'None'
        let key_size = USize.from[U8](buffer.u8())
                                            ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:37:33: cannot infer type of key_size

        key.append(buffer.block(key_size))
                                ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:37:26: couldn't find 'block' in 'None'
        key.append(buffer.block(key_size))
                         ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:38:48: couldn't find 'u32_be' in 'None'
        let value_size = USize.from[U32](buffer.u32_be())
                                               ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:39:35: cannot infer type of value_size

        value.append(buffer.block(value_size))
                                  ^
Error:
/Users/renato/programming/projects/pony-gradle-plugin/samples/pony-basic/ext-libs/unpacked/jemc-pony-zmq-0cbe950/zmq/zmtp/command.pony:39:28: couldn't find 'block' in 'None'
        value.append(buffer.block(value_size))
                           ^

Unable to compile with Ponyc 0.15.0

$ stable env ponyc --debug zmq/test

Building builtin -> /usr/local/lib/pony/0.15.0-d603ecce/packages/builtin
Building zmq/test -> /Users/thomasjohnson/Projects/pony/pony-zmq/zmq/test
Building ponytest -> /usr/local/lib/pony/0.15.0-d603ecce/packages/ponytest
Building time -> /usr/local/lib/pony/0.15.0-d603ecce/packages/time
Building collections -> /usr/local/lib/pony/0.15.0-d603ecce/packages/collections
Building ../z85 -> /Users/thomasjohnson/Projects/pony/pony-zmq/zmq/z85
Building .. -> /Users/thomasjohnson/Projects/pony/pony-zmq/zmq
Building inspect -> /Users/thomasjohnson/Projects/pony/pony-zmq/.deps/jemc/pony-inspect/inspect
Building format -> /usr/local/lib/pony/0.15.0-d603ecce/packages/format
Building zmtp -> /Users/thomasjohnson/Projects/pony/pony-zmq/zmq/zmtp
Building sodium -> /Users/thomasjohnson/Projects/pony/pony-zmq/.deps/jemc/pony-sodium/sodium
Building buffered -> /usr/local/lib/pony/0.15.0-d603ecce/packages/buffered
Building net -> /usr/local/lib/pony/0.15.0-d603ecce/packages/net
Generating
Reachability
Selector painting
Data prototypes
Data types
Function prototypes
Functions

src/libponyc/codegen/genbox.c:15: gen_box: Assertion t != NULL failed.

pony-zmq does not compile with latest ponyc

I'm having trouble building pony-zmq with pony 0.12.2. Thanks. Tom.

Building builtin -> /usr/local/lib/pony/0.12.2-dc26414/packages/builtin
Building zmq/test -> /Users/tjohnson/Projects/Pony/pony-zmq/zmq/test
Error:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/socket_type_tests.pony:184:42: syntax error: unterminated array literal
recv_unordered_set(h, rs, s, recover [
^
Info:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/socket_type_tests.pony:185:46: expected terminating ] before here
recover val zmq.Message.>push("a1") end,
^
Error:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/socket_type_tests.pony:234:42: syntax error: unterminated array literal
recv_unordered_set(h, rs, s, recover [
^
Info:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/socket_type_tests.pony:235:56: expected terminating ] before here
recover val zmq.Message.>push("a").>push("A") end,
^
Error:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/z85_test.pony:11:40: syntax error: unterminated array literal
test_pair(h, "HelloWorld", recover [as U8:
^
Info:
/Users/tjohnson/Projects/Pony/pony-zmq/zmq/test/z85_test.pony:12:11: expected terminating ] before here
0x86, 0x4F, 0xD2, 0x6F, 0xB5, 0x59, 0xF7, 0x5B

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.