Are there any recipes for wrapping a large C++ class that uses callbacks?
I would like to implement the callbacks in OCaml for obvious reasons.
Thanks, Joel
---
http://twitter.com/wagerlabs
___
Caml-list mailing list. Subscription management:
I'm fine with focusing on 64-bit architectures.
Sent from my iPhone
On 17/12/2010, at 14:48, "Richard W.M. Jones" wrote:
> On Fri, Dec 17, 2010 at 01:36:35AM +0100, Goswin von Brederlow wrote:
>> Or avoid the whole issue and make the file large enough to begin
>> with. Thanks to sparse files y
Jesper,
On Dec 16, 2010, at 12:38 PM, Jesper Louis Andersen wrote:
> Simply have an Ocaml array of bytes or something such to
> store data into (my Ocaml representation specific knowledge is not up
> to par at the moment, but arrange it such that the byte-array has
> C-representation underneath.
I'm constantly appending to a file of stock quotes (ints, longs, doubles,
etc.). I have this file mapped into memory with mmap.
What's the most efficient way to make newly appended data available as part of
the memory mapping?
Obligatory OCaml content: I'm trying to prototype a trading system
Does anyone have bindings for ZeroMQ?
Thanks, Joel
---
http://twitter.com/wagerlabs
___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: ht
What if the quotation is not valid OCaml syntax, e.g. C#, and a Camlp4 parser
for it exists?
How would I tie it all together to parse the quotation, plug in antiquotations
and end up with the custom AST that my parser outputs?
Thanks, Joel
Sent from my iPad
On Jul 26, 2010, at 16:13, Nic
How does Ocsigen handle database operations?
I assume they need to be asynchronous because of lightweight threads (Lwt).
Please feel free to point me to the manual but I think an answer in this thread
would benefit future Google searches.
---
http://twitter.com/wagerlabs
__
On Jul 25, 2010, at 2:52 PM, Dario Teixeira wrote:
> Are we talking about surviving a "mere"
> Slashdot effect (not as scary nowadays as it once was),
This as I'm looking to provide paid conversion of trading strategies from one
trading language to another.
See an example conversion of TradeS
How do you build scalable web apps with OCaml?
Do you use Apache with mod_caml? Naked Ocsigen?
Do you put Ocsigen behind Nginx?
Thanks in advance, Joel
---
http://twitter.com/wagerlabs
___
Caml-list mailing list. Subscription management:
http
How do I fix this?
Thanks, Joel
---
Mac OSX 10.6
./build/fastworld.sh
...
+ boot/ocamlyacc -v otherlibs/labltk/compiler/parser.mly
3 shift/reduce conflicts.
+ ./ocamlopt.opt -nostdlib -c -g -warn-error A -I otherlibs/dynlink/nat -I
stdlib -o otherlibs/dynlink/nat/dynlink.cmx otherlibs/
I have a translator from a Pascal-like trading language written in OCaml and I
need the output to run as a DLL embedded in a trading platform.
I'm thinking of generating bytecode and have the user pass the path to the
bytecode file to the DLL during initialization.
I don't want to load source
On Jan 9, 2010, at 2:02 PM, Daniel Bünzli wrote:
> http://portal.acm.org/citation.cfm?id=1411308
How can I access this paper without an ACM subscription?
Thanks, Joel
---
http://wagerlabs.com
___
Caml-list mailing list. Subscription manage
Just wanted to say that the svn trunk still has this issue when using
build/fastworld.sh
http://groups.google.com/group/fa.caml/browse_thread/thread/fe167069116a27a1/77cc1e7c2bdf613e?lnk=gst&q=%22_unix_initgroups%22&pli=1
This patch fixes it and the build finishes
diff --git a/otherlibs/unix/li
You cannot embed OCaml and use it as an editor extension language unless
1) your editor is open source, or
2) you are a member of the consortium and pay 2K EUR/year
Is that correct?
Thanks, Joel
---
http://wagerlabs.com
___
Caml-list mail
Does anybody have example code that shows how to generate OCaml bindings at
runtime with LLVM?
My goal is to compile an AST into code that uses OCaml functions within the
same binary that's doing the compiling.
I don't think it can be done with OCaml since it requires a standalone
assembler, l
Does anyone have an API for Amazon EC2, S3 or SimpleDB?
I need to write an app to push content to hundreds of thousands
of users, connected to a bunch of servers. Think liveblogging.
You push a button and your post needs to be in front of eager
readers within a couple of seconds.
The client-faci
Is the ARM backend (ocamlopt) usable and actively maintained?
Thanks, Joel
---
Mac hacker with a performance bent
http://linkedin.com/in/joelreymont
___
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/l
On Apr 17, 2009, at 11:15 PM, Philippe Wang wrote:
PS. We tried to switch to 3.11, but it seems to need too much time,
it's far from being a piece of cake.
We have tried to make it work on Leopard (actually, I failed the 1st
time - half the way, I may try again if I have time).
What was
From the quasiquoting paper by Geoffrey Mainland [1], page 7:
"The major advantage of our approach over that of camlp4
is that we demonstrate how to use generic programming
to reuse a single parser to parse quasiquoted patterns,
quasiquoted expressions and plain syntax that does not
include antiq
There's an example in the Geoffrey Mainland's Haskell
quasiquotation paper [1] that looks like this:
peep :: [ Asm ] -> [ Asm ]
peep [:asm| mov&s $&r1, &r2
cmp $&r3, &r4
je &lbl |] : rest
| r3 = r1 ^ r4 = r2
= [:asm| mov&s $&r1, &r2
jmp &lbl |] : rest
...
Is
On Apr 16, 2009, at 5:50 PM, Stéphane Glondu wrote:
Add initgroups.o and setgroups.o in otherlibs/unix/libunix.clib, then
launch again the compilation.
Seems to help but still bombs out.
./build/fastworld.sh
...
+ boot/ocamlyacc -v ocamldoc/odoc_text_parser.mly
5 shift/reduce conflicts.
Solv
./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix
ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx
ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o
ocamlbuild/ocamlbuild.native
Undefined symbols:
"_unix_setgroups", referenced from:
_
On Apr 15, 2009, at 11:54 AM, Jérémie Dimino wrote:
This may happen if you compiled ocsigen with a different ocaml version
than the one you are using now. Recompiling and reinstalling ocsigen
should fix this error.
Fixed that. What about this?
---
Error: Files /usr/local/lib/ocaml/site-lib/
Camlp4: Uncaught exception: DynLoader.Error ("/usr/local/lib/ocaml/
site-lib/ocsigen/xhtmlsyntax.cma", "interface mismatch on
Camlp4_import")
What does this mean and how do I fix it?
Thanks, Joel
---
Mac hacker with a performance bent
http://linkedin.com/in/joelreymont
___
Suppose I have a camlp4 parser for C#.
I want to include bits of C# in my code and end up with the AST.
I want to have "holes" in the above AST to plug in values.
I understand that antiquotations take car of filling the holes in the
AST,
any tips on implementing this, though?
Thanks
On Apr 2, 2009, at 7:08 PM, Richard Jones wrote:
So you might want to think about an alternate method of authorship,
such as a version-controlled, shared document, that allows
contributions and comes under a Free license of some sort.
Like the Django Book!
http://www.djangobook.com/
---
Mac
There's a nice discussion of LLVM in the context of Alice ML here:
http://lambda-the-ultimate.org/node/440
I'm told that not much has changed since.
---
http://tinyco.de
Mac, Lisp, OCaml
___
Caml-list mailing list. Subscription management:
http://
On Mar 30, 2009, at 3:08 PM, Kuba Ober wrote:
I'm running native gimp and other tools, and it all "just works", so
I don't
really see why you'd even need the x11 gtk.
Does Glade work as well?
Have you tried using Glade-built GUIs with OCaml?
Thanks, Joel
---
http://tinyco.de
Ma
On Mar 30, 2009, at 7:41 AM, Grünewald Michaël wrote:
Did you have Gtk+ working natively in OSX?
I do but I built from source after downloading the GTK+/OSX frameworks
and using ./configure --with-quartz
I also had to place the following two (identical) files in /opt/local/
lib/pkgconfi
Has anyone used ocaml and gtk+ to build non-cygwin app for windows?
These would be gtk+ apps that don't require the x server.
What toolchain did you use?
Thanks, Joel
---
http://linkedin.com/in/joelreymont
___
Caml-list mailing list. Subsc
Are there OCaml bindings for QT?
Would OCaml + QT be a good option for a Windows app?
I don't want to go with F# and do want to keep development on the Mac.
Thanks, Joel
---
http://linkedin.com/in/joelreymont
___
Caml-list mailing list. Su
I have a feeling that I have seen this before but I don't remember how
to fix it.
Any suggestions?
Thanks, Joel
---
ocamlfind ocamlmktop -thread -package
lwt.ssl,lwt.extra,netstring,netsys,ssl,pcre,unix,threads,findlib -I ../
baselib -I ../http -I ../xmlp4 -I ../server -I ../exten
This is the error that I get trying to compile ocamlnet on solaris 5.11
gmake
gmake: *** No rule to make target `netsys_posix.cmo', needed by
`netsys.cma'. Stop.
I can't figure out how netsys_posix.cmo gets produced.
---
http://linkedin.com/in/joelreymont
Has anyone managed to build ocamlnet on solaris 5.11?
I think ocamlnet makes the assumption that solaris is sunos (bsd)
whereas it's sysv after 4.x.
Thanks, Joel
---
http://linkedin.com/in/joelreymont
___
Caml-list mailing list. Subscrip
On Mar 21, 2009, at 2:51 PM, Jon Harrop wrote:
. I found that LLVM's x86 backend breaks tail calls when the return
type is a
first class struct. The workaround is to use sret form, having the
caller
preallocate the return struct and passing a pointer to the struct as
an extra
first argume
On Mar 21, 2009, at 1:38 PM, Jon Harrop wrote:
. You will succumb to ocamlopt's current run-time representation
which is
objectively inefficient (e.g. boxing floats, tuples, records) and
was only
chosen because the compiler lacks capabilities that LLVM already
provides for
you (primarily
What about this error with Cygwin towards the end of bootstrap_stage2?
Thanks, Joel
---
cp ld.conf /usr/local/godi/build/godi/godi-ocaml/work/stage/lib/ocaml/
std-lib/ld
.conf
cp libcamlrun_shared.so /usr/local/godi/build/godi/godi-ocaml/work/
stage/lib/oca
ml/std-lib/libcamlrun_sha
I'm trying to build GODI on Solaris. I already have OCaml 3.10 built
but don't see a way to use it to bootstrap GODI.
Any suggestions how to fix the error below or make GODI use the OCaml
I have installed?
Thanks, Joel
---
Press [Return] to begin with the installation; press [CTRL
I just tried to build GODI 3.10 and OCaml from CVS on Windows/Cygwin.
GODI failed at the detecting compiler arguments stage, right after
writing META files for libraries. OCaml failed to build byterun/
win32.c since it couldn't figure out the storage size of 'fileinfo'.
---
http://tinyco.de
ocaml -version
The Objective Caml toplevel, version 3.12.0+dev2 (2009-01-25)
Do you mean to recompile them with 3.11?
I compiled with 3.12.
On Mar 17, 2009, at 6:36 PM, Martin Jambon wrote:
Joel Reymont wrote:
How do I fix this?
Upgrade ocamlfind/findlib for 3.11.
---
http://tinyco.de
How do I fix this?
Thanks, Joel
---
+ ocamlfind ocamlopt -package 'extlib, dynlink, camlp4.lib' -linkpkg -
g src/easy_ast.cmx src/easy_lexer.cmx src/token.cmx src/static1.cmx
src/easy_parser.cmx src/easy_symtab.cmx src/easy_typer.cmx src/
ninja_ast.cmx src/ninja_morpher.cmx src/pret
Does anyone have a recipe for packaging OCaml code as a DLL or shared
library?
I need to be able to expose a few entry points that correspond to
OCaml functions.
Thanks, Joel
---
http://tinyco.de
Mac, C++, OCaml
___
Caml-list mailing l
I have two rules designed to parse these statements
buy 100 shares next bar at market
buy 100 shares # assumes next bar at market
sell 100 shares next bar 20 stop
...
The rules are the same, except "Higher" and "Lower" get swapped when
combined with "Stop" and "Limit".
Since either buyMethod
What about this quote from the camlp4 manual?
"An entry is composed of entry precedence levels, the first one being
the least precedent and the last one the most."
I'm assuming that my expr counts as one rule where '+' and '=' have
lesser precedence than 'and' and '*' since those follow aft
On Mar 12, 2009, at 9:13 AM, blue storm wrote:
You should reverse your rules (starting with the
higher-precendence construnction instead of the atomic values), and
possibly split some of your level into different levels (eg. "<" and
"+") for finer-grained precedence.
I have it reversed then
I'm trying to properly set up the precedence in my expression camlp4
rule.
It's not working properly, though.
(* wrong!!! > has higher prec than and*)
# parse_with_rule expr "1 > 2 and 3 > 4";;
- : Easy_ast.expr = Cond (Int 1, GT, And (Int 2, Cond (Int 3, GT, Int
4)))
(* right! mul is high
I would like my expression rule to parse "1 + 2 points" as "Plus (1,
Points 2)".
I currently have the following, with Points right-associative and at
the bottom, but it doesn't work. Is this something that Camlp4 can
handle?
Thanks, Joel
expr:
[ ...
| LEFTA
[ e1 = expr; "
Is it just me or there's a fresh uptake of OCaml among bright people?
I used to have to wait a long time (hours?) to get my questions
answered and now I get them answered in just a few minutes. And I'm
not talking simple questions since I don't consider camlp4 anywhere
simple. Woot!
I bel
On Mar 11, 2009, at 2:04 PM, Jérémie Dimino wrote:
If you want to use the camlp4 library you must use the "camlp4.lib"
package instead.
That solves it, thanks!
---
http://tinyco.de
Mac, C++, OCaml
___
Caml-list mailing list. Subscription manag
On Mar 11, 2009, at 1:33 PM, Matthieu Wipliez wrote:
I'm not familiar with ocamlfind, but for Camlp4 you need this:
-I +camlp4 camlp4lib.cma
I was under the impression that ocamlfind -packages takes care of
adding the camlp4 bits.
Does this solve the problem?
Not really but thanks f
Any suggestions on how to resolve this?
ocamlfind installs into /usr/local/lib/site-lib and there's a site-lib/
camlp4 directory with META in it.
Thanks, Joel
---
ocamlfind ocamlc -package 'oUnit, extlib, camlp4' -linkpkg -g src/
easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src
On Mar 10, 2009, at 11:01 PM, Jake Donham wrote:
An approach
that works for me is to think "recursive descent" and always give
rules that check at least one token before branching to another rule.
Something like this then?
sellMethod:
[
[ "Next"; "Bar"; at = OPT "At$"; e = expr;
On Mar 10, 2009, at 9:48 PM, Jake Donham wrote:
statement: [ [ s = openStatement -> s | s = closedStatement -> s ] ];
Syntactically it is fine but I don't think this is going to do what
you want. Camlp4 parsers aren't backtracking; you have to distinguish
openStatement from closedStatement by
In the following bit of camlp4 grammar
inputDeclarations:
[
[ "Input"; ":";
l = LIST1 inputDeclaration SEP "," -> l
]
];
Is it always necessary to write [ x = inputDeclaration -> x ] instead
of just inputDeclaration?
I'm trying to debug the type of each rule and I'm often
On Mar 8, 2009, at 5:04 PM, Matthieu Wipliez wrote:
In the parser, did you replace
module Gram = Camlp4.Struct.Grammar.Static.Make(Lexer)
by
module Gram = Static1.Make(Lexer)
I forgot to fix match_keyword. Works otherwise, thanks!
Now, why is match_keyword supplied with the original keywo
On Mar 8, 2009, at 3:55 PM, Matthieu Wipliez wrote:
Well I just duplicated Static to Static1 (and added
Camlp4.Struct.Grammar where necessary) and replaced:
module Structure = Camlp4.Struct.Grammar.Structure.Make Lexer;
by:
Something like this you mean? I must be doing something wrong as I
On Mar 8, 2009, at 3:32 PM, Matthieu Wipliez wrote:
I'd say duplicate Static, and redefine "using". Seems like the
simplest solution to me, certainly not the cleanest though (but is
there an alternative?).
I don't think this will work elegantly.
Static first makes a Structure (is make th
On Mar 8, 2009, at 3:32 PM, Matthieu Wipliez wrote:
I'd say duplicate Static, and redefine "using". Seems like the
simplest solution to me, certainly not the cleanest though (but is
there an alternative?).
Now we are talking!
This is Static.ml:
module Make (Lexer : Sig.Lexer)
: Sig.Gram
On Mar 8, 2009, at 3:07 PM, Matthieu Wipliez wrote:
I believe there is a (partially acceptable) solution, if you are
willing to accept having all your keywords in lower-case in the
grammar (not in the lexer), ie you match against "buyorsell",
"sellshort" etc.
Nope, I want camel case! :D
On Mar 8, 2009, at 2:09 PM, Matthieu Wipliez wrote:
using a single rule, say
buy : [ [ "buyOrSell"; ... ] ]
Yes, I want camel-case above.
and at lexing time do
if String.lowercase s = "buyorsell" then
IDENT "buy_or_sell"
else
IDENT s
And this is the part that I object to. I have
On Mar 8, 2009, at 1:33 PM, Matthieu Wipliez wrote:
So to sum up: when you declare a rule with a token "MyToken", the
grammar is configured to recognize a "MyToken" keyword.
The issue here is that it must be lower case in the camlp4 rules, i.e.
"mytoken".
What if I want to have "MyToken"
On Mar 8, 2009, at 11:45 AM, Matthieu Wipliez wrote:
In this case, here is a possible solution, you have your hash table
associate a lowercase version of the token with what you'd like to
use in the grammar:
"buytocover" => "BuyToCover"
"sellshort" => "SellShort"
...
I'm doing this alrea
On Mar 8, 2009, at 10:35 AM, Joel Reymont wrote:
The filter module nested in the token module seems like a good
candidate. What functions of the lexer or filter are accessed when a
string keyword (e.g. "delay") is found in the camlp4 grammar?
The filter portion of the token mo
On Mar 8, 2009, at 10:27 AM, Daniel de Rauglaudre wrote:
Only changing the "tok_match" record field (2nd point) would not work
for keywords (defined by "just a string" in Camlp* grammars), because
the lexer *must* recognize all combinations of the identifier as
keywords, implying a change, anyw
I would prefer to use the #2 approach but I'm using a custom lexer
built by ocamllex.
Where would I plug in String.lowercase con = ... in Matthieu's lexer,
for example?
Thanks, Joel
On Mar 8, 2009, at 9:37 AM, Daniel de Rauglaudre wrote:
2/ Use the field "tok_match" of the interfa
On Mar 8, 2009, at 2:45 AM, Jon Harrop wrote:
The OCaml Forge has kindly accepted to host the HLVM project:
http://hlvm.forge.ocamlcore.org
Am I the only one who VASTLY prefers the clean, uncluttered and easy
to use GitHub interface to the *Forge one?
---
http://tinyco.de
Mac, C++, OCa
On Mar 8, 2009, at 1:08 AM, Matthieu Wipliez wrote:
actionDelay: [ [ "delay"; expression ->
Asthelper.failwith (convert_loc _loc)
"RVC-CAL does not permit the use of delay." ] ];
Which of the following tokens does "delay" get checked against?
I'm assuming that camlp4 has
How can I make camlp4 parsing case-insensitive?
The only approach I can think of so far is to build a really larger
set of tokens and use them instead of strings in the parser.
Any flag I can flip or way to do this without a large set of tokens?
Thanks, Joel
On Mar 8, 2009, at 1:08
Matthieu,
Is the camlp4 grammar parser case-insensitive?
Will both Delay and delay be accepted in the actionDelay rule?
actionDelay: [ [ "delay"; expression ->
Asthelper.failwith (convert_loc _loc)
"RVC-CAL does not permit the use of delay." ] ];
On Mar 8, 2009, at 12:20 AM, Matthieu Wipliez wrote:
Joel asked me the parser so I gave it to him, but maybe it can be of
use for others, so here it is.
While we are on this subject... How do you troubleshoot camlp4 rules?
With a stream parser you can invoke individual functions since each
Jon,
On Mar 7, 2009, at 11:52 PM, Jon Harrop wrote:
The [< .. >] denote a stream when matching over one using the
"parser" keyword
and the tick ' denotes a kind of literal to identify a single token
in the
stream. So:
| [< 'Kwd "if"; p=parse_expr; 'Kwd "then"; t=parse_expr;
'Kwd
On Mar 7, 2009, at 11:21 PM, Matthieu Wipliez wrote:
why are you using stream parsers instead of Camlp4 grammars ?
Because I don't know any better? I'm just starting out, really.
I have a parser that I wrote using ocamlyacc and menhir. I finally
when with dypgen and didn't touch the code f
Where can I read up on the syntax of the following in a camlp4
stream parser?
| [<' INT n >] -> Int n
For example, where are [< ... >] described and why is the ' needed
in between?
To be more precise, I'm using camlp4 to parse a language into a non-
OCaml AST.
I'm trying to figure out
Where can I read up on the syntax of the following in a camlp4 stream
parser?
| [<' INT n >] -> Int n
For example, where are [< ... >] described and why is the ' needed in
between?
Thanks, Joel
---
http://tinyco.de
Mac, C++, OCaml
_
Assuming a simple Camlp4 parser that uses a ocamllex lexer wrapped in
a stream,
let rec parse_primary = parser
| [< 'INT n >] -> Int n
| [< 'FLOAT n >] -> Float n
| [< 'STRING n >] -> Str n
| [< 'TRUE >] -> Bool true
| [< 'FALSE >] -> Bool false
| [< >] -> raise (Stream.Error "unk
make clean && build/distclean.sh && configure ... && build/fastworld.sh
builds without an issue, again once emit.mlp is fixed.
On Mar 6, 2009, at 2:22 PM, nicolas.pouillard wrote:
+ boot/ocamlyacc -v ocamldoc/odoc_text_parser.mly
5 shift/reduce conflicts.
+ ./ocamlc.opt -nostdlib -c -g -w
I was able to build a 64-bit OCaml after adjusting asmcomp/amd64/
emit.mlp and using the regular build process, e.g.
make world
make bootstrap
make opt
make opt.opt
The Camlp4 build issue is still there with fastworld.sh.
Thanks, Joel
---
http://tinyco.de
Mac, C++, OCaml
__
On Mar 5, 2009, at 4:08 PM, Andres Varon wrote:
I don't think that it compiles the way it is now. It seems to me
that there was a version merge error and asmcomp/amd64/emit.mlp has
repeated definitions of emit_call and emit_jump.
Here's the offending part of asmcomp/amd64/emit.mlp.
The
On Mar 6, 2009, at 8:17 AM, Nicolas Pouillard wrote:
I recall that moving from one build procedure to another requires
a full clean (make clean ; ./build/distclean.sh).
./build/distclean && ./configure ... && ./build/fastworld.sh
SANITIZE: a total of 749 files that should probably not be in
On Mar 5, 2009, at 6:58 PM, Yoann Padioleau wrote:
Joel Reymont writes:
ocaml seems to require me to individually #load cmo-s, including
dependencies.
I'm sorry for the noise.
The cma was missing the required cmos.
Foot in mouth!
---
http://tinyco.de
Mac, C++,
I have a cma that I built and I'm trying to interactively test some
functions.
ocaml seems to require me to individually #load cmo-s, including
dependencies.
Is there a way to load all modules of a cma in one fell swoop?
Do I resign to creating .ocamlinit in that particular directory with
Ashish,
I'm not getting the previous error anymore and my issue is the same as
yours now.
Reason?
SANITIZE: a total of 749 files that should probably not be in your
source
tree has been found. A script shell file "_build/sanitize.sh" is
being
created. Check this script and run it to
On Mar 5, 2009, at 4:08 PM, Andres Varon wrote:
I don't think that it compiles the way it is now. It seems to me
that there was a version merge error and asmcomp/amd64/emit.mlp has
repeated definitions of emit_call and emit_jump.
I wonder if the OCaml team will move to git at some point
On Mar 5, 2009, at 3:55 PM, Sylvain Le Gall wrote:
Why not using the LLVM OCaml binding? It is directly shipped with
LLVM.
So you can write the entire generator in OCaml...
I would love to use LLVM. My concern is the overhead of calling from
LLVM into OCaml, though. The code I'll be gene
On Mar 5, 2009, at 3:10 PM, David Allsopp wrote:
Have you tried building the normal way (./configure -cc "gcc -m64"
&& make
world bootstrap opt opt.opt install)? fastbuild.sh is experimental
IFAIK
Makes no difference.
make libraryopt
cd stdlib; make allopt
../boot/ocamlrun ../ocamlopt -w
I looked at the Camlp4 filter wiki [1] but still can't figure this out.
+ ocamlfind ocamlc -package 'oUnit, dyp, extlib' -c -I +camlp4 -g -w a
-pp 'camlp4of -I src -filter map' -I src -o src/easy_type_check.cmo
src/easy_type_check.ml
File "src/easy_type_check.ml", line 45, characters 10-15:
Does it actually work?
./configure -cc "gcc -m64"
./build/fastworld.sh
...
boot/ocamlrun ./ocamlopt -nostdlib -c -nopervasives -I stdlib -o
stdlib/pervasives.cmx stdlib/pervasives.ml
/var/folders/pc/pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasmce9dc3.s:
602:junk `...@plt' after expression
...
I would like to compile trading systems written in a pascal-like
programming language to OCaml AST at runtime, convert it to machine
code and use it from the same running
OCaml program (natdynlink?).
Is it possible to do this without having gcc installed?
The code I'm generating will need to
Can I do without gcc if I want to embed the OCaml compiler into a
commercial Windows app?
Do I need to become part of the OCaml consortium to do this?
Ideally, I would like to generate OCaml code at runtime and compile it
into something that can be loaded by a runtime of some sort.
Compili
On Sep 11, 2008, at 4:32 PM, Markus Mottl wrote:
Use bigstrings as buffers and
perform I/O outside of the OCaml-lock if releasing it (depends on
I/O-size) is more efficient.
Are you suggesting using multiple OS threads within a single process?
When exactly do you release the lock and how do
Suppose I want to build a server that runs on top of ocamlnet and
handles 10k+ connections.
ocamlnet seems to use select exclusively.
Any suggestions on how to add kernel poll? Is this possible even?
Thanks, Joel
--
wagerlabs.com
___
Caml-
Fixed by building with build/fastworld.sh
--
wagerlabs.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: http://groups.yahoo.com/group/o
This must be a simple issue but I can't figure it out.
I built ocaml from source using 'make world.opt'.
I'm using ocamlbuild as my build system.
cat build.sh
#!/bin/sh
ocamlbuild -classic-display $*
./build.sh src/test.byte
/usr/local/bin/ocamlopt.opt -I /usr/local/lib/ocaml/ocamlbuild
un
93 matches
Mail list logo