Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
command line? Thanks. --- [1] http://haskell.org/pipermail/haskell-cafe/2010-April/076911.html [2] http://hackage.haskell.org/packages/archive/base/latest/doc/html/GHC-Conc.html#v:numCapabilities -- Dimitry Golubovsky Anywhere on the Web

Re: Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
main factor) rather than GHC threads. I think I just need to check this experimentally as I have a 4-core (Atom) and 1-core (Via) PCs and see what numCapabilities returns. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list

Re: Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
, but why cannot I use forkProcess? On Tue, Apr 27, 2010 at 12:35 PM, Bryan O'Sullivan wrote: > With 6.12.1 and newer, no "-N" argument implies 1 core, "-Nk" implies > k cores, and "-N" without an argument means "use all&qu

Re: Default value for numCapabilities?

2010-04-28 Thread Dimitry Golubovsky
:26 AM, Simon Marlow wrote: > On 28/04/2010 03:02, Dimitry Golubovsky wrote: >> this limitation? rawSystem works fine from within a thread started by >> forkIO, but why cannot I use forkProcess? > > No good reason, other than it's tremendously difficult to implement. T

Thread-backed handles: thread blocked indefinitely in an MVar operation

2010-06-20 Thread Dimitry Golubovsky
, the BlockedIndefinitelyOnMVar exception has occurred. What is done wrong in my code? The dirClose method seems to be called (its output shows up), however with or without the call to killThread, the exception occurs anyway. Thanks for any ideas. -- Dimitry Golubovsky Anywhere on th

Thread-backed handles: thread blocked indefinitely in an MVar operation

2010-06-22 Thread Dimitry Golubovsky
h seems to have cured the problem: it just simulates EOF on the handle if the thread is blocked (channel vanished). Interestingly that in the failing version, handle closing was done in a separate thread (thread 3), but in the updated version it was the same thread 1. -- Dimitry Golubovsky Anyw

GHC.IO.Device and "ready" method?

2010-06-25 Thread Dimitry Golubovsky
ns of GHC.IO.Device and GHC.IO.BufferedIO) expected to be thread-safe? I would be happy to store the id of the thread that calls mkFileHandle somewhere in the underlying `dev' and simply reject all I/O requests that come from other threads, but is this correct/permitted behavior? Thanks. -- Dimitry

Alternative (per-project) GHC package database?

2010-06-29 Thread Dimitry Golubovsky
; GHC_PACKAGE_PATH=/my/project/packages cabal install so the default global and user package configurations are not visible when building the project. How can I bootstrap a fresh minimal working GHC package configuration at the empty location? Thanks. -- Dimitry Golubovsky Anywhere on the Web

Alternative (per-project) GHC package database?

2010-06-29 Thread Dimitry Golubovsky
r Nix was on my mind. My initial thought is: for bootstrapping, I could dump package descriptions from the global database for few basic packages (rts, ghc-prim, base, etc.) and run them through ghc-pkg register with GHC_PACKAGE_PATH set to cover only per-project package conf directory. --

Alternative (per-project) package database

2010-06-29 Thread Dimitry Golubovsky
r prefix for cabal install, so everything will install in a single location). So, cabal does work in project-private mode. Maybe developers of cabal-install would consider adding such mode to the program, so all these extra options will not be needed. Of course votes from other users will increa

Directory-backed Handle?

2010-09-14 Thread Dimitry Golubovsky
parated list of filenames (like in getDirectoryContents), or some sort of serialized FileStatus structures, or anything else? Thanks. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@h

Re: Directory-backed Handle?

2010-09-15 Thread Dimitry Golubovsky
ition of IODeviceType. I have created a ticket #4317 http://hackage.haskell.org/trac/ghc/ticket/4317 providing the code comments proposed. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.o

Why hide Distribution.Compat.FilePath, or what to use instead?

2007-07-15 Thread Dimitry Golubovsky
can I use for exeExtension? Thanks. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: To show or not to show french accents

2003-12-18 Thread Dimitry Golubovsky
I would support the point of view that show should output escapes when showing characters outside ASCII. This is sort of a "transport" format (together with read), therefore it must be a GCD for all possible input encodings. UTF-8 might be alternative, but it would require to be equally support

Unicode in GHC: need some advice on building

2005-01-10 Thread Dimitry Golubovsky
other thing, this might be done without intervention into the sources, just as an external library. Which would be the best placement for the library, so it would load/compile in automatically? I tried to find information in the GHC Commentary, but it did not give me much. Dimitry Golub

Re: Unicode in GHC: need more advice

2005-01-14 Thread Dimitry Golubovsky
l a different decision be adopted for GHC: say, for the Parser, extra characters are forced to be blank, but for the rest of the programs compiled by GHC, Unicode definitions are adhered to. PS The latest rebuild I did, used ghc with new code compiled in as Stage 1 compiler. Dimitry Golubovsky

Suggestion for hsc2hs (structures with commas)

2005-06-14 Thread Dimitry Golubovsky
hs from the GHC 6.2.2 distribution. I couldn't find such fixes in the changelog since then. I believe, the person maintaining hsc2hs might be able to implement these fixes faster than if I tried. PPS This will work with GCC, but I am not sure abouth other compilers (like Microsoft C) --

Cabal and older versions of GHC

2005-07-11 Thread Dimitry Golubovsky
? I am not going to upgrade to GHC 6.4.x any time soon, so what are my options in using Cabal with 6.2.2? -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman

Unicode in GHC 6.2.2 and 6.4.x (was: Re: [Haskell-cafe] Unicode.hs)

2005-07-16 Thread Dimitry Golubovsky
Dear List Subscribers, Simon Marlow wrote: On 30 June 2005 14:36, Dimitry Golubovsky wrote: It is in CVS now, and I believe will be in 6.4.1 Not planned for 6.4.1, but definitely in 6.6. I have put those files that work for me in GHC 6.2.2 (Unicode support) for download. Please read

-split-objs and --make together?

2005-07-28 Thread Dimitry Golubovsky
ility to use --make is missing here. PS2 It would be nice if the perl script splitting the assembler code also created the directory where the split object files go. Dimitry Golubovsky Middletown, CT ___ Glasgow-haskell-users mailing list Glasgow-ha

C--

2005-08-12 Thread Dimitry Golubovsky
? What compiler flags are available for cmm files compilation? The User's guide says nothing specific. Are -E, -C, -S available (along with -c and -fvia-c seen in the nightly build log)? -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-

Two issues bulding ghc 6.4.1

2005-12-25 Thread Dimitry Golubovsky
I have encountered two issues trying to build ghc-6.4.1 from the source tarball. 1. (fixed) GNU make v 3.79 does not work (was discussed on irc yesterday: at least two people including myself got this issue), v 3.80 works. If not already in FAQ/wiki perhaps worth including. 2. Error while as

Re: Two issues bulding ghc 6.4.1

2005-12-26 Thread Dimitry Golubovsky
Dimitry Golubovsky wrote: 2. Error while assembling (or mangling?) ForeignObj.lhs; fragments of make output below (long lines wrapped/truncated, the whole file is too long to post it here but I'll provide it if needed): This one has been fixed by installing gcc-2.95.2 and building

Unboxed types and FFI (GHC Users Guide, Section 8.1.1)

2005-12-30 Thread Dimitry Golubovsky
mport ccall "bla.h fun" fun :: Int# -> Int# instead of using CInt? Are there any examples of using unboxed types with FFI? -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

The -static option of ghc, and choice between user-supplied library types (Unix)

2006-01-11 Thread Dimitry Golubovsky
o the linker options, and the default would be the linker default? I believe, this is Unix-specific: AFAIR on Windows (and OS/2) dynamic implibs were indistinguishable by their names from static libraries and had the .lib suffix anyway? -- Dimitry Golubovsky Anywhere on th

Memory leak in Fudgets

2006-03-03 Thread Dimitry Golubovsky
otal elapsed So, what could be the reason of such memory leak? What else may grow if the heap remains constant? How can it be observed? Any ideas are welcome. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-has

[glasgow-haskell-users] Searchpath vs. Cabalfind (was: installing a Cabal package non-exposed)

2006-06-16 Thread Dimitry Golubovsky
have you tried any way to get modules' locations from search engines? I wish I could see what "modules.map" looks like, then I could see better whether what Cabalfind gets from Google could be an alternative? Not that I am pushing for Cabalfind in any way; just curious. --

Packages: exposed, hidden, available (was: Packages and Modules)

2006-07-05 Thread Dimitry Golubovsky
of packages like base, mtl, network, etc that generally come with GHC/other compiler are installed on a developer's system, and the rest of packages are transient/cached on demand. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Exception when compiling HAppS

2007-01-07 Thread Dimitry Golubovsky
Find-0.2, Cabal-1.1.3, FilePath-0.1.0, UNISTD-0.0, DB-4.2, SYSLOG-0.0, XPROTO-0.0, HSFFIG-1.1, BF-0.0, Fudgets-0.1, (cpphs-1.3), HaXml-1.13.2, fps-0.8 Has anybody encountered this? Thanks. -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haske

Re: Exception when compiling HAppS

2007-01-07 Thread Dimitry Golubovsky
mean a lot of things. What OS and platform are you using? bash$ uname -a Linux dmghome 2.2.16 #9 Mon Sep 16 22:43:25 EDT 2002 i686 unknown -- Dimitry Golubovsky Anywhere on the Web ___ Glasgow-haskell-users mailing list Glasgow-haskell-u

Re: Exception when compiling HAppS

2007-01-07 Thread Dimitry Golubovsky
ines of strace's output? Surprisingly, tonight I was able to get past that file, and compiled the whole package. So the question remains in semi-closed state. I hope that future versions of GHC will be more informative of which child process caused such error. -- Dimitry Golubovsky

Changes in the Core language file syntax since GHC5.02?

2003-06-22 Thread Dimitry Golubovsky
Hi, I asked this in the fa.haskell newsgroup, but since this is more GHC-specific, maybe this list is a better place to ask. I am trying to learn the syntax of Core language files using the paper by Andrew Tolmach named "An External Representation for the GHC Core Language". This was a draft f

Sending wide characters over the network socket

2003-07-05 Thread Dimitry Golubovsky
Hi, I have tried to send a string of Unicode characters over a socket (or to write it into a file handle). The result is strange: it looks like characters are truncated down to their least significant bytes. Here is my program (I am new in Haskell, so the code may look not so good, but it illu

Re: Sending wide characters over the network socket

2003-07-05 Thread Dimitry Golubovsky
Glynn Clements wrote: To be more general: how would I send arbitrary binary data (stream of octets) over a socket or a file handle? Should I always assume that only lower bytes would be sent, and this will be forever in ghc? Yes. Well, maybe not forever, but for the forseeable future. Well, i

Marshalling functions was: Transmitting Haskell values

2003-10-28 Thread Dimitry Golubovsky
Hi, Hal Daume III wrote: Hmm... I can write out functions using the "Show (a -> b)" instance, but there's no matching "Read (a -> b)". Show (a -> b) is a bogus instances -- you won't actually be able to use it for marshalling functions. Well, marshalling functions (or storing-restoring some int