00:00:00 --- log: started haskell/02.01.02 00:30:56 --- join: shapr (~user@195.156.199.178) joined #haskell 01:02:49 --- quit: pHa (Read error: 104 (Connection reset by peer)) 01:03:21 --- join: pHa (sjh@216.26.216.18) joined #haskell 01:04:23 hi 01:11:06 * xbill peeks. 02:25:09 --- join: jewel (~jleuner@57.66.12.99) joined #haskell 02:41:01 --- quit: Yurik (Read error: 104 (Connection reset by peer)) 02:42:14 hi jewel !! 02:42:20 * shapr pokes 02:43:10 * shapr does LOAD 8,1 02:45:25 LOAD 8,1 ? 02:45:48 yah, I think that's how you load the first program from the tape of a Commodore 64 02:46:05 didn't you ever do PEEK and POKE on the C64? 02:47:29 that may not be the correct way to load the first program on the C64 tape drive 02:47:39 I suspect there should be an asterisk in there somewhere 02:48:13 I thought it was an interpreted bytecode like GInterp.hs 02:48:29 nifty guess :) 02:48:56 I should do something more with GInterp.hs some day. 02:49:06 you said "xbill peeks" so I started thinking Commodore64 instructions 02:49:31 iirc, PEEK and POKE let you read and write direct memory addresses 02:49:35 /msg #kernel there is such a thing as a priority queue 02:49:50 That's a bizarre assembly syntax. 02:50:12 yah well, it was C64 02:50:28 shapr: Actually, if you're interested in futzing with Haskell miscellania, c.f. http://holomorphy.com/~wli/grid/GInterp.hs 02:50:54 it was the most powerful personal computer of its time 02:51:14 I'll check it out, no promises of comprehension :) 02:51:30 Just compile & run it. =) 02:51:39 * shapr quakes in his.... socks 02:51:53 It's shorter than Hsh 02:52:20 nah, it's a bit longer. 02:52:26 okay, sorry, it's a little longer 02:52:35 $ wc ~/public_html/grid/GInterp.hs ~/src/hsh/Hsh4.hs 02:52:35 582 2673 15717 /home/wli/public_html/grid/GInterp.hs 02:52:35 306 1264 8494 /home/wli/src/hsh/Hsh4.hs 02:52:41 plus your code is sometimes a bit above my conceptual level ;) 02:53:00 hrm, it wants Readline 02:53:19 there's probably a long list of -package things you'll need. 02:53:38 * shapr tries 02:53:55 ghc -Wall -fasm -fglasgow-exts -fallow-overlapping-instances -fallow-undecid 02:54:13 ghc -Wall -fasm -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances -fno-monomorphism-restriction -syslib data -syslib lang -syslib util --make 02:54:28 There's a Main.hs there too 02:54:36 It just does main = debug (compile gm0) 02:55:23 hm, it loses putStr 02:55:30 GInterp.hs:12: Variable not in scope: `Prelude.putStr' 02:55:37 What? 02:56:11 It shouldn't be losing it entirely... 02:56:17 What ghc? 02:56:19 it appears to have misplaced the Prelude 02:56:23 5.02.00 02:56:38 it's probably a debian problem 02:56:46 no it's not 02:56:57 I do import Prelude hiding (putStrLn, putStr) 02:57:02 ah 02:57:17 I should be able to use them as qualified names. 02:57:53 hm, weird. 02:58:17 Well, it's going. 02:58:21 is there a way I can rename functions as they're imported? 02:58:31 Not sure 02:58:42 I'm trying a little something right now. 02:59:07 well, whatever it is, it looks very cool 02:59:19 I don't think it gets errors, I'll send you a tarball you can just do "make" with. 02:59:35 I'd guess it's either an interpreter of some kind, or a symbolic logic solver... 02:59:37 or maybe both :) 02:59:38 That is, as soon as ghc finishes running so I can clean things. 02:59:51 an interpreter, no solving going on =) 02:59:57 ok 03:00:16 Okay, it's done. 03:00:24 I'll DCC momentarily. 03:00:26 this could take me weeks to puzzle through :) 03:00:34 my client doesn't support dcc 03:00:47 I'm curently at shae.erisson@widian.fi 03:01:02 I'll send it as a MIME attachment. 03:01:24 I'm surprised it's having problems with putStr & putStrLn 03:01:29 it should work I think. 03:02:08 it does work here 03:02:17 what ghc? 03:02:40 --- join: wli (wli@holomorphy.com) joined #haskell 03:02:49 The Glorious Glasgow Haskell Compilation System, version 5.00.2 03:02:54 --- part: wli left #haskell 03:02:55 hm, I think I'll make it explicit in my local copy 03:03:01 that was cool :) 03:03:10 cameo appearance by wli 03:03:21 * xbill = wli 03:03:26 I know :) 03:03:29 heh 03:03:56 I think of xbill as wli the kernel developer going incognito 03:04:56 * xbill thinks that's accurate. 03:06:38 gah.. I expleted the putStrLn & putStr calls to GInterp. 03:06:45 more problems.. hmm 03:06:47 expleted? 03:07:01 It doesn't work as-is with the tarball? 03:07:19 expleted is a joke on "made explicit" 03:08:20 hm, nope 03:08:24 I ran "make" in that directory 03:08:51 you ran make and it didn't work? 03:08:52 same problem with shadowing 03:09:00 GInterp.hs:12: Variable not in scope: `Prelude.putStr' 03:09:01 right 03:09:11 ii ghc5 5.00.2-1 GHC - the Glasgow Haskell Compilation system 03:09:19 Is that the same version you're running? 03:09:42 ii ghc5 5.02-1 GHC - the Glasgow Haskell Compilation system 03:09:51 5.02.00 03:09:59 though I think 5.02.1 is out 03:10:06 okay, I'm upgrading and installing right now 03:10:31 And porting. 03:10:38 heh :) 03:11:00 You should at least have something runnable to play with 03:11:25 I admit, I'd like to see this run 03:11:44 there's another doc to look at 03:11:50 ? 03:11:58 http://holomorphy.com/~wli/doc/student.pdf 03:12:10 I think student.dvi and student.ps are also there 03:12:19 They should help explain a bit of what's going on. 03:12:21 I've been wondering how I can write stuff like "tr" as a straight up Haskell function, and have it work in a Haskell shell. 03:12:50 Okay, I get the error now: GInterp.hs:12: Variable not in scope: `Prelude.putStr' 03:14:31 wow, cool 03:14:40 re: student.pdf 03:15:37 Okay, I fixed it. 03:15:40 yay! 03:15:54 I did import qualified Prelude as P 03:16:04 In addition to the import Prelude hiding (...) 03:16:14 And changed the Prelude.putStr etc. to P.putStr 03:18:03 what's your email again? 03:18:04 any other changes? 03:18:14 none whatsoever 03:18:15 shae.erisson@widian.fi during the day :) 03:18:18 hm 03:18:34 oh, those are just warnings 03:19:10 resent 03:19:44 fixing the warnings might be an interesting project 03:22:08 http://holomorphy.com/~wli/grid/session.log 03:22:16 That should give you an idea of what it does. 03:22:33 also see newsession.log 03:23:02 fascinating 03:24:21 and probably applies to improving Hsh, as well as writing a lojban shell in Haskell 03:26:25 hm, Miranda looks like Haskell 03:26:26 improving the readline support might also help 03:28:23 aha, I need to install libreadline4-dev 03:29:59 mmm, nifty 03:30:17 Did you see newsession.log and session.log ? 03:30:36 yup, I'm trying those myself 03:30:51 how could the readline support be improved? it appears to work flawlessly. 03:31:14 allowing completion on command names 03:31:23 ah! 03:31:23 xbill: did it not work to do import qualified Prelude as well as the hiding 03:31:25 Did you get the B.1.3 from the page? 03:31:33 do you have to give it a new name 03:31:37 ? 03:31:47 dennisb: What do you mean it didn't work to do that? 03:31:56 (but you can of course, since it's shorter) 03:32:06 I did import qualified Prelude as P 03:32:08 dennisb: AFAICT ghc5.02 accepts it without any trouble 03:32:17 did you need the "as P"? 03:32:25 yes 03:32:26 or maybe you wanted the "as P" 03:32:40 It was in addition to import Prelude hiding (...) 03:32:47 yes, that's for sure 03:32:53 now I have B.1.3 03:32:57 that is another question 03:33:15 import Prelude hiding (putStrLn, putStr) 03:33:15 import qualified Prelude as P 03:33:23 it compiles here ... 03:33:25 I tought: 03:33:32 import Prelude hiding (putStrLn, putStr) 03:33:32 import qualified Prelude 03:33:37 was enough 03:33:43 no 03:33:56 well, it might be 03:33:57 strange 03:34:04 I'll try it and see. 03:36:00 But the standard say "The hiding clause only applies to unqualified names. In the previous example, the name M.C is brought into scope. A hiding clause has no effect in an import qualified declaration." 03:36:43 (the previous example is "import M hiding (C)" 03:38:16 But I remember I read something about this on the haskell list some month ago (but I didn't really read it) 03:41:03 --- quit: shapr (carter.openprojects.net irc.openprojects.net) 03:41:03 --- quit: smklsmkl (carter.openprojects.net irc.openprojects.net) 03:41:03 --- quit: xbill (carter.openprojects.net irc.openprojects.net) 03:45:45 --- join: shapr (~user@195.156.199.178) joined #haskell 03:45:45 --- join: smklsmkl (~sami@glubimox.yok.utu.fi) joined #haskell 03:45:45 --- join: xbill (wli@DOMINIA.MIT.EDU) joined #haskell 03:46:20 hm, I wonder if I could implement a lojban interpreter this way.... 03:47:26 Yes, you can interpret anything this way if you define it in terms of translations to progressively lower-level representations. 03:47:29 I'd like to find some way I could use Haskell at work 03:49:33 shapr: it's simple -- it's a "next generation scripting language" 03:49:59 shapr: with a small bonuses of being compilable to machine code 03:50:07 no need to be noisy about it 03:50:20 When it comes to use perl for some random thing, use Haskell instead 03:50:25 I do this regularly. 04:07:25 (me too) 04:15:52 I don't know how to use it for a scripting language 04:15:52 can you give me some examples? 04:22:18 when I'm scripting something, it's usually a search and replace, or some kind of text transformation 04:22:20 sure 04:22:28 maybe I should investigate HaXml 04:23:15 I can show you something I brewed up 04:23:25 It probably won't work with many ghc versions 04:24:28 There you go. 04:24:53 ? 04:25:02 did you get it? 04:25:14 checking email 04:26:33 my email server is lagging 04:28:35 I got it 04:28:39 and I think you should post it :) 04:28:48 it's dirty 04:28:59 it's cool 04:29:32 the other trick is I don't want to maintain it =) 04:29:47 I think that's understood :) 04:30:04 much like I found Hsh.hs, and it was in a pre-ghc2.10 state 04:30:17 it's *useful* 04:30:26 immediately useful, and very hackable 04:30:36 it's pretty much redundant with fetchmail 04:30:37 unlike most of the Haskell source I see :-/ 04:30:48 yah, but that's part of what's cool about it 04:31:01 OTOH ... if you care to do something with it you are quite free to take it over and so on 04:31:46 yah, if you don't mind me hacking on it a bit and putting it online... 04:31:57 by all means, please do 04:32:08 * shapr bounces cheerfully 04:32:09 I'd much rather pass it on than maintain it myself. 04:32:10 yay! 04:32:52 my only special request is that you send me a version with some kind of license attachment, lgpl, gpl, public domain, whatever 04:33:22 that way if it later makes it into a collection of nifty Haskell tidbits, people will be able to know whether they can stick it into a commercial product 04:34:05 I've run into the problem that I'd like to use a bit of code I've found, but no license info is included, so my boss is wary 04:34:25 * shapr bounces cheerfully 04:34:54 cool, now I have three pieces of Haskell code to play with.. Mandelbrot.hs, Hsh.hs, and Imap.hs 04:37:21 hm, the not-clean-ness of this code shows the changes you've made... very enlightening... 04:39:05 yes, it was very much a big hack. 04:39:25 it's nice to see the progress 04:45:26 I wonder if there's already a project to collect Haskell libs like Imap, Pop3, Smtp, etc 04:45:57 one thing I've noticed is the lack of a single site with either links or mirrors to all the real stuff 04:46:22 there should be 04:46:36 the pages on haskell.org have broken links 04:48:47 total suckage 04:49:57 I've considered whipping up a HaskellWiki page and updating it myself 04:51:43 go for it dude 05:48:42 I could *really* go for an ASN1 codec written in Haskell. 05:50:17 what's asn1? 05:51:25 abstract syntax notation one 05:51:43 it's a BNF style bit level format specification language 05:52:16 primarily designed for data interchange between very different systems, the first version of the standard is from 1988 05:52:50 it's used in SNMP, GSM, and most any kind of public key crypto 05:53:12 no idea 05:53:36 it's quite evil... you're better off not knowing. 09:44:17 --- quit: shapr ("hometime") 16:01:31 --- quit: sjanes71 (Read error: 101 (Network is unreachable)) 18:14:40 --- join: joke (~joke@80.116.0.122) joined #haskell 19:05:50 --- quit: joke (Read error: 60 (Operation timed out)) 22:28:38 --- quit: smklsmkl (Read error: 54 (Connection reset by peer)) 22:35:11 --- quit: xbill (carter.openprojects.net irc.openprojects.net) 22:35:24 --- join: xbill (wli@DOMINIA.MIT.EDU) joined #haskell 23:02:03 --- quit: jewel (carter.openprojects.net irc.openprojects.net) 23:02:03 --- quit: dennisb (carter.openprojects.net irc.openprojects.net) 23:02:28 --- join: jewel (~jleuner@57.66.12.99) joined #haskell 23:02:28 --- join: dennisb (~dennis@as2-4-3.an.g.bonet.se) joined #haskell 23:59:59 --- log: ended haskell/02.01.02