philtor has quit [Read error: Operation timed out]
romanoffi2 has quit [Ping timeout: 260 seconds]
ymasory_ has joined #ocaml
ymasory_ has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
sepp2k has quit [Quit: Leaving.]
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
lopex has quit []
vivanov has joined #ocaml
pdhborges has joined #ocaml
pdhborges has quit [Client Quit]
vivanov has quit [Read error: Connection reset by peer]
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
ftrvxmtrx has joined #ocaml
vivanov has joined #ocaml
enthymeme has joined #ocaml
enthymeme has quit [Ping timeout: 276 seconds]
ymasory has quit [Quit: Leaving]
mjonsson has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 240 seconds]
impy has quit [Quit: impy]
dnolen has quit [Quit: dnolen]
DOUK has quit [Ping timeout: 252 seconds]
jamii has joined #ocaml
Associat0r has joined #ocaml
ankit9|zzz has quit [Quit: Leaving]
valross has quit [Quit: Ex-Chat]
Yoric has joined #ocaml
Associat0r has quit [Quit: Associat0r]
jamii has quit [Ping timeout: 240 seconds]
Snark has joined #ocaml
jamii has joined #ocaml
ankit9 has joined #ocaml
edwin has joined #ocaml
eikke has joined #ocaml
wieczyk has quit [Read error: Operation timed out]
avsm1 has quit [Quit: Leaving.]
ocp has joined #ocaml
Cyanure has joined #ocaml
wieczyk has joined #ocaml
waern_ has joined #ocaml
waern has quit [Ping timeout: 240 seconds]
sgnb has quit [Remote host closed the connection]
qmwr has joined #ocaml
ikaros has joined #ocaml
sgnb has joined #ocaml
qmrw has joined #ocaml
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
wieczyk has quit [Ping timeout: 240 seconds]
edwin has quit [Remote host closed the connection]
wieczyk has joined #ocaml
Cyanure has quit [Read error: Connection reset by peer]
robthebob has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
mcclurmc has left #ocaml []
Cyanure has joined #ocaml
lopex has joined #ocaml
qmwr has quit [Ping timeout: 252 seconds]
qmrw has quit [Quit: Page closed]
lopex_ has joined #ocaml
jderque has joined #ocaml
eye-scuzzy has joined #ocaml
Tianon has quit [Read error: Operation timed out]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
oriba has joined #ocaml
oriba has quit [Remote host closed the connection]
Associat0r has joined #ocaml
_andre has joined #ocaml
Associat0r has quit [Quit: Associat0r]
hto has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
wieczyk has quit [Read error: Operation timed out]
wieczyk has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
lopex_ is now known as lopex
Associat0r has joined #ocaml
pdhborges has joined #ocaml
hto has quit [Ping timeout: 260 seconds]
tildedave has joined #ocaml
oriba has joined #ocaml
DimitryKakadu has joined #ocaml
oriba has left #ocaml []
ankit9 has quit [Quit: Leaving]
edwin has joined #ocaml
<kaustuv>
thelema_: I agree with bluestorm's proosal to change the inline test syntax to avoid using (** and **) to prevent confusion with ocamldoc. (IIRC I suggested as much a while back.)
dnolen has joined #ocaml
ftrvxmtrx has joined #ocaml
dnolen has quit [Remote host closed the connection]
jderque has quit [Quit: leaving]
<rixed>
Anyone using PXP for parsing an XML without DTD (but with a schema) ?
dnolen has joined #ocaml
joelr has joined #ocaml
<joelr>
good day
<joelr>
Should I pay attention to this warning from Oasis? findlib: [WARNING] Interface service.cmi occurs in several directories: src/db, src/indexing
avsm has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
lopex has quit [Quit: Page closed]
lopex has joined #ocaml
barismetin has joined #ocaml
pdhborges has quit [Quit: Leaving.]
<rproust>
joelr: it means that findlib finds two distinct interfaces with the same name
<rproust>
it can be dangerous because it might lead to the wrong interface being used
pdhborges has joined #ocaml
<rproust>
Idk how ocamlfind chooses which interface to take…
<joelr>
rproust: this is easily fixed, e.g.
<joelr>
Executable indexing
<joelr>
Path: src/indexing
<joelr>
MainIs: service.ml
<joelr>
Instead of Path: src, MainIs: indexing/sevice.ml
<joelr>
The latter causes findlib to complain
<rproust>
haven't yet started using oasis, but I'll try to remember this for later…
pdhborges has quit [Quit: Leaving.]
Cyanure has quit [Remote host closed the connection]
<rixed>
the directories listed in the OCAMLPATH envvar are used from first to last, so the first dir where the interface can be found will be used I'd say.
pdhborges has joined #ocaml
pdhborges has left #ocaml []
robthebob has quit [Ping timeout: 240 seconds]
lamawithonel has joined #ocaml
hto has joined #ocaml
Oejet has joined #ocaml
pdhborges has joined #ocaml
ymasory has joined #ocaml
lopex has quit []
ymasory has quit [Client Quit]
pdhborges has quit [Ping timeout: 240 seconds]
impy has joined #ocaml
hto has quit [Ping timeout: 240 seconds]
<joelr>
Is there an easy way to stuff an array of floats into a string (and get it back)?
<joelr>
I would like to keep things binary, btw, and use as few allocations as possible
<thelema_>
joelr: Obj.magic?
<joelr>
How?
<joelr>
Hmm... I could use Marshal just as well, I suppoe
<avsm>
it actually seems quite hard to efficiently marshal a float in ocaml
<avsm>
it's better for float arrays though, as the header is just a fixed prefix
<thelema_>
joelr: let to_string (x: float array) = (Obj.magic x : string)
<avsm>
uh, wouldnt that corrupt your heap? different tag for strings and float arrays
<thelema_>
but the ocaml runtime will still treat the object as a float array, and I wouldn't recommend using any String.* functions on it.
<thelema_>
avsm: no, it'd just lead to segfaults if you tried to use it as a string.
<avsm>
thats what i meant. not much point converting it a string if you can't ever touch the thing :)
<thelema_>
fair enough.
<thelema_>
there's also Int64.bits_of_float which gets you a 64-bit number representing the bits of the given float.
<thelema_>
but what you want to do is so unsafe and system specific that you might as well do it in C if you want minimal copying. In ocaml, the only way available is that function plus some shifting and masking to build characters out of a Int64
<joelr>
I'm using google protocol buffers and would like to ship an array of 150 floats between processes
<joelr>
And to do that optimally, it looks like I need to convert it to a string and send it as a string
Associat0r has quit [Quit: Associat0r]
<joelr>
Otherwise, I'll be converting my array of floats to a list of floats. May not be a big deal at all.
<joelr>
thelema_: but I see what you are saying
<avsm>
converting the float array to a list would box each element. C binding to take a float_array tag and write it would be most efficient
<thelema_>
most efficient would be a google protocol buffers function that takes a float array and sends it as a string
<thelema_>
skipping the need to actually build the ocaml string
<thelema_>
which requires a header and encoding the length in the tail.
<joelr>
right
<thelema_>
I assume there's already C shims for gpb, why not extend them\
<joelr>
We are using piqi
<joelr>
Which is OCaml
<joelr>
Then again, we are also using Redis and the arrays are sparse so I may as well store values in a sorted set
<thelema_>
optimize later. for now, just use the .to_list
<joelr>
yeah
Cyanure has joined #ocaml
lopex has joined #ocaml
jderque has joined #ocaml
pdhborges has joined #ocaml
pdhborges1 has joined #ocaml
pdhborges has quit [Read error: Connection reset by peer]
joewilliams_away is now known as joewilliams
avsm has quit [Quit: Leaving.]
ocp has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
ikaros has joined #ocaml
mundkur_ has quit [Ping timeout: 252 seconds]
pdhborges1 has quit [Quit: Leaving.]
mundkur has joined #ocaml
<NaCl>
is there a way to make omake log the build checks it does?
<NaCl>
it says it can't find some C calls, and would like to figure out why
<thelema_>
omake --help has a ton of -debug-foo arguments, maybe -debug-deps?
<NaCl>
that deals with ocaml deps, apparently
<NaCl>
however it's doing this is not working in my build environment
<NaCl>
bleh
<thelema_>
can you add a manual dependency on the file it needs to link in?
<NaCl>
in theory, yes. but the dependency is there, it's just not scanning it correctly
<NaCl>
and it would be nice if there was a way to make it save all the temporary files it makes
<thelema_>
I assume --verbose doesn't get you the info you want?
<NaCl>
no
<NaCl>
and I think I may have found the problem
<NaCl>
oh, wait, no, /usr/include is used by default
<adrien>
stracing the process is always possible, it generates a lot of data but starting from the end in emacs will most probably make it ok to pinpoint the issue
<NaCl>
the nice thing about autotools is that it logs *everything*
<NaCl>
it even looks like the compiler commands are working
<adrien>
I think it wasn't enough for me once actually: I added a "set -x" at the beginning of the configure script ;p
<NaCl>
oh, wait, what?
<NaCl>
yeah, the compiler is failing
* NaCl
doesn't know why because I get no output
joelr has quit [Quit: joelr]
<adrien>
pastebin the strace output?
philtor has joined #ocaml
<NaCl>
this is going to be huge, uh...
<adrien>
NaCl: scp it here then: pm?
<NaCl>
shoot
ymasory has joined #ocaml
mrspastic has joined #ocaml
<mrspastic>
hello
<thelema_>
hi
thelema_ is now known as thelema
<mrspastic>
i have a question about key bindings if someone can help me
<mrspastic>
does anyone use the ocaml console in linux?
ankit9 has joined #ocaml
<thelema>
mrspastic: try 'rlwrap ocaml'
Oejet has quit [Ping timeout: 258 seconds]
<mrspastic>
thanks i will start from there
mrspastic has quit [Quit: leaving]
eikke has joined #ocaml
Cyanure has quit [Remote host closed the connection]
Associat0r has joined #ocaml
eikke has quit [Ping timeout: 276 seconds]
Oejet has joined #ocaml
ftrvxmtrx has joined #ocaml
ftrvxmtrx has left #ocaml []
vivanov has quit [Ping timeout: 260 seconds]
eikke has joined #ocaml
ocp has joined #ocaml
ftrvxmtrx has joined #ocaml
Associat0r has quit [Quit: Associat0r]
__marius__ has quit [Quit: leaving]
__marius__ has joined #ocaml
Yoric has quit [Ping timeout: 260 seconds]
sku has joined #ocaml
Yoric has joined #ocaml
eye-scuzzy has quit [Quit: leaving]
__marius__ has quit [Remote host closed the connection]
hto has joined #ocaml
ocp has quit [Ping timeout: 276 seconds]
ftrvxmtrx has quit [Quit: Leaving]
Yoric has left #ocaml []
ocp has joined #ocaml
sku has quit [Ping timeout: 246 seconds]
Snark has quit [Quit: Ex-Chat]
Rolands has joined #ocaml
jderque has quit [Quit: leaving]
ocp has quit [Read error: Operation timed out]
ulfdoz has quit [Ping timeout: 260 seconds]
ymasory has quit [Quit: Leaving]
DimitryKakadu has quit [Remote host closed the connection]
dnolen has quit [Quit: dnolen]
oriba has joined #ocaml
philtor has quit [Ping timeout: 258 seconds]
Rolands has quit [Ping timeout: 240 seconds]
ymasory has joined #ocaml
ymasory has quit [Max SendQ exceeded]
ymasory has joined #ocaml
Oejet has quit [Quit: Leaving.]
everyonemines has joined #ocaml
<everyonemines>
Random.init will affect other threads but not a forked process, is that right?
clog has quit [^C]
clog has joined #ocaml
Amorphous has quit [Ping timeout: 240 seconds]
Amorphous has joined #ocaml
philtor has joined #ocaml
everyonemines has quit [Ping timeout: 258 seconds]