Need\Have | iso | trn | ref | val | box | tag |
---|---|---|---|---|---|---|
iso | ||||||
trn | ||||||
ref | ||||||
val | ||||||
box | ||||||
tag |
This file contains hidden or 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 hidden or 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 hidden or 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) => |
This file contains hidden or 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
#N canvas 63 101 450 300 12; | |
#X obj 107 216 osc~; | |
#X obj 107 242 dac~; | |
#X obj 109 185 mtof; | |
#X obj 199 98 loadbang; | |
#X msg 201 136 60; | |
#X obj 60 8 notein; | |
#X obj 305 92 metro 500; | |
#X obj 305 116 f; | |
#X obj 339 118 + 1; |
OlderNewer