Hi,
On Thu, Oct 9, 2008 at 06:15, Conglun Yao [EMAIL PROTECTED] wrote:
Sorry, I can't fully understand the source code, but it seems we can
only define a polymorphic variant with only one additional type
declaration, like
`A of int or `A of (int * int)
rather than `A of int
Nicolas and Olivier,
Thanks for your quick reply, it makes sense!
Conglun
On Thu, Oct 9, 2008 at 9:43 AM, Olivier Andrieu [EMAIL PROTECTED] wrote:
Hi,
On Thu, Oct 9, 2008 at 06:15, Conglun Yao [EMAIL PROTECTED] wrote:
Sorry, I can't fully understand the source code, but it seems we can
Hi,
Is there any way for an OCaml program to change its name in the process
table? Assigning to Sys.argv.(0) has no effect.
Thanks,
Dave
___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
One possibility is setproctitle. It appears to be non-standard, but
maybe a bit more standard than overwriting argv[0]. I know it works
on Linux, and I see a FreeBSD man page for it.
The setproctitle() function is implicitly non-standard. Other
methods of
causing the ps(1) command line
Excerpts from John Harrison's message of Sun Sep 21 20:05:36 +0200 2008:
I'm trying once again to make some code work under the new camlp4. I
don't want to make any real syntax modifications, but just enable
quotations performing a simple string transformation on the body of
the quotation,
On Friday 03 October 2008, Erik de Castro Lopo wrote:
axllaruse wrote:
I would like to convert all the MTASC open source project to
C/C++ or PHP.
Sorry, but you're crazy.
MTASC is a compiler and compilers are one of the tasks that
Ocaml does better that all of the languages you mention.
Kuba Ober wrote:
Um, since Ocaml can be compiled to bytecode and said bytecode executed
by an interpreter written in C, that's sorta-kinda el-cheapo conversion
right there. One can work backwards.
I'm pretty sure the original poster's intent was to convert the MTASC
compiler to C, C++ or PHP
On Thursday 09 October 2008 22:57:41 Erik de Castro Lopo wrote:
Side note: is there an Ocaml bytecode-compiler written in Ocaml
somewhere?
I'm pretty sure the vast majority of the standard Ocaml bytecode
compiler is written in Ocaml. The same is probably not true for
the bytecode VM.
You
Jon Harrop wrote:
You mean the program that generates OCaml's bytecodes is
written in OCaml.
Commonly known as a compiler.
the program that executes OCaml's bytecodes
Commonly known as a virtual machine.
Erik
--
-
Erik de
On Friday 10 October 2008 04:30:53 Erik de Castro Lopo wrote:
Jon Harrop wrote:
You mean the program that generates OCaml's bytecodes is
written in OCaml.
Commonly known as a compiler.
One of the compilers, yes.
the program that executes OCaml's bytecodes
Commonly known as a virtual
Basile STARYNKEVITCH wrote:
Dave Benjamin wrote:
Hi,
Is there any way for an OCaml program to change its name in the
process table? Assigning to Sys.argv.(0) has no effect.
Write a C wrapper for that. And this trick seems Linux specific (it has
no sense in Posix) -maybe working on few
Savanni D'Gerinel wrote:
One possibility is setproctitle. It appears to be non-standard, but
maybe a bit more standard than overwriting argv[0]. I know it works on
Linux, and I see a FreeBSD man page for it.
Thanks, this was an interesting idea, though apparently setproctitle is
not
12 matches
Mail list logo