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
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jemc has quit [Read error: Connection reset by peer]
jemc has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
gokr has quit [Ping timeout: 268 seconds]
khan has quit [Client Quit]
khan has joined #ponylang
acarrico has quit [Ping timeout: 260 seconds]
acarrico has joined #ponylang
jaro has quit [Ping timeout: 240 seconds]
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
acarrico has quit [Ping timeout: 260 seconds]
jemc has quit [Ping timeout: 240 seconds]
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
jemc has joined #ponylang
jemc has quit [Read error: Connection timed out]
jemc has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
xieyuheng has joined #ponylang
jemc has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
khan has quit [Ping timeout: 260 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
xieyuheng has quit [Remote host closed the connection]
bimawa2 has quit [Ping timeout: 256 seconds]
bimawa2 has joined #ponylang
m6w6 has quit [Quit: ZNC - http://znc.in]
jemc has quit [Ping timeout: 260 seconds]
m6w6 has joined #ponylang
ybden has quit [Ping timeout: 255 seconds]
ybden has joined #ponylang
bimawa3 has joined #ponylang
bimawa2 has quit [Ping timeout: 265 seconds]
gokr has joined #ponylang
bimawa4 has joined #ponylang
bimawa3 has quit [Ping timeout: 268 seconds]
bimawa4 has quit [Quit: WeeChat 1.9.1]
bimawa has joined #ponylang
<bimawa> Damn i so hate Swift for ios, I so mouch want pony for arm64 for iOS/Android/Server and for iot embedded system..... Are I must be contributor fot that awesome language?
vaninwagen has joined #ponylang
aturley_ has joined #ponylang
aturley has quit [Ping timeout: 264 seconds]
ybden has left #ponylang [#ponylang]
vaninwagen has quit [Ping timeout: 248 seconds]
bimawa has quit [Read error: Connection reset by peer]
bimawa has joined #ponylang
acarrico has joined #ponylang
_rck has joined #ponylang
<_rck> is it possible to define a pool of tcp acceptors using the built-in TCPListener?
jemc has joined #ponylang
<SeanTAllen> im not sure what you mean _rck
<SeanTAllen> do you mean you want to listen on multiple different ports?
<_rck> in a single port, I mean
<_rck> if I'm understanding the docs correctly, everytime you accept a connection, you spawn a new TCPConnectionNotify actor, right?
<_rck> so I was wondering if you could a have a pool of pre-allocated actors, instead of spawning a new one each time
<_rck> this is just me wondering how well the built-in TCP server performs in terms of throughput
khan has joined #ponylang
aturley_ has quit [Quit: aturley_]
aturley 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
<SeanTAllen> you could create your own listener based on the current one that would do what you are suggesting
<SeanTAllen> you could open an RFC to add an option to the existing listener to prespawn some number
<SeanTAllen> the time to start up a tcpconnection actor is really minimal and has little impact on throughput unless you are expecting lots of short, quick connnections.
<SeanTAllen> an RFC would be a good place to discuss those sorts of changes or even better you could first create a library that has its own tcp classes that does what you want and use that as the basis for an RFC discussion.
<_rck> thanks, if I hit some limitations with the current listener, I'll definitely ping you for some further advice :^)
<SeanTAllen> if you arent doing a lot and its pure streaming, you can push a lot of data through a tcp connnection, not world ending or anything but a nice amount.
gokr has quit [Quit: Leaving.]
jemc has quit [Ping timeout: 265 seconds]
endformationage has joined #ponylang
gokr has joined #ponylang
khan has quit [Remote host closed the connection]
gokr has quit [Quit: Leaving.]
jaro has joined #ponylang
droman has joined #ponylang
jemc has joined #ponylang
brainproxy has quit [Quit: WeeChat 2.1]
Candle has quit [Ping timeout: 276 seconds]
_rck has quit [Ping timeout: 268 seconds]
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #ponylang
acarrico has quit [Ping timeout: 240 seconds]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
droman_ has joined #ponylang
droman has quit [Ping timeout: 276 seconds]
vaninwagen has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
acarrico has joined #ponylang
Shorttail has joined #ponylang
<Shorttail> How do I have both an executable and a test? I can't call both Main and I can't find any compiler arg that specifies what Main to use
droman has joined #ponylang
droman_ has quit [Ping timeout: 240 seconds]
<jemc> Shorttail: my recommended pattern is to use a subdirectory for tests instead of writing tests in the same directory/package as the implementation itself
<jemc> it's what I do on all my libraries, and I've been trying to convince the rest of the folks to do that in the standard library too ;)
droman has quit [Ping timeout: 240 seconds]
droman_ has joined #ponylang
<Shorttail> jemc: How do you wire that with ponyc? I put a _test.pony in a test folder, added the main folder with -p, and it complains no Main actor is found in the main folder. Is there an example of this setup?
_andre has quit [Quit: leaving]
_rck has joined #ponylang
droman has joined #ponylang
droman_ has quit [Ping timeout: 240 seconds]
<vaninwagen> Shorttail: are you working on a library that doesnt have a Main actor? if so, you cant just compile it to a binary without any Main
<vaninwagen> sorry, i got you wrong
<vaninwagen> Here is an example on how you would have your tests in a separate test directory: https://github.com/mfelsche/ponycheck/blob/master/ponycheck/test/main.pony
<vaninwagen> the trick is to use `use ".."` to include the code under test from within the test dir
acarrico has quit [Ping timeout: 248 seconds]
<Shorttail> ".." seems to do the trick of ignoring the other Main actor, thanks a lot!
_rck has quit [Ping timeout: 256 seconds]
<vaninwagen> hehe, i just had to verify myself, that this pattern actually works if there is a Main actor in the program to test using ".." - and it does :)
<vaninwagen> was mostly writing libraries so far
<Shorttail> What about the color output on tests? It generates characters instead in both CMD and Powershell
gokr has joined #ponylang
<vaninwagen> hmmm... it uses ANSI term color escape codes
<vaninwagen> these are not interpreted by powershell or CMD by default, you'd need some hacking to support them there (i guess)
<Shorttail> Powershell has its own verbose set of colors, I don't think CMD has any. A way to disable the colors alltogether would be nice though
<vaninwagen> true dat
<vaninwagen> Shorttail: would you mind creating an issue for that if that bites you?
<Shorttail> Sure
<vaninwagen> thank you! :)
_rck has joined #ponylang
vaninwagen has quit [Quit: WeeChat 2.1]
<strmpnk> Shorttail: You can set a registry key to enable ANSI escapes by default in conhost. See this registry key: https://github.com/rg3/youtube-dl/issues/15758
<strmpnk> The real fix would be for pony to set the console mode: https://docs.microsoft.com/en-us/windows/console/setconsolemode
<strmpnk> I had issues with some of the FFI code last time I tried making it work but it might be worth revisiting this.
Candle has joined #ponylang
pzel has joined #ponylang
<strmpnk> I wish ANSI support would be enabled by default but Microsoft if touchy about any compatibility risks.
<Shorttail> I wish I had known about the registry fix long ago
Candle has quit [Ping timeout: 256 seconds]
<SeanTAllen> strmpnk is a wonderful source of knowledge
_rck has quit [Quit: WeeChat 2.1]
droman has quit [Quit: WeeChat 2.1]
acarrico has joined #ponylang
pzel has quit [Ping timeout: 260 seconds]