<mahtob>
how can we decide using u32 or u64.is it same like in other languages? i use python generally so i asked
<SeanTAllen>
mahtob: i work at Wallaroo Labs
<mahtob>
hm let _time: (I64 val, I64 val) = Time.now() it is an example to ensure 2038 issue.isnt it
<SeanTAllen>
we used a u32 because what we needed to represent could be represented in 32 bits
<SeanTAllen>
The OS returns 64 bit values for time. that is why its I64 there
<mahtob>
you mean when programming you already know or you sure it wont be an overflow ?
<SeanTAllen>
thats too general to answer.
<SeanTAllen>
in that case, we know its going to be a 32 bit value
<mahtob>
yes i see clearly : like -> var message_count: I64 = 0
<mahtob>
for counting more messages...
jnyw has joined #ponylang
dipin has quit [Quit: dipin]
ro6 has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
dipin has joined #ponylang
sarna has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 256 seconds]
Xe has left #ponylang [#ponylang]
codec1 has quit [Read error: Connection reset by peer]
jemc has joined #ponylang
mahtob has quit [Remote host closed the connection]
jnyw has quit [Ping timeout: 255 seconds]
dipin has quit [Quit: dipin]
khan has joined #ponylang
jemc has quit [Ping timeout: 256 seconds]
dipin has joined #ponylang
dipin has quit [Ping timeout: 276 seconds]
jnyw has joined #ponylang
khan has quit [Quit: khan]
jnyw has quit [Quit: WeeChat 2.0.1]
bimawa1 has quit [Ping timeout: 265 seconds]
khan has joined #ponylang
bimawa1 has joined #ponylang
gokr has joined #ponylang
sarna has joined #ponylang
mahmudov has joined #ponylang
codec1 has joined #ponylang
<sarna>
hey uhm, how do I exactly send message to other actors? I can't find it in the tutorial
<sarna>
s/message/messages
<sarna>
alright, found it in pony-patterns, kind of
kai3x5 has quit [Ping timeout: 265 seconds]
kai3x5 has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
<SeanTAllen>
sarna: you call a behavior on the other actor
<SeanTAllen>
behavior calls are message sends
<sarna>
SeanTAllen: ah, alright.
<sarna>
by the way, I've started to build a simple wrapper over math.h, and the performance is the same as in C
<sarna>
I think there's no need to reinwent the wheel, and a simple wrapper would be enough
<SeanTAllen>
its a good start sarna. in the end, Pony code is preferred where possible as it makes it easier for Pony users to contribute, has more type safety etc.
<SeanTAllen>
However, its a very good start and would be welcomed. My suggestion. Do it as a library. Get people using the library. Get feedback. Once its nice and solid, consider opening an RFC for inclusion in the standard library.
<sarna>
ok :)
<SeanTAllen>
There's a github repo that has a lot of stuff to help you get started with setting up basics like CI etc for Pony libraries
<winksaville>
ponyc-rpm uses the debian build from bintray and includes openssl 0.9.0
<sarna>
well, now I can't install it because of some PGP signatures that couldn't be verified
<SeanTAllen>
winksaville: do you know much about git-lfs? i have a question about their deprecating `git lfs clone`. in particular git fls clone allowed you to only grab a single lfs entry when closing but git clone appears to grab everything.
<SeanTAllen>
thanks winksaville. you mentioned it the other day so i was hoping i would luck into you having knowledge
<mahmudov>
yes i see same issues for archlinux openssl 1.1.0
<mahmudov>
seantallen how can we ldflags to ponyc ?
<mahmudov>
can we pass*
<mahmudov>
maybe sarna can compile 1.0.x and link with it
<SeanTAllen>
what specifically are you trying to do mahmudov ?
<mahmudov>
i dont try actually.i wonder how can we link diffrent libraries
<mahmudov>
using -l'sslx' instead of -l'ssl'
<mahmudov>
like it
<SeanTAllen>
the -lssl comes from this in the source...
<SeanTAllen>
use "lib:ssl"
<SeanTAllen>
so the answer in your case would be you need to modify _ssl_init.pony in net/ssl/
<mahmudov>
hm or just making object then manually linking with specific libraries ?
<SeanTAllen>
you can do that yes
<SeanTAllen>
you can have pony go through the compilation process and then link manually
<mahmudov>
ponyc hasnt auto pass parameter for this.isnt it?
<SeanTAllen>
but the -lssl comes from that use.
<SeanTAllen>
not sure what "auto pass parameter" is.
dubiousjim has joined #ponylang
<mahmudov>
ponyc LDFLAGS=""
<mahmudov>
like it
<SeanTAllen>
i've never tried, but i believe the answer is no
<dubiousjim>
Hi I'm learning pony, and just stumbled upon references to `struct` in the Tutorial (FFI section), but it's never explained what's the difference between them and classes.
<dubiousjim>
Can someone explain?
<SeanTAllen>
structs are a special construct for working with C and should only be used for C-ffi
<SeanTAllen>
a class in pony has an object header that is needed by the garbage collector and other bits of the runtime
<SeanTAllen>
a struct has no such header
<SeanTAllen>
so its good to pass to C
<dubiousjim>
excellent, thanks
<SeanTAllen>
but not good to use in general outside of using as a bridge to and from c where you need for specific c calls
<SeanTAllen>
they have fastly sitting in front of it so it appears to be something at fastly is messed up
<mahmudov>
yes seantallen i just produced object code then i can link libraries what i want
<SeanTAllen>
excellent mahmudov
<mahmudov>
taht you see i linked it with libarchive
<mahmudov>
so i asked can we pass -l'archive' parameter directly at
<mahmudov>
ponyc args.
<mahmudov>
s/taht/that
<winksaville>
@seantallen, when you say "llmv 3.9.1 download is hosed" you mean from llvm?
khan has quit [Quit: khan]
khan has joined #ponylang
<winksaville>
I just downloaded llvm 3.9.1 and its sig from llvm.org and it was fine for me.
khan has quit [Client Quit]
khan has joined #ponylang
<SeanTAllen>
hosed as in unable to download. errors out 99% of the time.
<SeanTAllen>
llvm.org redirects to a fastly mirror
<SeanTAllen>
depending on where you are, you get a different fastly mirror
<SeanTAllen>
i for example get: l2.shared.us-eu.fastly.net.
<winksaville>
how did you determine the mirror?
<SeanTAllen>
nslookup releases.llvm.org
<winksaville>
hmm, I get: l2.shared.us-eu.fastly.net too
<SeanTAllen>
it took me about 5 hours to download the 3.9.1 for ubuntu xenial package
<SeanTAllen>
but 4.0.1 and 5.0.1 are fine
<winksaville>
:(
<SeanTAllen>
3.9.1 packages that ive tried are all almost impossible to get
<SeanTAllen>
but i got the 2 i needed
<SeanTAllen>
and they are in the github repo i created so. ¯\_(ツ)_/¯. i'm good for now
<winksaville>
yea!!
<SeanTAllen>
some weekend, ill update the dockerfiles to use the repo but given that they might never be rebuilt, its not high on my list of priorities
<winksaville>
so is lfs the right solution for the long term or is something else needed?
<SeanTAllen>
it worked quite well when i tested it
<SeanTAllen>
its either that or something like ftp
<SeanTAllen>
but then someone needs to host and maintain the ftp
<SeanTAllen>
i'd rather leave the hosting and maintaining to github
<SeanTAllen>
it downloads really qucik from github so, seems like a fine solution for now.
<winksaville>
SG, should we move other dependencies there such as the one Gordon is hosting for windows?
<SeanTAllen>
there's no dependencies hosted in his
khan has quit [Quit: khan]
khan has joined #ponylang
<SeanTAllen>
all i saw was a script that knows how to download things
<SeanTAllen>
im going to talk to him about its role in the process and about where it should live
<mahmudov>
with this definition we can easily pass lib parameter to ponyc.
<mahmudov>
so sarna i think if you compile openssl 1.0.x or 0.9 you can easily compile with this usage.
<sarna>
that's great, thank you mahmudov
<mahmudov>
youre welcome,i learned this with your triggering the issue :)
khan has quit [Quit: khan]
vaninwagen has joined #ponylang
dubiousjim has joined #ponylang
vaninwagen has quit [Ping timeout: 276 seconds]
<krig>
I made a thing as a learning experiment: https://github.com/krig/pony-fmt Would appreciate comments :) (bad idea, bad style, both?)
<SeanTAllen>
krig: can you add a pony-language topic to it on github? then its easier to find
<krig>
SeanTAllen: done
<SeanTAllen>
krig: i added it to the last week in Pony issue so it will be included. are you familiar with how to get things you do into last week in pony?
<krig>
SeanTAllen: ah, I wasn't no. But from what you just wrote I managed to figure it out :)
<krig>
SeanTAllen: cool, thanks!
<SeanTAllen>
i bookmarked your library krig. i'll try to take a look. i'm super busy all the time now between work and other pony work. and exhausted a lot of the time (and slightly cranky as a result), but i will endeavor to have a look next weekend.
<krig>
SeanTAllen: no worries! poking around with pony is stress relief for me, so I wouldn't want to put undue pressure on anyone else as a result
<SeanTAllen>
im hoping to get people uing the library starter kit so that there's feedback for documentation, "it would be nice if there was something that did X", "Foo doesnt work" etc. Almost all of it is extracted from my message pack library.
<SeanTAllen>
the only reason i wrote the message pack library was as a testbed for extracting a library starter kit.
<krig>
yeah, makes sense to have a common style for libraries
<SeanTAllen>
anyway. got to run. if you give the library starter kit a go and run into issues krig, let me know.
<krig>
will do, thanks again
jemc has joined #ponylang
<sarna>
`double frexp(double x, int *exponent)` - how do I wrap this function?