Pony 是一款基於 Actor 模型,能夠提供類型、內存、異常、併發多個層面的安全性保證的高性能編程語言。0.31.0 版本已經發布,更改如下:
刪除 Map.sub 中不必要的參數
以前:
let m: Map[String, U32] = Map[String, U32] m.insert("one", 1) m.insert("two", 2) let m2 = m - ("two", 3132047) // removes ("two", 2) from the Map
現在:
let m: Map[String, U32] = Map[String, U32] m.insert("one", 1) m.insert("two", 2) let m2 = m - "two"
為 TCPConnectionNotify 添加 proxy_via(host: String, service: String): (String, String)
在建立初始 TCP 連接之前調用此函數,允許 TCPConnectionNotify 更改連接的目標,這使 TCPConnectionNotify 實現能夠處理代理握手並通過該代理重定向通信量。它是可選的實現,默認不改變任何東西。
建議 TCP 客戶端創建者在其構造函數中添加一個參數,默認為 NoProxy,並包裝它們的 TCPConnectionNotify,使用戶能夠使用代理。
actor MyClient new create(env: Env, host: String, service: String, proxy: Proxy = NoProxy) ? =>TCPConnection = TCPConnection.create( env.root as AmbientAuth, proxy.apply(MyConnectionNotify.create()), host, service)
修復
通過更改鏈接順序解決靜態鏈接問題
添加
為用於鏈接重寫 ld 命令添加 --link-ldcmd 命令行參數
使在 glibc 系統上使用 musl 構建成為可能
添加 proxy_via(destination_host, destination_service) 到 TCPConnectionNotify,以允許 TCP 處理程序在連接之前更改 TCPConnectionNotify 中的主機名和服務
添加 add 和 sub 到 collections/persistent/Map
更改
刪除 Map.sub 中不必要的參數
不再提供 AppImage 作為發布格式
請見發布說明:
[admin
]