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
<jdhorwitz> Last Week In Pony for July 22, 2018 - https://www.ponylang.org/blog/2018/07/last-week-in-pony---july-22-2018/
pzel has joined #ponylang
acarrico has quit [Ping timeout: 276 seconds]
pzel has quit [Ping timeout: 264 seconds]
endformationage has quit [Ping timeout: 264 seconds]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Read error: Connection reset by peer]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Ping timeout: 248 seconds]
khan has joined #ponylang
tme112 has quit [Read error: Connection reset by peer]
bimawa3 has quit [Ping timeout: 260 seconds]
bimawa3 has joined #ponylang
<dave24> Does anyone know of a way to get the timezone in pony? GMT offset to be more specific.
<dave24> Or do I have to do FFI shenanigans
sternmull has joined #ponylang
bimawa4 has joined #ponylang
bimawa3 has quit [Ping timeout: 265 seconds]
sternmull has quit [Ping timeout: 256 seconds]
acarrico has joined #ponylang
<vaninwagen> If you want to get the timezone configured on the machine you are running, you need to do some ffi right now. PosixDate does not have any offset or timezone information
<vaninwagen> This could be a good addition to the time package
_andre has joined #ponylang
khan has quit [Quit: khan]
sternmull has joined #ponylang
PrsPrsBK has quit [Read error: Connection reset by peer]
PrsPrsBK1 has joined #ponylang
PrsPrsBK1 has quit [Read error: Connection reset by peer]
sternmull has quit [Ping timeout: 265 seconds]
felko has joined #ponylang
<felko> hello, is there a name for the concept of passing the environment to functions to allow them to perform side effects ?
<bougyman> That doesn't smell right.
<felko> isn't this what pony does with the `env` variable ?
<SeanTAllen> felko, what do you mean by "perform side effects?"
<felko> without a reference to the `env` variable, a function isn't allowed to print anything, neither to read nor write in any files
<SeanTAllen> the `Env` class provides stdin, stdout, stderr, and the root AmbientAuth. In general, you would only want to supply other actors with the minimum of access they need, so for example, don't pass `env` to everything.
PrsPrsBK has joined #ponylang
<SeanTAllen> felko, that's not quite true, but its also not wrong.
<SeanTAllen> without Env.out, your can't print to STDOUT
<SeanTAllen> without Env.err, you can't print to STDERR
<SeanTAllen> without Env.root, you can't have AmbientAuth
<felko> sure
<SeanTAllen> but you dont have to pass the instance of `Env` everywhere. Just a subset of what you need.
<SeanTAllen> For example if an actor needs to open files, you don't want to give it AmbientAuth, you want to give it the minimal level of capability it needs.
<felko> so does this approach, that we could name "local" as opposed to the "global" stdout access that we can see in Python or C, has a name ?
<felko> *have
<SeanTAllen> its the same access felko
<SeanTAllen> the difference is that `Env` provides many other things other than just STDOUT, so if all you need is standard out, you should only provide env.out to the particular actor
<felko> yes i understand the fact that you only pass a subset of env's attributes, but you can access stdout (its an example, I could've taken stdin or stderr or any env attribute) from any context in Python
<felko> whereas its not possible in pony, without giving the corresponding attribute
<felko> sorry if i'm not clear
jmiven has quit [Quit: co'o]
jmiven has joined #ponylang
guest74 has joined #ponylang
guest74 has quit [Client Quit]
pzel has joined #ponylang
ExtraCrispy has joined #ponylang
<SeanTAllen> stdin is global in Python, there are no globals in Pony.
endformationage has joined #ponylang
jdhorwitz has quit [Ping timeout: 256 seconds]
surma has quit [Ping timeout: 256 seconds]
darach has quit [Ping timeout: 256 seconds]
emilbayes has quit [Ping timeout: 256 seconds]
BertolucciTalks has quit [Ping timeout: 256 seconds]
jonbrwn_ has quit [Ping timeout: 256 seconds]
kjsnavely has quit [Ping timeout: 256 seconds]
mrallen1 has quit [Ping timeout: 256 seconds]
hmans has quit [Ping timeout: 256 seconds]
jonbrwn_ has joined #ponylang
atk has quit [Ping timeout: 256 seconds]
slfritchie has quit [Ping timeout: 256 seconds]
jdhorwitz has joined #ponylang
surma has joined #ponylang
darach has joined #ponylang
slfritchie has joined #ponylang
mrallen1 has joined #ponylang
hmans has joined #ponylang
kjsnavely has joined #ponylang
emilbayes has joined #ponylang
BertolucciTalks has joined #ponylang
atk has joined #ponylang
atk has quit [Changing host]
atk has joined #ponylang
felko has quit []
khan has joined #ponylang
khan has quit [Quit: khan]
sternmull has joined #ponylang
tme11 has joined #ponylang
xek_ has joined #ponylang
xek has quit [Ping timeout: 260 seconds]
malthe has quit [Quit: Lost terminal]
sternmull has quit [Ping timeout: 260 seconds]
_andre has quit [Quit: leaving]
pzel has quit [Ping timeout: 244 seconds]
acarrico has quit [Ping timeout: 244 seconds]
ExtraCrispy has quit [Ping timeout: 264 seconds]
acarrico has joined #ponylang
TwoNotes has joined #ponylang
TwoNotes has quit [Client Quit]
endformationage has quit [Ping timeout: 268 seconds]
acarrico has quit [Ping timeout: 264 seconds]
nisanharamati has joined #ponylang
dnmllr has joined #ponylang