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
atk has quit [Quit: Well this is unexpected.]
atk has joined #ponylang
jemc has quit [Ping timeout: 252 seconds]
samuell has quit [Remote host closed the connection]
acarrico has joined #ponylang
acarrico has quit [Ping timeout: 240 seconds]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
_whitelogger has joined #ponylang
user10032 has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9]
user10032 has quit [Quit: Leaving]
vaninwagen has joined #ponylang
samuell has joined #ponylang
samuell has quit [Ping timeout: 240 seconds]
samuell has joined #ponylang
samuell has quit [Ping timeout: 240 seconds]
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
_andre has joined #ponylang
samuell has joined #ponylang
ShalokShalom_ is now known as ShalokShalom
acarrico has joined #ponylang
samuell has quit [Ping timeout: 264 seconds]
samuell has joined #ponylang
jemc has joined #ponylang
rrader has joined #ponylang
<rrader> Hi
<rrader> > A class is declared with the keyword class, and it has to have a name that starts with a capital letter
<rrader> what about if we should have a class iOS or iPhine, how you will name it?
<rrader> what about if we should have a class iOS or iPhone, how you will name it?
<SeanTAllen> you'd have to name it IOS or IPhone rrader
rrader has quit [Quit: Page closed]
ShalokShalom_ has joined #ponylang
ShalokShalom has quit [Ping timeout: 260 seconds]
jsgrant has quit [Remote host closed the connection]
jsgrant has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
vaninwagen has quit [Ping timeout: 248 seconds]
samuell has quit [Quit: Leaving]
user10032 has joined #ponylang
endformationage has joined #ponylang
ShalokShalom_ is now known as ShalokShalom
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
aturley has joined #ponylang
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
rurban has joined #ponylang
rurban has quit [Client Quit]
_andre has quit [Quit: leaving]
samuell has quit [Quit: Leaving]
tscho has quit [Read error: Connection reset by peer]
tscho has joined #ponylang
user10032 has quit [Quit: Leaving]
<endformationage> Hello. I'm attempting to use primitives in a generic type parameter like one would with C++ template expression parameters. I'm wondering if something like this is possible:
<jemc> endformationage: yeah, here's a working example of your snippet, using a trait instead of a type union: https://playground.ponylang.org/?gist=154f26896f12766b425fe51ca83e32d0
<jemc> a couple notes on allocation though:
<jemc> `Array.size` will reflect the number of elements that have been "pushed in" already, so in this case it shows as zero
<jemc> `Array.space` would be the next recommendation, but it will always show as eight in both of your examples, since `Array` allocates to the nearest power of two, starting with 8
<jemc> depending on what your requirements are, you may find it easier to model what you're doing as `Vector2[T]` and `Vector3[T]`, and store the members as fields, to avoid over-allocation, and avoid working against the "partial" nature of dynamic Arrays
jemc has quit [Ping timeout: 240 seconds]
<endformationage> Thanks jemc!
<endformationage> Oh, missed him.
<endformationage> Oh, darn, that was the original link that was paste.