Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2012-01-09

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:50 p6eval joined #rosettacode
01:05 tonussi joined #rosettacode
02:04 r4m joined #rosettacode
02:07 MAPPERMan[RCo] joined #rosettacode
02:43 mwn3d_phone joined #rosettacode
03:05 mikemol Hm. Something funny about the server right now. I don't know what's going on.
03:06 mwn3d_phone Yeah...pretty slow
03:07 mikemol Looks like it just OOM'd an apache process
03:07 mikemol Looks like it's OOMing a *lot* of things right now.
03:11 mikemol Something chugged a crapton of memory, but it was gone by the time I got in to look.
03:11 mikemol Restarting apache, squid, mysql and memcached to get all the key stuff out of swap.
03:13 mikemol ...and squid segfaulted.
03:13 mikemol Seeing if it can be brought back up, or if the cache is toast.
03:14 mikemol Well, squid's back up. No idea about the cache, don't really care.
03:44 mwn3d_phone1 joined #rosettacode
03:54 eMBee mikemol: interesting stats. did you add up all the googles?
04:06 lambdabot joined #rosettacode
06:49 p6eval joined #rosettacode
06:49 Util joined #rosettacode
06:50 p6eval joined #rosettacode
09:21 mischi joined #rosettacode
09:30 mikemol joined #rosettacode
14:53 mwn3d_phone joined #rosettacode
14:57 mwn3d_phone mikemol: big slowdown again
14:57 mwn3d_phone It looked like images were a problem but that might just be a symptom of the slowdown
14:58 mwn3d_phone Stuff in math tags wasn't loading very quickly
15:03 mikemol eMBee: Only included referrals in that one. Search traffic is generally much higher.
15:05 mikemol mwn3d_phone: Looks like a crawler bot.
15:05 mikemol I can see this easily because there's a bug in the firewall which chops off the final outgoing FIN,ACK packet, which then gets logged.
15:06 mikemol Of course, that kinda depends on me reading the log line properly.
15:08 mwn3d_phone joined #rosettacode
15:17 mikemol mwn3d_phone: Not seeing anything special for about an hour ago: http://rosettacode.org/cdc3/bin/index.cgi?hos​tname=prgmr2.rosettacode.org&timespan=864​00&action=show_selection&ok_button=OK
15:17 fedaykin "collection.cgi, Version 3" http://rldn.net/3mF
15:17 mwn3d_phone It was working fine this morning
15:18 mwn3d_phone Now its crawling
15:18 mwn3d_phone I even made a few edits after I got in to work
15:18 mikemol Server CPU, RAM and swap all look fine right now.
15:19 eMBee what are referrals from google.com?
15:19 mikemol eMBee: Usually things like Google Reader.
15:19 eMBee ah
15:19 mikemol Possibly google.com/mail/someones_inbox
15:19 fedaykin "Error 404 (Not Found)!!1"
15:19 mikemol Yes, fedaykin, I know.
15:19 eMBee hehe
15:20 mikemol Anyway, I didn't get around to restarting mysql last night, so I'll poke that to see if some of it's stuck in swap.
15:21 mikemol Heh. Seems about 11MB of MySQL was in swap.
15:21 mikemol Things should go a little faster, now.
15:21 mikemol Well, once MySQL restores its in-memory caches.
15:38 mwn3d_phone mikemol: much better now. Thanks, benevolent admin!
15:59 mwn3d_phone Uh oh....less better now
15:59 mwn3d_phone The cell phone network seems to work better...maybe there are other network issues here
16:23 tonussi joined #rosettacode
16:46 mwn3d_phone I just got a squid error
16:46 mwn3d_phone Connection refused
16:46 mwn3d_phone Isolated incident it seems
16:46 * mikemol nods
16:46 mikemol Not isolated. Just fixed very, very fast. :)
16:48 mikemol I wish there were a way for me to pin processes to RAM, and say, "No, you will *not* move this process to swap."
16:48 mikemol mysqld, squid and memcached would get that treatment. All three of them are pretty stable wrt memory usage, and are the most sensitive to swap.
17:13 eMBee mikemol: shall i list my rss feed as per instructions on the wiki or just give it to you here?
17:14 mikemol Just list it there.
17:14 eMBee http://societyserver.org/scripts/rss.​pike?feed=/mbaehr/Topics/RosettaCode
17:14 fedaykin http://rldn.net/5MS
17:14 mikemol Planet's been, ah, broken for a while; I haven't reinstalled planetplanet since the server migration.
17:14 eMBee oh, have not noticed
17:34 mwn3d_phone C# pulled ahead of C++ on the tiobe index
17:35 mwn3d_phone Objective-C is the language of the year
17:35 mwn3d_phone That's what they use on the iphone right?
17:37 mikemol Objective-C is pushed a lot in IOS development.
17:37 Hypftier it's the only language available there, iirc
17:37 mikemol Did Apple drop ActionScript?
17:39 eMBee common lisp is available ;-)
17:40 Hypftier Hm, didn't even know you could use that for iOS development; ActionScript sounds quite unlikely for Apple, too, given that they declared war on Flash. There's MonoTouch so you can use C#, but at least according to Wikipedia Obj-C is the only natively supported language for iOS development.
17:40 * eMBee agrees
17:42 mikemol Er. I didn't mean ActionScript, I meant AppleScript. Or something like that.
17:43 Hypftier That was only for some automation on Mac OS. Never actually for application development.
17:47 mischi may i throw in objectPascal
17:48 mischi oops. should have been ObjectivePascal
17:48 mischi http://www.cocoadev.com/index.pl?ObjectivePascal
17:49 fedaykin "CocoaDev: ObjectivePascal"
17:49 mischi exactly :-)
17:50 mischi part of the just released version (2.6.0) of the FreePascal compiler.
17:51 mischi I haven't tried it yet.
18:14 mwn3d_phone Bah....I'm getting virus scanned at work. Probably a factor in my browsers crawling. Time for a walk.
18:52 dagnyscott joined #rosettacode
20:44 tonussi joined #rosettacode
21:05 tonussi joined #rosettacode
21:08 mikemol Someone want to remind me how best to replace a sequence of "\f\n+" in a file with something else?
21:08 mikemol i.e. I have a file with multiple recurring cases of "\f\n\n\n\n\n" with greater or fewer \ns, and I'd like to replace them with just \f.
21:09 sorear Use tr to map \f and \n temporarily to non-whitespace characters, then remap them with sed, then map back.
21:09 TimToady eep
21:09 TimToady just slurp it in and s/\f\n+/\f/g (in Perl for instance)
21:09 sorear Alternatively, use Perl with slurp-mode.  But the tr approach will work better for huge files.
21:10 TimToady the approach for huge files with Perl would be to set $/ to "\f", then delete all initial \n+ on each record
21:10 TimToady awk could probably do that too
21:11 mikemol Does Perl's regex matching do multi-line by default?
21:11 mikemol That's where sed's killing me, here.
21:11 TimToady p5 needs /m to make ^ and $ work multiline, but matching \n+ doesn't care about that
21:12 TimToady p5 needs /s to make . match newline, but doesn't sound like you need that either
21:12 TimToady this is all different in p6, of course :)
21:13 TimToady actually, I think recent awk allows regex for IRS, so you might just be able to set it to "\f\n+" or equiv
21:13 sorear mikemol: The problem you're having isn't a regex issue, it's an IO issue.
21:14 mikemol Well, yeah. If something's line buffered, I get bit.
21:14 sorear mikemol: Sed doesn't load more than one \n into the buffer at a time (unless you jump through hoops I haven't bothered to learn)
21:14 sorear mikemol: Hence the tr suggestion.
21:14 * mikemol nods
21:14 TimToady if sed is a requirement then you've got an XY problem :)
21:15 sorear I will admit I have a bit of hangup on Landau notation ;)
21:15 sorear I don't like offering O(n) memory solutions when I can think of a fully streaming one
21:15 mikemol sed, grep, uniq and tr are my go-to solutions for most things.
21:16 mikemol tr is reasonable if it happens to support unicode; then, at least, I'd know I could find safe characters to map to. :)
21:17 mikemol This is the first text document I've encountered in over a decade that actually has form-feed characters in it. Last time I saw one, I was dumping it to an IBM Proprinter.
21:44 sorear mikemol: unicode support doesn't matter here, if you're using utf-8
21:45 mikemol point
21:45 sorear tr 'et\012\014' '\012\014et'
21:45 sorear that will guarantee short lines in the output if you have any English text in there
21:45 sorear swaps with the two most common letters
22:22 tonussi joined #rosettacode
22:35 tonussi joined #rosettacode
23:10 tonussi joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary