trapped has quit [Read error: Connection reset by peer]
michael_campbell has quit [Ping timeout: 244 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
copy` has quit [Quit: Connection closed for inactivity]
graaff has joined #ponylang
jemc has quit [Ping timeout: 268 seconds]
trapped has joined #ponylang
copy` has joined #ponylang
TwoNotes has joined #ponylang
<TwoNotes>
TCPConnection delivers received data only 64 bytes at a time, regardless of how much was sent.
<TwoNotes>
tcpconnection.pony line 25 declares a 64-byte buffer
mcguire1 has joined #ponylang
mcguire has quit [Ping timeout: 268 seconds]
<TwoNotes>
So must use message lengths prefix on messages, and Buffer object to assemble parts
jemc has joined #ponylang
Praetonus has joined #ponylang
jemc has quit [Ping timeout: 260 seconds]
graaff has quit [Quit: Leaving]
<TwoNotes>
First results from my voice controlled bot, written in Pony. I asked it to suggest some moves to watch, and it replied "Let me suggest Avengers, Mummy's Shroud, and I Heart Huckabee's."
<TwoNotes>
The involved speech recognition, speech synthesis, UDP and TCP comms, and interfacing to a sqlite database.
<TwoNotes>
Not bad considering I had only heard about Pony a month ago. This is a rewrite of an existing program from Erlang.
<jeremyheiler>
TwoNotes: very cool
<TwoNotes>
Of course, now I have to refactor a lot of it, as I spotted several patterns I did not have to rewrite each time
Praetonus has quit [Quit: Leaving]
<SeanTAllen>
Nice!
<TwoNotes>
One network protocol is line oriented, the other has a 16-bit length per message. But I think a single Notify class can handle both.
<TwoNotes>
The "Buffer" class makes it pretty easy.
<TwoNotes>
The TCPCOnnection code uses a rather tiny 64-byte receive buffer, so stuff comes in little chunks.
<TwoNotes>
One little problem is that it only understands Japanese right now. :) Because I have not found a good English acoustic model for it yet.
<TwoNotes>
The speech recognizer was developed at the University of Kyoto.
TwoNotes has quit [Quit: Leaving.]
bb010g has joined #ponylang
<shepheb>
also English is one of the worst languages for recognizing. so many syllables and ways of blending adjacent syllables
<shepheb>
whoops, he's gone. ah well.
trapped has quit [Read error: Connection reset by peer]