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
koczurekk has quit [Ping timeout: 256 seconds]
aturley has joined #ponylang
aturley has quit [Quit: aturley]
winksaville has joined #ponylang
dipin has joined #ponylang
chamar has left #ponylang ["Leaving"]
<Schwarzbaer> I just installed the ponyc deb, cloned the ponyc repo, and tried to build ponyc/examples/net: http://dpaste.com/1YM8STS
<Schwarzbaer> For that matter, the output from trying to compile hello world looks quite similar.
winksaville has quit [Ping timeout: 260 seconds]
Dimonax has quit [Remote host closed the connection]
<Schwarzbaer> A little googling later, using "ponyc --pic" solves the problem, though I have *no* idea what I'm doing...
<Schwarzbaer> Some problems do persist on the networking example, though, with regard to undefined references: http://dpaste.com/3E0MMH0
endformationage has joined #ponylang
khan has joined #ponylang
<endformationage> koczurekk: If you read the logs... It sounds like you may be attempting to receive a struct by value, in which case Pony's FFI does not (yet?) support this. You might find the ffi-struct example useful:
aturley has joined #ponylang
<endformationage> Schwarzbaer: Huh, looks like it can't find your system's SSL libs.
endformationage has quit [Quit: WeeChat 1.9.1]
aturley has quit [Quit: aturley]
khan has quit [Quit: khan]
dipin has quit [Quit: dipin]
codec1 has joined #ponylang
gokr has joined #ponylang
SenasOzys has joined #ponylang
khan has joined #ponylang
koczurekk has joined #ponylang
khan has quit [Remote host closed the connection]
rurban has joined #ponylang
khan has joined #ponylang
rurban has left #ponylang [#ponylang]
SenasOzys has quit [Ping timeout: 248 seconds]
koczurekk has quit [Ping timeout: 248 seconds]
SenasOzys has joined #ponylang
koczurekk has joined #ponylang
koczurekk has quit [Quit: Leaving]
khan has quit [Remote host closed the connection]
gokr has quit [Ping timeout: 240 seconds]
samuell has joined #ponylang
gokr has joined #ponylang
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #ponylang
literal has quit [Ping timeout: 240 seconds]
dipin has joined #ponylang
rurban1 has joined #ponylang
rurban1 has left #ponylang [#ponylang]
rurban2 has joined #ponylang
rurban2 has left #ponylang [#ponylang]
rurban3 has joined #ponylang
rurban has joined #ponylang
rurban has left #ponylang [#ponylang]
rurban4 has joined #ponylang
rurban5 has joined #ponylang
rurban5 has left #ponylang [#ponylang]
rurban6 has joined #ponylang
rurban6 has quit [Client Quit]
endformationage has joined #ponylang
rurban3 has quit [Ping timeout: 260 seconds]
rurban4 has quit [Ping timeout: 272 seconds]
jemc has joined #ponylang
<Schwarzbaer> Sooo, trying to compile ponyc/examples/net on a Debian with a ponyc version 0.21.2-63911b5 installed from .deb via apt still results in http://dpaste.com/3E0MMH0 despite libssl-dev being installed. Assuming that libssl can't be found, where do I find out where ponyc is looking? Assuming that that's not the problem, how do I proceed?
<codec1> Hi, I am no Linux expert but isn't the last line the call to gcc which give the search path for the libraries ?
SenasOzys has quit [Ping timeout: 260 seconds]
<codec1> by the way, which version of Debian are you using ?
<Schwarzbaer> stretch, I think. Whatever that may be; TBH I hate code names like that.
<Schwarzbaer> If that's indeed the problem, then someone needs to update the ponyc package based on Debian's propensity to play "Hide the library", because all that's in /usr/local/lib/ is Python.
<codec1> do you have something in /usr/lib ?
<Schwarzbaer> In /usr/lib/x86_64-linux-gnu/
<codec1> seems correct since it match this page: https://packages.debian.org/stretch/amd64/libssl-dev/filelist
<Schwarzbaer> Yeah, all three. libssl, librt, libcrypto.
<Schwarzbaer> So, the brutal approach would be to just symlink the .sos in /usr/local/lib/. The maybe-helpful-one would be to file an issue against ponyc.
<codec1> did you try it ?
<Schwarzbaer> Not yet, you *just* pointed me in the right direction. :)
<Schwarzbaer> Will try after discussing dinner with my flatmate.
<codec1> From my experience on Windows, link error are because: 1) someone forget to add the command line option to link with a library 2) the linker can't find the library file 3) They are missing functions in the library
SenasOzys has joined #ponylang
<codec1> Usually on windows the linker complains and abort it works when it can't find a specified library which result in a different message than one with missing options or symbols
<codec1> but since the command line appear to tell the linker to link with "ssl" I would expect it to say it didn't find the library it were the case
<codec1> but maybe it just the way gcc works
<Schwarzbaer> Huh, that's interesting, creating those symlinks did indeed not do anything.
<codec1> maybe you could check if there is those functions in the library
<Schwarzbaer> That's *quite* the rabbit hole you're sending me down. :D
<codec1> well I think it's pretty easy on linux
vaninwagen has joined #ponylang
<codec1> the web either say nm, objdump or readelf
codec2 has joined #ponylang
codec1 has quit [Quit: Leaving.]
vaninwagen has quit [Ping timeout: 240 seconds]
vaninwagen has joined #ponylang
vaninwagen has quit [Ping timeout: 248 seconds]
winksaville has joined #ponylang
aturley has joined #ponylang
<dave24> Should I just use a normal String type to represent a UTF8 string?
<aturley> dave24 that's your best bet. the String type doesn't specify an encoding.
<dave24> Yes, I read that in the file and thought perhaps there is something else. But thats fine then; Thanks!
<dave24> It sort of need to specify an encoding one would think, because of things like reversing a string.
<aturley> yeah, if you look at the reverse method there's actually a comment about that.
<aturley> strings are one of the areas that we've had lots of discussion around.
nisanharamati has joined #ponylang
Praetonus has joined #ponylang
nisanharamati has quit []
aturley_ has joined #ponylang
aturley has quit [Ping timeout: 265 seconds]
inoas has joined #ponylang
darach has quit [Ping timeout: 252 seconds]
electronjoe has quit [Ping timeout: 250 seconds]
jtfmumm has quit [Ping timeout: 250 seconds]
j14159 has quit [Ping timeout: 240 seconds]
mrallen1 has quit [Read error: Connection reset by peer]
voldyman has quit [Read error: Connection reset by peer]
bbhoss has quit [Ping timeout: 240 seconds]
SeanTAllen has quit [Read error: Connection reset by peer]
jonrh has quit [Ping timeout: 264 seconds]
cquinn has quit [Ping timeout: 255 seconds]
pcarrier has quit [Read error: Connection reset by peer]
slfritchie has quit [Ping timeout: 240 seconds]
gornikm has quit [Ping timeout: 240 seconds]
omarkj has quit [Ping timeout: 255 seconds]
strmpnk has quit [Ping timeout: 250 seconds]
emilbayes has quit [Ping timeout: 250 seconds]
mikeyhew has quit [Ping timeout: 250 seconds]
surma has quit [Ping timeout: 252 seconds]
ericbmerritt_ has quit [Ping timeout: 255 seconds]
jeremyheiler has quit [Ping timeout: 255 seconds]
SenasOzys has quit [Ping timeout: 252 seconds]
vaninwagen has joined #ponylang
mikeyhew has joined #ponylang
j14159 has joined #ponylang
cquinn has joined #ponylang
jtfmumm has joined #ponylang
_andre has quit [Quit: leaving]
mrallen1 has joined #ponylang
SeanTAllen has joined #ponylang
jeremyheiler has joined #ponylang
emilbayes has joined #ponylang
omarkj has joined #ponylang
darach has joined #ponylang
ericbmerritt_ has joined #ponylang
bbhoss has joined #ponylang
pcarrier has joined #ponylang
electronjoe has joined #ponylang
gornikm has joined #ponylang
strmpnk has joined #ponylang
slfritchie has joined #ponylang
voldyman has joined #ponylang
aturley has joined #ponylang
aturley_ has quit [Ping timeout: 240 seconds]
koczurekk has joined #ponylang
<koczurekk> Hi again! :) How do you deal with C structs containing enums?
<Praetonus> Hello koczurekk. Do you have an example of what you'd like to do?
surma has joined #ponylang
jonrh has joined #ponylang
jemc has quit [Ping timeout: 265 seconds]
jemc has joined #ponylang
<koczurekk> There's a C struct with several enums and I have to reproduce it in Pony (and then pass a pointer to it around).
<koczurekk> I can write an example code if you want.
<koczurekk> The thing is that there's some function fill(SomeStruct*) and I don't know how an equivalent of this SomeStruct should look like in Pony.
gokr has quit [Ping timeout: 240 seconds]
<vaninwagen> Schwarzbaer, which version of openssl or libssl-dev did you install on your debian machine?
<jemc> koczurekk: the usual way is to treat the enums as `I32` in pony, and wrap with pony code that knows the meanings of the magic numbers associated with the enum
samuell has quit [Quit: Leaving]
<Schwarzbaer> vaninwagen, libssl 1.1 (1.1.0f-3+deb9u1)
<vaninwagen> Schwarzbaer, we have an issue (https://github.com/ponylang/ponyc/issues/1838) and a PR for that (https://github.com/ponylang/ponyc/pull/2415)
<vaninwagen> the gist is that openssl >= 1.1.0 is currently not supported
<vaninwagen> but there is already one possible solution ready as PR and we are heavily discussing this
<koczurekk> Thanks a lot, @jemc.
koczurekk has quit [Quit: Leaving]
<Schwarzbaer> So... "Sit back and wait for the merge"?
<Schwarzbaer> Or rather "Until merge, go play with everything else in Pony other than SSL"? Because I can totally do that, I definitely don't need SSL right now. ^^ Not until in... Well, between a few months and a few years, I guess.
<Schwarzbaer> (Actually, copypasting the net example and ripping out everything SSL-related is probably even a good exercise in reading code.)
<vaninwagen> Schwarzbaer, yeah, sit back and ejoy the show :)
<vaninwagen> *enjoy
inoas has quit [Quit: inoas]
codec2 has quit [Read error: Connection reset by peer]
<winksaville> Actually, I'd like it if you could test https://github.com/ponylang/ponyc/pull/2415
jemc has quit [Ping timeout: 252 seconds]
vaninwagen has quit [Ping timeout: 248 seconds]