Re: [Caml-list] [ANN] PEC ver. 1.1

2012-04-17 Thread Adrien
b t -> 'a t Is this function like a fold? Is there a particular reason for naming it "scan" (rather than "fold")? Thanks. -- Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: htt

Re: [Caml-list] include path problem: -I +site-lib/lib not working

2012-04-11 Thread Adrien
th -I + - almost everything is using ocamlfind - (linux) distributions add ocamlfind support anyway - oasis uses - it works, even on windows - it nicely solves a nightmare I wish all ocaml libraries installed with ocamlfind and I wish all ocaml code compiled with ocamlfind. -- Adrien Nader -- Cam

Re: [Caml-list] Timing module initializations (working but crashy)

2012-04-10 Thread Adrien
intf's %p format. I've put a new file online with the aforementionned changes: http://notk.org/~adrien/link2.ml Any input is particularly appreciated. :-) By the way, a few reasons I've started this: startup speed, potential very slow initializations for which there was no inst

[Caml-list] Timing module initializations (working but crashy)

2012-04-08 Thread Adrien
e "MODULES" (space-separated). The code is (currently) at: http://notk.org/~adrien/link.ml You can build with: "ocamlopt unix.cmxa str.cmxa link.ml -o gcc". Now, make sure that the directory with this "gcc" executable is in your PATH and is the first element (I never

Re: [Caml-list] Re: New version of the binary installer for Windows

2012-04-02 Thread Adrien
With x-compilation, you can do what you want: - need full POSIX? cygwin - need some POSIX? msys (maybe) - need some POSIX but not a lot? a library on top of win32, or move away from posix directly By the way, there was a netbsd-derived environment named Interix which microsoft used to advise

Re: [Caml-list] New version of the binary installer for Windows

2012-03-28 Thread Adrien
ling the installer with cygwin or msys? Beware of the > license issues however. Or make ocamlbuild not depend on bash. Only depending on a compliant sh would already be quite nice but afaik, it should be possible to not depend on a shell at all with minimal efforts. Regards, Adrien Nader -- Ca

Re: [Caml-list] Very slow compilation

2012-03-11 Thread Adrien
n of the ocaml binaries. It's not often done by default and I've sometimes noticed 5 to 6 times faster builds with them (of course, on files which were slow to build). Hope this helps, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.

Re: [Caml-list] Re: oasis packaging questions

2012-03-08 Thread Adrien
s too slow). My usual development machine isn't terribly fast and this has helped a lot. I think there was a mention of an issue though but it can help a lot. Regards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml

Re: [Caml-list] [community poll for PR#5312] Do some OCaml Windows users still use the @responsefile feature?

2012-03-05 Thread Adrien
t supposed to be supported, even without this @responsefile issue and I think I remember some issues running ocaml programs on win9x. Moreover, noone is going to be able to support that; i.e. win9x support has probably already bitrot a lot. By the way, I had only known of reponse files a prett

Re: [Caml-list] [ANNOUNCE] llpp v11

2012-02-28 Thread Adrien
eration. Just wanted to give it a try on my laptop, but building > llpp seems to be non-trivial. Recent intel "cards" are actually pretty powerful; like for AMD Fusion (recent CPU + GPU on the same die), you can play actual 3D games with them. Regards, Adrien Nader -- Caml-lis

Re: [Caml-list] Functional GUI programming: looking for good practices

2012-02-28 Thread Adrien
Hi, I've made a kind of "type diagram" for caravel in an attempt to document it and explain the approach (see the post-scriptum on the "how"). The _main_ reason was that I was often lost in some code/behaviour paths. http://notk.org/~adrien/ocaml/caravel/t13.png (

Re: [Caml-list] LablGTK for OCaml 3.12 on Windows

2012-02-22 Thread Adrien
part is probably a bit too scary (I guess it's quite old and the situation has worse back then). I think you can compile it by yourself in a matter of minutes if your environment is already set-up (i.e. gcc and ocaml). Regards, Adrien Nader -- Caml-list mailing list. Subscription management a

Re: [Caml-list] Functional GUI programming: looking for good practices

2012-02-14 Thread Adrien
On 14/02/2012, Philippe Veber wrote: > 2012/2/13 Adrien >> I've created a lablgtk branch named "adrien/react" to get react signals >> out >> of gtk properties and react events out of gtk signals (they match quite >> well). Support isn't perfect but

Re: [Caml-list] Functional GUI programming: looking for good practices

2012-02-14 Thread Adrien
e, has taken place. The API of webkit-gtk could allow to get an ID for the popup request, exit the callback with only the promise the answer will be given at some point, and do the actual work outside of the callback. But it doesn't. And there will always be APIs like that and we need to find h

Re: [Caml-list] Functional GUI programming: looking for good practices

2012-02-13 Thread Adrien
akes it possible to use functional code for a task that has typically relied on mutability, with all the benefits we're used to. I've created a lablgtk branch named "adrien/react" to get react signals out of gtk properties and react events out of gtk signals (they match quite we

Re: [Caml-list] sys command

2012-02-08 Thread Adrien
hand since it's a single bit (maybe two) in the PE header. Hope this helps, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs

Re: [Caml-list] Compiling Cryptokit on Windows

2012-02-06 Thread Adrien
h actually does not exist, so this is > not a surprise. This file "ocamlrun.a" does not exist either on my > Debian computer, so I'm a little surprised here. > > > I think I'll try cross-compiling now, or maybe editing "setup.ml" to put > quotes aro

Re: [Caml-list] [ANN] Vim plugin

2012-01-31 Thread Adrien
rcing some kind of refresh when doing so), you will probably recover the proper highlighting (gg'' might be enough). Regards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://g

Re: [Caml-list] deriving

2012-01-29 Thread Adrien
gards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs

Re: [Caml-list] Compiling the ocaml distribution under multiarched Debian/Ubuntu

2012-01-13 Thread Adrien
kefiles. If there is now pkg-config support, this is > very new, or an extension by the distributor. I don't know how old this would be but it's upstream at least in libX11-1.4.2. Regards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://

Re: [Caml-list] Understanding usage by the runtime

2012-01-04 Thread Adrien
se a mutex to wait until the compaction is done. And in case you're using Lwt, well, I don't know but I'd expect the callback to be callable whenever threads can be switched. Maybe that if it were possible to have a callback called each time the runtime would like to do a compaction

Re: [Caml-list] try ocaml website

2011-12-23 Thread Adrien
on screen except a new prompt: "42;;" and "print_endline \"pouet\";;" don't print anything. It looks like nothing gets evaluated. I wouldn't consider IE8 as a high-priority however since I've actually been having troubles finding people who were using IE

Re: [Caml-list] Some comments on recent discussions

2011-12-15 Thread Adrien
On 14/12/2011, Alain Frisch wrote: > On 12/14/2011 04:49 PM, Adrien wrote: >> But windows actually has symlinks. Kind of. Starting with Vista and the >> corresponding NTFS version. But by default you need to be an administrator >> to use them, you can only create a limited n

Re: [Caml-list] Some comments on recent discussions

2011-12-15 Thread Adrien
On 15/12/2011, Martin DeMello wrote: > On Thu, Dec 15, 2011 at 2:29 AM, Adrien wrote: >> On 14/12/2011, David Allsopp wrote: >>> >>> Any particular reason why the GnuWin32 project doesn't already fulfil >>> this >>> requirement (http://gnuwin32

Re: [Caml-list] Some comments on recent discussions

2011-12-15 Thread Adrien
On 14/12/2011, Alain Frisch wrote: > On 12/14/2011 02:37 PM, Adrien wrote: >> I don't think it would be possible to live without a C toolchain simply >> because we use C libraries all the time. > > It depends on who is "we". I can imagine that library devel

Re: [Caml-list] Some comments on recent discussions

2011-12-15 Thread Adrien
ecause Windows is not UNIX: typical issues are paths and their encoding: http://permalink.gmane.org/gmane.comp.windows.gnu.user/1197 (I'm being told that Windows paths are not UTF-16 but UCB; I'm unable to explain more unfortunately) Hopefully, you don't need to make appl

Re: [Caml-list] Some comments on recent discussions

2011-12-15 Thread Adrien
rlds. Also, note that msys works like cygwin: you have a number of msys applications which use some DLL. Unlike cygwin however, you're strongly advised not ever remotely try to make your application an msys one. Btw, msys has to be built with a gcc-2.9[56] fork since it uses a target that has

Re: [Caml-list] Some comments on recent discussions

2011-12-14 Thread Adrien
On 14/12/2011, Gerd Stolpmann wrote: > Am Mittwoch, den 14.12.2011, 14:37 +0100 schrieb Adrien: >> On 14/12/2011, Alain Frisch wrote: >> > As a concrete problem, until a few days ago, the mingw port could not be >> > used with recent versions of Cygwin without some sma

Re: [Caml-list] Some comments on recent discussions

2011-12-14 Thread Adrien
On 14/12/2011, Alain Frisch wrote: > On 12/13/2011 10:53 AM, Adrien wrote: >> On 13/12/2011, Alain Frisch wrote: >>> As Xavier said, it would be great to find someone who'd like to join the >>> core dev team in order to improve support for Windows. Anyone in

Re: [Caml-list] Some comments on recent discussions

2011-12-13 Thread Adrien
Do you have some examples? I guess most of the work would be to move forward instead of being stuck in the current situation. Regards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups

Re: [Caml-list] OCaml maintenance status / community fork

2011-12-06 Thread Adrien
(and considering the major changes we've seen with each major release in the past years, it definitely is). Regards, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/gro

Re: [Caml-list] Re: Issues with OCaml on Windows, MinGW build

2011-11-24 Thread Adrien
ne solution is to put the ocaml toolchain somewhere else and set the OCAMLLIB environment variable to the new PATH. While you're at it, you can also use forward-slashes in paths: c:/foo/bar/baz. This issues mostly happen with shell scripts and not programs which have been made with greater c

Re: [Caml-list] How to fail to install Ocaml in 18 steps

2011-11-15 Thread Adrien
run 32bit systems with a minimal slowdown (around 10-20%). It will also be much easier for many libraries. -- Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/

Re: [Caml-list] ocamlrun: Segmentation fault (core dumped)

2011-10-17 Thread Adrien
; > > Is there a way to know if the problem comes from ocamlrun or if it comes > from the (labl)gtk libraries for windows? Hi, Do you have a backtrace? You could run your application under gdb and use its "backtrace" function to get one. It should show quite quickly whether the is

Re: [Caml-list] ANN: lablgtk-react preview

2011-10-02 Thread Adrien
I forgot to mention that you need lablgtk2's adrien/mix branch for the examples (and only for the examples iirc). There are two reasons. It uses some additional API, especially #as_something methods and "notify::foo" signals. lablwebkit also requires a bug fix that it not merged

[Caml-list] ANN: lablgtk-react preview

2011-10-02 Thread Adrien
Hi, I am pleased and relieved to announce lablgtk-react, a project to ease the use of Functional Reactive Programming (FRP) for lablgtk-based graphical user interfaces. Currently, the project is available as a preview but I am happy with the way it is looking and with the programming style it off

[Caml-list] Plotting with Archimedes over Cairo and GTK

2011-08-12 Thread Adrien
.forge.ocamlcore.org/API/Cairo.html#VALset_source_surface ) Thanks, Adrien Nader NB: After looking at maybe 30 different tools and libraries in order to plot all my points quite easily, Sylvain Le Gall pointed me to Archimedes. It is the only library that has been able to handle properly this a

Re: [Caml-list] Trying to setup mingw OCaml 3.12.1 + fresh cygwin

2011-08-12 Thread Adrien
ch means it won't disappear until the next release at least but it's probably already subbject to bitrot. As far as I know (haven't looked at that), the right way is simply to cross-compile. Instead of passing -mno-cygwin as a CFLAG, use --host=x86_64-w64-mingw32 when calling configure

Re: [Caml-list] Trying to setup mingw OCaml 3.12.1 + fresh cygwin

2011-08-10 Thread Adrien
gw and you're outside of cygwin which means the issue won't always pop up but it's quite important to have this in mind when porting to windows 64 (it's a common issue). -- Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs

Re: [Caml-list] Trying to setup mingw OCaml 3.12.1 + fresh cygwin

2011-08-08 Thread Adrien
called "mingw-w64", it's possible to compile 32bit and 64bit applications for windows. Both are working well and equally supported. Hope this helps, Adrien Nader -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs