Re: [Haskell-cafe] Projects using Shake

2013-05-31 Thread Stefan Kersten
hi frerich, On May 31, 2013, at 2:17 AM, Frerich Raabe wrote: Is anybody aware of open source projects which I could look at, or is there maybe a conventional file extension for… what do you call them, Shakefiles? other than .hs which I could google for? we are using a shake-based build

Re: [Haskell-cafe] Mobile app development?

2013-01-22 Thread Stefan Kersten
On Jan 19, 2013, at 10:29 PM, Nathan Hüsken wrote: Recently I managed to get ghc to target android working (this still needs some work): [4]. this is great news, thanks! Of couse, ffi bindings for all these platforms would be needed to get serious. i think that you can get quite serious

Re: [Haskell-cafe] Profiling with QtHaskell

2012-04-20 Thread Stefan Kersten
On 20.04.12 10:07, Øystein Kolsrud wrote: Hi! Does anyone know if it is possible to use QtHaskell with profiling turned on? afair i've used it when profiling an application (not qtHaskell itself). what's the problem you're running into? you need to compile the library with profiling support

Re: [Haskell-cafe] Open-source projects for beginning Haskell students?

2012-03-25 Thread Stefan Kersten
On 25.03.12 09:38, Heinrich Apfelmus wrote: John Lato wrote: From: Heinrich Apfelmus Also, as far as I am aware, you can't do low-level audio programming in SuperCollider, i.e. play a list of samples that you've calculated yourself. That's cool if you're only interested in sound design, but

Re: [Haskell-cafe] matrix manipulations and calculations

2011-09-09 Thread Stefan Kersten
On 9/9/11 1:44 PM, Aleksey Khudyakov wrote: If you install hmatrix with -fVector key it will use storable vectors from vector package. that flag defaults to True, so the representations are actually the same by default:

[Haskell-cafe] how to generate source code from TH Exp?

2011-05-12 Thread Stefan Kersten
hi, i was wondering if it's possible to directly generate Haskell source code from a Template Haskell `Q Exp', i.e. use TH as a kind of preprocessor? i am asking because currently the iOS port of ghc doesn't support TH and i need to generate some instances for the persistent package [1,2].

Re: [Haskell-cafe] how to generate source code from TH Exp?

2011-05-12 Thread Stefan Kersten
On 5/12/11 4:03 PM, Serguey Zefirov wrote: Just pretty-print a Exp. It seems that show $ ppr exp will produce exactly what you need. The same goes for Dec (declarations), etc. ah ok, thanks! fwiw, here's a way to extract a list of module names that need to be imported, adapted from an

Re: [Haskell-cafe] [Cabal-devel] Cabal license combinations

2011-02-10 Thread Stefan Kersten
On 10.02.11 12:12, Duncan Coutts wrote: We are already working on a feature that will show the full set of licenses that the end user must comply with (a patch has been submitted and it's been through one round of review so far). In your example that would mean you expect the set to be {BSD}

Re: [Haskell-cafe] Haskell for Gingerbread

2011-01-13 Thread Stefan Kersten
On 28.12.10 21:25, John Meacham wrote: jhc generated C works on the android/ARM just fine. Android specific libraries arn't available, so you would have to bind to what you want with the FFI. is there a recommended procedure for porting code from GHC to JHC? i'd like to port an application of

Re: [Haskell-cafe] GHC Out of memory

2010-11-23 Thread Stefan Kersten
On 23.11.10 09:36, Christopher Done wrote: What version of GHC/qtHaskell? i've also noticed this on linux and osx with ghc 6.12.1/6.12.3 and qtHaskell 1.1.3.5/1.1.4. possibly a memory leak in ghc --make? sk ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] GUI Designer

2010-11-22 Thread Stefan Kersten
On 18.11.10 21:28, c8h10n4o2 wrote: There's a tutorial on how to use qtDesigner with qtHaskell ? sorry, i don't know of any tutorial, but there are some examples in the `examples' directory of the source distribution (e.g. tetrix.hs). basically you load the ui file, retrieve named widgets and

[Haskell-cafe] deploying applications that use plugins

2010-10-15 Thread Stefan Kersten
hi all, i am working on an application that evaluates haskell code entered by the user using the plugins package [1]; now i want to deploy the application as a self-contained .app bundle on OSX, i.e. the end user should not have to install anything in addition. what do i need to bundle in order

[Haskell-cafe] Re: [Haskell] analogous functions in Sound.File.Sndfile

2010-07-07 Thread stefan kersten
following up on haskell-cafe ... On 07.07.10 04:07, Maria Gabriela Valdes wrote: Does anybody know what are the analogous functions and data types in the haskell library Sound.File.Sndfile of the libsndfile library in C ? the decision may be debatable, but where it seemed appropriate the C

Re: [Haskell-cafe] Can't install Criterion package on ghc ..

2010-04-15 Thread stefan kersten
On 13.04.10 14:46, Mozhgan kabiri wrote: I am trying to install Criterion package, but I keep getting an error and I can't figure it out why it is like this !! [...] [8 of 9] Compiling Data.Vector.Algorithms.Intro ( Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o )

Re: [Haskell-cafe] vector stream fusion, inlining and compilation time

2010-03-05 Thread stefan kersten
This is a general problem when working with RULES-based optimisations. Here is an example of what happens: suppose we have foo :: Vector Int - Vector Int foo xs = map (+1) xs Now, GHC will generate a nice tight loop for this but if in a different module, we have something like this:

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-12 Thread stefan kersten
On 12.02.10 16:29, Simon Marlow wrote: I'm aware that some people need a GC with shorter pause times. We'll probably put that on the roadmap at some point. for some applications (like realtime audio processing) it would be interesting to even have short pause times with a guaranteed upper

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread stefan kersten
On 10.02.10 19:03, Bryan O'Sullivan wrote: I'm thinking of switching the statistics library over to using vector. that would be even better of course! an O(0) solution, at least for me ;) let me know if i can be of any help (e.g. in testing). i suppose uvector-algorithms would also need to be

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread stefan kersten
On 11.02.10 18:55, Henning Thielemann wrote: i've been using the library for wavelet transforms, matching pursuits and the like, Nice I have also worked on this topics, even with Haskell. However, at that time I used plain lists. interesting! was performance acceptable for practical work? at

[Haskell-cafe] vector to uvector and back again

2010-02-10 Thread stefan kersten
hi, i've been using the vector [1] library for implementing some signal processing algorithms, but now i'd like to use the statistics [2] package on my data, which is based on the uvector [3] library. is there a (straightforward) way of converting between vectors and uvectors, preferrably O(1)?

Re: [Haskell-cafe] OpenAL and Hsndfile

2009-12-09 Thread stefan kersten
hi matthew, On 09.12.09 14:37, Matthew wrote: Yesterday, I set out to accomplish the challenge of loading and playing a sound from a file. So far, my attempts have resulted only in silence... rather disheartening after all the effort it took to get everything to build and run cleanly. I

Re: [Haskell-cafe] ANNOUNCE: usb-0.3

2009-12-09 Thread stefan kersten
On 09.12.09 14:35, Bas van Dijk wrote: I made a new release of my usb library for high-level communication with usb devices from Haskell. looks great, thanks! do you happen to have some example code for working with HID devices (mice, keyboards, etc.)? sk

Re: [Haskell-cafe] ANNOUNCE: usb-0.3

2009-12-09 Thread stefan kersten
hi roel, On 09.12.09 16:50, Roel van Dijk wrote: On Wed, Dec 9, 2009 at 4:20 PM, stefan kersten s...@k-hornz.de wrote: looks great, thanks! do you happen to have some example code for working with HID devices (mice, keyboards, etc.)? The usb package does not support the various device

Re: [Haskell-cafe] ANN: Yi 0.4.1

2008-07-27 Thread stefan kersten
On Sun, Jul 27, 2008 at 03:08:04PM +, Jean-Philippe Bernardy wrote: I'm very pleased to announce the 0.4.1 release of the Yi editor. great, i can't wait to check it out ... i get the following error when installing via hackage/cabal (ghc 6.8.1, cabal 1.4.0.1): Yi/Buffer.hs:253:0: No

Re: [Haskell-cafe] Data.Complex.magnitude slow?

2008-07-18 Thread stefan kersten
On 17.07.2008, at 21:46, Lennart Augustsson wrote: If scaleFloat and exponent are implemented with bit twiddling they can be quite fast. is there a way in ghc to 'cast' between float/int32 and double/int64 (without going through memory)? sk ___

Re: [Haskell-cafe] Data.Complex.magnitude slow?

2008-07-18 Thread stefan kersten
On 18.07.2008, at 13:05, Henning Thielemann wrote: On Fri, 18 Jul 2008, stefan kersten wrote: On 17.07.2008, at 21:46, Lennart Augustsson wrote: If scaleFloat and exponent are implemented with bit twiddling they can be quite fast. is there a way in ghc to 'cast' between float/int32

Re: [Haskell-cafe] Data.Complex.magnitude slow?

2008-07-18 Thread stefan kersten
On 18.07.2008, at 19:47, Don Stewart wrote: sk: On 17.07.2008, at 21:46, Lennart Augustsson wrote: If scaleFloat and exponent are implemented with bit twiddling they can be quite fast. is there a way in ghc to 'cast' between float/int32 and double/int64 (without going through memory)?

[Haskell-cafe] Data.Complex.magnitude slow?

2008-07-17 Thread stefan kersten
hi, i've attached an example program which seems to indicate that the magnitude function from Data.Complex is very slow compared to a more naive implementation (for Complex Float). on my machine (intel core2 duo, osx 10.4) the CPU time using the library function is about 6-7 times as

Re: [Haskell-cafe] Data.Complex.magnitude slow?

2008-07-17 Thread stefan kersten
On 17.07.2008, at 17:42, Ian Lynagh wrote: On Thu, Jul 17, 2008 at 05:18:01PM +0200, Henning Thielemann wrote: Complex.magnitude must prevent overflows, that is, if you just square 1e200::Double you get an overflow, although the end result may be also around 1e200. I guess, that to this end

Re: [Haskell-cafe] Data.Complex.magnitude slow?

2008-07-17 Thread stefan kersten
On 17.07.2008, at 17:18, Henning Thielemann wrote: i've attached an example program which seems to indicate that the magnitude function from Data.Complex is very slow compared to a more naive implementation (for Complex Float). on my machine (intel core2 duo, osx 10.4) the CPU time using

Re: [Haskell-cafe] uvector and the stream interface

2008-07-16 Thread stefan kersten
On 14.07.2008, at 20:48, Don Stewart wrote: Yes, we have long been discussing a generic Stream library to which the various sequence structures can be translated to and from. Already it is useful to say, stream bytestrings into uvectors and out to lists. could the Stream interface be made

[Haskell-cafe] vector vs uvector

2008-07-14 Thread stefan kersten
hi, what's the difference between the vector [1] and uvector [2] packages? should one of those preferred over the other? thanks, sk [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ vector-0.1 [2] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ uvector-0.1.0.1

[Haskell-cafe] uvector and the stream interface

2008-07-14 Thread stefan kersten
currently i'm working on stuff that looks something like this: 1 read soundfile from disk in blocks of N samples (IOCArray, hsndfile package) 2 convert to CArray with unsafeFreeze (simple O(1) cast, carray package) 3 perform FFT (CArray, fftw package) 4 convert to UArr (uvector package) 5 do

Re: [Haskell-cafe] uvector and the stream interface

2008-07-14 Thread stefan kersten
On 14.07.2008, at 18:42, Jules Bean wrote: It would be helpful to see the programs people are writing with uvector, so I can polish up the API some more :) It would also be helpful to have someone explain why we have: Ptr a ByteString IOUArray IOCArray Data.Storable.StorableArray UArr Of

Re: [Haskell-cafe] vector vs uvector

2008-07-14 Thread stefan kersten
On 14.07.2008, at 18:10, Lyle Kopnicky wrote: You should use the most mature and stable package, which is of course, uvector, being a whole 0.0.0.1 versions past vector. oops, didn't notice the thread announcing vector. i'll stick with uvector then for the time being :) sk

[Haskell-cafe] reactive and loop

2008-06-19 Thread stefan kersten
hi, i'm having problems with a very simple example using conal elliott's 'reactive' library: module Main where import Control.Applicative import Control.Concurrent import Control.Monad import Data.Reactive import System.Random main :: IO () main = do (e, snk) - mkEvent forkIO $

[Haskell-cafe] realtime garbage collector for ghc (was: Why functional programming matters)

2008-01-25 Thread Stefan Kersten
On 25.01.2008, at 00:04, Evan Laforge wrote: Well... ghc still has a single-threaded garbage collector, so all the par threads must stop for garbage collection. So scaling to the level of a cluster would be significantly sub-linear. A real time incremental gc would be really cool. Some

Re: [Haskell-cafe] library to read/write audio files

2007-12-11 Thread Stefan Kersten
hi john, On 11.12.2007, at 18:14, John Lato wrote: I've been working on a library to encode/decode audio files (wave, aiff, etc.) to and from lazy bytestrings, and it's finally in a form where I'm willing to share. It's available at http://mml.music.utexas.edu/jwlato/HSoundFile/, lightly

Re: [Haskell-cafe] c2hs and cabal

2007-12-11 Thread Stefan Kersten
On 02.12.2007, at 22:34, Eric Sessoms wrote: Just add Build-Tools: c2hs And cabal will take it from there. thanks eric, that's really pleasingly simple (it appears that the Build-Tools: line isn't even needed). sk ___ Haskell-Cafe mailing list

[Haskell-cafe] c2hs and cabal

2007-12-02 Thread Stefan Kersten
hi, i'm looking for a way to integrate c2hs (single .chs file) in a cabal build setup; can anybody give me some hints? thanks, sk ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-19 Thread Stefan Kersten
On 19.11.2007, at 19:54, Peter Verswyvelen wrote: I can find the paper, but is the source code for that Space Invaders alike game also available somewhere? it's included here: http://haskell.org/yampa/afrp-0.4-src.tgz btw, does anybody know what's the current state of affairs with yampa/

Re: [Haskell-cafe] HTTP actions proxy server

2007-11-19 Thread Stefan Kersten
On 16.11.2007, at 13:55, Jim Burton wrote: The docs say Should be of the form http://host:port, host, host:port, or http://host; but none of the variations work. Any ideas where I might find an example of code that does this? this works for me (modulo error handling): simpleHTTP' ::