00:01:20 -!- calamari has joined. 00:07:13 -!- augur has joined. 00:31:12 -!- cheater has joined. 00:32:44 -!- NihilistDandy has joined. 00:39:03 -!- lambdabot has joined. 00:39:19 yay 00:39:25 @hoogle Maybe a -> m a 00:39:25 Data.Monoid First :: Maybe a -> First a 00:39:25 Data.Monoid Last :: Maybe a -> Last a 00:39:27 Data.Maybe maybeToList :: Maybe a -> [a] 00:39:38 @hoogle+ 00:39:39 Data.Maybe fromJust :: Maybe a -> a 00:39:39 Data.Generics.Aliases orElse :: Maybe a -> Maybe a -> Maybe a 00:39:39 Data.Maybe fromMaybe :: a -> Maybe a -> a 00:39:54 @hoogle+ 00:39:55 Data.Generics.Aliases unGM :: GenericM' m -> forall a. Data a => a -> m a 00:39:55 Data.Foldable toList :: Foldable t => t a -> [a] 00:39:55 Data.Maybe catMaybes :: [Maybe a] -> [a] 00:40:51 What are you looking for? 00:40:51 @hoogle (Foldable t, MonadPlus m) => t a -> m a 00:40:52 Data.Foldable toList :: Foldable t => t a -> [a] 00:40:52 Data.Foldable find :: Foldable t => (a -> Bool) -> t a -> Maybe a 00:40:52 Data.Foldable foldl1 :: Foldable t => (a -> a -> a) -> t a -> a 00:41:14 Ha. Hoogle+ 00:41:20 @hoogle+ 00:41:21 Data.Foldable foldr1 :: Foldable t => (a -> a -> a) -> t a -> a 00:41:21 Data.Foldable maximumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a 00:41:21 Data.Foldable minimumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a 00:42:17 ion: maybe mzero return, essentially 00:42:18 except with a shorter name 00:44:58 -!- calamari has quit (Quit: Leaving). 00:45:41 -!- augur has quit (Remote host closed the connection). 01:05:29 -!- oerjan has quit (Quit: Goof night). 01:07:16 -!- ais523 has quit (Remote host closed the connection). 01:10:37 -!- augur has joined. 01:13:49 -!- augur has quit (Remote host closed the connection). 01:16:37 -!- augur has joined. 01:16:42 -!- augur has quit (Remote host closed the connection). 01:18:48 -!- pir^2 has quit (Quit: ∅). 01:23:33 -!- DCliche has joined. 01:24:22 -!- augur has joined. 01:25:56 -!- augur has quit (Remote host closed the connection). 01:27:04 -!- Klisz has quit (Ping timeout: 248 seconds). 01:29:03 kallisti, arpboat 01:30:34 thunklankles 01:42:10 -!- augur has joined. 01:46:38 -!- augur has quit (Ping timeout: 245 seconds). 01:57:26 -!- mtve has joined. 02:03:58 -!- NihilistDandy has quit (Quit: Textual IRC Client: http://www.textualapp.com/). 02:09:54 -!- pikhq_ has joined. 02:10:11 -!- pikhq has quit (Ping timeout: 248 seconds). 02:12:45 -!- augur has joined. 02:13:45 -!- augur has quit (Remote host closed the connection). 02:17:33 -!- DCliche has quit (Quit: SLEEP, GLORIOUS SLEEP). 02:19:35 -!- pikhq_ has quit (Ping timeout: 252 seconds). 02:19:36 -!- pikhq has joined. 02:27:04 -!- Klisz has joined. 02:39:03 Gregor: what do you use to draw graphics with websplat? 02:39:14 -!- Klisz has quit (Ping timeout: 240 seconds). 02:42:03 -!- Jafet has joined. 02:50:14 -!- _0x5f375a86 has joined. 03:17:15 -!- azaq23 has joined. 03:17:27 -!- azaq23 has quit (Max SendQ exceeded). 03:17:57 -!- azaq23 has joined. 03:57:15 -!- augur has joined. 03:58:19 -!- augur has quit (Remote host closed the connection). 03:58:44 -!- augur has joined. 05:32:15 perl 6 regex is so good. 05:35:26 it actually builds a tree instead of a flat list... 05:35:29 with capture groups 05:35:41 so you can actually, uh, parse things. 06:06:25 Oh, so Perl 6 *embraces* the TC-ness of Perl regex 06:09:25 kind of 06:09:33 it basically just completely overhauls the syntax 06:09:41 and allows you to split up a regex into... named identifiers 06:09:51 so it's more like actually defining a grammar. 06:10:17 also it has "grammars" which are essentially regex classes, so you can inherit rules from other grammars. 06:12:11 it adds many more options to make it handle case, spaces, and unicode marks better. 06:12:13 The thing is, Perl 5 regex was already capable of parsing things. 06:12:22 yes but not as well I imagine. 06:12:27 Just not sanely. 06:12:34 I meant that now you can actually get a syntax tree 06:12:40 Yes. 06:12:51 Perl 5 regex was perfectly TC. :) 06:13:24 the entire perl 6 gammar is defined as a grammar in perl 6. 06:14:42 this means you can subclass. I imagine if perl 6 uses source filters then you can plug in your overriden grammar at compile-time and redefine the language syntax. but I'm not sure if source filters still exist. 06:15:35 so I think if a) Perl 6 ever solidifes b) it has a decently efficient implementation 06:15:51 then perl will once again be the language of choice for text processing. 06:16:25 it even handles Unicode sanely. you can check string length by bytes, codepoints, or graphemes. There is no "length" 06:18:30 also: implicit lazy evaluation of lists, explicit lazy evaluation of anything else. 06:23:48 Also monads. 06:23:56 oh? 06:23:57 okay. 06:24:07 I seem to recall the Pugs devs getting it snuck in. 06:24:27 (Pugs being an early Perl 6 implementation, in Haskell.) 06:24:50 (it may not even really work anymore; I mean, jeeze, it was written for *Hugs*) 06:30:48 well it would be pretty simple to implement in perl anyway 06:31:02 *Perl 6 06:31:04 -!- azaq23 has quit (Remote host closed the connection). 06:31:10 Also pretty pointless. 06:31:44 A lot of the power of monads in Haskell, IME, is the type discipline preventing you from making certain errors. 06:52:46 yes 06:53:19 another benefit is generality between many methods of computation. 06:54:30 hmmm, what's a project I could apply Bayesian inference to? 06:56:07 Spam filtering. 06:56:11 06:56:39 does a bayesian filter use a bayesian inference? 06:56:43 I guess that would, uh, make sense. 06:56:56 Yes, that's all they do. 06:57:05 Fairly naive implementation, but nevertheless. 06:57:09 but I've learned not to associative things together because they're named after the same person. 06:58:17 A Bayesian filter bsically just classes a message as spam or not spam by performing Bayesian inference on each unique word in the message, eventually getting you the probability the message is spam given the words it contains.' 06:58:31 I answered a request for a programming job recently that wanted to create a program that assists diagnosis via "inductive reasoning" with "prolog" 06:58:47 to what extent either of those things will be used depends on what happens. 06:58:48 Generally, the initial prior is 0.5, instead of the prior actually matching to real-world spam rates, 0.8. 06:59:02 ah 06:59:07 well that's safer, at least. 06:59:17 better to have /some/ spam than lose important messages. 06:59:49 You could get the same effect by simply setting your threshold high enough. 07:00:01 ah true 07:00:01 Say, consider it spam if there's a 0.99 probability of being spam. 07:00:08 Oddly enough, this technique was first devised by Paul Graham. Yes, that Paul Graham. 07:00:08 that's a good threshold 07:00:15 hm a more sophisticated method could analyze grams in the message. 07:00:39 Yeah, that's done by a few of them. 07:01:02 Not really *necessary*, though. Even the naive classification works rather well, particularly if you feed it headers. 07:04:08 hmm, a hybrid approach of sorts could be good. instead of analyzing the probability of a gram triggering a spam message you could look at each individual word but then scale it upwards when it appears in frequently occuring grams. 07:04:13 not sure what the exact math would look like. 07:04:48 well, I doubt that's necessary either 07:05:01 but I could see a gram based filter missing things a word based filter might catch. 07:07:02 Who says you need to only look at grams? 07:07:11 no one. 07:07:22 You can just keep throwing information at Bayes until it sticks. :) 07:07:37 I wonder what gmail's bayesian filter does. 07:08:20 The only particularly notable thing I recall hearing about it (there's probably more, but I'm not aware of it) is they OCR images. 07:12:50 I wonder if legitimate businesses in third world countries have difficulty emailing people. 07:13:36 lol one of the subjects is "My second time of writing you" almost as though the spam filter will be like "oh okay, eveything is fine then" 07:14:07 If you're updating on headers, not very likely. 07:14:59 You can get things like P(~spam|FROM: legit_business@thirdworld.com)=0.99999 07:15:00 :) 07:18:12 another good idea would be to compile data on what is not spam and then balance the probability of the bayesian inference with that. 07:19:24 What you usually do is train on a *email* corpus. 07:19:44 If you're really clever, constantly update your database on the end-user's personal email corpus. 07:24:07 kallisti, arpbogot 07:25:44 "Emacs might be the only program in the world that would see a performance improvement from rewriting in CL." 07:25:47 XD 07:49:35 -!- monqy has quit (Quit: hello). 08:02:56 -!- GreaseMonkey has quit (Quit: The Other Game). 08:38:23 -!- Frooxius_ has joined. 08:41:06 -!- Frooxius has quit (Ping timeout: 252 seconds). 08:41:20 -!- Frooxius_ has changed nick to Frooxius. 08:49:12 -!- ais523 has joined. 09:30:58 -!- augur has quit (Ping timeout: 252 seconds). 10:07:20 -!- itidus20 has joined. 11:51:03 -!- oerjan has joined. 12:09:52 I wonder if legitimate businesses in third world countries have difficulty emailing people. <-- http://www.irregularwebcomic.net/comic.php?current=72 12:19:01 -!- cswords__ has quit (Read error: Connection reset by peer). 12:19:49 you know how silly Yahoo! Answers can get? What about Microsoft Answers? http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/windows-calculator-gives-wrong-answer/c94c2aa5-03a0-42f7-82ee-899800355613 12:20:13 the accepted answer is only vaguely useful; the first non-accepted answer is really ridiculously bad 12:56:15 why is the channel +t 12:57:04 -!- ChanServ has set channel mode: +o ais523. 12:57:11 -!- ais523 has set channel mode: -t. 12:57:17 -!- ais523 has set channel mode: -o ais523. 12:57:19 it isn't 12:57:39 16:06:35: -!- kornbluth.freenode.net changed the modes of #esoteric: +t 12:58:09 it was after a big netsplit, i guess something went awry 12:58:13 -!- oerjan has set topic: Now open for Vampires | Take a trip to see our Castles | Get your esoblood here! | New edition of glorious optators' biography to use crimson ink | Based on the power of immortality! | Why is the spotted marsh elliott never seen in daylight? | http://codu.org/logs/_esoteric/. 12:58:37 bleh, "spotted marsh elliott spotted in other marsh" was both informative and hilarious 12:58:57 O KAY 12:59:35 -!- oerjan has set topic: Now open for Vampires | Take a trip to see our Castles | Get your esoblood here! | New edition of glorious optators' biography to use crimson ink | Based on the power of immortality! | Spotted marsh elliott spotted in other marsh | http://codu.org/logs/_esoteric/. 13:00:38 (_very_ slightly inspired by current iwc poll) 13:03:31 not very _slightly_ 13:03:51 _those_ _may_ be _synonyms_ 13:38:28 -!- Sgeo has quit (Ping timeout: 240 seconds). 13:38:59 -!- Sgeo has joined. 14:28:38 -!- derdon has joined. 14:49:38 -!- ais523 has quit (Ping timeout: 245 seconds). 14:50:51 -!- oerjan has quit (Quit: leaving). 15:16:44 -!- Ngevd has joined. 15:16:57 Hello 15:26:37 -!- Ngevd has quit (Read error: Connection reset by peer). 15:27:45 -!- Ngevd has joined. 15:32:36 -!- Taneb has joined. 15:35:16 -!- Ngevd has quit (Ping timeout: 252 seconds). 15:36:04 -!- Taneb has quit (Read error: Connection reset by peer). 15:36:25 -!- Taneb has joined. 15:48:26 -!- Taneb has quit (Read error: Connection reset by peer). 15:49:32 -!- Taneb has joined. 15:51:03 -!- azaq23 has joined. 15:51:12 -!- azaq23 has quit (Max SendQ exceeded). 15:51:37 -!- azaq23 has joined. 15:55:54 -!- Taneb has quit (Read error: Connection reset by peer). 16:12:59 -!- derdon_ has joined. 16:16:19 -!- derdon has quit (Ping timeout: 260 seconds). 16:44:24 -!- pikhq_ has joined. 16:44:25 -!- pikhq has quit (Ping timeout: 248 seconds). 16:48:44 -!- Phantom_Hoover has joined. 17:01:55 -!- ais523 has joined. 17:24:03 Funky, one of the C11 additions is a standard _Noreturn keyword (and which defines 'noreturn' as that) to do what GCC function attribute ((noreturn)) does. 17:25:20 longjmp, abort, exit, _Exit, quick_exit and thrd_exit have also gotten _Noreturn's in their declarations. 17:25:29 I love the hideously ugly new keywords. 17:25:50 The "ugly + a deuglification header" is kind of what they do. 17:27:20 bleh, you know what's bizarre and annoying? GPU scheduler bugs 17:37:59 http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/windows-calculator-gives-wrong-answer/c94c2aa5-03a0-42f7-82ee-899800355613 well this is obviously a joke that everyone's in on 17:41:23 quite possibly the thread became troll-dominated after a while 17:44:27 no one even says "you people are retarded" or "troll", i don't get it 18:23:08 -!- ais523_ has joined. 18:23:23 -!- ais523 has quit (Disconnected by services). 18:23:25 -!- ais523_ has changed nick to ais523. 18:23:46 Floating-point bug or what? 18:23:46 Phantom_Hoover: You have 5 new messages. '/msg lambdabot @messages' to read them. 18:26:48 i suppose. 18:27:30 sqrt 4 is rounded 2 in the calculator but when you subtract 2, it's just a very small number. 18:28:49 oklofok: the point is that it rounds in the wrong direction 18:29:08 ? 18:29:19 it should round 2 to 1? 18:29:20 or what 18:29:43 it should round sqrt(4) to 2 exactly, as it's the closest float to the true sqrt of 4 18:29:50 it shouldn't output 2-and-a-bit 18:30:13 for what value of "should"? squares should have exact square roots? 18:30:36 or everything should square root to best floating point approximation possible? 18:31:07 oklofok: everything should square root to the nearest floating point to the true value 18:31:13 all maths coprocessors can do that nowadays 18:32:02 so the calculator should use the square root operator of the maths coprocessor? 18:32:47 i don't get how that value is any worse than 0 18:33:39 oklofok: because it shows that the rounding was done incorrectly 18:33:51 1/3*3-1 not being 0 I'm OK with 18:34:00 but, say, 1/4*4-1 not being 0 I wouldn't be OK with 18:34:16 well that's silly 18:34:23 because 0.25 can be represented exactly as a float, or a decimal, or pretty much all other reasonable internal representations 18:34:59 -!- _0x5f375a86 has changed nick to pir^2. 18:35:03 so your opinion is it's important that the windows calculator shows that it uses binary internally 18:35:42 oklofok: well, maybe not for 0.25 18:35:50 but I do think it's important that it can correctly represent integers 18:35:52 which sqrt(4) is 18:36:43 soooooo you think squares should have exact square roots? sounds useless. 18:37:00 I think all numbers should have maximally accurate square roots 18:37:11 and that the maximally accurate representation of 2 should be 2 18:37:43 okay, that i can live with. 18:38:09 i still don't see how you can claim that's a bug with a straight face. of course it's slightly amusing. 18:38:27 actually 18:38:37 i suppose he claimed it with an amused face 18:38:47 no it was :s 18:38:59 still pretty far from straight :D 18:51:45 -!- pir^2 has quit (Quit: bye). 19:01:06 (I am making a conscious choice not to respond to the last line in the obvious way) 19:01:39 why would you respond to someone leaving, they won't see you anyway 19:01:45 ... 19:01:46 erm 19:01:46 it 19:01:47 >_< 19:02:10 you know that looks a bit like this limit set i saw just the other day 19:07:08 -!- augur has joined. 19:14:21 -!- azaq23 has quit (Quit: Leaving.). 19:23:46 -!- monqy has joined. 19:33:43 -!- Frooxius has quit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.0.17/2009122204]). 19:40:53 -!- Frooxius has joined. 19:47:56 oklofok: Also did you hear you're the capital of Finland. 19:48:21 i am? 19:48:32 oklofok: According to ais523, at least. 19:49:21 fizzie: no, I immediately realised that the capital of finland wasn't "oklopol" after it was my first thought on the subject 19:49:34 -!- oklofok has changed nick to oklopol. 19:49:35 but it's still worrying that it was the first option I considered, rather than, say, Helsinki 19:49:36 oklofok: http://codu.org/logs/log/_esoteric/2012-01-25#224322ais523 19:49:54 yep noticed 19:50:06 i would make a great capital 19:50:24 Also I always just manually type those anchors, I never remember that you can just click on the nickname. 19:58:27 -!- sebbu2 has joined. 19:58:27 -!- sebbu2 has quit (Changing host). 19:58:28 -!- sebbu2 has joined. 20:01:48 -!- sebbu has quit (Ping timeout: 240 seconds). 20:06:15 ...Google apparently thinks I'm into clothes 20:15:37 -!- FireFly has quit (Changing host). 20:18:30 -!- augur has quit (Remote host closed the connection). 20:23:38 -!- oerjan has joined. 20:27:04 -!- Ngevd has joined. 20:27:26 Hello! 20:27:47 that's a very enthusiastic hello 20:28:04 I've got Fruit Pastilles 20:28:08 i hate humans 20:28:11 :) 20:28:20 wish i had fruit pastilles 20:29:30 Fruit pustules. 20:33:20 fruit postulates 20:33:36 ...Google apparently thinks I'm into clothes <-- i think that's a natural assumption. unless you're like oklopol and go naked all the time. 20:34:10 Fruit apostles. 20:34:22 I wish I had fruit pastilles 20:34:42 Fruit, past illest. 20:34:44 fur root apostles 20:37:50 fur root pause tools 20:39:25 hmm, our latest spambot is trying to persuade us that writing a dream you've had down causes it to become true 20:39:29 I'm, umm, not sure I believe it 20:39:35 fur root paws jewels 20:40:42 four route paw schedules 20:40:54 How do you have a dream down? ...oh, *write down*! Never mind. 20:42:32 writing a dream you've had down the garden path 20:43:32 The true path to success 20:47:13 Cat Face, he's got a big cat's face, he's got the body of a cat and the face of a cat, and he flies through the air, 'cause he's got a cat face, Cat Face. 20:47:16 Sorry, I'v just got that song stuck in my head, thought writing it down the metaphorical garden path might help. 20:48:05 last night a jumped in the air and got stuck there 20:48:07 couldn't get down 20:48:26 and i had this 5 meter long metal rod and at the other and was a bmx bike 20:48:51 and i tried to turn the rod so that when i eventually landed i'd safely land on the bike (wut) but i couldn't move it 20:53:19 "The scene quickly switches to a small, red map of Norway, with text on the side stating that Norway's population is crab, that it has no tigers or lions, and that its main export is tree. Below this more text declares that "TREE showing the African continent with certain countries colored in and a protruding Kenya. The 3D Kenya moves up and down with the music as an orange dotted line extending from it shows, according to text at the side, the line to ensure the best coverage if Kenya were to urinate all over Norway physically, as well as metaphorically (however, as noted, this is a rare occurrence)." 20:53:31 I... is this really encyclopedic? I mean, sure, that's what happens, but... 20:55:19 that's a lie. our main export is oil, which as everyone knows is made from dinosaurs, thus we win. 20:55:41 You Snorewegian. 21:02:21 -!- Taneb has joined. 21:02:21 -!- Ngevd has quit (Read error: Connection reset by peer). 21:03:04 -!- Taneb has changed nick to Ngevd. 21:23:00 -!- derdon_ has quit (Remote host closed the connection). 21:23:25 -!- derdon has joined. 21:28:01 -!- derdon has quit (Ping timeout: 252 seconds). 21:31:07 -!- augur has joined. 21:39:50 -!- pikhq has joined. 21:39:56 -!- pikhq_ has quit (Ping timeout: 252 seconds). 22:18:37 -!- yours_truly has joined. 22:19:15 -!- Nisstyre has quit (Ping timeout: 240 seconds). 22:22:18 -!- yours_truly has quit (Client Quit). 22:23:19 -!- Ngevd has quit (Quit: Goodbye). 22:26:38 -!- Nisstyre has joined. 22:30:04 -!- jix has quit (Remote host closed the connection). 22:48:37 -!- jix has joined. 23:14:55 -!- Phantom_Hoover has quit (Ping timeout: 240 seconds). 23:16:11 -!- ais523 has quit (Remote host closed the connection). 23:20:07 -!- augur has quit (Remote host closed the connection). 23:58:01 -!- oerjan has quit (Quit: Good night).