Hello, Is it possible to create some data structures so that they are allocated in a shared memory? Let's say an array of OCaml values for example. So that...
12973
Gabriel Scherer
ga_sche
Nov 29, 2011 5:54 am
Have a look at - the "ancient" module by Richard W. Jones: http://git.annexia.org/?p=ocaml-ancient.git;a=summary README:...
12974
Francois Berenger
f_berenger
Nov 29, 2011 7:00 am
... only read-only data structures ... too big for me ... maybe OK. Alternatively, I found this sentence on the web, which may do the trick without adding an...
12975
Gabriel Scherer
ga_sche
Nov 29, 2011 8:31 am
I believe the write-only restriction is meant to avoid data in the ancient heap to point to data in the OCaml heap (which could create a dangling ref if the...
12976
Francois Berenger
f_berenger
Dec 1, 2011 5:46 am
Hello, Is it easy to use? Is it easy to create a new project and compile it with Oasis? I developed an allergy against ocamlbuild recently, and I really _love_...
12977
Adrien
camaradetux
Dec 1, 2011 6:10 am
Hi, It's fairly easy to use for simple programs although it doesn't shine there. But as soon as you have a more complex project, it quickly gets very useful....
12978
Sylvain Le Gall
gildor16478
Dec 1, 2011 7:43 am
Hello, ... Should be, but I need more inputs to make things more clear. This is an active project that needs user input to improve. ... The most problematic C...
12979
Gabriel Scherer
ga_sche
Dec 1, 2011 7:44 am
... It's actually very easy to use any build system with oasis (just provide a shell command for the different stages). Batteries uses this to provide an oasis...
12980
rixed@...
rixed
Dec 1, 2011 7:54 am
If I can add a related question I've always been afraid to ask: what does ocaml custom build systems bring over general-purpose and comunity-agnostic ...
12981
Gabriel Scherer
ga_sche
Dec 1, 2011 8:09 am
Makefiles, and more generally build and packaging tools of the Unix-like communities, tend to be designed to work well with the language C, and sometimes do...
12982
rixed@...
rixed
Dec 1, 2011 8:52 am
-[ Thu, Dec 01, 2011 at 09:09:33AM +0100, Gabriel Scherer ]---- ... Either I don't see what you are referring to or your statement mix compilation with...
12983
Gabriel Scherer
ga_sche
Dec 1, 2011 9:29 am
... That's not exactly true as you need the .cmi of the files you depend on. echo "let a = 1" > a.ml echo "let b = A.a" > b.ml File "b.ml", line 1, characters...
12984
Francois Berenger
f_berenger
Dec 1, 2011 10:17 am
... OK, I will give a try to Oasis then. I will try the binary installer or GODI if any problem. I don't know of odb.ml. Regards, F....
12985
Francois Berenger
f_berenger
Dec 1, 2011 10:29 am
... Hi, Don't bother. I just find ocamlbuild too complex and not adapted to do some things. Recently, I read this: ...
12986
rixed@...
rixed
Dec 1, 2011 10:31 am
-[ Thu, Dec 01, 2011 at 10:28:37AM +0100, Gabriel Scherer ]---- ... Yes you are right! I forget all this cmi thing. This indeed makes a great difference. In...
12987
Francois Berenger
f_berenger
Dec 1, 2011 10:33 am
... The proof that "Yes, Ocaml can be used to do a build tool too!". Like the boost installer all in C++ (my guess), the Haskell compiler that is also a build...
12988
Adrien
camaradetux
Dec 1, 2011 11:22 am
... I maintain a binding generator. Making a full build system with dependency sorting was not an option since it was far too complicated. I've tried using...
12989
Mihamina Rakotomandimby
rakotomandim...
Dec 1, 2011 6:00 pm
Hi all, This is my piece of code: http://goo.gl/mNnTB It reads a sqlite3 database: ...
12990
Sebastien Mondet
sebmondet
Dec 1, 2011 6:13 pm
Hi I've you tried with the List.append from extlib, batteries, or core? (they all have implementations different form the stdlib) cheers, Sebastien ... ...
... Just build the list in reverse order : let the_data_callback row headers= (* row.(0) row.(1) row.(2) row.(3) *) (* id date rx tx *)...
12992
Mihamina Rakotomandimby
rakotomandim...
Dec 2, 2011 5:52 am
... I'm just in love with that pattern matching stuff... I agree it drives me to repeat myself. I'll clean it up this week end. Thank you all. -- RMA....
12993
Микола Ð...
nick@...
Dec 3, 2011 1:30 pm
Hi, ... Exactly. List.append requires to iterate over the whole list to find its end before appending new elements. ... Line 37: l := (the_rx +. the_tx) :: !l;...
12994
Francois Berenger
f_berenger
Dec 5, 2011 4:32 am
Hello, This doesn't work: #use "topfind";; #require "toto";; #use "titi.ml" Is this a bug of the toplevel? Is there a way to specify several directives in one...
12995
Adrien
camaradetux
Dec 5, 2011 6:06 am
Hi, As far as I know it's by design or at least it won't change. It's also more general than that: # let x = 1;; let y = 2;; val x : int = 1 # y;; Error:...
12996
Francois Berenger
f_berenger
Dec 5, 2011 6:45 am
... Oh! I didn't know that. I would have sworn declaring x and y like this would work in the interpreter....
12997
Boris Hollas
hollas@...
Dec 5, 2011 10:46 am
Hello, I use Emacs with Tuareg-mode to browse third-party ocaml-code with lots of modules. For example, this is code from an mli-file: include Plugin.S module...
12998
Gabriel Scherer
ga_sche
Dec 5, 2011 12:33 pm
This is the kind of things Jun Furuse's [OcamlSpotter] is intended for. Unfortunately, it is distributed as a patch to the official compiler, so it is...
12999
Virgile Prevosto
virgilepr
Dec 5, 2011 1:17 pm
Hello Boris, ... In the particular case of Frama-C, which is what your example looks like, make doc will generate an html documentation, accessible through ...
13000
Boris Hollas
hollas@...
Dec 5, 2011 3:56 pm
Hello Virgile, yes, the Frama-C API-documentation saves a lot of work. Also, I'd like to see the types directly in Emacs - so I need to recompile with -annot....
13001
Boris Hollas
hollas@...
Dec 5, 2011 4:15 pm
... yes, that's the tool I'm looking for. However, installing it, along with installing all needed header-files, may be more work that the solution proposed by...