Skip to content

Instantly share code, notes, and snippets.

What?

Need\Have iso trn ref val box tag
iso
trn
ref
val
box
tag
@aturley
aturley / hexdump.pony
Created August 1, 2016 19:25
Naive implementation of a simple hexdump utility in Pony.
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() =>
@aturley
aturley / pony-considerations.md
Last active March 17, 2023 03:21
Information about Pony based on the items outlined in https://twitter.com/casio_juarez/status/898706225642086400

Pony Considerations

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.

Editor/IDE support

There are Pony packages for several popular editors.

@aturley
aturley / chat_server.pony
Created April 3, 2018 13:31
Basic TCP chat server in Pony
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
@aturley
aturley / twitch-irc-bot.pony
Created December 19, 2018 21:03
A Twitch IRC bot written from scratch in Pony
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) =>
@aturley
aturley / proposal-guidelines.md
Created February 6, 2019 18:29
pony gsoc 2019 proposal guidelines

Name and Contact Information

Please provide information that can be used to contact you. This includes:

  • full name
  • email address
  • telephone number
  • current postal address
  • postal address where you plan to be during the Summer (if known)
  • website link (optional)