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
sarna has quit [Quit: Connection closed for inactivity]
Miikka[m] has joined #ponylang
irx[m] has joined #ponylang
dtz has joined #ponylang
M-hrjet has joined #ponylang
srenatus has joined #ponylang
jemc has quit [Ping timeout: 256 seconds]
jemc has joined #ponylang
acarrico has quit [Ping timeout: 245 seconds]
acarrico has joined #ponylang
hateful_moron has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jaro has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 248 seconds]
nisanharamati has quit [Quit: Connection closed for inactivity]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jemc has quit [Ping timeout: 248 seconds]
sarna has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9.1]
<emilbayes> How do I print a `Array[U8 val] val` to stdout? It seems that `OutStream.print` takes `ByteSeq`, which matches, but noting is printed
<emilbayes> what am I doing wrong? :)
betawaffle has quit [Excess Flood]
betawaffle has joined #ponylang
<hateful_moron> emailbayes: you mean like this? https://playground.ponylang.org/?gist=fcbeb9c499ad30fa1d7c62624b921b6f
<hateful_moron> emilbayes, sorry
<emilbayes> hateful_moron: Ya! Hmm not sure why it doesn't work in my program then
<hateful_moron> emilbayes: are you sure that the bytes themselves are printable?
<emilbayes> hateful_moron: Ah, that might be what it is
<emilbayes> hateful_moron: I was trying to print a hash value of 32 bytes so I'd expect some of them to be printable / gibberish
Rachel has joined #ponylang
Rachel is now known as Guest65529
Shorttail has joined #ponylang
<Shorttail> Does anyone here have experience with sqlite and pony? I've hit a weird issue where moving some bind code into its own function causes sqlite3_finalize to hang
<Shorttail> Sorry, not hang, segfault
<Shorttail> Calling apply on a primitive is just like any other function call, right? No implied magic?
khan has quit [Ping timeout: 256 seconds]
<emilbayes> hateful_moron: Ah, found the issue to be that my Array had size() == 0
<hateful_moron> oh that'll do it, haha
<emilbayes> was writing to the array from ffi so need to figure out how to tell array that it is now a new size
<emilbayes> maybe I am just better off treating a hash digest as a string and not Array[U8]
<hateful_moron> you could use Array.truncate if you know how big the array is afterwards
<emilbayes> hateful_moron: Oh, thanks! I actually do
<emilbayes> hateful_moron: Hmm, I don't think that will work since _size is 0, so truncate will call _size.min(32), which will just be 0 again
<emilbayes> hateful_moron: It seems Array.undefined is what I want, but I feel like I'm in deep water
<hateful_moron> the alternative would be to use Array.init with some ceiling amount of bytes and then using truncate after calling the ffi
<emilbayes> hateful_moron: Hmm yeah, that will not work here. I think undefined is fine for now. Do you know if there is an easy way to print the contents as hex?
<hateful_moron> emilbayes: https://stdlib.ponylang.org/format--index/, this looks helpful
<hateful_moron> still learning myself :)
<emilbayes> hateful_moron: Thanks!
<emilbayes> yay hehe
khan has joined #ponylang
<Shorttail> Segfault fixed, though I don't know what difference was, maybe there was different garbage in the two cases
hateful_moron has quit [Quit: leaving]
Shorttail has quit [Ping timeout: 260 seconds]
khan has quit [Quit: khan]
alxs has joined #ponylang
bimawa has joined #ponylang
sgt has joined #ponylang
sgt has quit [Ping timeout: 260 seconds]
bimawa has quit [Read error: Connection reset by peer]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
bimawa has joined #ponylang
bimawa has quit [Read error: Connection reset by peer]
alxs has joined #ponylang
alxs has quit [Client Quit]
_andre has joined #ponylang
acarrico has joined #ponylang
sarna has quit [Quit: Connection closed for inactivity]
khan has joined #ponylang
alxs has joined #ponylang
alxs has quit [Client Quit]
<dave24> What does it mean in the compiler if `ast_type` of an expression is 0. Is that `None` or a typecheck error?
<dave24> nvm it's the latter.
Guest65529 has quit [Quit: Textual IRC Client: www.textualapp.com]
guest14 has joined #ponylang
guest14 has quit [Client Quit]
hunter2 has joined #ponylang
<SeanTAllen> dave24: sounds like you are getting deep into things, what are you working on?
hunter2 has quit [Client Quit]
<dave24> SeanTAllen: I ran into some assertions and segfaults in the compiler.
<dave24> returning from an else block in loops does not seem to be well tested.
<dave24> compiler gets very confused
<dave24> and me too now
<dave24> like this for example: `while true do break else return end`
<SeanTAllen> yeah that is definitely a less well trodden area
jemc has joined #ponylang
sarna has joined #ponylang
alxs has joined #ponylang
<hanshoi> seems like when you use FFI C-function that is also an keyword, the compiler doesn't allow calling it and thus cannot be used.
<hanshoi> no way around it?
khan has quit [Quit: khan]
khan has joined #ponylang
<SeanTAllen> hanshoi: not sure what you mean...
<SeanTAllen> hanshoi: do you have a minimal example?
<dave24> I think he just means `@then(2)`
<dave24> where `then` is a c function
<dave24> and also a pony keyword
<hanshoi> sorry :(
<hanshoi> now, there is my actual problem, the box is not allowed
khan has quit [Quit: khan]
khan has joined #ponylang
<SeanTAllen> That's interesting
<SeanTAllen> Can you open an issue?
<hanshoi> sure, I will do that
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
<SeanTAllen> thanks hanshoi
<hanshoi> sorry that can't contribute a PR, not much of a C coder.
<hanshoi> thanks for looking into this
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
nisanharamati has joined #ponylang
<dave24> lel, I wrote a fix for it and all the tests pass. But I have a feeling it's not right.
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
endformationage has joined #ponylang
khan has quit [Client Quit]
<dave24> What is this existing type here?
<dave24> nvm I understand
<dave24> I think....
alxs has joined #ponylang
sonofblip has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
sonofblip has quit [Quit: Page closed]
jemc has quit [Ping timeout: 264 seconds]
alxs has joined #ponylang
alxs has quit [Client Quit]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
sarna has quit [Quit: Connection closed for inactivity]
jemc has joined #ponylang
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
jemc has quit [Read error: Connection reset by peer]
sarna has joined #ponylang
alxs has quit [Ping timeout: 268 seconds]
alxs has joined #ponylang
jemc has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
jonrh has left #ponylang [#ponylang]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
_andre has quit [Quit: leaving]
brainproxy has quit [Ping timeout: 256 seconds]
sarna has quit [Quit: Connection closed for inactivity]
brainproxy has joined #ponylang
alxs has joined #ponylang
alxs has quit [Client Quit]
alxs has joined #ponylang
alxs has quit [Client Quit]