You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/weechat/logs/irc.irc.freenode.org.#haske...

54 lines
11 KiB
Plaintext

2012-09-30 19:34:14 --> dust1n (~dustinswa@216.238.245.109) has joined #haskell
2012-09-30 19:34:14 -- Topic for #haskell is "["GHC 7.6.1 http://v.gd/CEBRVo ","Haskell Platform 2012.2: http://bit.ly/Clv5r ","Paste code/errors: http://hpaste.org/new/haskell ","Haskell News: http://reddit.com/r/haskell ","The Haskell programming language http://haskell.org ","Logs: http://bit.ly/5mwtRQ "]"
2012-09-30 19:34:14 -- Topic set by monochrom on Fri, 14 Sep 2012 14:57:21
2012-09-30 19:34:14 -- Nicks #haskell: [@ChanServ [[zz]] [edwtjo] \rs \stro _1amzave __class__ __main__ _br_ _flow_ _janne _root_ `0660 `bps `fogus a11235 A1kmm aa_ aar_ absence acfoltzer acyed Adeon adimit Adios adnauseam aegray_ aforemny agundry ahf ahihi2 ahkurtz aiko- ajhager akosch alang albel727 AlbireoX aleator alech alek_b alexande1te alexkira aliak_ alpounet Amadiro amathew amiddelk amiller amiri And[y] anders^^ andrewsw anonus AntiSpamMeta Apocalisp appamatto araujo arcatan aristid arkx arlinius armlesshobo|work Arnar asjo astertronistic astry_ aszlig Athas AtnNn augur avpx Axioplase baldo Balthek banachtarski bapa barrucadu bartavelle Baughn bbee bburhans bcoppens bd_ bddn bduc Beetny BeholdMyGlory Belgarion0 ben bens bentham betamine bezik bfig bford bgamari birkenfeld blaenk BlastHardcheese BMeph_ bobry bogner bonk bookerz boothead boris`` Botje boyscared bps bradleyayers brainproxy brandonw brendyn brett BrianHV brisbin brixen bru` brutal_chaos Bwild bxc byorgey ByronJohnson bytbox c_wraith cacodaemon cads Cale caligula_ canta canvon capisce cark carter ccasin cdidd centrinia Cerise certainty chee1_ chirpsalot choo chra chris2 chrisb chrisbuchholz ciaranm CindyLinz cjay cjh` cl_away ClaudiusMaximus Clint clog clsmith cmccann codertux cods colah_ colock comak companion_cube companion_square Con confab confound copton copumpkin Corey corruptmemory CosmicRay CoverSlide cow-orker crdueck Cryovat ctype_real Cyan6 cyanoacry cynick d-snp dabradley dada_cetacean dan_johnsin danr Daroth Dashkal davean davorak_ dcoutts_ deavid decltype Deewiant def-lkb deltab Derander derrida descender|2 DexterLB dford dgpratt dgvncsz0` dilinger_ dimka dino- djahandarie djanatyn dju dmarker dMazz dmwit dncr dnolen dobblego docl Dodek dogmaT dolio dom96 donri doserj dottedmag dqd Draconx Draggor drbean drdo dreixel drek drewr drmegahertz dropdrive DrPete DrSyzygy dsfox DT` Dtgr dumbhat dust1n DustyDin1o Dybber eagletmt earthy edenc Eduard_Munteanu edwardk Egbert9e9 ehamberg electrogeek elgot Eliel elliottcable em emias Enigmagic enk0max eno enolan Entroacceptor Eridius ernst erochester Esa_1 estulticia etabot ethereal EvanR2 Excedrin Excureo Expez eyck EyesIsMine f4m8 f8 fabjan faen fall_ favonia faybot fcr felipe_ Ferdirand fergusnoble fgomez fihi09 finnrobi FireFly fireglow flori flux fmap fotc franny freels freiksenet frerich frigga1 frio frontendloader froztbyte fryguybob ft ftrvxmtrx Fuuzetsu FUZxxl fxrh gargawel gbeshers gdsx geekosaur geisthaus gemelen gentleben geoffh gereedy gfredericks ggreg ghorn ghost88 gienah Gilly gmcabrita gmci gnuvince Gothmog_ Gracenotes gry gseitz gtmanfred guerrilla Guest11834 Guest34074 Guest42083 Guest56933 Guest84664 gusto guymann gwern hackagebot Hadaka hamishmack hanDerPeder harrison hayashi hc hiredman hiroaki_ hirsch_ hive-mind homie` hpaste hpc hpd Hugglesworth hughfdjackson HugoDaniel hundskatt hvr hyko ibid IbnFirnas Iceland_jack identity idnar ido idoru Igloo ilya_ ilya__ imeredith imphasing Innominate inr int-e integral Internet13 ion ique isaacmk ISF isomorphic ivan ivan\ ivan` ivanm Jaak jabirali jackhill JackieXu JaffaCake jaj JamesJRH_ janinge jaspervdj Jaxan jaxtr jayne jbauman jcao219 jedws Jello_Raptor jesyspa jfischoff jgr jix jlewis jliikka jlouis jmcarthur joachifm joe9 joe_k JoeHazzers joeyh joeytwiddle johntromp joni6128 jonke Jonno_FTW jrib jrk_ jrockway jrslepak jrslepak_neu jrwest jsgf jssanders JuanDaugherty juliohm julmae julmuri- junsuijin jyyou k0ral kakos kallisti kalven KaneTW kanzure kaol KBme kcj Ke kennyd ketil kevinqcs Khisanth kil0 kini KitB KitB_ kkris_ kleini\_ kloeri klugez kniu knyppeldynan knz koala_man kobsu koninkje kopi kosmikus krageon kranius Kuraitou Lajjla lambdabot Laney larks larsrh latro`a lazard Lemmih Lemon LeninParty LeNsTR levi` levitation[A] lewurm lightquake lillis limetree linduxed Liskni_si lispy liyang lnostdal lokydor lomeo_ lopex lpsmith lpvb lrvick LtWorf lucca luis luite luksow lulf lusory m3ga machisuji magicman majoh maloi0 mantovani mapreduce marienz Martty MasseR master_of_master mateu Mathnerd314 matthavener matthew- matthiasgor
2012-09-30 19:34:14 -- Channel #haskell: 919 nicks (1 op, 0 halfops, 0 voices, 918 normals)
2012-09-30 19:34:14 -- URL for #haskell: http://www.haskell.org/
2012-09-30 19:34:16 -- Mode #haskell [+CLcnpt]
2012-09-30 19:34:16 -- Channel created on Sun, 26 Nov 2006 00:42:48
2012-09-30 19:34:18 hpc :t let sameish [] _ = True; (c:cs) [] = False; (c:cs) (t:ts) | c == t = sameish cs ts; | otherwise = sameish (c:cs) ts in sameish
2012-09-30 19:34:19 lambdabot Parse error in pattern
2012-09-30 19:34:23 hpc dammit
2012-09-30 19:34:30 Nereid mm_freak_: for user-defined functions, yes. it shows something else for built-ins or lambdas
2012-09-30 19:34:37 hpc :t let sameish [] _ = True; (c:cs) [] = False; sameish (c:cs) (t:ts) | c == t = sameish cs ts; | otherwise = sameish (c:cs) ts in sameish
2012-09-30 19:34:38 lambdabot Parse error in pattern
2012-09-30 19:34:43 Nereid wait.
2012-09-30 19:34:54 mm_freak_ indeed
2012-09-30 19:34:59 mm_freak_ >>> print
2012-09-30 19:34:59 mm_freak_ <built-in function print>
2012-09-30 19:34:59 Nereid yeah, for user-defined functions it shows a name and address
2012-09-30 19:35:01 milaz newbiie: sorry, "(maxFunc s (-100)) 4" better. So, what should the function return then: "s" or "sqrt"?
2012-09-30 19:35:03 Nereid for lambdas the name is just <lambda>
2012-09-30 19:35:24 milaz newbiie: Javascript in this case prints the source code for the function, by the way
2012-09-30 19:35:30 milaz if it can
2012-09-30 19:35:33 <-- LtWorf (~LtWorf@unaffiliated/ltworf) has quit (Ping timeout: 272 seconds)
2012-09-30 19:36:18 milaz because otherwise you are willing to print the name of the variable passed into maxFunc
2012-09-30 19:36:19 * BMeph_ asks javascript: But what about encapsulation? Reply: lol wut
2012-09-30 19:36:23 newbiie well s is a pointer to sqrt right?
2012-09-30 19:36:38 mm_freak_ newbiie: no, it /is/ sqrt
2012-09-30 19:36:49 mm_freak_ newbiie: in haskell x = y is an equation
2012-09-30 19:36:56 milaz newbiie: sqrt is a pointer to a real function
2012-09-30 19:37:05 mm_freak_ no, it's not
2012-09-30 19:37:09 mm_freak_ forget the word "pointer", please
2012-09-30 19:37:12 milaz newbiie: and s is a pointer to the same function
2012-09-30 19:37:16 mm_freak_ sqrt is a function, period
2012-09-30 19:37:28 newbiie which you cannot display the name of
2012-09-30 19:37:29 milaz how would we decide if one name is better than another?
2012-09-30 19:37:48 newbiie since sqrt is not of type show
2012-09-30 19:37:48 mm_freak_ otherwise newbiie will ask why you can't display the pointer, at which point we will have to start all over again =)
2012-09-30 19:37:56 mm_freak_ show is not a type
2012-09-30 19:38:16 newbiie o...k.....
2012-09-30 19:38:24 <-- meretrix (~user@unaffiliated/meretrix) has quit (Remote host closed the connection)
2012-09-30 19:38:38 mm_freak_ newbiie: to see the problem try to write your own function 'getFunctionName'
2012-09-30 19:38:40 avpx Show a is a class constraint.
2012-09-30 19:39:21 <-- juliohm (~juliohm@unaffiliated/juliohm) has quit (Quit: Leaving)
2012-09-30 19:39:28 Nereid unsafeCoerce :: a -> Ptr b -- there's your pointer!
2012-09-30 19:39:50 EvanR2 show . unsafeCoerce
2012-09-30 19:39:52 EvanR2 lol
2012-09-30 19:39:55 milaz Nereid: one step further, and we can show hardware address for it
2012-09-30 19:40:07 milaz victory! :)
2012-09-30 19:41:07 WhoNeedszzz hpc, i'm dumb. I can use the function i just made to do it really easy: http://ideone.com/UC9op
2012-09-30 19:41:32 hpc oh, that works
2012-09-30 19:42:08 WhoNeedszzz yeah i'm silly sometimes
2012-09-30 19:42:12 -- irc: disconnected from server