Experimental IRC log happs-2008-03-14

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

04:30:39<CollinTMiller>Hello #happs! I'm trying to get happs installed on gutsy gibbon and I'm running into this issue while installing searchpath 0.9.2:
04:30:44<CollinTMiller>SearchPath.hs:107:7:
04:30:46<CollinTMiller> Could not find module `Network.URI':
04:31:26<CollinTMiller>I'm not fully clear on how to get the Network library working properly, or even whether or not I actually have it
09:33:43<MarcWeber>CollinTMiller: Wether you have it: ghc-pkg list will show you
09:35:17<MarcWeber>The source code to compile it from is the extra ghc source package you can dowload from haskell.org/ghc.
09:57:41<MarcWeber>I've a simple question about Version: Why doe it take a version id? I mean you can count the not nothing previous versions to get the number, right? Is this for safety introducing duplication here?
10:27:49<MarcWeber>Is there a reason I can't use deriveAll for class Serialize?
10:49:52<Lemmih>Yeah.
10:50:17<Lemmih>Not a very good one, though.
10:51:11<MarcWeber>Lemmih: I've trouble getting Get ( Get a ) .. Does this mean State reader func returning a State reader func returning something of type a?
10:55:38<Lemmih>Huh?
10:59:35<MarcWeber>It's in Data.Serialize line 66
10:59:51<MarcWeber>This Get is defined in binary, right?
11:00:21<MarcWeber>newtype Get a = Get { unGet :: S -> (a, S) }
11:01:15<Saizan>uh, join?
11:02:34<MarcWeber>Saizan: Talking to me? Can you be a little bit more verbose at the beginning please?
11:03:00<Lemmih>Why are you seeing 'Get ( Get a )'?
11:03:02<MarcWeber>I've told you
11:03:51<MarcWeber>getSafeGet :: forall a. Serialize a => Get (Get a)
11:04:12<Lemmih>Ah, you want to understand that type.
11:04:16<MarcWeber>Yes.
11:04:29<Lemmih>You don't ever need to use that function, though.
11:05:00<MarcWeber>It gives me a better feeling understanding parts of HAppS before using it maybe in real life :)
11:05:00<Lemmih>This is the list getter: do g <- getSafeget; replicateM n g
11:05:21<Lemmih>It reads the version and returns the correct parser.
11:06:01<Lemmih>In that way, the version tag is written once per list and not once per element.
11:08:44<MarcWeber>No previous versions.. This means if you start getting 500 versinos of one datatype you can remove the first 490 at some point of time. That's why the version number is added explicitely, correct?
11:45:39<Lemmih>MarcWeber: You can always remove unused versions. 'getSafeGet' isn't related to that.
11:50:21<Saizan>i guess the version number is so you know you need a different parser, instead of trying and failing before using the one of a previous version
12:36:10<MarcWeber>Saizan: Yes. But you can traverse the Previous type system to get the version number automatically (the way HList can count..)
12:36:28<MarcWeber>But then you can't remove old data structures no longer ever needed
12:37:04<MarcWeber>typeCount (Previous ( Previous (Proxy :: MyData ) ) = 3 or such..
12:39:54<Lemmih>That's exactly why the version number is written explicitly.
12:41:38<MarcWeber>But I don't know yet why it's allowed to make a previous from primitives .. (thus the error message is needed "Privious version marked as Primitive" . I'll need much more time to get ... mmhhh half of it is enough :)
12:48:20<Lemmih>You don't know why it's not checked at compile-time or why it isn't allowed at run-time?
12:51:45<MarcWeber>runtime is obvious. If there is no version information you don't know how to upgrade. But you could implement it once though.
12:51:56<MarcWeber>I don't know why it's not checked at compile time
12:52:13<MarcWeber>But it's not important either.
13:05:01<Lemmih>Catching it at compile-time is hard.
13:05:31<Lemmih>The serialization mode would have to be encoded at the type level.
13:06:03<Lemmih>And the benefits in this case doesn't merit it.
16:00:00<Lemmih>Does anyone have time to test some code for me in a few hours?
16:00:57<Lemmih>(Involving event sniffing and distributed computing)
16:13:36<MarcWeber>Lemmih: I'd like to, but I'm not sure I'm familiar enough with HAppS. What has to be done?
16:14:25<Lemmih>A few patches have to be applied to HEAD and spread-0.4 has to be installed.
16:15:28<Lemmih>Saizan: Is there anyway to detect the version of the spread server? HAppS fails very badly if anything less than spread-0.4 is installed.
16:16:03<MarcWeber>Is this related to hspread on hackage?
16:17:19<Lemmih>Yes, hspread is a new dependency of HAppS.
16:17:37<MarcWeber>I've never used it.
16:17:45<MarcWeber>So do you have the patches in your local repository?
16:18:02<MarcWeber>I can apply them and try wether the examples do still compile..
16:18:20<Lemmih>I've sent them to HAppS-dev.
16:19:43<Lemmih>I'll send the patch to happs@googlegroups.com, one moment.
17:45:26<tibbe>does happs support daemonizing the process?
18:51:18<Saizan>Lemmih: we can get that information when connecting
18:54:43<Saizan>Lemmih: but it should fully work with 3.8+
18:58:20<Lemmih>It failed on me with '3.17.3'.
19:02:11<Saizan>when?
20:50:59<gregwebs>trying to get HApps working, got it compiled, but its not serving :(
20:52:45<gregwebs>sp ~/hs/lib/ghc-6.8.2.20080313/ghc -isrc src/Main.hs --make --run --http-port=5000
20:53:36<gregwebs>" ... -o Main.exe.sp.new src/Main.hs --make"
20:53:53<gregwebs>but nothing showing up on my browser
20:54:19<gregwebs>touching Main.hs gives:
20:54:22<gregwebs>Files changed so trying to compile again...
20:58:48<gregwebs>Lemmih, thanks for helping earlier. I gave up on my 6.8.2 ghc release (since re-installing didn't fix things) and download the latest ghc to get things running
21:00:34<Saizan>gregwebs: tried installing it with the cabal packages and compiling it normally?
21:00:53<Saizan>s/compiling it/compiling Main.hs/
21:09:55<gregwebs>No, what is the package name?
21:10:56<gregwebs>~/hs cabal install HAppS
21:10:56<gregwebs>cabal: Unresolved dependencies: HAppS -any
21:14:14<Lemmih>Saizan: A few days ago, I think.
21:14:24<Lemmih>gregwebs: HAppS-Server is a good entry point.
21:14:39<gregwebs>~/hs cabal install HAppS-Server-0.9.2
21:15:02<gregwebs>missing lots of dependencies
21:15:12<gregwebs>do I have to manually install them all?
21:33:18<Saizan>Lemmih: ehm sorry, i meant at which point in the connection, merely connecting or when exchanging messages?
21:42:45<stepcut>gReplace hurts my head, gReplace (show . length) (Just "hello") --> Just "2" :)
21:55:12<gregwebs>cabal installed it and got it compiling without sp, and its serving now :)
21:55:12<gregwebs>Server error: Prelude.last: empty list
21:56:15<gregwebs>no more empty list, seems to be working fine now :)
22:03:24<Lemmih>Saizan: I'm not exactly sure.
22:03:41<Lemmih>Saizan: It said something like "Failed to read bytes at XXX'.

Back to channel and daily index: content-negotiated html turtle