Athas 2017-03-06 01:57:48
_sras_: just consider yourself fortunate you're not using Happy!
Athas 2017-03-06 01:57:50
No debugging there.
merijn 2017-03-06 01:58:21
As far as I can tell my options (besides writing raw SQL) are: 1) persistent + esqueletto (Pros: supports streaming, joins, automatic migration. Cons: No flexibility with schema) 2) Groundhog (Pros: Very flexible schema. Cons: no streaming, no joins. Not sure about migration) 3) opaleye (Pros: Flexible schema management, joins. Cons: No migration, doesn't setup tables, no streaming)
merijn 2017-03-06 01:58:54
Oh, and I forgot the "lacking type safety" for esqueletto
cocreature 2017-03-06 02:00:56
writing raw sql is not that bad :)
Athas 2017-03-06 02:01:32
cocreature: the yak doesn't shave itself.
merijn 2017-03-06 02:01:53
cocreature: It's not that I dislike writing raw SQL, but then all my type safety goes out the window too
cads 2017-03-06 02:02:16
hey guys, anyone know where I could find cost/performance comparisons for computer hardware, driven by live data?
cocreature 2017-03-06 02:02:30
merijn: yeah that's a fair point.
Athas 2017-03-06 02:02:50
cads: how do you even measure performance in a comparable way?
cads 2017-03-06 02:03:04
I'd like to quantify the cost/performance benefit of various tiers of desktop and laptop hardware
cocreature 2017-03-06 02:03:42
cads: that doesn't seem to be a haskell question :)
merijn 2017-03-06 02:03:46
cocreature: It seems odds that besides persistent all the other database libraries only offer queries returning lists, rather than streaming...wanting to deal with huge queries shouldn't be such an odd thing?
cads 2017-03-06 02:03:47
Athas, I'd be happy with relatively simple metrics - coupling CPUMark results to a laptop's cost
cads 2017-03-06 02:03:57
cocreature, it's a cohaskell question ;()
cads 2017-03-06 02:04:01
;)*
merijn 2017-03-06 02:04:07
cocreature: Similarly, the lack of joins in groundhog seems limiting too
cocreature 2017-03-06 02:04:24
merijn: well persistent on its own is also lacking joins
merijn 2017-03-06 02:04:33
cocreature: I know
merijn 2017-03-06 02:04:44
And esqueletto adds joins at the cost of type-safety
cocreature 2017-03-06 02:04:46
merijn: I've never really used any of the higher level libs so I don't know much about them
merijn 2017-03-06 02:04:51
It's inadequate compromise all around
Athas 2017-03-06 02:05:14
Make your own!
cads 2017-03-06 02:05:18
It /could/ be a haskell question, if the question is how to use haskell to pull CPU benchmark data, computer hardware data, and join the two
merijn 2017-03-06 02:05:32
cocreature: My basic tests with persistent itself is ok, but it's kinda annoying that you can't represent compound entities in their schema language
merijn 2017-03-06 02:05:37
Athas: I already have enough yaks
cocreature 2017-03-06 02:05:38
yesterday I got annoyed when I realized that _none_ of the haskell sql libs can properly work with arrays of composites in postgres
merijn 2017-03-06 02:22:08
Athas: Aren't you running code on a cluster maintained by a dedicated admin?
Athas 2017-03-06 02:22:47
merijn: no. Our IT department installed RHEL on the machines and manage access rights, but I do most of the day-to-day maintenance (and kick them when they fall over).
merijn 2017-03-06 02:22:52
Didn't ircbrowse have this nice summary of activity in channels?
Athas 2017-03-06 02:23:20
And I am not a particularly competent systems administrator.
merijn 2017-03-06 02:23:31
Athas: Ah, we have a dedicated cluster shared by a few universities with a fulltime admin I can just yell at
Athas 2017-03-06 02:30:42
Then you don't have to fiddle around with TH yourself.
tabaqui1 2017-03-06 02:31:15
last uploaded: 2011
tabaqui1 2017-03-06 02:31:27
I have to rebuild it manually then
tabaqui1 2017-03-06 02:31:41
but thx too, I could stole some code from it)
chenyu` 2017-03-06 02:31:42
quchen: just read about this part in a TH tutorial. "For example, the quotation [| 1 + $(f x) |] will execute (f x) – which must have type Q Exp, translate returned Exp value to literal Haskell code"
chenyu` 2017-03-06 02:31:52
quchen: http://web.archive.org/web/20100703060856/http://www.haskell.org/bz/thdoc.htm
Nuub 2017-03-06 02:35:03
cocreature, thanks. Can it be done without lambdas?
merijn 2017-03-06 02:35:43
I don't suppose anyone knows an old mirror of ircbrowse that still works?