Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2012-05-06

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

All times shown according to UTC.

Time Nick Message
00:25 ttmrichter joined #rosettacode
01:59 kpreid joined #rosettacode
02:12 rald joined #rosettacode
02:15 rald !help
02:15 fedaykin mod_misc triggers: roll, decide, centime, math, trans, 8ball, chr, track, note, tell, calc, ddate, date, define
02:15 fedaykin mod_links triggers: link, qdb, oito, syndicate
02:15 fedaykin mod_event triggers: addlunch, lunchadd, delevent, newevent, eventnew, event, delattendee, events, addme, newlunch, lunchnew, addevent, eventadd, settime, addattendee, delme, setname
02:15 fedaykin mod_quote triggers: addquote, quotestat, delquote, quote
02:20 rald !roll
02:20 rald roll
02:20 rald !help roll
02:20 fedaykin Use roll as such "roll xDy" where x is the number of dice and y is the number of sides
02:20 sorear @commands
02:20 lambdabot Unknown command, try @list
02:20 sorear @list
02:20 lambdabot http://code.haskell.org/lambdabot/COMMANDS
02:21 rald roll 2D6
02:22 rald roll 2 6
02:22 rald !roll 2D6
02:22 fedaykin 1, 5
02:24 rald !help decide
02:24 fedaykin This trigger performs random choosing among options provided, separated by "," or "or"
02:24 rald decide live or die
02:24 rald !decide live or die
02:24 fedaykin rald: live
02:25 rald !decide coke or pepsi
02:25 fedaykin rald: coke
02:26 rald !decide burger, salad or chicken
02:26 fedaykin rald: burger
02:26 rald !decide burger, salad or chicken
02:26 fedaykin rald: chicken
02:29 rald !help centime
02:29 rald !help math
02:29 fedaykin Evaluate mathematical equation
02:29 rald !math atan(1)*4
02:29 fedaykin Result: 3.14159
02:30 rald !help trans
02:30 fedaykin trans performs translations via Google's translate API using this syntax "trans [fromlang|]tolang message" where fromlang| is optional and fromlang and tolang are 2 letter language abbreviations such as de or en
02:31 rald !trans en|ta hello world!
02:31 rald !trans en|tg hello world!
02:32 rald !trans en|tl hello world!
02:32 rald !trans tl hello world!
02:32 fedaykin rald said in en: hoy mundo !
02:34 rald !trans en hoy mundo !
02:34 fedaykin rald said in es: world today !
02:34 rald !trans tl world today !
02:34 fedaykin rald said in en: mundo ngayon !
02:34 rald !trans en mundo ngayon !
02:34 fedaykin rald said in tl: the world today!
02:35 rald !trans tl the world today !
02:35 fedaykin rald said in en: sa mundo ngayon!
02:35 mou_ joined #rosettacode
02:39 rald !help tell
02:39 fedaykin This trigger displays a note to the nick(* on either end for wildcard) of your choosing the next time that nick is active in the channel. 'note nick <note>'  nick can also be replaced with a comma-separated nick list for multiple deliveries
02:40 rald !note
02:40 rald !help note
02:40 fedaykin This trigger displays a note to the nick(* on either end for wildcard) of your choosing the next time that nick is active in the channel. 'note nick <note>'  nick can also be replaced with a comma-separated nick list for multiple deliveries
02:40 rald !tell rald Hello
02:40 fedaykin Note stored for rald
02:40 fedaykin rald, rald left a note 0 seconds ago: Hello
02:40 rald left #rosettacode
02:40 rald joined #rosettacode
02:42 rald !trans ja Hello World!
02:42 fedaykin rald said in en: こんにちは、世界!
02:43 sorear are you just playing around or do you have a goal
02:43 rald just testing
03:12 mou_ !trans fr I m a bitch
03:12 fedaykin mou_ said in en: Je suis un chienne
03:12 mou_ wow
03:12 mou_ !trans en je suis une chienne
03:12 fedaykin mou_ said in fr: I 'm a bitch
03:13 ttmrichter I think the funny part there is that they went VERY literal with "bitch".
03:13 ttmrichter In both directions.
03:13 mou_ !trans en Bonjour tout le monde je suis un jeune programmer en python regardez mon github a: http://github.com/mouuff ce traducteur a l'air de marcher
03:13 fedaykin mou_ said in fr: Hello everyone I am a young program in python look at my github has : http://github.com/mouuff the translator seems to work
03:14 mou_ wtf
03:14 mou_ its wrong
03:14 mou_ seem to not work lol
03:14 ttmrichter !trans en 施氏食狮史
03:14 fedaykin ttmrichter said in zh-CN: The Amur food lion history
03:14 ttmrichter HAAAAAAAAAAa-hahahahahaha!
03:15 mou_ can I see the source? I think this bot was made in python with google translate module right?
03:15 ttmrichter That should really say "The Lion-Eating Poet in the Stone Den".
03:15 mou_ !trans en boit mon sperme salope ou je t'encule profond!
03:15 fedaykin mou_ said in fr: drink my cum bitch or I'll fuck deep !
03:16 mou_ rofl
03:16 mou_ lol
03:16 mou_ who made the bot?
03:16 mou_ !help
03:16 fedaykin mod_links triggers: link, qdb, oito, syndicate
03:16 fedaykin mod_event triggers: addlunch, lunchadd, delevent, newevent, eventnew, event, delattendee, events, addme, newlunch, lunchnew, addevent, eventadd, settime, addattendee, delme, setname
03:16 fedaykin mod_misc triggers: roll, decide, centime, math, trans, 8ball, chr, track, note, tell, calc, ddate, date, define
03:16 fedaykin mod_quote triggers: addquote, quotestat, delquote, quote
03:16 mou_ !math 1+1
03:16 fedaykin Result: 2
03:16 mou_ !math 1**1
03:16 fedaykin Multiplication requires 2 or more operands
03:17 mou_ !math pow(14, 321)
03:17 fedaykin Result: 8.0742e+367
03:17 mou_ !math 999*pow(914, 321)
03:17 fedaykin Result: 2.90599e+953
03:17 mou_ !math 999*pow(914, 3219999)
03:17 fedaykin Result: inf
03:17 mou_ its not infinite
03:18 mou_ ...
03:18 mou_ it should raise mathrange error
03:18 mou_ and mathRAGE lol
03:19 ttmrichter In Python it just spikes my CPU and does nothing.
03:19 mou_ yep
03:21 ttmrichter I guess that's what happens when you have bignum used transparently in your integers.  :)
03:21 mou_ !setname faggot
03:21 fedaykin There are no active events
03:22 mou_ :/
03:22 mou_ addevent
03:22 mou_ !addevent
03:22 mou_ !newevent
03:22 mou_ !quote
03:22 fedaykin Quote 27 set by catpants on 2010-12-21 09:00:31: opticron: Alii, I play with mine daily
03:22 mou_ !quote
03:22 fedaykin Quote 63 set by catparts on 2011-06-24 10:35:36: <omegix> I love the hell out of some crickets
03:22 mou_ !quote
03:22 fedaykin Quote 26 set by Preaux_Work on 2010-12-17 08:47:37: spacefelix There are many furries, but there's only one Little Miss Furry.
03:22 mou_ :)
03:24 mou_ !addquote I love cocks
03:24 fedaykin Quote added with id 175
03:24 mou_ roflomfg
03:27 mou_ !quote
03:27 fedaykin Quote 12 set by brimstone on 2010-11-05 09:43:54: <Alice> I love goats
03:27 mou_ !quote
03:27 fedaykin Quote 45 set by Dickie on 2011-03-07 10:00:06: Alii | I understand benalene, I don't like it when people see me blow either.
03:27 mou_ !quote
03:27 fedaykin Quote 30 set by Dickie on 2011-01-16 19:58:22: catpants> Preaux_: you're more than welcome to come over and make use of mine when the urge presents itself
03:27 mou_ !quote
03:27 fedaykin Quote 59 set by benalene on 2011-05-24 16:44:36: chazzam yes, but I think thats how to reproduce
03:27 mou_ !quote
03:27 fedaykin Quote 50 set by Preaux on 2011-04-20 09:38:32: ALII BrokenTrace, you aren't the first
03:28 mou_ !quote
03:28 fedaykin Quote 149 set by Dickie on 2012-02-24 15:56:05: benalene | and i have to beat them off
03:28 mou_ !quote
03:28 fedaykin Quote 107 set by Dickie on 2011-11-21 13:10:22: shapr | I once maced myself.
03:28 mou_ !quote
03:28 fedaykin Quote 104 set by catpants on 2011-11-07 10:12:11: Dickie │ Idle hands spend time at the genitals.
03:28 mou_ !quote
03:28 fedaykin Quote 150 set by preaux on 2012-02-25 12:58:31: Gregabyte | "Ok, we'll need to make and electric codpiece"
03:28 mou_ !quote
03:28 fedaykin Quote 92 set by catpants on 2011-09-26 13:19:48: MrWorld │ What is with my ass and farm animals today?
03:28 mou_ !quote
03:28 fedaykin Quote 37 set by Dickie on 2011-02-01 09:38:40: Silvestrii | I can show you mine if you like.
03:28 mou_ !quote
03:28 fedaykin Quote 60 set by catpants on 2011-06-09 10:16:32: @Dickie │ Trust me
03:28 mou_ !quote
03:28 fedaykin Quote 32 set by Weredickie on 2011-01-25 09:59:32: <Alii> opticron, catpants got to me first, thanks though.
03:28 mou_ !quote
03:28 fedaykin Quote 50 set by Preaux on 2011-04-20 09:38:32: ALII BrokenTrace, you aren't the first
03:28 mou_ !quote
03:28 fedaykin Quote 180 set by mou_ on 2012-05-05 22:26:09: FUCK YOU FAG shits
03:28 mou_ omfg
03:30 sorear I hereby rule that use of !quote is not appropriate here
03:31 mou_ ok
03:31 mou_ who made the bot?
03:32 mou_ btw : its funny how all "free coders" steal code from others now on github all people have the same ircbot except some persons who make their code by hands like me
03:34 sorear I have no idea where fedaykin came from
03:34 sorear lambdabot is mine, and predates github
03:35 sorear and I really don't like your additude
03:35 sorear this is not the place to be using 'cocks', 'faggot', and 'steal'
03:35 sorear oh wow
03:35 mou_ its real
03:35 sorear I am scrolling back further... bitch?  sperme?
03:36 mou_ see this bot have same options as this one: https://github.com/aj00200/BBot
03:36 mou_ they steal modules who other devs created
03:46 sorear my misogyny sense is tingling majorly
03:54 mou_ joined #rosettacode
03:55 sorear mou_: start here: http://geekfeminism.wikia.com​/wiki/Sexualized_environment
03:55 fedaykin "Sexualized environment - Geek Feminism Wiki" http://rldn.net/Tw0d
04:30 mou_ joined #rosettacode
04:31 sorear mou_: start here: http://geekfeminism.wikia.com​/wiki/Sexualized_environment
04:31 fedaykin "Sexualized environment - Geek Feminism Wiki" http://rldn.net/Tw0d
04:31 mou_ lol
04:33 sorear I am serious
04:33 sorear you need to understand how inappropriate your behavior is
04:34 mou_ http://geekfeminism.wikia.​com/wiki/Sex_is_beautiful
04:34 fedaykin "Sex is beautiful - Geek Feminism Wiki" http://rldn.net/8ey
04:43 opticron hmmm...
04:43 opticron maybe I should disable that one from this channel
04:44 opticron mou_, I coded that entire bot by hand
04:44 sorear opticron: fedaykin is yours?
04:44 opticron the code was stolen from nowhere
04:44 mou_ can i see the code?
04:45 opticron sure, http://pianoben.ch/svn/branches/ it's modular so the parts are scattered all through there
04:45 fedaykin "svn - Revision 1170: /branches"
04:45 opticron the only code that I didn't write was the actual IRC interface lib
04:46 opticron warning, it's all in D
04:46 opticron though I have done some hacking on the IRC interface lib to add features
04:47 opticron also, bots tend to have similar commands because people tend to need certain sets of features
04:49 sorear do we really need !roll and !quote here?
04:49 mou_ I want the source code please
04:50 opticron sorear, probably not, but it's a shared instance
04:50 opticron mou_, I posted the link
04:51 mou_ oh noes
04:51 mou_ it use irclib
04:51 mou_ rofl
04:54 opticron aaaaanyway
04:55 opticron I have 3 buckets, the first two can each hold a maximum of 39 items and the last can only hold 37 items.  I have 41 items to distribute among the three buckets
04:56 opticron how the heck do I figure out how many combinations of items in buckets there are? (assuming all items are identical)
04:57 mwn3d_phone joined #rosettacode
05:00 sorear do you need a closed form solution?
05:00 opticron preferred
05:02 sorear > let go 0 _ = 1; go i [] = 0; go i (x:xs) = sum [ go (i-cut) xs | cut <- [0 .. max i x] ] in go 3 [1,1,1,1,1,1]
05:02 lambdabot 56
05:03 sorear > let go 0 _ = 1; go i [] = 0; go i (x:xs) = sum [ go (i-cut) xs | cut <- [0 .. max i x] ] in go 3 [1,1,1]
05:03 lambdabot 10
05:03 sorear > let go 0 _ = 1; go i [] = 0; go i (x:xs) = sum [ go (i-cut) xs | cut <- [0 .. min i x] ] in go 3 [1,1,1,1,1,1]
05:03 lambdabot 20
05:04 sorear > let go 0 _ = 1; go i [] = 0; go i (x:xs) = sum [ go (i-cut) xs | cut <- [0 .. min i x] ] in go 41 [39,39,37]
05:04 lambdabot 887
05:04 sorear there's the non-closed-form answer
05:04 opticron huh
05:04 opticron I guess that'll work
05:04 opticron more managable than I thought
05:05 sorear it could be optimized with caching, to be O(buckets*items)
05:06 sorear O(log items) is probably impossible by reduction to the knapsack problem, but I don't immediately see the reduction
05:06 sorear wait
05:06 sorear this is the BIN PACKING problem
05:07 * sorear wonders if 'Count bin packings, binary input' is #P-complete
05:24 lnettnay joined #rosettacode
07:37 mwn3d_phone1 joined #rosettacode
09:18 ttmrichter joined #rosettacode
09:57 mwn3d_phone joined #rosettacode
10:30 sirdancealot joined #rosettacode
10:33 mischi joined #rosettacode
10:35 sirdancealot joined #rosettacode
11:24 mwn3d_phone1 joined #rosettacode
11:35 mwn3d_phone joined #rosettacode
11:39 Coderjoe joined #rosettacode
12:05 mwn3d_phone1 joined #rosettacode
12:13 sirdancealot joined #rosettacode
12:48 sirdancealot joined #rosettacode
12:51 sirdancealot2 joined #rosettacode
12:58 mwn3d_phone joined #rosettacode
13:03 mwn3d_phone1 joined #rosettacode
13:33 mwn3d_phone joined #rosettacode
14:38 sirdancealot2 joined #rosettacode
15:22 mmol_zoe joined #rosettacode
15:24 kpreid joined #rosettacode
15:48 mmol_zoe joined #rosettacode
16:08 mischi joined #rosettacode
17:18 mwn3d_phone1 joined #rosettacode
17:18 mou_ joined #rosettacode
18:23 mwn3d_phone joined #rosettacode
18:47 mwn3d_phone1 joined #rosettacode
19:22 mwn3d_phone joined #rosettacode
20:29 mwn3d_phone1 joined #rosettacode
21:11 mwn3d_phone joined #rosettacode
21:42 mou_ joined #rosettacode
22:28 mwn3d_phone1 joined #rosettacode
22:59 kpreid joined #rosettacode
23:06 lnettnay joined #rosettacode
23:48 mwn3d_phone joined #rosettacode
23:50 bearophile joined #rosettacode
23:51 mmol_saffron joined #rosettacode
23:55 bearophile Some more ping-pong on the Sokoban C/D entries
23:56 bearophile Hours to translate the C entry to D, and then Ledrug created a vastly faster (and quite different) C entry.
23:56 mou_ joined #rosettacode
23:56 bearophile In some cases I have just removed the "translation of C" tag in the D entry, and I have not changed the code
23:58 bearophile Because producing D code like this is kind of easy: http://codepad.org/8MSMhbap
23:58 fedaykin "D code - 390 lines - codepad"
23:58 bearophile but creating an idiomatic translation requires a lot of time.

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