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
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
, 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
: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
, 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
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
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
; 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
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.
--
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
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
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
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
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
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
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
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)
--
?
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
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
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
?
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-
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
35 matches
Mail list logo