Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Kristopher Micinski
Yes, I've seen some of the work done on this and I think he's also looked into OCaml on Android. To be completely honest it's not really the language that's such the barrier: the hard truth is that any Android app doing anything of interest is necessarily going to be using the Android framework.

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Gábor Lehel
On Sat, Nov 10, 2012 at 4:00 AM, Johan Tibell johan.tib...@gmail.com wrote: As for type classes, I don't think we use them enough. Perhaps because Haskell wasn't developed as an engineering language, some good software engineering principles (code against an interface, not a concrete

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Alberto G. Corona
Andrew: There is a ListLike package, which does this nice abstraction. but I don't know if it is ready for and/or enough complete for serious usage. I´m thinking into using it for the same reasons. Anyone has some experiences to share about it? 2012/11/10 Andrew Pennebaker

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Casey Basichis
I've been looking for the last two days through every nook and cranny of google to find information about building for iOS. It seems to be the case that it was once possible to get ios running and now its a bit questionable. I've tried ghc-ios, ghc-iphone and a few others which are all somewhat

[Haskell-cafe] Taking over ghc-core

2012-11-10 Thread Shachaf Ben-Kiki
With Don Stewart's blessing (https://twitter.com/donsbot/status/267060717843279872), I'll be taking over maintainership of ghc-core, which hasn't been updated since 2010. I'll release a version with support for GHC 7.6 later today. Shachaf ___

Re: [Haskell-cafe] How to determine correct dependency versions for a library?

2012-11-10 Thread Erik Hesselink
On Fri, Nov 9, 2012 at 5:52 PM, Roman Cheplyaka r...@ro-che.info wrote: * Janek S. fremenz...@poczta.onet.pl [2012-11-09 17:15:26+0100] but I am aware that if the library were to be released on Hackage I would have to supply version numbers in the dependencies. The question is how to

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Francesco Mazzoli
At Sat, 10 Nov 2012 15:16:30 +0100, Alberto G. Corona wrote: There is a ListLike package, which does this nice abstraction. but I don't know if it is ready for and/or enough complete for serious usage. I´m thinking into using it for the same reasons. Anyone has some experiences to share

Re: [Haskell-cafe] How to determine correct dependency versions for a library?

2012-11-10 Thread Roman Cheplyaka
* Erik Hesselink hessel...@gmail.com [2012-11-10 16:40:30+0100] On Fri, Nov 9, 2012 at 5:52 PM, Roman Cheplyaka r...@ro-che.info wrote: * Janek S. fremenz...@poczta.onet.pl [2012-11-09 17:15:26+0100] but I am aware that if the library were to be released on Hackage I would have to

Re: [Haskell-cafe] Taking over ghc-core

2012-11-10 Thread Johan Tibell
On Saturday, November 10, 2012, Shachaf Ben-Kiki wrote: With Don Stewart's blessing (https://twitter.com/donsbot/status/267060717843279872), I'll be taking over maintainership of ghc-core, which hasn't been updated since 2010. I'll release a version with support for GHC 7.6 later today.

Re: [Haskell-cafe] Computed promoted natural

2012-11-10 Thread Arie Peterson
On Friday 09 November 2012 17:53:54 Ertugrul Söylemez wrote: I'm not sure if you're supposed to use the reflection library that way. The idea is simply this: […] All right, I switched to this method, and it workes like a charm. It is also more general than my attempt using data kinds, in the

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Tobias Brandt
On 10 November 2012 04:00, Johan Tibell johan.tib...@gmail.com wrote: As for type classes, I don't think we use them enough. Perhaps because Haskell wasn't developed as an engineering language, some good software engineering principles (code against an interface, not a concrete

Re: [Haskell-cafe] Motion to unify all the string data types

2012-11-10 Thread Johan Tibell
On Fri, Nov 9, 2012 at 10:22 PM, Roman Cheplyaka r...@ro-che.info wrote: * Johan Tibell johan.tib...@gmail.com [2012-11-09 19:00:04-0800] As a community we should primary use strict ByteStrings and Texts. There are uses for the lazy variants (i.e. they are sometimes more efficient), but in

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Kristopher Micinski
On Sat, Nov 10, 2012 at 9:21 AM, Casey Basichis caseybasic...@gmail.com wrote: As for you notion of hard truth, and dumb apps acting as web front ends its pretty blase to assume that anyone interested in this thread will share that perspective in terms of their own goals on these platforms. I

Re: [Haskell-cafe] Profiling a project with cabal and cabal-dev

2012-11-10 Thread Albert Y. C. Lai
On 12-11-07 12:00 AM, Mike Craig wrote: Got it. Thanks for the info, Erik. I've updated my cabal config and reinstalled some of the global packages, and the world seems much less bleak! :) The good news is that whatever comes with GHC comes with profiling, you do not need to reinstall them.

Re: [Haskell-cafe] JavaScript (SpiderMonkey, V8, etc) embedded in GHC?

2012-11-10 Thread Simon Hengel
Hi, I've looked around with no success… this surprises me actually. Has anyone embedded SpiderMonkey, V8, or any other relatively decent JavaScript interpreters in GHC (using the FFI)? I just started something [1]. Cheers, Simon [1] https://github.com/sol/v8

[Haskell-cafe] Hard drive thrashing with modern controllers

2012-11-10 Thread timothyhobbs
Hello, I have a very general question that doesn't exactly relate to Haskell.  Do I need to worry about hard drive thrashing with a modern controller?  I understand, that such thrashing can significantly reduce the lifespan of modern SSD drives. For example, if I do: import Control.Monad foo =

Re: [Haskell-cafe] Hard drive thrashing with modern controllers

2012-11-10 Thread Brandon Allbery
On Sat, Nov 10, 2012 at 2:49 PM, timothyho...@seznam.cz wrote: import Control.Monad foo = do forever $ writeFile filename.foo Hello world! will that destroy those sectors of my SSD after the rated 3000 write cycles? Check your OS; while the firmware of modern SSD devices does much of the

Re: [Haskell-cafe] Hard drive thrashing with modern controllers

2012-11-10 Thread timothyhobbs
Hmm.  I was hoping for good news that things had changed for the better :( .   I want these files to be on the disk so I don't lose data in the case of failure.  A common solution here is to acidify the program, but that is not acceptable from a usability standpoint.  I don't want to have the

Re: [Haskell-cafe] Hard drive thrashing with modern controllers

2012-11-10 Thread Brandon Allbery
On Sat, Nov 10, 2012 at 3:02 PM, timothyho...@seznam.cz wrote: Hmm. I was hoping for good news that things had changed for the better :( . I want these files to be on the disk so I don't lose data in the case of failure. A common solution here is to acidify the program, but that is not

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Casey Basichis
Hi Kris, No offense taken, it was an argument that works to shut down constructive discussion of how to get Haskell running on mobile, a task which has perplexed me for several long days. I agree most apps are pretty terrible, at least on iOS though, despite the percentages being wildly off

Re: [Haskell-cafe] JavaScript (SpiderMonkey, V8, etc) embedded in GHC?

2012-11-10 Thread Claus Reinke
I've looked around with no success… this surprises me actually. Has anyone embedded SpiderMonkey, V8, or any other relatively decent JavaScript interpreters in GHC (using the FFI)? I just started something [1]. Cheers, Simon [1] https://github.com/sol/v8 Out of curiosity: wouldn't it make

Re: [Haskell-cafe] curl package broken in Windows

2012-11-10 Thread Andrew Pennebaker
Yes, that's a very good point. Did you know that Strawberry Perl includes a cygwin gcc? http://strawberryperl.com Maybe Haskell Platform could do the same. On Nov 10, 2012 5:28 PM, Stephen Tetley stephen.tet...@gmail.com wrote: The only short cut would be to have it in the Platform - otherwise

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Kristopher Micinski
On Sat, Nov 10, 2012 at 3:50 PM, Casey Basichis caseybasic...@gmail.com wrote: Hi Kris, No offense taken, it was an argument that works to shut down constructive discussion of how to get Haskell running on mobile, a task which has perplexed me for several long days. I agree most apps are

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Andrew Pennebaker
I've tried porting GHC to Haiku OS, a Unix-like desktop OS, but the state of the GHC build system is fairly confusing. The build scripts contain a Perl script with a bad shebang, and you can't build GHC without already having a working older version. If someone can point me to the most recent GHC

[Haskell-cafe] [repa] beginner questions

2012-11-10 Thread Dmitry Malikov
Playing around with repa arrays and got some questions. 1) How I can get list of indexes of array that suffice some predicate? a1 AUnboxed (Z :. 3) (fromList [False,False,True]) it :: Array U (Z :. Int) Bool Indexes of element that satisfying specific predicate could be obtained

Re: [Haskell-cafe] Taking over ghc-core

2012-11-10 Thread Ben Gamari
Shachaf Ben-Kiki shac...@gmail.com writes: With Don Stewart's blessing (https://twitter.com/donsbot/status/267060717843279872), I'll be taking over maintainership of ghc-core, which hasn't been updated since 2010. I'll release a version with support for GHC 7.6 later today. Thanks! I was

Re: [Haskell-cafe] GHC for mobile devices?

2012-11-10 Thread Andrew Pennebaker
ASM for iOS is possible, so GHC mobile should be possible. www.shervinemami.info/armAssembly.html#howto On Nov 10, 2012 5:59 PM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: I've tried porting GHC to Haiku OS, a Unix-like desktop OS, but the state of the GHC build system is fairly