Claus Reinke wrote:
Btw, is there a way to reset the opengl system to a sane state in
software? Or are there some invalid assumptions about default
state in the other examples?
If OpenGL is getting stuck in a non-functional state, that indicates
a bug in the driver.
--
Glynn Clements
.
system/rawSystem now behave almost exactly like system() in C. The only
difference is that you can't ignore SIGINT/SIGQUIT in the child, but I
can fix that if necessary.
I'm not sure how much it matters; system() isn't really of much use
for real programs anyhow.
--
Glynn Clements [EMAIL
to be called for normal termination (exit() or return from
main()), not for _exit() or fatal signals.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
termination.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
between the fork and the exec on Unix and ignored on
Windows. AFAICT, that would expose the full functionality available on
Unix without interfering with Windows usage or adding complexity.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users
an exception.
Or do I misunderstand something?
No, that seems correct.
Although, depending upon the OS, setting SIGCHLD to SIG_IGN may cause
processes to be reaped automatically (i.e. not become zombies), so
that's a possible alternative.
--
Glynn Clements [EMAIL PROTECTED
, where it
just retries the waitpid() call), whereas getProcessExitCode will
return Nothing. Both will throw an exception if the process terminated
on a signal.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
, as the handler functions won't exist after the execve().
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
/val-tags: Read-only file system
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
the memory with malloc, and you have
to free it yourself. OTOH, the with* functions allocate the memory
with alloca, and it is freed automatically.
Also, a ForeignPtr includes a finaliser which will free the data
automatically when it is no longer referenced.
--
Glynn Clements [EMAIL PROTECTED
wouldn't even be of use
for toy programs).
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
may
be roughly symmetric, at a higher level, the client and server ends of
a connection aren't at all symmetric.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow
and read data until the server closes the connection (usable
with services such as systat, netstat, daytime etc).
Similarly, sendFrom (i.e. accept a connection and send data) would be
just as useful as recvFrom.
--
Glynn Clements [EMAIL PROTECTED
the Network module, but to use Network.Socket instead.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
,
and getsockopt reads it from there, although I haven't checked whether
specific protocols honour those settings.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo
to set them, or is there a better way to
specify general I/O timeouts than on the socket level?
Non-blocking I/O and select/poll; although I don't know how well that
is supported.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
flags in 2.3, in
which case an unsigned short would no longer be sufficient).
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
is affected.
+ Anything which supports the ~user syntax to refer to a specific
user's home directory will need to use getpwnam().
+ Anything which needs to translate between UIDs and usernames will
need to use getpwnam() and/or getpwuid().
+ Etc.
--
Glynn Clements [EMAIL PROTECTED
that the shell will eventually end
up passing the desired argv[i] to the called program.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Nothing execv
TrueNothing execvp
False Just _ execve
TrueJust _ execvpe [*]
[*] execvpe() isn't a standard library function; it is implemented in
hslibs/posix/cbits/execvpe.c using execve().
--
Glynn Clements [EMAIL PROTECTED
or
getAnyProcessStatus).
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
).
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
referential transparency; if you break it,
all bets are off.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
for communication between
different architectures.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
of Storable. Each specific type would have to be
handled separately, depending upon whether swapping is required and,
if so, whether bytes are swapped in blocks of 2, 4, or 8 bytes. Also a
32-bit float might use a different byte order to a 32-bit int (so says
a comment in glibc's endian.h).
--
Glynn
, then fdopen() (in
C, or write a foreign import) to get a FILE*.
Also, don't forget about synchronisation issues between the C and
Haskell interfaces to the descriptor (e.g. buffering).
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing
with ord and chr and either
mod/div or the Bits library.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
? C-h m did not reveal any surprises to me.I only use the
recommended setup:
AKA func-menu.el:
`function-menu' is an interactive autoloaded Lisp function
-- autoloads from func-menu
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow
, for the specific case of a terminal on Unix, you
can use Posix.getTerminalName; re-opening that will typically work.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell
typeOf _ = mkAppTy fooTc []
or compile with -O, your program works.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
be satisfied from the buffer and is passed down to the OS. For
unbuffered input streams, this applies to all reads.
Either of these approaches will confuse some set of users. Anything
other than disabling buffering altogether will confuse users who are
completely unaware of buffering.
--
Glynn
Hal Daume III wrote:
if I have
newtype Foo = Foo Int
and i want to make it an instance of typeable, how do I create a TypeRep
object?
fooTc :: TyCon
fooTc = mkTyCon Foo
instance Typeable Foo where
typeOf _ = mkAppTy fooTc []
--
Glynn
no idea as to the situation on Windows.
--
Glynn Clements [EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
33 matches
Mail list logo