Re: [Caml-list] Causes for segfaults

2010-11-15 Thread John Whitington
of one, I think you have to do: let rec lex_stream i acc = match try Some (lex_stream i) with LexingEnd - None with | None - rev acc | Some s - lex_stream i (a::acc) Hopefully that option type doesn't slow things down too much. Cheers, -- John Whitington Director, Coherent Graphics Ltd http

Re: [Caml-list] Re: OCaml / F# co-development

2010-05-03 Thread John Whitington
arguments or polymorphic variants. But it's perfectly feasible. I converted said 15000 lines of code in a few days. Cheers, -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list. Subscription management

[Caml-list] ANN: CamlPDF 0.5

2010-03-15 Thread John Whitington
to your source are easy to make. This should be the last release with such changes. There is now a CamlPDF mailing list: http://www.freelists.org/list/camlpdf -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml

[Caml-list] [ANN] Proview PDF Editor for Mac OS X - written (mostly) in OCaml

2010-02-15 Thread John Whitington
in a few weeks, with some new functionality and a new introductory manual, making it easier for people to get into its somewhat complicated API. Thanks to the list for your continuing answers to my questions. Cheers, -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com

Re: [Caml-list] Ocaml, Objective-c, and XCode

2010-02-11 Thread John Whitington
is no problem. Cheers, -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list

Re: [Caml-list] Stack size on OS X

2009-11-30 Thread John Whitington
memory available should be roughly equivalent concepts (like with Linux), but sometimes it's easier to give in - after all, how are you to estimate the size you actually need accurately? Cheers, -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com

Re: [Caml-list] Stack size on OS X

2009-11-30 Thread John Whitington
say) performance is to be considered. Cheers, -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] Compiling OCaml under OS X 10.6

2009-09-08 Thread John Whitington
Hi. On 3 Sep 2009, at 03:28, Andres Varon wrote: On Sep 1, 2009, at 12:32 PM, John Whitington wrote: Hi Folks, Has anyone managed this? Bytecode seems fine, native not so. I've tried just ./configure and ./configure -cc gcc -m64 with the source bzip of 3.11.1 as suggested in INSTALL. Both

[Caml-list] Debugging a C / Ocaml interface problem

2009-02-19 Thread John Whitington
- related perhaps? Any suggestions as to how I might go about further debugging this? With Thanks, -- John Whitington Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin

Re: [Caml-list] Debugging a C / Ocaml interface problem

2009-02-19 Thread John Whitington
Hi Basile, On 19 Feb 2009, at 17:34, Basile STARYNKEVITCH wrote: John Whitington wrote: int fromFile(char* filename) { return(Int_val(caml_callback(*caml_named_value(fromFile), caml_copy_string(filename; } You need to follow Ocaml strong garbage collection related rules

[Caml-list] Re: Building with OCamlMkLib

2009-01-22 Thread John Whitington
Hi. On 20 Jan 2009, at 17:03, John Whitington wrote: I'm building a Plain C interface to our PDF libraries, but am stuck. The idea is to build a library with Ocamlmklib containing the C wrapper around the ocaml code. Thanks to those who helped me here - I finally settled on a modified

[Caml-list] Building with OCamlMkLib

2009-01-20 Thread John Whitington
() { printf(Twice two is %i\n, twice_c(2)); return(0); } Here's a zip containing those files: http://www.coherentpdf.com/files.zip Any ideas? -- John Whitington Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list

Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows

2008-06-02 Thread John Whitington
On 1 Jun 2008, at 22:06, Sylvain Le Gall wrote: On 29-05-2008, John Whitington [EMAIL PROTECTED] wrote: I'm compiling OCaml command-line software with the MSVC toolchain on Windows. Users have noticed two problems: (a) When output (such as the --help) is done on Windows, the help doesn't

Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows

2008-06-02 Thread John Whitington
it fix your problem too? This does indeed fix the problem here. Thanks! -- John Whitington Coherent Graphics Ltd http://www.coherentpdf.com/ ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml

[Caml-list] Pipes and Standard Output / Input on Windows

2008-05-29 Thread John Whitington
is exiting cleanly. All the open_in and open_out calls are using the _bin variant. The data being sent down the pipe is a PDF file (which contains binary sections). Neither of these problems occur on Linux / Mac builds - is there something about windows pipes I should know? -- John Whitington