<Camarade_Tux>
I'm debugging a C++ project for a friend of mine and it's quite funny to see recursive classes(modules) in different files are not handled ;p
<rwmjones_>
oh dear unlucky for you :-(
alexyk has quit [Client Quit]
<Camarade_Tux>
hopefully the project is small and it really all came down to recursive header includes :P
<palomer>
UTF8.length str returns 1 but UTF8.get str 0 throws an exception
* palomer
looks at the extlib people
<julm>
palomer: what is your testing string?
<julm>
does it contain a non-ASCII character (code > 127) ?
<thelema>
what exception?
ulfdoz has quit ["brb"]
<thelema>
you've probably got an invalid UTF8 string that you're working with.
<thelema>
UTF8.length doesn't actually check that the extra needed bytes exist - it stops calculating length as soon as i >= String.length s
<thelema>
if we change that to [if i > String.length s then failwith "invalid UTF8 string - missing trailing bytes" else if i = String.length s then ...
<thelema>
hmm, except length = 1 means that the one character you have is less than 0x80
ulfdoz has joined #ocaml
slash_ has joined #ocaml
<thelema>
n/m, c+1 no matter what your first byte
Yoric[DT] has quit ["Ex-Chat"]
Jedai has quit [Read error: 110 (Connection timed out)]
Jedai has joined #ocaml
angerman_ has quit [Read error: 113 (No route to host)]
<palomer>
err
alexyk has quit []
<palomer>
so what's the solution?
<palomer>
how do I compose a utf8 string?
<palomer>
oh, wait, I can just read the chars off of it
<palomer>
im building my utf8 string by appending unicode characters
<palomer>
how do I fix this?
<julm>
find how youur library convert Unicode integers to an UTF-8 string
<julm>
converts*
<palomer>
I'm using both extlib and camomile
<palomer>
extlib is probably easiest
<julm>
no idea
<palomer>
there doesn't seem to be a way
<palomer>
oh, right
<palomer>
convert to a buf
<palomer>
add the character
<julm>
yep
<julm>
there must be a way
hkBst has joined #ocaml
rAphael has quit ["Soooo looooooooooong"]
<palomer>
fixed!
<palomer>
whew
<julm>
:)
jamii has quit [Read error: 110 (Connection timed out)]
alexyk has joined #ocaml
pipping has joined #ocaml
<pipping>
hi. i'm trying to compile ocaml 3.10.2 on x86_64.
<pipping>
when making the opt target, I get:
<pipping>
Files printf.p.cmx and string.p.cmx
<pipping>
make inconsistent assumptions over implementation String
<pipping>
is that a known issue?
aym has quit [Read error: 60 (Operation timed out)]
<hcarty>
pipping: Not that I know of. Are you using the OCaml source files directly from INRIA? And what OS?
<pipping>
linux.
<pipping>
ocaml works fine for me when built using 'make -j1'
<pipping>
i wanted to make it work with 'make -j3' or even 'make -j'
<pipping>
for that, i changed the order of some make targets
<pipping>
as a result, i seem to have miscompiled ocaml, yielding the above message
<mrvn>
seems there are more concurrency problems in ocaml than running programms.
<hcarty>
pipping: I have not tried "make -j n" with the OCaml sources... you could check the Changelog to see if there is any information there
<hcarty>
It would be a nice thing to have working
<hcarty>
pipping: You could try the ocamlbuild compilation method. It would likely require hacking some of the build files as well, but perhaps its parallel build support would do a better job.
<pipping>
i seem to have found a path that works...
<pipping>
i moved opt further to the beginning, before world
<pipping>
what's ocamlbuild?
<hcarty>
pipping: Would you be willing to file a bug report about this with your changes?
<hcarty>
ocamlbuild is an OCaml-based build system included with OCaml versions since 3.10.0
alexyk has quit []
<pipping>
i see. i see there's an ocamlbuild directory.
<pipping>
but no README :/
<hcarty>
The INSTALL or README file in the base directory should have some information on using the ocamlbuild-based build for OCaml
<hcarty>
I haven't used 3.10.x in a little while though so I'm not certain about that.
<pipping>
./build/fastworld.sh
<pipping>
i see
<pipping>
there's no targets test or check. is there a way to test if what i just build actually works?
komar_ has quit [Remote closed the connection]
<pipping>
nvm, there's make bootstrap
* pipping
tries fastbuild
jeanbon has quit [Read error: 110 (Connection timed out)]
<pipping>
that script isn't parallel, though
<pipping>
Finished, 1936 targets (846 cached) in 00:02:48.