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
jemc has quit [Ping timeout: 245 seconds]
dougmacdoug has joined #ponylang
unbalancedparen has joined #ponylang
kushalp_ has joined #ponylang
inara` has joined #ponylang
jeremyheiler_ has joined #ponylang
aedigix- has joined #ponylang
jemc has joined #ponylang
Fuuzetsu has quit [Ping timeout: 255 seconds]
inara has quit [Ping timeout: 255 seconds]
jeremyheiler has quit [Ping timeout: 255 seconds]
kushalp has quit [Ping timeout: 255 seconds]
aedigix has quit [Ping timeout: 255 seconds]
unbalanced has quit [Ping timeout: 255 seconds]
kushalp_ is now known as kushalp
jeremyheiler_ is now known as jeremyheiler
Fuuzetsu has joined #ponylang
amclain has quit [Quit: Leaving]
jemc has quit [Ping timeout: 245 seconds]
aav_away_ has joined #ponylang
aav_away has quit [Ping timeout: 256 seconds]
jemc has joined #ponylang
dougmacdoug has quit [Ping timeout: 256 seconds]
Matthias247 has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]
_andre has joined #ponylang
wizeman has joined #ponylang
jemc has quit [Ping timeout: 268 seconds]
aav_away_ is now known as aav
dougmacdoug has joined #ponylang
<zevlg> here is my very first attempt to create issue in RFC repo - https://github.com/ponylang/rfcs/issues/77 please tolerate possible stupidity
<SeanTAllen> zevlg: that's not how you create a RFC
<SeanTAllen> check out the instructions here in the README.md: https://github.com/ponylang/rfcs/blob/master/README.md
<SeanTAllen> we open issues for requests to create a RFC
<SeanTAllen> perhaps that was your intent
<SeanTAllen> in which case, you are basically saying "someone please think about this and create a RFC for it"
<SeanTAllen> vs creating the RFC yourself and having to work through any issues
<SeanTAllen> if the former is what you intended then you are good
<SeanTAllen> just want to make sure that was your intent
<zevlg> SeanTAllen: I'm not that confident in the topic in order to create RFC, I think jemc could do much better. I can intensively test the implementation or help in any kind
<zevlg> that was my intention in creating that issue
<SeanTAllen> sounds good then
<SeanTAllen> ^5
jemc has joined #ponylang
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #ponylang
amclain has joined #ponylang
<zevlg> jemc: hey, I wrote https://github.com/ponylang/rfcs/blob/master/README.md I'm not so confident about creating RFC for this issue, could you please consider making RFC for this thing? I could test the implementation and help in as I can
<SeanTAllen> zevlg: i dont think that is the link you intended
<zevlg> oops, this is correct one - https://github.com/ponylang/rfcs/issues/77
prettyvanilla_ has joined #ponylang
prettyvanilla has quit [Ping timeout: 260 seconds]
<dougmacdoug> just curious.. what is the problem with just putting the data in the struct yourself? what use case do you have where you need multiple ways to access a data from union ? that seems like it would only be the concern of the internal C api.. you could even write a pony union type with a simple let match to populate the correct U8 tuple ..
<zevlg> dougmacdoug: adhoc solution is of course possible right now, you just calculate biggest field in union and add it as field, and then just cast to type you need. It does not feels natural however, having builtin union type doing all that work for you - that is feels natural :)
<zevlg> also, functionality for https://github.com/ponylang/rfcs/issues/75 might require union type as well
<jemc> dougmacdoug: many
<jemc> sorry, didn't finish typing there
<jemc> dougmacdoug: many C libraries have unions as part of their public interface, so being able to deal with them from Pony would be a prerequisite to using thoe from FFI
<jemc> also, bitcasting isn't possible in Pony without using a lot of C hackery
<jemc> zevlg: I'll bring it up for discussion on today's sync call, to get some basic feedback on the idea and what pitfalls we might run into with it
<dougmacdoug> well, i've only done a few things with ffi so far, but it just seemed to me you could write a wrapper class that would convert a pony union type to the correct collection of U8 tuples to pass to the C call and reverse
<dougmacdoug> ah, nvm.. i see the issue now..
Matthias247 has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]
<jemc> zevlg: which C library are you trying to bind to, by the way?
<aav> if I have Array[U8] ref - how is it possible to create Array[U8] val out of it? (obviosly it must be a copy)
<aav> Array.clone() type is Array ref
<aav> this is the only solution i got to work
<aav> but it will not work, if source array would be a class member (cannot be consumed)
<SeanTAllen> aav: you need to copy from the one to the other
Matthias247 has joined #ponylang
aav- has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]
aav- has quit [Client Quit]
Matthias247 has joined #ponylang
aav- has joined #ponylang
<jemc> aav: we have a solution for making `Array.clone` work better with capabilities, but it requires this RFC (which has already been accepted) to be implemented: https://github.com/ponylang/rfcs/pull/62
<jemc> for now the workaround is to do a loop and copy one element at a time with `push`
aav- has quit [Client Quit]
lisael has joined #ponylang
wizeman has quit [Quit: Connection closed for inactivity]
SparkySparkyBoom is now known as flippant
Matthias247 has quit [Read error: Connection reset by peer]