Re: [Haskell] [Haskell-cafe] Static analysis engineering at Facebook (Clang/OCaml)

2017-07-27 Thread Don Stewart
Link moved, apply here: https://www.facebook.com/careers/jobs/a0I120LT8aAEAT On Thu, Jul 27, 2017 at 12:39 PM, Shannon Sequeira < shannonseque...@gmail.com> wrote: > Hi Don, the job link appears to be broken. > > Best, > Shannon Sequeira > > On 26 July 2017 at

[Haskell] 10 open roles in expanding team at Standard Chartered

2016-06-03 Thread Don Stewart
I have another ten open roles in the growing Strats team at Standard Chartered. https://donsbot.wordpress.com/2016/06/03/multiple-haskell-developer-roles-in-strats-at-standard-chartered/ These are full time or contract Haskell developer positions in London or Singapore. Details in the post .

[Haskell] Dev/tools/git/Haskell role in London

2016-05-24 Thread Don Stewart
https://donsbot.wordpress.com/2016/05/24/haskell-devtoolsgit-role-at-standard-chartered-london/ I have a new role at SCB this time in the "Modelling Infrastructure" team to work on our Haskell-based continuous integration and testing system on top of git. This is a London role. More details in

[Haskell] Three Haskell dev roles at Standard Chartered

2016-03-23 Thread Don Stewart
Hi all I'm hiring another 3 devs to join Strats at Standard Chartered in London or Singapore. This is a good chance to join a growing, experienced team using Haskell for a wide set of projects in finance. More details in

[Haskell] Haskell dev roles with Strats at Standard Chartered

2016-01-18 Thread Don Stewart
Hi folks, I'm hiring 3 more devs to write Haskell for Standard Chartered in London and Singapore. Details of the roles below, but broadly in FX algo pricing and pricing automation. Ability to write "tight" total Haskell that can run 24/7 and do the right thing is needed.

[Haskell] Senior Haskell developer roles at Standard Chartered, Singapore

2015-09-10 Thread Don Stewart
The Strats team at SCB has two more open roles for Haskell developers in Singapore. These are exciting "director level" development roles in a large team. Location is Singapore. Details here:

[Haskell] Haskell dev role in Strats at Standard Chartered London

2015-06-15 Thread Don Stewart
I'm hiring another Haskell dev to join the Strats team in London. Details here: https://donsbot.wordpress.com/2015/06/15/haskell-dev-role-in-strats-at-standard-chartered-london-2/ ___ Haskell mailing list Haskell@haskell.org

[Haskell] Haskell dev role in Strats at Standard Chartered (Singapore)

2015-06-03 Thread Don Stewart
I have an open position for a Haskell developer to join Standard Chartered's Strats team in Singapore. More details at: https://donsbot.wordpress.com/2015/06/03/haskell-dev-role-in-strats-at-standard-chartered-singapore/ -- Don ___ Haskell mailing

[Haskell] Haskell development role at Standard Chartered in London

2015-03-16 Thread Don Stewart
The Strats team at Standard Chartered has an open position for a typed functional programming developer to join the team in London. This is a “front office” finance role – meaning you will work on the trading floor, directly with traders, building software to automate their work and improve their

[Haskell] Contracting Haskell dev role at Standard Chartered

2015-01-28 Thread Don Stewart
The Strats team at Standard Chartered is hiring a developer for a 1 year contracting role in London. The role is to develop and extend our parsing and validation library for FpML, using the FpML Haskell library to parse and build financial product data into our internal Haskell data types. You

Re: [Haskell-cafe] my knucleotide fast on 64 bit but extremely slow on 32 bit?

2013-03-28 Thread Don Stewart
Int64 is emulated on 32 bit. So it is not as efficient by a long shot. On Thursday, 28 March 2013, Branimir Maksimovic wrote: I have posted previous knucleotide program, it is fast on 64 bit but very slow on 32 bit. I cannot install 32 bit ghc to test it so I can only guess is that cause is

Re: [Haskell-cafe] Enumerating functions at runtime

2013-03-24 Thread Don Stewart
All the info is in the .hi files On Sunday, 24 March 2013, Brent Yorgey wrote: On Sat, Mar 23, 2013 at 08:26:52PM -0700, Luke Evans wrote: I'm curious about using Haskell for metaprogramming. It looks like I can dynamically compile, load and run some Haskell with the plugins package.

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-19 Thread Don Stewart
Just for fun. Here's some improvements. about 6x faster. I'd be interested to see what io-streams could do on this. Using a 250M test file. -- strict state monad and bang patterns on the uncons and accumulator argument: $ time ./A 4166680 ./A 8.42s user 0.57s system 99% cpu 9.037 total --

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-19 Thread Don Stewart
!Char ByteString uncons s = T (w2c (unsafeHead s)) (unsafeTail s) isSpace' c = c == '\n'|| c == ' ' {-# INLINE isSpace' #-} On Tue, Mar 19, 2013 at 7:36 PM, Don Stewart don...@gmail.com wrote: Just for fun. Here's some improvements. about 6x faster. I'd be interested to see what io

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-19 Thread Don Stewart
of 1.3 Constant factors matter. On Tue, Mar 19, 2013 at 9:03 PM, Peter Simons sim...@cryp.to wrote: Don Stewart don...@gmail.com writes: Here's the final program: [...] Here is a version of the program that is just as fast: import Prelude hiding ( getContents, foldl ) import

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-19 Thread Don Stewart
Oh I see what you're doing ... Using this input file stored in /dev/shm So not measuring the IO performance at all. :) On Mar 19, 2013 9:27 PM, Peter Simons sim...@cryp.to wrote: Hi Don, Compare your program (made lazy) on lazy bytestrings using file IO: [...] if I make those changes,

Re: [Haskell-cafe] Streaming bytes and performance

2013-03-19 Thread Don Stewart
I guess the optimizations that went into making lazy bytestring IO fast (on disks) are increasingly irrelevant as SSDs take over. On Mar 19, 2013 9:49 PM, Peter Simons sim...@cryp.to wrote: Hi Don, Using this input file stored in /dev/shm So not measuring the IO performance at all. :)

[Haskell] Restored: online archives of haskell@ 1990-2000

2013-03-16 Thread Don Stewart
Using Simon PJ's archive, I've restored the online archives of the Haskell Mailing list from 1990-2000. http://code.haskell.org/~dons/haskell-1990-2000/ Hopefully in a more permanent location. Some goodies: * Wadler's Law on language design :

Re: [Haskell-cafe] ANNOUNCE: Start Ajhc project with forking jhc.

2013-03-06 Thread Don Stewart
Very cool! On Mar 6, 2013 12:53 PM, Kiwamu Okabe kiw...@debian.or.jp wrote: Hi all. I am a user of jhc Haskell compiler. Jhc can compile Haskell code to micro arch such as Cortex-M3. I have written LED blinking demo for Cortex-M3 with jhc. Very fun!

Re: [Haskell-cafe] translating recursively defined sequence

2013-03-05 Thread Don Stewart
Isn't that already valid Haskell? :) (remove the underscore). On Mar 5, 2013 5:21 AM, Christopher Howard christopher.how...@frigidcode.com wrote: Hi. My Haskell is (sadly) getting a bit rusty. I was wondering what would be the most straightforward and easily followed procedure for

Re: [Haskell-cafe] Concurrency performance problem

2013-03-04 Thread Don Stewart
Depends on your code... On Mar 4, 2013 6:10 PM, Łukasz Dąbek sznu...@gmail.com wrote: Hello Cafe! I have a problem with following code: http://hpaste.org/83460. It is a simple Monte Carlo integration. The problem is that when I run my program with +RTS -N1 I get: Multi 693204.039020917

Re: [Haskell-cafe] Concurrency performance problem

2013-03-04 Thread Don Stewart
Dąbek 2013/3/4 Don Stewart don...@gmail.com: Depends on your code... On Mar 4, 2013 6:10 PM, Łukasz Dąbek sznu...@gmail.com wrote: Hello Cafe! I have a problem with following code: http://hpaste.org/83460. It is a simple Monte Carlo integration. The problem is that when I run my

Re: [Haskell-cafe] How does one create an input handle bound to a string instead of a file?

2013-02-27 Thread Don Stewart
I don't think that's right - Simon's buffer class rewrite should have made this possible, I think. http://hackage.haskell.org/packages/archive/base/4.2.0.1/doc/html/GHC-IO-BufferedIO.html On Feb 27, 2013 10:52 PM, Gregory Collins g...@gregorycollins.net wrote: On Wed, Feb 27, 2013 at 9:38 PM,

Re: [Haskell-cafe] ANN: lazy-csv - the fastest and most space-efficient parser for CSV

2013-02-25 Thread Don Stewart
Cassava is quite new, but has the same goals as lazy-csv. Its about a year old now - http://blog.johantibell.com/2012/08/a-new-fast-and-easy-to-use-csv-library.html I know Johan has been working on the benchmarks of late - it would be very good to know how the two compare in features On Feb 25,

Re: [Haskell-cafe] Thunks and GHC pessimisation

2013-02-24 Thread Don Stewart
In toy examples like this it will be generally hard to convince GHC not to just collapse your program down to a constant, when you're turning up the optimization level. In particular, you are implying -ffull-laziness with -O (or -O2), which can increase sharing. GHC doesn't implement complete

Re: [Haskell-cafe] Why is boxed mutable array so slow?

2012-12-01 Thread Don Stewart
The obvious difference between boxed and unboxed arrays is that the boxed arrays are full of pointers to heap allocated objects. This means you pay indirection to access the values, much more time in GC spent chasing pointers (though card marking helps), and generally do more allocation. Compare

Re: [Haskell-cafe] Why is boxed mutable array so slow?

2012-12-01 Thread Don Stewart
-H2097152 0.16s: +RTS -A67108864 -H8388608 E.g. $ time ./A +RTS -A67M -H1M boxed vector last 945735787 seconds 0.123 -- Don On Sat, Dec 1, 2012 at 12:20 PM, Don Stewart don...@gmail.com wrote: The obvious difference between boxed and unboxed arrays is that the boxed arrays are full of pointers

Re: [Haskell-cafe] size of Haskell Platform

2012-11-11 Thread Don Stewart
Hey Doug, The process for adding new packages is specified here: http://trac.haskell.org/haskell-platform/wiki/AddingPackages The HP aims for comprehensive, general functionality. Things like databases, graphics libraries and web servers are well in scope for inclusion. It should grow. Cheers,

Re: [Haskell-cafe] XMonad-screenshot

2012-07-25 Thread Don Stewart
Better sent to xmonad@ On Wednesday, July 25, 2012, Dmitry Malikov wrote: Hi. My friend Matvey Aksenov create some useful screen capturing utility for XMonad. https://github.com/supki/**xmonad-screenshothttps://github.com/supki/xmonad-screenshot It allows capturing all workspaces in

Re: [Haskell] Spam on the Haskell wiki

2012-07-14 Thread Don Stewart
More admins on the wiki is good, esp. those with experience to implement anti-spam measures. Ashley is around , but as usual, we need more help. On Saturday, July 14, 2012, Gwern Branwen wrote: I recently moved, and when I returned to the Internet a few days later, I was greeted with several

Re: [Haskell-cafe] Are there arithmetic composition of functions?

2012-03-21 Thread Don Stewart
. On a side note, if we consider typeclasses as predicates on types, then (especially with the extensions enabled) the type system looks extremely like a obfuscated logic programming language.With existential types it even starts to look like a first-order thereom prover. At present we can

Re: Unpack primitive types by default in data

2012-02-16 Thread Don Stewart
Couldn't you measure it by changing base to use data Int = I# {-# UNPACK #-} Int# and see what happens? On Thursday, February 16, 2012, Alex Mason wrote: Hi Johan, Sounds like it's definitely worth playing with. I would hesitate to use the shootout benchmarks though, simply because anything

Re: [Haskell-cafe] strict version of Haskell - does it exist?

2012-01-29 Thread Don Stewart
Generally strict Haskell means using strict data types - vectors, arrays, bytestrings, intmaps where required. However, you usually don't want all code and data strict, all the time, since laziness/on-demand eval is critical for deferring non-essential work. Summary; -fstrict wouldn't magically

Re: [Haskell-cafe] Haskell Propaganda needed

2012-01-14 Thread Don Stewart
Hey Victor, Thankfully, there's lots of material and experience reports available, along with code, for the Haskell+science use case. In my view Haskell works well as a coordination language, for organizing computation at a high level, and thanks to its excellent compiler and runtime, also works

Re: [Haskell-cafe] Haskell Platform and Windows - where's 2011.4?

2011-12-27 Thread Don Stewart
All versions went live last week. Are you perhaps looking at an expired or cached page? On Tuesday, December 27, 2011, Bas van Dijk v.dijk@gmail.com wrote: On 27 December 2011 19:13, Steve Horne sh006d3...@blueyonder.co.uk wrote: On haskell.org, the 2011.4.0.0 version is shown as the

[Haskell] Announce: The Haskell Platform 2011.4

2011-12-17 Thread Don Stewart
We're pleased to announce the release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell Platform 2011.4.0.0: http://haskell.org/platform/ The specification, along with installers (including Windows, Apple and Unix installers for a full

[Haskell-cafe] Announce: The Haskell Platform 2011.4

2011-12-17 Thread Don Stewart
We're pleased to announce the release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell Platform 2011.4.0.0: http://haskell.org/platform/ The specification, along with installers (including Windows, Apple and Unix installers for a full

Re: [Haskell-cafe] Seeking Don Stewart

2011-07-13 Thread Don Stewart
Hi everyone, I'm working for Standard Chartered, based in New York (currently though, I'm in Singapore). You can reach me on this email. Cheers, Don On Wed, Jul 13, 2011 at 5:09 PM, wren ng thornton w...@freegeek.org wrote: Hello all, Sorry for the spam. I'm trying to get ahold of Don

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Don Stewart
Profile!! E.g. http://stackoverflow.com/questions/6429085/haskell-heap-issues-with-parameter-passing-style/6429888#6429888 On Mon, Jul 4, 2011 at 11:44 AM, Logo Logo sarasl...@gmail.com wrote: Hi, For the following error: Stack space overflow: current size 8388608 bytes. Use `+RTS

Re: [Haskell-cafe] NVIDIA's CUDA and Haskell

2011-07-04 Thread Don Stewart
There's a lot of active work: Direct access to CUDA: http://hackage.haskell.org/package/cuda CUDA in Haskell: http://hackage.haskell.org/package/language-c-quote Direct access to OpenCL: http://hackage.haskell.org/package/OpenCLRaw High-level pure data parallelism targetting your GPU:

Re: [Haskell-cafe] Lambdabot plugin system description

2011-07-01 Thread Don Stewart
In fact there is! Plugging Haskell In. André Pang, Don Stewart, Sean Seefried, and Manuel M. T. Chakravarty. In Proceedings of the ACM SIGPLAN Workshop on Haskell, pages 10-21. ACM Press, 2004 http://www.cse.unsw.edu.au/~dons/papers/hs-plugins.pdf And Dynamic Applications From the Ground Up

Re: [Haskell-cafe] View Thunk Evaluation

2011-06-26 Thread Don Stewart
Yes, via the -hpc tracing mechanism. When executed HPC generates a highlighted log of your source, and expressions that aren't evaluated will be marked up in a special color. On Sun, Jun 26, 2011 at 9:22 PM, Tom Murphy amin...@gmail.com wrote: Hi All,     Is there a way to determine whether a

Re: [Haskell-cafe] Haskell on iPad? (Scheme and Ocaml are there)

2011-06-18 Thread Don Stewart
See e.g. http://www.haskell.org/haskellwiki/IPhone http://www.haskell.org/haskellwiki/IPhone https://github.com/dpp/LispHaskellIPad https://github.com/dpp/LispHaskellIPad On Sat, Jun 18, 2011 at 12:18 PM, John Velman vel...@cox.net wrote: There are (at least) two Scheme interpreters for

Re: [Haskell-cafe] Haskell *interpreter* on iPad? (Scheme and Ocaml are there)

2011-06-18 Thread Don Stewart
. In addition to the two I previously mentioned, there is iScheme. - John Velman On Sat, Jun 18, 2011 at 12:43:45PM -0400, Don Stewart wrote: See e.g. http://www.haskell.org/haskellwiki/IPhone http://www.haskell.org/haskellwiki/IPhone https://github.com/dpp/LispHaskellIPad https

Re: [Haskell-cafe] Haskell *interpreter* on iPad? (Scheme and Ocaml are there)

2011-06-18 Thread Don Stewart
Oh, Scheme is trivial to implement, when compared with Haskell. So people write it from scratch as a tutorial exercise. Haskell isn't trivial to implement from scratch, so instead we port existing implementations mostly. That means really, porting Hugs or GHC. And you've been pointed at

Re: [Haskell-cafe] Toy implementation of the STG machine

2011-06-11 Thread Don Stewart
See also: * STG machine in Coq, http://www.cs.ox.ac.uk/files/3858/pirog-biernacki-hs10.pdf http://www.cs.ox.ac.uk/files/3858/pirog-biernacki-hs10.pdfAlso * ] Jon Mountjoy. The spineless tagless G-machine, naturally. 1998 ACM SIGPLAN International Conference on Functional Programming, SIGPLAN

Re: [Haskell-cafe] haskell platform question

2011-06-07 Thread Don Stewart
It should build. If it doesn't, please report a bug. On Tue, Jun 7, 2011 at 8:53 AM, Tim Docker t...@dockerz.net wrote: I'd like to build the haskell platform against a recent GHC snapshot, for testing purposes. I see that I can download the source for the platform from:

Re: [Haskell-cafe] haskell platform question

2011-06-07 Thread Don Stewart
Oh, sorry, missed the first line. Building against GHC snapshots isn't supported. On Tue, Jun 7, 2011 at 6:48 AM, Don Stewart don...@gmail.com wrote: It should build. If it doesn't, please report a bug. On Tue, Jun 7, 2011 at 8:53 AM, Tim Docker t...@dockerz.net wrote: I'd like to build

Re: [Haskell-cafe] OK! I have a Mac with Snow Leopard 10.6.7?, Xcode 3.2.6, Haskell Platform 2011.2.0.1; What are 2or 3 ways so far to get a GUI graphics?

2011-06-05 Thread Don Stewart
Answers cached on stackoverlow: http://stackoverflow.com/questions/5612201/haskell-library-for-2d-drawing/5613788#5613788 for 2D graphics. http://stackoverflow.com/questions/2860988/haskell-ui-framework for UIs. Cheers, Don On Sun, Jun 5, 2011 at 8:18 PM, KC kc1...@gmail.com wrote: --

Re: [Haskell-cafe] *GROUP HUG*

2011-06-01 Thread Don Stewart
http://stackoverflow.com/questions/6172004/writing-foldl-using-foldr/6172270#6172270 Thank Graham Hutton and Richard Bird. On Wed, Jun 1, 2011 at 7:12 PM, Tom Murphy amin...@gmail.com wrote: How about this: myFoldr :: (a - b - b) - b - [a] - b myFoldr f z xs = foldl' (\s x v - s (x `f` v))

Re: [Haskell-cafe] Efficient object identity (aka symbols as data)

2011-05-29 Thread Don Stewart
Why doesn't Haskell have built in syntactic sugar for atoms? -- Anupam I think because of deriving Enum. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANNOUNCE: HaNS-2.1.0.0

2011-05-24 Thread Don Stewart
Yay! The Hackage URL is: http://hackage.haskell.org/package/hans Cheers, Don On Tue, May 24, 2011 at 11:39 AM, Trevor Elliott tre...@galois.com wrote: Galois, Inc. is pleased to announce the release of HaNS, the Haskell Network Stack.  HaNS is a lightweight, pure Haskell network stack

Re: repa: fromVector

2011-05-19 Thread Don Stewart
It doesn't do any copying. On Thu, May 19, 2011 at 3:27 AM, Christian Höner zu Siederdissen choe...@tbi.univie.ac.at wrote: Hi, I'd like to use repa in a rather perverted mode, I guess: for my programs I need to be able to update arrays in place and repeatedly perform operations on them.

Re: [Haskell-cafe] The Lisp Curse

2011-05-19 Thread Don Stewart
This is classic community trolling behavior, Andrew. You post something inflammatory, questioning the core value of our project, without a clear argument about why it article relevant, and then step away to let a monster thread consume everything, as people try to work out what your point was,

Re: [Haskell-cafe] Is fusion overrated?

2011-05-18 Thread Don Stewart
Also, we do fusion on strict structures (e.g. vectors), where you get back O(n) on each fused point. Obviously, it is less of a win on lazy structures than the (pathological) case of strict data, but it is still a win. -- Don On Tue, May 17, 2011 at 11:07 PM, Ben Lippmeier b...@ouroborus.net

Re: [Haskell-cafe] fishing for ST mutable Vector examples

2011-05-17 Thread Don Stewart
Yes, the differences between * vector * array * repa were discussed this week on Stack Overflow: http://stackoverflow.com/questions/6006304/what-haskell-representation-is-recommended-for-2d-unboxed-pixel-arrays-with-mill The reason to prefer vectors of arrays are: * flexible interface

Re: [Haskell-cafe] fishing for ST mutable Vector examples

2011-05-17 Thread Don Stewart
stable, just not as much fun. -- Don On Tue, May 17, 2011 at 5:31 PM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Tue, May 17, 2011 at 8:30 PM, Don Stewart don...@gmail.com wrote:  * vector  * array  * repa Don, do you think that repa is as recommended as vector for production

Re: [Haskell-cafe] No fish, please

2011-05-17 Thread Don Stewart
I'm intrigued by the idea of Hackage docs that don't use Haddock. IF you do have better docs, host them somewhere, and put a link prominently in the .cabal file synopsis. On Tue, May 17, 2011 at 9:25 PM, John Millikin jmilli...@gmail.com wrote: Is there any way to indicate to Hackage that it

Re: [Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-16 Thread Don Stewart
You might want to read the Repa tutorial: http://www.haskell.org/haskellwiki/Numeric_Haskell:_A_Repa_Tutorial e.g. fromList (Z :. (3::Int)) [1,2,3] 2011/5/16 Grigory Sarnitskiy sargrig...@ya.ru: There's fromIArray and fromList [1].  Does that answer your question? Huh, yes, thank

Re: [Haskell-cafe] No fish, please

2011-05-12 Thread Don Stewart
No, you should be using Haddock. If you wish to generate docs some other way, you are free to host that on your own site, and link to it from the Hackage page. On Thu, May 12, 2011 at 10:45 AM, Andrew Coppin andrewcop...@btinternet.com wrote: Both Hackage and Cabal seem to assume as a matter of

Re: [Haskell-cafe] Proposal to incorporate Haskell.org

2011-05-11 Thread Don Stewart
| Of Don Stewart | Sent: 10 May 2011 23:45 | To: hask...@haskell.org; Haskell Libraries; GHC Users Mailing List; haskell-cafe; | commit...@haskell.org | Subject: Proposal to incorporate Haskell.org | | Hello everyone. | | The haskell.org committee[1], in the interest of the long-term

Proposal to incorporate Haskell.org

2011-05-10 Thread Don Stewart
-profit, allowing us to more directly accept (US tax-deductible) donations, and to invest in assets that benefit the Haskell open source community. We welcome your feedback on the proposal attached below. -- Don Stewart (on behalf of the Haskell.org committee

[Haskell] Proposal to incorporate Haskell.org

2011-05-10 Thread Don Stewart
-profit, allowing us to more directly accept (US tax-deductible) donations, and to invest in assets that benefit the Haskell open source community. We welcome your feedback on the proposal attached below. -- Don Stewart (on behalf of the Haskell.org committee

[Haskell-cafe] Proposal to incorporate Haskell.org

2011-05-10 Thread Don Stewart
-profit, allowing us to more directly accept (US tax-deductible) donations, and to invest in assets that benefit the Haskell open source community. We welcome your feedback on the proposal attached below. -- Don Stewart (on behalf of the Haskell.org committee

Re: [GHC] #5129: evaluate optimized away

2011-05-03 Thread Don Stewart
That's a very common idiom. Interestingly, we have: -- | Strict (call-by-value) application, defined in terms of 'seq'. ($!):: (a - b) - a - b #ifdef __GLASGOW_HASKELL__ f $! x = let !vx = x in f vx -- see #2273 #elif !defined(__HUGS__) f $! x = x `seq` f x On Tue, May 3, 2011 at 5:13

Re: [Haskell-cafe] Please add instance Semigroup Text

2011-05-03 Thread Don Stewart
Getting stuff into the HP is a different problem, and something I'm working on addressing in coming weeks... stay tuned. On Tue, May 3, 2011 at 2:33 PM, Bryan O'Sullivan b...@serpentine.com wrote: On Tue, May 3, 2011 at 1:14 PM, Yitzchak Gale g...@sefer.org wrote: You are quite right. These

[Haskell-cafe] Advertisement: the Haskell Stack Overflow Q A site

2011-05-03 Thread Don Stewart
Hey all, I thought I'd just make a quick advertisement for the Haskell Stack Overflow community: http://stackoverflow.com/questions/tagged/haskell as a forum for questions and answers on beginner to advanced Haskell problems. The site is very active, with roughly as many questions being

Re: Incrementally consuming the eventlog

2011-05-01 Thread Don Stewart
, Apr 29, 2011 at 12:00 AM, Don Stewart don...@gmail.com wrote: I'm very interested in what the best way to get incremental event data from a running GHC process would be. Looking at the code, we flush the event buffer fairly regularly, but the event parser is currently strict. So we'd need

Re: Incrementally consuming the eventlog

2011-05-01 Thread Don Stewart
I've got a proof of concept event-log monitoring server and incremental parser for event streams: * http://code.haskell.org/~dons/code/ghc-events-stream/ * http://code.haskell.org/~dons/code/ghc-monitor/ Little screen shot of the snap server running, watching a Haskell process' eventlog fifo:

Re: Incrementally consuming the eventlog

2011-05-01 Thread Don Stewart
I managed to build one on top of attoparsec's lazy parser that seems to work -- but I'd like ghc to flush a bit more regularly so I could test it better. -- Don On Sun, May 1, 2011 at 7:59 PM, Bryan O'Sullivan b...@serpentine.com wrote: On Thu, Apr 28, 2011 at 3:00 PM, Don Stewart don

Re: Incrementally consuming the eventlog

2011-04-28 Thread Don Stewart
I'm very interested in what the best way to get incremental event data from a running GHC process would be. Looking at the code, we flush the event buffer fairly regularly, but the event parser is currently strict. So we'd need a lazy (or incremental) parser, that'll return a list of successful

Re: [Haskell-cafe] How to make ghc 7 with llvm?

2011-04-28 Thread Don Stewart
Use the -fllvm flag. On Thu, Apr 28, 2011 at 6:49 PM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: Hi, As I recalled, ghc started to support llvm from version 7. But there is a problem: there is no option to make ghc with llvm. So Library within ghc source will be in gcc's

Re: [Haskell-cafe] Is Hugs dead?

2011-04-22 Thread Don Stewart
Strong recommendation is to use the Haskell Platform and GHC as your development base, unless you have very specific reasons to use Hugs or one of the other compilers. -- Don On Fri, Apr 22, 2011 at 5:16 AM, Robert Clausecker fuz...@gmail.com wrote: Some weeks ago, I mirrored the hugs repo to

Re: [Haskell-cafe] fishing for ST mutable Vector examples

2011-04-22 Thread Don Stewart
In my tutorial on using vectors, http://www.haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial There's some examples: http://www.haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial#Impure_Arrays that work in IO, and should work equally well in ST (as vectors are parameterized by

Re: [Haskell-cafe] Painless parallelization.

2011-04-19 Thread Don Stewart
to write a pure functional parallel code with the level of abstraction I used in Haskell? The status of parallel programming in Haskell is loosely maintained here: http://stackoverflow.com/questions/3063652/whats-the-status-of-multicore-programming-in-haskell/3063668#3063668 Your options,

Re: [Haskell] select(2) or poll(2)-like function?

2011-04-18 Thread Don Stewart
Redirecting to haskell-cafe@, where this kind of long discussion belongs. On Mon, Apr 18, 2011 at 9:07 AM, Colin Adams colinpaulad...@googlemail.com wrote: On 18 April 2011 16:54, Ertugrul Soeylemez e...@ertes.de wrote: Well, *someone* has to worry about robustness and scalability. Users

Re: [Haskell-cafe] [Haskell] select(2) or poll(2)-like function?

2011-04-18 Thread Don Stewart
Redirecting to haskell-cafe@, where this kind of long discussion belongs. On Mon, Apr 18, 2011 at 9:07 AM, Colin Adams colinpaulad...@googlemail.com wrote: On 18 April 2011 16:54, Ertugrul Soeylemez e...@ertes.de wrote: Well, *someone* has to worry about robustness and scalability. Users

Re: [Haskell] select(2) or poll(2)-like function?

2011-04-17 Thread Don Stewart
`forkIO` is based on epoll. So threadWaitFD and friends are using epoll. On Sun, Apr 17, 2011 at 1:29 PM, Matthias Kilian k...@outback.escape.de wrote: Hi, is there something like select(2) or poll(2) available in the standard (HP) libraries? I hoogled around a little bit but didn't find

Re: [Haskell-cafe] Haskell Platform 2011.2.0.1 now available

2011-04-16 Thread Don Stewart
On Fri, Apr 15, 2011 at 11:50 PM, Joachim Breitner nome...@debian.org wrote: Hi, Am Freitag, den 15.04.2011, 15:44 -0700 schrieb Don Stewart: We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell

[Haskell] Haskell Platform 2011.2.0.1 now available

2011-04-15 Thread Don Stewart
We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell Platform 2011.2.0.1: http://haskell.org/platform/ This release adds support for GHC 7.0.3, and significant improvements for Mac OS X users.

Re: [Haskell] Haskell Platform 2011.2.0.1 now available

2011-04-15 Thread Don Stewart
. Enticing! What are these significant improvements for Mac OS X users?   - Conal On Fri, Apr 15, 2011 at 3:44 PM, Don Stewart don...@gmail.com wrote: We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download

[Haskell-cafe] Haskell Platform 2011.2.0.1 now available

2011-04-15 Thread Don Stewart
We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell Platform 2011.2.0.1: http://haskell.org/platform/ This release adds support for GHC 7.0.3, and significant improvements for Mac OS X users.

Re: [Haskell-cafe] Haskell Platform 2011.2.0.1 now available

2011-04-15 Thread Don Stewart
. Enticing! What are these significant improvements for Mac OS X users?   - Conal On Fri, Apr 15, 2011 at 3:44 PM, Don Stewart don...@gmail.com wrote: We're pleased to announce the 2011.2.0.1 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download

Re: [Haskell-cafe] Current heap size and other runtime statistics -- API for accessing in GHC?

2011-04-10 Thread Don Stewart
I'd like a proper FFI binding for getting at Stats.c dynamically. So I can write programs that determine their own stats about the GC and so on. On Sun, Apr 10, 2011 at 2:30 PM, Ryan Newton rrnew...@gmail.com wrote: Hi cafe, The rtsopts (-s etc) can provide some nice debugging information

Re: dynamic loading with ghc api?

2011-04-07 Thread Don Stewart
Perhaps look at the plugins package source? -- Don On Thu, Apr 7, 2011 at 12:20 PM, Rob Nikander rob.nikan...@gmail.com wrote: Hi all, I'd like to load a value from a .o file.  I've got... import ObjLink main = do  initObjLinker  loadObj Thing.o  resolveObjs  Just ptr - lookupSymbol

Re: dynamic loading with ghc api?

2011-04-07 Thread Don Stewart
MyPlugin.hs'? Rob On Thu, Apr 7, 2011 at 3:35 PM, Don Stewart don...@gmail.com wrote: Perhaps look at the plugins package source? -- Don On Thu, Apr 7, 2011 at 12:20 PM, Rob Nikander rob.nikan...@gmail.com wrote: Hi all, I'd like to load a value from a .o file.  I've got... import ObjLink

Re: [Haskell] How to contact OpenGL package maintainer (where is Sven?)

2011-04-06 Thread Don Stewart
Note, there are some issues, as this is a package in the Haskell Platform, to do with upgrading and dependent packages. We should talk first about issues there. On Wed, Apr 6, 2011 at 2:32 PM, Jason Dagit dag...@gmail.com wrote: No response yet from Sven after about a month and no one seems to

Re: [Haskell-cafe] mtlx has a nice design but is slow

2011-04-06 Thread Don Stewart
Is the package missing some obvious inlining in the instances? On Wed, Apr 6, 2011 at 10:13 AM, Sean Leather leat...@cs.uu.nl wrote: I just refactored my type and transform system prototype (introduced in [1] but changed since then) from using mtlx [2] (type-indexed monad transformers

Re: [Haskell-cafe] How to contact OpenGL package maintainer (where is Sven?)

2011-04-06 Thread Don Stewart
Note, there are some issues, as this is a package in the Haskell Platform, to do with upgrading and dependent packages. We should talk first about issues there. On Wed, Apr 6, 2011 at 2:32 PM, Jason Dagit dag...@gmail.com wrote: No response yet from Sven after about a month and no one seems to

Re: [Haskell-cafe] mtlx has a nice design but is slow

2011-04-06 Thread Don Stewart
Typically you'll want to inline any definitions of = and return in your classes and instances. Also, any non-recursive top level wrapper functions. On Wed, Apr 6, 2011 at 3:00 PM, Mark Snyder muddsny...@yahoo.com wrote: I'm the author for mtlx, and admittedly I didn't do anything about

Re: 7.0.3

2011-03-15 Thread Don Stewart
ETA? We may do a minor rev of the HP at that point too, to set us up for 2011. On Tue, Mar 15, 2011 at 10:04 AM, Ian Lynagh ig...@earth.li wrote: Hi all, Due to a number of issues in the 7.0.2 release, we plan to put out a 7.0.3 release before finally retiring the 7.0 branch. We intend to

Re: Linker error

2011-03-14 Thread Don Stewart
There's an open bug ticket about XCode 4 not linking properly (I think due to the new dtrace support making GHC builds tied to a specific XCode version). Can you downgrade to XCode 3 in the meantime? On Mon, Mar 14, 2011 at 8:43 AM, Luca Ciciriello luca_cicirie...@hotmail.com wrote: Hi All.

Re: [Haskell-cafe] binary twidling modules

2011-03-13 Thread Don Stewart
Data.Binary or Data.Serialize perhaps? They provide encode/decode functions for packing to binary formats: * cabal install binary * cabal install cereal http://hackage.haskell.org/packages/archive/binary/0.5.0.2/doc/html/Data-Binary.html On Sun, Mar 13, 2011 at 11:17 AM, rusi

Re: [Haskell-cafe] Light and fast http server

2011-03-11 Thread Don Stewart
snap or warp/yesod. maybe in a few years we will have a winner for the platform... --dons On Friday, March 11, 2011, Vo Minh Thu not...@gmail.com wrote: 2011/3/11 Victor Oliveira rhapso...@gmail.com: Hi cafe, There are a lot of http servers in hackage. I didn't have used none. I would like

Re: ghc-7.0.2 on macports wanted

2011-03-10 Thread Don Stewart
Does MacPorts still interact badly with libiconv? (The system and MacPorts versions out of sync, making Haskell unbuildable unless in MacPorts). On Thu, Mar 10, 2011 at 5:50 AM, Christian Maeder christian.mae...@dfki.de wrote: Dear All, we would appreciate a ghc-7.0.2 distribution package via

Re: ghc-7.0.2 on macports wanted

2011-03-10 Thread Don Stewart
And that means you can't mix MacPorts and the Mac HP installer. We might want to make that very clear. On Thu, Mar 10, 2011 at 6:58 AM, Christian Maeder christian.mae...@dfki.de wrote: Am 10.03.2011 15:52, schrieb Don Stewart: Does MacPorts still interact badly with libiconv? (The system

Re: [Haskell] A opportunity to lern (parsing huge binary file)

2011-03-10 Thread Don Stewart
ppk: On Thu, Mar 10, 2011 at 10:36:27AM -0500, Skeptic . wrote: Hi, I finally have an opportunity to learn Haskell (I'm a day-to-day Java programmer, but I'm also at ease with Scheme), parsing a huge (i.e. up to 50 go) binary file. The encoding is very stable, but it's not a

[Haskell-cafe] ANNOUNCE: Haskell Platform 2011.2 released!

2011-03-10 Thread Don Stewart
We're pleased to announce the 2011.2 release of the Haskell Platform: a single, standard Haskell distribution for everyone. Download the Haskell Platform 2011.2.0.0: http://haskell.org/platform/ The specification, along with installers (including Windows, Apple and Unix installers for a

Re: [Haskell-cafe] Haskell Platform 2011.2

2011-03-09 Thread Don Stewart
Also, due to reformatting code.haskell.org, the accounts were disabled for a while. On Wed, Mar 9, 2011 at 6:24 AM, Mark Lentczner mark.lentcz...@gmail.com wrote: code.haskell.org is the release repo code.galois.com is current development repo - Mark

Re: [Haskell-cafe] Haskell Platform web page is out of date

2011-03-09 Thread Don Stewart
We're about 1 day away from the release. Hold tight!! -- Don (scramble scramble) On Wed, Mar 9, 2011 at 1:21 PM, Paul Johnson p...@cogito.org.uk wrote: The Haskell Platform web page at http://hackage.haskell.org/platform// seems to need updating.  (Incidentally, that double slash at the end

  1   2   3   4   5   6   7   8   9   10   >