--- Log opened Thu Nov 19 00:00:56 2009
10:41 < stepcut> fxr: ping!
13:47 < McManiaC> hmmm
13:47 < McManiaC> is there a way to return something like "TimeDiff" in a Query function?
13:49 < McManiaC> it wants me to declare serialize/typeable etc instances :S
13:50 < mightybyte> Yeah, that's been a frequent complaint regarding various time structures.
13:50 < mightybyte> I've never needed anything exactly like you saying, but as a general rule it's easy if I treat all dates and times as Word64
13:51 < mightybyte> ...using some kind of canonical "milliseconds since 1970" (or similar) meaning.
13:52 < stepcut> McManiaC: in theory we could add TimeDiff to Happtstack.State.ClockTime. But I am not sure that Happstack.State.ClockTime is a good idea in the first place :o
13:55 < stepcut> McManiaC: happstack-state provides EpochMilli, getTime, and getEpochMilli, but does not provide functions for converting to types found in System.Time or Data.Time
13:55 < stepcut> McManiaC: I think in GHC 6.12, the Data.Time stuff provides Typeable and Data instances. Not sure if that was completed or not...
13:55 < McManiaC> okay
13:56 < stepcut> McManiaC: I have some functions for casting EpochMilli to ZonedTime and stuff that I should add in 0.5
13:56 < stepcut> the advantage of getTime is that you can use it inside an event, because it does not require IO
13:59 < McManiaC> why does the returning data element of a Query be a valid "state" type anyway?
13:59 < McManiaC> eeh
13:59 < McManiaC> hope you understood it :)
14:09  * stepcut ponders
14:09 < stepcut> McManiaC: I don't remember exactly. Replication certainly requires it, but I am not sure if it is needed for non-replication or not
14:09 < mightybyte> Yeah, that's an interesting question.
14:12 < McManiaC> replication?
14:23 < stepcut> McManiaC: when your site gets so awesome that you need more than one machine to serve it
14:23 < McManiaC> ah okay
14:23 < stepcut> McManiaC: you need ways to replicate the data across multiple servers while maintaining consistency
14:24 < McManiaC> yeah, I've read about it
14:24 < McManiaC> so I won't complain since my site *will* be that awesome one day ;D
--- Log closed Thu Nov 19 18:29:22 2009
--- Log opened Thu Nov 19 18:29:22 2009
--- Log closed Thu Nov 19 18:29:27 2009
--- Log opened Thu Nov 19 18:30:45 2009
18:37  * stepcut wonders why sendfile does not just use handleToFd :-/
--- Log closed Thu Nov 19 19:25:26 2009
--- Log opened Thu Nov 19 19:25:26 2009
--- Log closed Thu Nov 19 19:25:27 2009
--- Log opened Thu Nov 19 19:26:20 2009
20:41 < McManiaC> http://www.n-sch.de/register.png :D
20:48 < stepcut> McManiaC: a bit too static I think..
--- Log closed Thu Nov 19 20:58:52 2009
--- Log opened Thu Nov 19 20:58:53 2009
--- Log closed Thu Nov 19 20:58:53 2009
--- Log opened Thu Nov 19 20:59:58 2009
21:11 < stepcut> greetings happsbot
--- Log closed Fri Nov 20 00:00:58 2009