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 [Client Quit]
khan has joined #ponylang
farismustafa has joined #ponylang
farismustafa has quit [Ping timeout: 240 seconds]
farismustafa has joined #ponylang
farismustafa has quit [Ping timeout: 276 seconds]
codec1 has quit [Read error: Connection reset by peer]
acarrico has quit [Ping timeout: 268 seconds]
farismustafa has joined #ponylang
acarrico has joined #ponylang
jemc has joined #ponylang
farismustafa has quit [Ping timeout: 240 seconds]
<SeanTAllen> Amun_Ra: ?
acarrico has quit [Ping timeout: 240 seconds]
SenasOzys has quit [Ping timeout: 248 seconds]
<patroclos> are there any resources on how to use pony arrays and strings in c?
endformationage has quit [Quit: WeeChat 1.9.1]
jemc has quit [Ping timeout: 252 seconds]
dipin has quit [Quit: dipin]
jemc has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
mollymorphic has quit [Ping timeout: 268 seconds]
mollymorphic has joined #ponylang
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
khan has quit [Remote host closed the connection]
mollymorphic has quit [Ping timeout: 252 seconds]
mollymorphic has joined #ponylang
mollymorphic has quit [Ping timeout: 256 seconds]
mollymorphic has joined #ponylang
<Amun_Ra> SeanTAllen: I did not type "/j"
khan has joined #ponylang
_whitelogger has joined #ponylang
jonrh has quit [Read error: Connection reset by peer]
jonrh has joined #ponylang
cquinn has quit [Read error: Connection reset by peer]
voldyman has quit [Read error: Connection reset by peer]
cquinn has joined #ponylang
voldyman has joined #ponylang
mollymorphic has quit [Ping timeout: 245 seconds]
mollymorphic has joined #ponylang
mollymorphic has quit [Ping timeout: 256 seconds]
mollymorphic has joined #ponylang
mollymorphic has quit [Ping timeout: 260 seconds]
mollymorphic has joined #ponylang
SenasOzys has joined #ponylang
mollymorphic has quit [Remote host closed the connection]
mollymorphic has joined #ponylang
chase has joined #ponylang
chase is now known as Guest6322
Guest6322 has quit [Client Quit]
<SeanTAllen> patroclos: what are you looking to do?
mollymorphic has quit [Ping timeout: 265 seconds]
mollymorphic has joined #ponylang
user10032 has joined #ponylang
jemc has joined #ponylang
hokuto has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
hokuto has quit [Quit: Page closed]
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #ponylang
<patroclos> SeanTAllen: I'm looking to pass an Array[String] to a c function and have it access the underlying char buffer of the strings
<SeanTAllen> hmmm
<SeanTAllen> you can get the c string representation of the strings by calling .cstring() on them.
<SeanTAllen> i havent ever tried to call .cstring on pony strings from c, you can do it but passing the cstring() result itself it probably easier.
<SeanTAllen> in general all the c-ffi i do is stuff that is already nice and c friendly. so i cant really help much. but i think whatever you work out would be a great blog post.
<SeanTAllen> and an excellent addition to the c-ffi section of the tutorial
<patroclos> well, all I figured out until now is that I can pass a pony array directly as a ponyint_array_t*
<SeanTAllen> there are not many (any?) libraries for working pony objects from c in a nice fashion. it can be done but, i think that would be an interesting project.
<SeanTAllen> aturley_: has a change we made to the pony compiler that allows you to export definitions of pony objects for use in c that would be helfpul but we haven't gotten around to implementing that yet. Eventually he is going to write up a RFC for that.
dougmacdoug has joined #ponylang
dougmacdoug has quit [Client Quit]
codec1 has joined #ponylang
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 joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
mollymorphic has quit [Ping timeout: 256 seconds]
khan has quit [Client Quit]
mollymorphic has joined #ponylang
khan has joined #ponylang
farismustafa has joined #ponylang
mollymorphic has quit [Ping timeout: 256 seconds]
mollymorphic has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
calebuharrison has joined #ponylang
calebuharrison has quit [Client Quit]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
dougmacdoug has joined #ponylang
user10032 has quit [Quit: Leaving]
<dougmacdoug> anyone know enough about the compiler/optimizer to know if redirected function calls get optimized away.. in other words if I have fun foo(x: Int) => /*do stuff*/ and then I have an alias method like fun bar(x: Int)=> foo(x)
<dougmacdoug> does the assembled code actually make the bar call, then the foo call or does it just get optimized to call foo
<SeanTAllen> it should inline that bar call
<dougmacdoug> nice.. seems reasonable
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