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.
54 lines
11 KiB
Plaintext
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- matthiasgorgens matzo maukd Maxdamantus McManiaC mcsmash_ mechairoi mefisto mendez mercury^ meretrix meridion merijn mertsas_ MetaCosm mgq micro` mietek mike2 mikeplus64 milaz milli mixi mizu_no_oto mjhan mjr84 MK_FG mkaito mlh mlinksva mm_freak_ mmaruseacph2 mndrix mokus monique_ monochrom moonlite morazow mornfall mortberg Mortchek MostAwesomeDude mrd mrdomino MrFahrenheit MrMeh MrNibbles mroman mrshoe MrZepeda mullein mux mv-- mvj4 myme mysticc mzarella mzero n-dolio NadiaYvette Nafai Nanar nand` nanothief nathanel_ Nemykal neptunepink Nereid netj newbiie newsham newtrekemotion nexion nexx nicoo Nik_89 niko Nimatek nimred ninegrid_ Nisstyre Nisstyre-laptop nkpart nlogax noam_ noj nomadmonad nominolo noplamodo norm2782_ notdan notVert nsxt nu11ptr nule NullSoldier nuncanada__ nus- nwf obcode Obfuscate ocharles Okasu OlegYch|h OnionKnight opqdonut ormaaj Ornedan ortmage osa1 osfameron osnr othiym23 otterdam otters otto_s_ ousado ownchooda owst ozgura Paks pantski ParahSa1lin ParahSailin_ parcs` pckt pdxleif_ peddie perlite petanqk pettter pharaun Philippa Philonous PhilRod phirox Phlogistique PHO_ phrst pikhq plat0 Plex- plhk pmatey pnielsen poisonarms Polarina polux_ ponce popx pr profmakx ps-auxw ptek_ Ptival ptrf puppy purefn puzza007 pxdr pyrtsa pyykkis qasi qpfiffer qralf qtplatypus quaestor quicksilver qwandor qwr raek ragusa Ralith RawProduce ray Raynos Razz rcj_ reacocard ReinH reinoud Reisen rekado_ retronym_ rfw rgr rhodesd ricky rking rmunroe rmyers robbert Robdgreat robinbb robstewartuk rofer RogueShadow Rotaerk_ rwbarton ryanRT s4msung s_quark sagelywizard Sagi saiam Saizan sajith sarfraz saurik sawjig sbahra scgilardi schellsan schlaftier schlumpi schroedinbug sclv_ scshunt Sculptor SeanTAllen seats SegFaultAX sellout42 serban setmeaway shachaf Shapeshifter shapr shapr` shepheb shergill sheriff_ SHODAN shoerain Shou shurick shutdown_-h_now si14 sig_wall simon simon__ SimonRC simply-chris sipa siplux sixohsix sjl ski slackguru SLi sm smarter snorble_ Soft sohum solarus solirc SonicvanaJr sordina Sorella SoupE spacekitteh spacepluk Spockz sqrt squidz srcerer Starfire statusfailed stelleg stepcut stew strager strax strmpnk suiside_ sully sunfun sunhay sunnavy swflint Swizec syntaxfree t7 tafryn tahu tamiko Targen taruti tavelram_ tazjin tbelaire td123 tdammers Tehnix tempire Tene tensorpudding Tesseraction tessier tew88 tg tgeeky The_third_man TheBrayn theorbtwo theplanet thetallguy thetallguy1 thetallguy2 thirsteh thorkilnaur thoughtpolice till_t|away timemage tlockney tmiw TML tobias2 tobiassjosten tomaw tomh tomku tomprince totte tranma tridactyla tromp tsou tsuraan tswett tvaalen_ Twey typoclass ubitux ulfdoz unK_ unlink untwisted upgrayedd upgrayeddd Valodim Varakh verrens Viesti vili vmeson vobi vodik void vpm Vq vwvwvwv VZakharov wagle warpy_ waterlaz wchun weie welterde whalesmith WhoNeedszzz whoops wilfredh willb Will| wires` wjlroe_ wormphlegm wtetzner wting wtw wumpus wunki xaimus XexonixXexillion xinming xistor XMunkki xnyhps Xorlev xplat xsysstar Y0Gi yader Yahovah_ yam yan_ YayMe ybit yeltzooo yhager zaiste zeiris zenware zenzike Zetro ziman_ zoktar zomg zorzar ZsoL zygoloid]
|
|
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
|