<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>
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?