jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
atk has quit [Quit: Well this is unexpected.]
atk has joined #ponylang
acarrico has quit [Ping timeout: 264 seconds]
ikpa has quit [Ping timeout: 260 seconds]
SenasOzys has quit [Ping timeout: 256 seconds]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jaro has quit [Ping timeout: 264 seconds]
SenasOzys has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
Shorttail has joined #ponylang
<Shorttail> Is there an easy way to terminate a pony program?
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
vaninwagen has joined #ponylang
<vaninwagen> Shorttail: what exactly do you mean? From within the same program? Or from the outside via a KILL signal or something?
<Shorttail> vaninwagen: Yeah from the same program. I guess just calling exit with ffi would work
<vaninwagen> Shorttail: that is the barbaric way, but works
<vaninwagen> Shorttail: you have some actors still running or some timers still running or something listening to the network that prevents the runtime from shutting down?
<Shorttail> vaninwagen: It's more of a prototyping thing. Sometimes I don't want to bother designing a proper shutdown thing. If it hits a branch I didn't finish, I just want a message and an instant kill. Barbaric is a good word
<vaninwagen> Shorttail: i didn't try yet but you could use https://stdlib.ponylang.org/signals-SignalRaise/#apply to raise a KILL signal inside of your program or a much more polite QUIT or TERM
mikeyhew has joined #ponylang
<Shorttail> vaninwagen: Are those signals cross platform? I think a print and exit ffi combo should do. Anything I lose not doing proper shutdown?
<vaninwagen> Depends on what your background actors are doing
<vaninwagen> but yeah, there is danger of writes being lost, state getting corrupted etc.
<vaninwagen> signals are not supported on windows
ikpa has joined #ponylang
khan has quit [Remote host closed the connection]
riyu has joined #ponylang
<Shorttail> I made a Panic function that does a puts and an exit. That way I can remove it later and see if it's still in use
ikpa has quit [Ping timeout: 260 seconds]
riyu has quit [Quit: Page closed]
SenasOzys has quit [Ping timeout: 264 seconds]
Shorttail has quit [Ping timeout: 260 seconds]
sheerluck has joined #ponylang
<sheerluck> "exercism fetch pony" completed
_andre has joined #ponylang
mikeyhew has quit [Quit: Connection closed for inactivity]
PrsPrsBK has quit [Quit: PrsPrsBK]
khan has joined #ponylang
acarrico has joined #ponylang
sheerluck has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
khan has quit [Ping timeout: 240 seconds]
aturley has quit [Quit: aturley]
khan has joined #ponylang
ExtraCrispy has quit [Remote host closed the connection]
ExtraCrispy has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
aturley has joined #ponylang
pzel has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Quit: khan]
sheerluck has joined #ponylang
<dave24> in the TCPConnectionNotify `closed` callback, `conn.remote_address().name()` seems to always fail. Do I have to get the name elsewhere and store it or something?
<aturley> `remote_address()` calls `getpeername()`, which i believe requires that the socket be connected.
<SeanTAllen> it does indeed.
<aturley> so yeah, if you need the name in `closed` then you'll probably want to store it yourself.
<SeanTAllen> once the connection is closed, it sort of makes sense that remote_address would fail
<SeanTAllen> agree with aturley there.
<SeanTAllen> you can store it in your notify if you need it later
<SeanTAllen> grab and cache on `connected`
jaro has joined #ponylang
khan_ has joined #ponylang
<dave24> ok, thanks
khan_ has quit [Client Quit]
khan_ has joined #ponylang
khan_ has quit [Quit: khan_]
sheerluck has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
vaninwagen has quit [Ping timeout: 264 seconds]
winksaville has joined #ponylang
<SeanTAllen> you need to initialize the variables. the compiler doesnt look at it as "o this cant happen", it could be smarter there...
<SeanTAllen> for some cases its trivial to have compiler understand but for many, its very non-trivial analysis.
<dave24> a, ok
PrsPrsBK has joined #ponylang
winksaville has quit [Ping timeout: 260 seconds]
vaninwagen has joined #ponylang
ExtraCrispy has quit [Ping timeout: 256 seconds]
user10032 has joined #ponylang
rob-k has joined #ponylang
<rob-k> hello
<aturley> hello rob-k
<rob-k> just started reading about pony, wanted to stop in and say hello
<aturley> rob-k what are you reading?
<rob-k> going through the tutorial
<aturley> nice
<rob-k> was looking for a Pong example or something like that
<rob-k> i'm interested in implementing a gossip protocol and Pony seemed like it might be a a fun language to write it with
<aturley> there's a ping pong example in the repo.
<aturley> rob-k oops ... i think we may have taken it out.
<rob-k> i'm still getting started so most questions i'd have at this point would probably be in the docs
<rob-k> just looking for a pong example because i'm curious how to work with signals
<rob-k> cool thanks
pzel has quit [Ping timeout: 268 seconds]
<SeanTAllen> rob-k: when you say "how to work with signals", are you referring to unix signals or something else?
pzel has joined #ponylang
pzel has quit [Ping timeout: 240 seconds]
pzel has joined #ponylang
ikpa has joined #ponylang
jaro has quit [Ping timeout: 256 seconds]
vaninwagen has quit [Quit: WeeChat 2.1]
user10032 has quit [Quit: Leaving]
_andre has quit [Quit: leaving]
rob-k_ has joined #ponylang
rob-k_ has quit [Client Quit]
<rob-k> any kind of curses integration?
<rob-k> unix signals
<rob-k> kind of curious how you might do something like Pong in C, where you would have a game state and then use Keystrokes to Signal user events
<rob-k> maybe something like that is too general purpose, I'm not sure of the scope of the language for doing things like this
<aturley> rob-k oh, sorry i misunderstood.
<aturley> so, there's some ansi terminal support.
<aturley> i'm not sure if there's anything super useful in the `examples` directory for that.
<aturley> there's a terminal game called acolyte that uses the terminal support: https://github.com/jtfmumm/acolyte
<rob-k> very cool
<rob-k> thanks
<aturley> it was originally written to try to use ncurses, but there were some issues.
<aturley> if i recall correctly i think it was caused by some conflicts between the way that pony and ncurses both wanted to control the terminal.
<aturley> the terminal support supports some basic operations, it should be more than enough to do pong.
aturley has quit [Quit: aturley]
rob-k has quit [Ping timeout: 260 seconds]
ikpa has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang