Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-lwp-gsoc, 2014-07-04

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:52 FROGGS_ joined #perl6-lwp-gsoc
06:47 FROGGS_ joined #perl6-lwp-gsoc
07:07 sergot morning o/
07:07 FROGGS_ hi
07:11 sergot openssl day today! :)
07:12 FROGGS_ \o/
07:13 FROGGS_ btw, it makes sense that you merge jnthn/zavolaj/master into your sergot/zavolaj/master
07:16 sergot ok :)
07:21 sergot http://filip.sergot.pl/en/blog/perl6/gsoc_http::headers/#comment-1467946820
07:24 FROGGS_ ohh, good point
07:24 FROGGS_ and it totally makes sense when I think about it
07:27 sergot same here
07:36 sergot FROGGS_: would you like to do this work on parrot and jvm?
07:37 FROGGS_ I'll do that, for sure
07:38 sergot s/do/make/
08:14 sergot NativeCall fail on t/05-pointer.t
08:14 sergot fails
08:14 sergot on my box
08:16 sergot FROGGS_: is it the same on yours?
08:17 FROGGS_ no
08:18 FROGGS_ is your rakudo/nqp/moar up-to-date?
08:18 FROGGS_ because that is the stuff I added one or two days ago
08:20 sergot this is the problem I think, thanks :)
08:31 sergot http://savetheions.com/2010/01/16/quickly-using-openssl-in-c/
08:32 sergot Can we bind all functions used there and write the same in P6?
08:35 sergot some of them we can write as IO::Socket::INET::SSL, or something I think
08:35 sergot the int tcpConnect ()
08:35 sergot func for example
08:35 sergot + connection *sslConnect (void)
08:36 sergot tcpConnect() is provided by IO::Socket::INET
08:36 sergot so my task is to add sslConnect and pack it in IO::Socket::SSL
08:37 sergot looks reasonable for me, what do you think FROGGS_ ?
08:46 sergot but ... I can see a problem there
08:46 sergot with https://www.openssl.org/docs/ssl/SSL_set_fd.html
08:47 sergot where fd is just an c inet connection file descriptor
08:47 sergot a
08:47 sergot Are we able to cast our IO::Socket::INET instance to C's fd?
09:20 FROGGS joined #perl6-lwp-gsoc
09:56 sergot We can start at this point:
09:57 FROGGS sorry, I am distracted atm
09:57 sergot are we able to create a class based on C FILE struct (a fd's there) and do some file operations?
09:58 FROGGS I dunno
09:58 sergot FROGGS: something happened?
09:58 sergot FROGGS: may I try?
09:58 sergot or is it ponintless?
09:58 FROGGS but I know that we can handle file descriptors, at least in the guts
09:58 FROGGS like an IO::File has a file descriptor in it
09:59 FROGGS look at rakudo's source
09:59 sergot okok :)
10:10 FROGGS I think I meant IO::Handle btw
12:28 sergot Type check failed for return value; expected 'IntTypedCArray[uint8]' but got 'IntTypedCArray[uint8]'
12:28 sergot huh, funny :)
12:29 FROGGS yes, these are constructed newly each time that therefore not identical
12:29 FROGGS known bug
12:29 sergot anyway, can I cast Int to uint8 somehow?
12:30 FROGGS look at #perl6
12:31 sergot thanks!
12:33 sergot I'm struggling with changing Str to CArray
12:36 sergot Have you ever done this?
12:44 sergot nvm, problem is something not here
12:45 sergot I dont know why I put 'something' in my previous message
12:51 FROGGS *g*
12:58 dalek openssl: 552a819 | sergot++ | test.p6:
12:58 dalek openssl: refresh
12:58 dalek openssl: review: https://github.com/sergot/openssl/commit/552a819473
12:58 sergot just hacking around
15:12 FROGGS joined #perl6-lwp-gsoc
15:16 FROGGS joined #perl6-lwp-gsoc
21:50 FROGGS sergot: see https://github.com/perl6/nqp/commit/0351dbf58b
21:50 FROGGS I've made nativecall branches in MoarVM, nqp and NativeCall
21:51 FROGGS MoarVM/nativecast is unchanged, but in nqp I renamed the op for moar and so I did in NativeCall
21:52 sergot FROGGS++: thanks! :)
21:53 FROGGS that was easier then I thought... after 20 minutes I was already able to handle int32
21:53 sergot ohh, nice! :)
21:53 FROGGS it took a while to understand the CStruct case though
21:54 FROGGS the port to parrot should be simpler
21:54 FROGGS gnight
22:00 sergot thank you very much FROGGS, good night! o/

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary