Need\Have | iso | trn | ref | val | box | tag |
---|---|---|---|---|---|---|
iso | ||||||
trn | ||||||
ref | ||||||
val | ||||||
box | ||||||
tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Notify is StdinNotify | |
let _main: Main tag | |
new create(main: Main tag) => | |
_main = main | |
fun ref apply(data: Array[U8] iso) => | |
_main.add_bytes(consume data) | |
fun dispose() => |
If you're thinking of checking out the Pony programming language, here's a list of things that I think are important to know. This list is based on a Tweet that I wrote.
There are Pony packages for several popular editors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use "net" | |
actor ConnectionHub | |
let _connections: Array[TCPConnection] = Array[TCPConnection] | |
be add(conn: TCPConnection) => | |
_connections.push(conn) | |
be remove(conn: TCPConnection) => | |
try _connections.remove(_connections.find(conn)?, 1) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use "buffered" | |
use "debug" | |
use "net" | |
class TwitchChatConnectionNotify is TCPConnectionNotify | |
let _nick: String | |
let _password: String | |
let _reader: Reader | |
new iso create(nick: String, password: String) => |
OlderNewer