Perl 6 - the future is here, just unevenly distributed

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

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

All times shown according to UTC.

Time Nick Message
01:17 FROGGS_ joined #perl6-lwp-gsoc
06:24 sergot morning o/
06:34 dalek openssl: c172dbb | sergot++ | lib/OpenSSL.pm6:
06:34 dalek openssl: .join can be argless
06:34 dalek openssl: review: https://github.com/sergot/openssl/commit/c172dbbd0c
06:59 FROGGS[mobile] joined #perl6-lwp-gsoc
07:10 FROGGS[mobile] next step is to fetch more https sites?
07:24 sergot yes :)
07:41 sergot So, the crawler was a nice idea
07:42 FROGGS[mobile] yeah :o)
07:43 sergot but first, I found a bug in Cookies
07:43 FROGGS[mobile] k
07:43 sergot I didn't know that they can look like this: Set-Cookie: cookie-here, another-cookie, and some more cookies;
07:44 sergot And I must implement "httpOnly"
07:44 sergot yeah, just know more about cookies now.
07:53 FROGGS[mobile] that is how programming works, you learn all the time
07:53 FROGGS[mobile] ... very different things
07:54 FROGGS[mobile] like implementations, programming patterns etc
07:55 FROGGS[mobile] that's what I like so much, you are forced to always get better
08:04 sergot yeah, that's awesome :)
09:15 sergot FROGGS[mobile]:
09:15 sergot what does "<!before \h>" do?
09:16 sergot https://github.com/sergot/http-useragent/blob/master/lib/HTTP/Headers.pm6#L18
09:22 FROGGS[mobile] it is a negative look ahead
09:23 FROGGS[mobile] so the regex will fail if a horizontal whitespace is comming
09:25 sergot ok, thanks :)
09:29 sergot FROGGS[mobile]: CR needed
09:30 FROGGS[mobile] for what?
09:30 sergot sek
09:30 sergot sec
09:30 sergot this grammar:
09:30 FROGGS[mobile] it is hard to follow when being on phone :o)
09:30 dalek http-useragent: eafa064 | sergot++ | lib/HTTP/Cookie.pm6:
09:30 dalek http-useragent: Cookie's grammar added
09:30 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/eafa0645cd
09:31 sergot just a grammar for now
09:31 sergot ohh, so will be great if you do this later :)
09:32 sergot and I'll try to use it in existing code
09:32 FROGGS[mobile] what should I do?
09:33 sergot Just take a look at this, can you see any mistakes?
09:34 sergot Or, "violation" of good practices
09:36 sergot yeah, nothing important anyway :)
09:37 FROGGS[mobile] ahh, just a review
09:37 FROGGS[mobile] will do that and will also compare against the official grammar
09:38 sergot ok
09:39 sergot http://tools.ietf.org/html/rfc6265
09:39 sergot http://tools.ietf.org/html/rfc6265#section-4.1.1
09:44 FROGGS[mobile] thanks :o)
09:46 sergot every time I use grammars in p6 Im impressed
09:48 FROGGS[mobile] yeah, I love them
09:48 FROGGS[mobile] it is like everything fits
09:49 FROGGS[mobile] in contrast to P5 regexes where you have to remember so much
09:52 sergot yeah :)
09:52 sergot brb
11:02 dalek http-useragent: f4f6811 | sergot++ | lib/HTTP/Cookie (2 files):
11:02 dalek http-useragent: use grammar in HTTP::Cookies
11:02 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/f4f6811743
11:02 dalek http-useragent: fa0d304 | sergot++ | t/03-cookies.t:
11:02 dalek http-useragent: s/secure/Secure/
11:02 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/fa0d304943
11:02 sergot FROGGS[mobile]: it works!
11:04 FROGGS_ \o/
11:07 dalek http-useragent: f39c514 | sergot++ | t/09-ua-ssl.t:
11:07 dalek http-useragent: SSL test added
11:07 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/f39c514e52
11:07 sergot it takes too long
11:08 sergot yeah, but we can do this at the end
11:09 sergot I mean, make it faster
11:09 sergot in/at...
11:16 sergot We should test cookies in real life.
11:16 sergot we need a simple site with login form and session in cookies etc.
11:22 sergot eww, github.com includes 'secure' instead of 'Secure' in Set-Cookie.
11:22 sergot but according to rfc6265 it should be Secure, starting with an uppercase
11:23 FROGGS_ hmmm
11:23 FROGGS_ weird
11:25 sergot lunchtime :) &
11:44 sergot I'm back
11:45 FROGGS_ k
11:45 FROGGS_ what is to do now?
11:45 FROGGS_ for me for example?
11:46 FROGGS_ can't do that much because I've got a kid on my belly
11:47 sergot hmmm
11:47 sergot 1. test cookies in real life
11:47 sergot 2. write a crawler
11:48 sergot 3. test everything and write what's needed :)
11:48 sergot Could you do some code review?
11:48 FROGGS_ I think I can
11:49 sergot great :)
11:50 sergot I'd call this "test stage".
11:50 FROGGS_ just need a chair and coffee :o)
11:50 sergot hehe, we have plenty of time left
11:51 sergot If we make it working soon-ish, we can think about optional goals.
11:51 sergot here is the proposal: https://gist.github.com/sergot/e6b118da5e129e3ac0ff
11:52 FROGGS_ portability would be the next optional goal I think :o)
11:52 sergot would be great :)
11:52 sergot we are herE: * Week #9 - #10 14 - 27 July
11:53 sergot which is just: Continue work on SSL
11:53 FROGGS_ yeah
11:54 FROGGS_ btw, why do you only support old versions here? https://github.com/sergot/openssl/blob/master/lib/OpenSSL.pm6#L19
11:54 FROGGS_ what about tls?
11:55 sergot I support version 2 and 3
11:56 sergot We should definately think about tls
11:56 sergot and SSLv3 is the most recent
11:58 FROGGS_ no, tls 1.2 is the most recent I think
11:58 sergot definitely *
11:58 sergot ymm.. right.
11:59 FROGGS_ tls 1.0 is almost identical to ssl 3.0
11:59 FROGGS_ but tls is newer, because ssl was renamed to tls
12:00 FROGGS_ ahh no, tls 1.0 is identical to ssl 3.1
12:00 sergot ok, so tls1 should be the default
12:00 sergot https://www.openssl.org/docs/ssl/ssl.html#DEALING_WITH_PROTOCOL_METHODS
12:01 FROGGS_ tls1.0/ssl3.1 happened 1999
12:01 FROGGS_ 2006 came tls 1.1
12:01 FROGGS_ 2008 came tls 1.2
12:01 dalek openssl: 08b4173 | sergot++ | lib/OpenSSL/Method.pm6:
12:01 dalek openssl: add TLS methods
12:01 dalek openssl: review: https://github.com/sergot/openssl/commit/08b4173a42
12:02 sergot As you can see, there are only SSLv2, SSLv3 and TLSv1 available in the OpenSSL lib.
12:03 sergot I guess: SSLv3 == 3.1, TLSv1 = 1.2
12:03 FROGGS_ or tlsv1 can handle tls 1.0 .. 1.2
12:06 sergot yeah
12:08 sergot does "given $ {}" have "default" case?
12:10 FROGGS_ yes
13:45 dalek openssl: 44110e0 | sergot++ | lib/OpenSSL.pm6:
13:45 dalek openssl: add TLS method as default
13:45 dalek openssl: review: https://github.com/sergot/openssl/commit/44110e03de
13:51 sergot uff, it works on TLS method too :)
13:53 sergot hmmm
13:53 sergot I can say this yet :)
13:53 sergot forgot about something
13:55 dalek openssl: 9b4a41e | sergot++ | / (2 files):
13:55 dalek openssl: use TLS method when no version passed
13:55 dalek openssl: review: https://github.com/sergot/openssl/commit/9b4a41e6c0
13:57 sergot yep, it works now.

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