00:09
sarna has quit [Quit: Connection closed for inactivity]
00:09
Miikka[m] has joined #ponylang
00:09
irx[m] has joined #ponylang
00:09
dtz has joined #ponylang
00:09
M-hrjet has joined #ponylang
00:09
srenatus has joined #ponylang
00:53
jemc has quit [Ping timeout: 256 seconds]
00:56
jemc has joined #ponylang
01:00
acarrico has quit [Ping timeout: 245 seconds]
01:02
acarrico has joined #ponylang
01:11
hateful_moron has joined #ponylang
01:44
khan has quit [Quit: khan]
01:45
khan has joined #ponylang
01:49
khan has quit [Client Quit]
01:50
khan has joined #ponylang
02:01
jaro has quit [Ping timeout: 240 seconds]
02:43
acarrico has quit [Ping timeout: 248 seconds]
03:03
nisanharamati has quit [Quit: Connection closed for inactivity]
04:59
khan has quit [Quit: khan]
05:00
khan has joined #ponylang
05:04
khan has quit [Client Quit]
05:05
khan has joined #ponylang
05:10
khan has quit [Client Quit]
05:10
khan has joined #ponylang
05:14
khan has quit [Client Quit]
05:15
khan has joined #ponylang
06:13
jemc has quit [Ping timeout: 248 seconds]
06:19
sarna has joined #ponylang
06:42
endformationage has quit [Quit: WeeChat 1.9.1]
07:33
<
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
07:33
<
emilbayes >
what am I doing wrong? :)
07:36
betawaffle has quit [Excess Flood]
07:38
betawaffle has joined #ponylang
07:47
<
hateful_moron >
emilbayes, sorry
07:48
<
emilbayes >
hateful_moron: Ya! Hmm not sure why it doesn't work in my program then
08:07
<
hateful_moron >
emilbayes: are you sure that the bytes themselves are printable?
08:07
<
emilbayes >
hateful_moron: Ah, that might be what it is
08:08
<
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
08:13
Rachel has joined #ponylang
08:13
Rachel is now known as Guest65529
08:17
Shorttail has joined #ponylang
08:19
<
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
08:21
<
Shorttail >
Sorry, not hang, segfault
08:39
<
Shorttail >
Calling apply on a primitive is just like any other function call, right? No implied magic?
08:51
khan has quit [Ping timeout: 256 seconds]
08:52
<
emilbayes >
hateful_moron: Ah, found the issue to be that my Array had size() == 0
08:52
<
hateful_moron >
oh that'll do it, haha
08:53
<
emilbayes >
was writing to the array from ffi so need to figure out how to tell array that it is now a new size
08:53
<
emilbayes >
maybe I am just better off treating a hash digest as a string and not Array[U8]
08:54
<
hateful_moron >
you could use Array.truncate if you know how big the array is afterwards
08:55
<
emilbayes >
hateful_moron: Oh, thanks! I actually do
08:56
<
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
08:57
<
emilbayes >
hateful_moron: It seems Array.undefined is what I want, but I feel like I'm in deep water
08:58
<
hateful_moron >
the alternative would be to use Array.init with some ceiling amount of bytes and then using truncate after calling the ffi
08:59
<
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?
09:00
<
hateful_moron >
still learning myself :)
09:00
<
emilbayes >
hateful_moron: Thanks!
09:00
<
emilbayes >
yay hehe
09:05
khan has joined #ponylang
09:05
<
Shorttail >
Segfault fixed, though I don't know what difference was, maybe there was different garbage in the two cases
09:11
hateful_moron has quit [Quit: leaving]
09:49
Shorttail has quit [Ping timeout: 260 seconds]
09:49
khan has quit [Quit: khan]
10:37
alxs has joined #ponylang
11:38
bimawa has joined #ponylang
11:38
sgt has joined #ponylang
11:45
sgt has quit [Ping timeout: 260 seconds]
11:57
bimawa has quit [Read error: Connection reset by peer]
12:06
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
12:09
bimawa has joined #ponylang
12:12
bimawa has quit [Read error: Connection reset by peer]
12:23
alxs has joined #ponylang
12:28
alxs has quit [Client Quit]
12:54
_andre has joined #ponylang
12:55
acarrico has joined #ponylang
12:58
sarna has quit [Quit: Connection closed for inactivity]
13:20
khan has joined #ponylang
13:39
alxs has joined #ponylang
13:41
alxs has quit [Client Quit]
14:16
<
dave24 >
What does it mean in the compiler if `ast_type` of an expression is 0. Is that `None` or a typecheck error?
14:19
<
dave24 >
nvm it's the latter.
14:33
guest14 has joined #ponylang
14:33
guest14 has quit [Client Quit]
14:34
hunter2 has joined #ponylang
14:38
<
SeanTAllen >
dave24: sounds like you are getting deep into things, what are you working on?
14:39
hunter2 has quit [Client Quit]
14:39
<
dave24 >
SeanTAllen: I ran into some assertions and segfaults in the compiler.
14:40
<
dave24 >
returning from an else block in loops does not seem to be well tested.
14:40
<
dave24 >
compiler gets very confused
14:40
<
dave24 >
and me too now
14:41
<
dave24 >
like this for example: `while true do break else return end`
14:42
<
SeanTAllen >
yeah that is definitely a less well trodden area
14:44
jemc has joined #ponylang
14:45
sarna has joined #ponylang
14:51
alxs has joined #ponylang
14:52
<
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.
14:53
<
hanshoi >
no way around it?
14:54
khan has quit [Quit: khan]
14:54
khan has joined #ponylang
14:55
<
SeanTAllen >
hanshoi: not sure what you mean...
14:55
<
SeanTAllen >
hanshoi: do you have a minimal example?
14:56
<
dave24 >
I think he just means `@then(2)`
14:56
<
dave24 >
where `then` is a c function
14:56
<
dave24 >
and also a pony keyword
14:57
<
hanshoi >
now, there is my actual problem, the box is not allowed
15:04
khan has quit [Quit: khan]
15:05
khan has joined #ponylang
15:08
<
SeanTAllen >
That's interesting
15:08
<
SeanTAllen >
Can you open an issue?
15:09
<
hanshoi >
sure, I will do that
15:12
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
15:18
alxs has joined #ponylang
15:19
<
SeanTAllen >
thanks hanshoi
15:22
<
hanshoi >
sorry that can't contribute a PR, not much of a C coder.
15:23
<
hanshoi >
thanks for looking into this
15:32
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
15:46
nisanharamati has joined #ponylang
16:04
<
dave24 >
lel, I wrote a fix for it and all the tests pass. But I have a feeling it's not right.
16:04
khan has quit [Quit: khan]
16:04
khan has joined #ponylang
16:09
khan has quit [Client Quit]
16:09
khan has joined #ponylang
16:10
endformationage has joined #ponylang
16:10
khan has quit [Client Quit]
16:15
<
dave24 >
What is this existing type here?
16:16
<
dave24 >
nvm I understand
16:17
<
dave24 >
I think....
17:11
alxs has joined #ponylang
17:32
sonofblip has joined #ponylang
17:38
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
17:43
sonofblip has quit [Quit: Page closed]
17:51
jemc has quit [Ping timeout: 264 seconds]
17:54
alxs has joined #ponylang
17:55
alxs has quit [Client Quit]
18:54
alxs has joined #ponylang
19:02
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
19:05
sarna has quit [Quit: Connection closed for inactivity]
19:05
jemc has joined #ponylang
19:09
alxs has joined #ponylang
19:18
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
19:45
alxs has joined #ponylang
19:55
jemc has quit [Read error: Connection reset by peer]
20:02
sarna has joined #ponylang
20:04
alxs has quit [Ping timeout: 268 seconds]
20:23
alxs has joined #ponylang
21:13
jemc has joined #ponylang
21:20
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
21:24
jonrh has left #ponylang [#ponylang]
21:37
alxs has joined #ponylang
21:52
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
21:57
_andre has quit [Quit: leaving]
21:58
brainproxy has quit [Ping timeout: 256 seconds]
22:12
sarna has quit [Quit: Connection closed for inactivity]
22:43
brainproxy has joined #ponylang
23:16
alxs has joined #ponylang
23:17
alxs has quit [Client Quit]
23:29
alxs has joined #ponylang
23:31
alxs has quit [Client Quit]