mjonsson has quit [Read error: Connection reset by peer]
mjonsson has joined #ocaml
roconnor has quit [Remote host closed the connection]
ftrvxmtrx has quit [Ping timeout: 245 seconds]
<flux>
diml, yeah, I sort of assumed it would work, but that would be quite unlike what one can write with the Event module then
<flux>
diml, I guess I get to write an Event-module for lwt \o/ ;)
<flux>
diml, the point wit that style is that because the mapping is performed in t1, the mapping can be adjusted per local information
<flux>
although that's not always required, it's nice at times
<flux>
although creating the mapping elsewhere can be more performant, as you don't need to handle the list in every iteration..
<flux>
diml, you know what else works.. let take_a = Lwt_stream.map (fun () -> `A) (Lwt_stream.clone a) in
<flux>
hm, or maybe it doesn't, not sure :)
<flux>
somehow it appeared to work but apparently it really doesn't :)
malc_ has joined #ocaml
<malc_>
any GC,ffi experts around?
ulfdoz has joined #ocaml
mjonsson has quit [Remote host closed the connection]
lpereira has joined #ocaml
<tab>
malc_: you can just ask your question and see ;)
<flux>
hm, it appears Obj.id never returns the same number
<flux>
does this mean ocaml can only create so many objects during its life time (on 32-bit platforms)?
<flux>
(my test goes like: let h = Hashtbl.create 1024 in for c = 1 to 10000000 do Hashtbl.replace h (Oo.id (object end)) (); done; Printf.printf "%d\n%!" (Hashtbl.length h) -> returns 10000000)
oc13 has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
<LionMadeOfLions>
joecamel
Yoric has joined #ocaml
<malc_>
tab: i decided to be a good boy and read tfm, which (i hope) answered my question
jonafan has quit [Read error: Connection reset by peer]
<flux>
it is basically a clone of Objective Caml's Event-module
<flux>
it is still missing wrap_abort (and synchronous message passing)
<flux>
also it might not be high-performing, but if you only have a few channels you are reading from, it shouldn't be a big problem..
<flux>
also I'm thinking I could cancel-proof it by reinserting the already-retrieved element back into the queue..
malc_ has quit [Quit: leaving]
<flux>
infact it might already be cancel-proof
BiDOrD has quit [Ping timeout: 252 seconds]
BiDOrD has joined #ocaml
Pepe__ has joined #ocaml
ikaros has joined #ocaml
boscop has joined #ocaml
init1 has quit [Quit: Quitte]
init1 has joined #ocaml
DimitryKakadu has joined #ocaml
ygrek has joined #ocaml
oriba has joined #ocaml
yezariaely has joined #ocaml
<yezariaely>
thelema: thx for your answers from two days ago
<yezariaely>
concerning my questions (typeof, nested matches and stuff)
oriba_ has joined #ocaml
oriba_ has quit [Client Quit]
oriba has quit [Ping timeout: 252 seconds]
Yoric has quit [Quit: Yoric]
willb has quit [Ping timeout: 252 seconds]
coucou747 has quit [Quit: 0x2a]
ulfdoz has quit [Quit: kernel update]
coucou747 has joined #ocaml
ulfdoz has joined #ocaml
Axsuul has quit [Ping timeout: 250 seconds]
<adrien>
diml: sorry to bug you directly but you should be able to fix it quite easily: ocsigen/lwt's documentation mentions "Lwt.select" in Lwt_unix(.html), shouldn't it be renamed to Lwt.pick?
avsm has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
joewilliams_away is now known as joewilliams
_unK has joined #ocaml
avsm has quit [Quit: Leaving.]
ulfdoz has joined #ocaml
avsm has joined #ocaml
joewilliams is now known as joewilliams_away
ccasin has joined #ocaml
joewilliams_away is now known as joewilliams
boscop has quit [Ping timeout: 252 seconds]
Yoric has joined #ocaml
avsm has quit [Quit: Leaving.]
boscop has joined #ocaml
avsm has joined #ocaml
avsm has quit [Quit: Leaving.]
<yezariaely>
can I somehow get the returnvalue of the function I called in debugging mode?
mjonsson has joined #ocaml
joewilliams is now known as joewilliams_away
jakedouglas has joined #ocaml
<sgnb>
yezariaely: sth like p* ?
<yezariaely>
sgnb: wonderfull. thx!
jakedouglas has quit [Quit: Leaving.]
joewilliams_away is now known as joewilliams
avsm has joined #ocaml
joewilliams is now known as joewilliams_away
Axsuul has joined #ocaml
joewilliams_away is now known as joewilliams
joewilliams has quit [Excess Flood]
joewilliams has joined #ocaml
joewilliams is now known as joewilliams_away
avsm has quit [Quit: Leaving.]
mjonsson has quit [Remote host closed the connection]
avsm has joined #ocaml
_unK has quit [Remote host closed the connection]
DimitryKakadu has quit [Ping timeout: 272 seconds]
ulfdoz has quit [Ping timeout: 264 seconds]
coucou747 has quit [Quit: 0x2a]
coucou747 has joined #ocaml
junis has joined #ocaml
<junis>
greetings ... does someone here use vim to write ocaml
<yezariaely>
junis: I used it, but at the moment I use ocaide
<adrien>
several people, why?
<junis>
i installed omlet ... now how do i enable it
<dark>
Can someone help me with tuareg-mode? I want to disable linum-mode on it, but (add-hook 'tuareg-interactive-mode-hook (lambda () (linum-mode 0))) is not working (documentation mentions it..)
lpereira has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
<yezariaely>
any users of oUnit here? Can I somehow print the actual values which caused the problem if an assertion fails?
<yezariaely>
s.th. like
<yezariaely>
OUnit: not equal. Should be "xyz" but is "zyx" would be fine
<hcarty>
gildor: Would you accept a patch against ocamlmpi to make the "make" targets a little more GODI-friendly?
<hcarty>
gildor: The changes would be renaming a few targets, and not building the native code target by default.
<hcarty>
gildor: I just submitted a patch to add findlib support to ocamlmpi (META file, "make install" uses ocamlfind)
<diml>
adrien: yes, the doc has been fixed in the development version but the website has not yet been updated
<hcarty>
Those vim support files are updated more often, but they don't provide quit as nice indentation or folding support
<gildor>
yezariaely: there is a a ~printer in assert_equal
<gildor>
hcarty: I will of course accept a patch against ocamlmpi, but I will probably port it to OASIS as well, so basically the makefile target will change as well
<gildor>
hcarty, junis: my blog post is not really a patch, more an ugly workaround to the most common bug in omlet
<yezariaely>
gildor: thx, I missed that in the docs
<gildor>
yezariaely: no pb, I am preparing to release a new version of OUnit
<gildor>
(1.0.4)
<yezariaely>
cool :)
<yezariaely>
I am really looking foward to it
<gildor>
there won't be a lot of changes
<gildor>
add a ~diff to assert_equal
<yezariaely>
gildor: whats that for?
<gildor>
allow to pass Arg.specs to run_test_tt_main
<adrien>
diml: ok, good :-)
<gildor>
the ~diff -> when you have two sets to compare it is better to said diff: +"a", -"z" rather than expected "a,b,c,d,....,y" got "b,c,d...,z"
<gildor>
it is esp. useful when you compare two files
<gildor>
and when you have a diff you print the expected/got text using an ellipsis
<yezariaely>
gildor: sounds good, you might want to put a nice example into the tar.gz for that feature? ;)
<gildor>
yezariaely: even directly into the documentation
<yezariaely>
even better! ;)
strlen has joined #ocaml
dark has quit [Ping timeout: 264 seconds]
joewilliams_away is now known as joewilliams
Yoric has quit [Quit: Yoric]
<hcarty>
gildor: Thank you for considering the patches. I fully understand that oasis will negate some of these changes - and I'm looking forward to it :-)
jakedouglas has joined #ocaml
Smerdyakov has joined #ocaml
dark has joined #ocaml
<gildor>
hcarty: why do you need to separate opt/byte building ?
<gildor>
^^^ for ocamlmpi
joewilliams is now known as joewilliams_away
<hcarty>
gildor: It's not needed, but it is recommended for GODI's packaging
<hcarty>
If you'd rather not add that it's not a problem. I can have GODI apply a patch if it's required.
Yoric has joined #ocaml
<gildor>
hcarty: oasis basically compile the native version if ocamlopt is available
avsm has joined #ocaml
<gildor>
hcarty: and if it is defined this way in _oasis file
<gildor>
e.g. ocaml setup.ml -build will build native/opt if available
<gildor>
is it ok for GODI, or will it cause problem
<dark>
module G = struct include Set.Make (..) let .. end
<dark>
this pattern is making the module system more enjoyable to me
<gildor>
hcarty: ok I browse your patch, OASIS can handle almost everything (at least compiling native and installing it)
<hcarty>
gildor: That's wonderful news! As long as the end result is accessible with ocamlfind I'm happy.
<gildor>
hcarty: OASIS generates a META file on its own and use ocamlfind for everything
ygrek has quit [Ping timeout: 245 seconds]
yezariaely has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
sepp2k has joined #ocaml
<dark>
I want a text format to store and read a data structure. I'm thinking about yaml or json or even s-expressions, .. what already has a good ocaml library?
<dark>
or rather what do you use / would use
<hcarty>
dark: There are libraries for json and s-e