In ocamlopt documentation says, the -p switch is only supported in UNIX. I'm not sure it rules out Cygwin. Besides ocamlopt -p, adoes anyanyone have experience...
Hi ! Please have you got some simple examples that demonstrate the use of Thread library ? I've seen very few Ocaml things on this subject. Moreover, I've...
... Danger Will Robinson! It's very hard to write threaded code correctly[1], they're hard to debug it when things inevitably go wrong, and on OCaml you don't...
Hello, someone looked for a simple Threading-example in OCaml. One simple example of using threads in OCaml is this one: ...
Oliver Bandel
oliver@...
Nov 2, 2007 4:44 pm
8894
I played with OcaIDE, and OCaml plugin for Eclipse. One of the best features of the plugin is a list of functions (and anything else you bind with let) and...
... You're referring to type annotations that are obtained by compiling with the -dtypes flag. Many development environments including emacs use the generated...
... Wow, that sounds really useful. ... There is "ocamlc -i", which prints an interface from a .ml file - maybe that does what you want. It doesn't understand...
Thanks Rich, On Fri, 2 Nov 2007 14:09:05 +0000 ... A bit like : "- I've such problem about a class." -> "- Are you sure you want to discover object-oriented...
Thanks Jon and Dave, that is exactly what I needed. ... It is quite useful, here is a link if you are interested: http://ocaml.eclipse.ortsa.com:8480/ocaide/ I...
I want to be able to run a .ml file through the ocaml interpreter. The file in question refers to other files with the "open Test" synatx where Test is the...
... Hi Oliver ! ... Thanks a lot for this ! Yes, it is a well chosen interesting example ( that works fine to invoke my text editor. ) I think it is a good...
... You should first notice that the ocaml toplevel is not meant to be a way to easily run .ml file, but only as way to try thing when developing program....
... I posted a concurrent ray tracer on the caml-list a few months ago: http://alan.petitepomme.net/cwn/2007.06.12.html I do not have thread examples but I...
... Fine that it's useful. :) ... [...] For learning? -> yes. For hacking? -> yes, but the code is GPLed. I recommend you to take a look into Butenhof's book....
Oliver Bandel
oliver@...
Nov 3, 2007 11:52 am
8904
You can first compile test.ml and then do #load "test.cmo". After that, module Test will be in scope in the toplevel. You can also load cmo files when starting...
To Fabrice, I will third the suggestion of buying W. Richard Steven's book. It sounds like you need to familiarise yourself with the available options...
... [etc] The core problem -- and a very common one -- is that you want to write a program that does some large amount of work (the cellular automaton) but...
Thanks. I understand now that I am not using the toplevel correctly, so I wrote a basic script to compile and run the program: #!/bin/bash rm -f cas.cmo...
... So in cas.ml, you are calling Exp. Is that right? The second command you gave "ocamlc -c exp.cmo cas.ml" should work. Are you sure you recompiled ...
... Also, you don't need to include the cmo file if you are just compiling. ocamlc looks for cmo files in the current directory (and directories included by...
... [...] ... You're linking them in the wrong order. You need to make sure that dependent modules / libraries are listed first (the opposite way round to how...
... [...] APUE does not cover Threads. But APUE is a *must* for (serious) Unix-programming, IMHO. Threads are covered in Stevens Network programming, Vol. 2. ...
Oliver Bandel
oliver@...
Nov 3, 2007 5:22 pm
8912
... [...] You made some suggestions... ...let me add my comment: When you use different processes, commands can be written to the automaton/graphics-machine...
Oliver Bandel
oliver@...
Nov 3, 2007 5:34 pm
8913
Thanks, changing the order of .cmo files to ocamlc made things work. I didn't realize that the order mattered, but I get it now. I will look into the build...
On Sat, 3 Nov 2007 12:52:42 +0100 ... I never think to another license : GPL forever ! ... Thanks a lot, but I realize I must use threads only, if I want some...
Thanks a lot Jon, ... I knew the ray tracer you used to benchmark the verbosity and speed of languages. ... With Oliver's example, I've two know. The other one...
On Sat, 3 Nov 2007 14:56:27 +0000 ... Thanks a lot Rich, I agree that I've almost all to learn about this subject. Reading O'Reilly book, I've realized it...
Hi, ... Notice Vim deals with .annot files (see eg. http://www.vim.org/ scripts/script.php?script_id=2025). Furthermore the functionality you are so glad to...
At various times, some of us in the SFBA have met for OCaml, SML97 and Erlang. In our last implementation, we struggled to find a congenial location. It...