Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-lwp-gsoc, 2014-06-21

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

All times shown according to UTC.

Time Nick Message
00:29 sergot FROGGS: I know what the problem is.
00:29 sergot it's recv()
00:29 sergot It works fine with lines()
00:36 sergot 02:35 < sergot> m: my $conn = IO::Socket::INET.new( host => 'filip.sergot.pl', port => 80, timeout => 1 ); $conn.send("GET / HTTP/1.1\r\nHost: filip.sergot.pl\r\n\r\n"); say $conn.recv().encode('utf8').bytes;
00:36 sergot 02:35 <+camelia> rakudo-moar 847bd5: OUTPUT«4380␤»
00:36 sergot 02:36 < sergot> m: my $conn = IO::Socket::INET.new( host => 'filip.sergot.pl', port => 80, timeout => 1 ); $conn.send("GET / HTTP/1.1\r\nHost: filip.sergot.pl\r\n\r\n"); say $conn.lines.join("\n").encode('utf8').bytes;
00:36 sergot 02:36 <+camelia> rakudo-moar 847bd5: OUTPUT«12292␤»
01:33 FROGGS_ joined #perl6-lwp-gsoc
07:37 FROGGS_ sergot: problem is that .lines takes like ten times longer
07:37 FROGGS_ so, we have to .recv($content-length - $buf.bytes) as long as we do not have enough bytes
07:37 FROGGS_ like we fill a chunk today
11:12 sergot hmm
12:31 sergot agrh, I didn't have a lot of free time recently..
12:43 sergot FROGGS_: what about .read() ?
12:47 sergot anyway
12:48 sergot I sent you my plan to next week, midterm evaluation deadline is on Friday.
12:49 sergot And I've done all my milestones for the first half of gsoc already
12:49 sergot I have already started learning NativeCall as well
12:50 sergot So, I think I have a lot of time to end up my project :)
12:50 sergot What do you think?
13:10 FROGGS_ yes, that fits what I think :o)
13:11 FROGGS_ I'll write the midterm report on monday, as soon as the evaluation is open
13:11 FROGGS_ btw, since we are successfully use .recv, we should keep using it
13:11 FROGGS_ I guess the patch is not more than a while loop and a call to .recv
19:41 dalek http-useragent: c7d30c7 | (Tobias Leich)++ | lib/HTTP/UserAgent.pm6:
19:41 dalek http-useragent: read more from buffer until we reach Content-Length
19:41 dalek http-useragent:
19:41 dalek http-useragent: In case this header is present we .recv until we have everything.
19:41 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/c7d30c75f6
19:53 FROGGS_ sergot: can you please blog about the current state, and the next tasks?
20:51 dalek http-useragent: 252afde | (Tobias Leich)++ | t/06-ua-simple.t:
20:51 dalek http-useragent: fix GET test
20:51 dalek http-useragent:
20:51 dalek http-useragent: According to firefox the site ends with </html>\n\n.
20:51 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/252afdeb0c

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