flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.01.0 http://bit.ly/1851A3R | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
pango has quit [Ping timeout: 256 seconds]
dsheets has quit [Ping timeout: 245 seconds]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
Drup has quit [Quit: Leaving.]
watermind has quit [Quit: Konversation terminated!]
nikki93 has quit [Remote host closed the connection]
MitoticSpindle has quit [Ping timeout: 240 seconds]
lamawithonel_ has joined #ocaml
ollehar has joined #ocaml
demonimin has quit [Ping timeout: 246 seconds]
talzeus has quit [Ping timeout: 272 seconds]
talzeus has joined #ocaml
talzeus has quit [Ping timeout: 248 seconds]
nikki93 has joined #ocaml
jpdeplaix has quit [Ping timeout: 245 seconds]
talzeus has joined #ocaml
talzeus has quit [Read error: Connection reset by peer]
talzeus has joined #ocaml
jpdeplaix has joined #ocaml
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
talzeus__ has joined #ocaml
talzeus has quit [Ping timeout: 245 seconds]
nikki93 has quit [Remote host closed the connection]
talzeus__ has quit [Remote host closed the connection]
talzeus has joined #ocaml
weie has joined #ocaml
talzeus has quit [Ping timeout: 260 seconds]
nikki93 has joined #ocaml
ollehar has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 260 seconds]
nikki93 has quit [Remote host closed the connection]
cesar_ has joined #ocaml
cesar_ is now known as Guest30130
nikki93 has joined #ocaml
breakds has joined #ocaml
<jyeo> i wanna use two syntax extensions in my program. how do I specify it in the _tags file?
ollehar has joined #ocaml
talzeus has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
talzeus has quit [Read error: Connection reset by peer]
talzeus has joined #ocaml
breakds has quit [Remote host closed the connection]
lamawithonel_ has quit [Read error: Connection reset by peer]
lamawithonel_ has joined #ocaml
nisstyre has joined #ocaml
nikki93 has quit [Remote host closed the connection]
ygrek has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Remote host closed the connection]
ollehar has quit [Ping timeout: 246 seconds]
ollehar has joined #ocaml
ggole has joined #ocaml
caseyjames has joined #ocaml
MitoticSpindle has joined #ocaml
zxqdms has joined #ocaml
yacks has quit [Quit: Leaving]
pango_ has quit [Ping timeout: 240 seconds]
zacts has joined #ocaml
ggole_ has joined #ocaml
ggole has quit [Ping timeout: 240 seconds]
ggole_ is now known as ggole
pango has joined #ocaml
nikki93 has joined #ocaml
<adrien> morning
<adrien> pippijn: pong :P
ygrek has quit [Ping timeout: 272 seconds]
ttamttam has joined #ocaml
Neros has quit [Ping timeout: 240 seconds]
ollehar has quit [Ping timeout: 246 seconds]
Guest30130 has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
yezariaely has joined #ocaml
derek_c has joined #ocaml
gour has joined #ocaml
cesar_ has joined #ocaml
cesar_ is now known as Guest40084
zpe has quit [Ping timeout: 260 seconds]
ollehar has joined #ocaml
ontologiae_ has joined #ocaml
quotemstr has joined #ocaml
derek_c has quit [Quit: leaving]
madroach has joined #ocaml
ygrek has joined #ocaml
MitoticSpindle has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<gour> wmeyer: morning...i'm awake now
djcoin_ has joined #ocaml
Guest40084 has quit [Remote host closed the connection]
ontologiae_ has quit [Ping timeout: 260 seconds]
Yoric has joined #ocaml
mika1 has joined #ocaml
cago has joined #ocaml
<kerneis> jyeo: are your syntax extensions packaged with ocamlfind?
<jyeo> kerneis: yes
<kerneis> <**/*.ml>: package(name.syntaxfoo)
<kerneis> check the META file for the value of name.syntaxfoo
<jyeo> I am doing this:
<jyeo> <test_pa_debug.*>: pkg_deriving-ocsigen.syntax, pkg_pa_debug_lib.syntax, syntax(camlp4o), use_str
<jyeo> but it fails at the preprocessing step
<jyeo> I have to rearrange the arguments to camlp4 on command line to make it work
<jyeo> is there a way to specify the order of how the arguments appear on the command line using _tags?
<kerneis> I didn't know the pkg_foo syntax (instead of pkg(foo)) but I assume it doesn't change anything
Simn has joined #ocaml
<kerneis> but I have no clue here
<companion_cube> I think package(foo) is the ocamlfind syntax, and pkg_foo isn't
<kerneis> could you post _build/_log on pastebin?
hardliner_ has joined #ocaml
<kerneis> oh, you use the generic plugin provided here: http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild ?
ontologiae_ has joined #ocaml
<pippijn> hi
<pippijn> adrien: good morning
zpe has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
<adrien_oww> o/
<companion_cube> \o
<pippijn> adrien_oww: pm?
<adrien_oww> sure
zxqdms has quit [Quit: leaving]
weie has quit [Quit: Leaving...]
troydm has quit [Ping timeout: 264 seconds]
steshaw has quit [Ping timeout: 265 seconds]
weie has joined #ocaml
superbos has joined #ocaml
weie_ has joined #ocaml
weie has quit [Ping timeout: 240 seconds]
Neros has joined #ocaml
yezariaely has quit [Ping timeout: 246 seconds]
ontologiae has joined #ocaml
mort___ has joined #ocaml
Kakadu has joined #ocaml
ontologiae_ has quit [Read error: Connection reset by peer]
superbos has left #ocaml []
AltGr has joined #ocaml
ocp has joined #ocaml
demonimin has joined #ocaml
mfp has joined #ocaml
Kakadu has quit [Remote host closed the connection]
Kakadu has joined #ocaml
weie has joined #ocaml
weie__ has joined #ocaml
weie_ has quit [Ping timeout: 246 seconds]
weie has quit [Ping timeout: 248 seconds]
Yoric has quit [Ping timeout: 260 seconds]
cago has quit [Quit: Leaving.]
cago1 has joined #ocaml
thomasga has joined #ocaml
wolfnn has joined #ocaml
malo has joined #ocaml
dsheets has joined #ocaml
yacks has joined #ocaml
Drup has joined #ocaml
nikki93 has quit [Remote host closed the connection]
ggole has quit [Ping timeout: 240 seconds]
darkf has quit [Quit: Leaving]
steshaw has joined #ocaml
sepp2k has joined #ocaml
Yoric has joined #ocaml
ggole has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
ontologiae has quit [Read error: Connection reset by peer]
ontologiae has joined #ocaml
Neros has quit [Ping timeout: 245 seconds]
wolfnn has quit [Remote host closed the connection]
yezariaely has joined #ocaml
talzeus has quit [Remote host closed the connection]
Neros has joined #ocaml
talzeus has joined #ocaml
nikki93 has joined #ocaml
steshaw has quit [Ping timeout: 272 seconds]
_andre has joined #ocaml
talzeus has quit [Ping timeout: 260 seconds]
nikki93 has quit [Ping timeout: 252 seconds]
yacks has quit [Quit: Leaving]
MoHaX has joined #ocaml
breakds has joined #ocaml
MoHaX has quit [Client Quit]
thomasga has quit [Read error: Operation timed out]
thomasga has joined #ocaml
breakds has quit [Remote host closed the connection]
troydm has joined #ocaml
watermind has joined #ocaml
enstrophy has joined #ocaml
breakds has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
breakds has quit [Remote host closed the connection]
cago1 has quit [Quit: Leaving.]
cago has joined #ocaml
cago1 has joined #ocaml
cago has quit [Read error: Connection reset by peer]
talzeus has joined #ocaml
cago1 has quit [Client Quit]
cago has joined #ocaml
demonimin_ has joined #ocaml
thomasga1 has joined #ocaml
thomasga has quit [Read error: Connection reset by peer]
demonimin_ has quit [Remote host closed the connection]
mort___ has quit [Ping timeout: 272 seconds]
demonimin has quit [Ping timeout: 246 seconds]
demonimin has joined #ocaml
avsm has joined #ocaml
mort___ has joined #ocaml
moro_home has quit [Ping timeout: 260 seconds]
w0rm_x has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
moro_home has joined #ocaml
talzeus_ has joined #ocaml
q66 has joined #ocaml
talzeus has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
thomasga1 has quit [Ping timeout: 246 seconds]
thomasga has joined #ocaml
Drup1 has joined #ocaml
Drup has quit [Ping timeout: 252 seconds]
talzeus_ has quit [Remote host closed the connection]
troydm has quit [Quit: What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset]
troydm has joined #ocaml
<yezariaely> can anyone recommend a good xml library? I only need simple parsing
<yezariaely> nothing fancy.
<yezariaely> just reading a xml containing a list of simple elements.
Neros has quit [Ping timeout: 245 seconds]
<adrien_oww> Xmlm, pxp (but it's more complex)
<adrien_oww> avoid xml-light
<yezariaely> ok, thx.
<Kakadu> tyxml
<adrien_oww> it does reading too?
<Drup1> not tyxml, no
Drup1 is now known as Drup
<Drup> yes it does reading, but badly and it's overkill just to do that
thomasga has quit [Quit: Leaving.]
tianon has quit [Ping timeout: 245 seconds]
Neros has joined #ocaml
tianon has joined #ocaml
enstrophy has quit [Ping timeout: 250 seconds]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
rand000 has joined #ocaml
qzmp has joined #ocaml
quelu has quit [Ping timeout: 265 seconds]
quelu has joined #ocaml
rand000 has quit [Ping timeout: 246 seconds]
cago has left #ocaml []
mika1 has quit [Quit: Leaving.]
rand000 has joined #ocaml
yacks has joined #ocaml
rand000 has quit [Ping timeout: 240 seconds]
thelema has joined #ocaml
thelema_ has quit [Read error: Operation timed out]
rand000 has joined #ocaml
enstrophy has joined #ocaml
rand000 has quit [Ping timeout: 252 seconds]
yezariaely has quit [Ping timeout: 256 seconds]
yezariaely has joined #ocaml
AltGr has left #ocaml []
ollehar1 has joined #ocaml
thomasga has joined #ocaml
ollehar has quit [Ping timeout: 260 seconds]
thelema has quit [Remote host closed the connection]
ollehar1 has quit [Ping timeout: 245 seconds]
Fullma has joined #ocaml
ollehar has joined #ocaml
thelema has joined #ocaml
Simn has quit [Ping timeout: 246 seconds]
Neros has quit [Remote host closed the connection]
Neros has joined #ocaml
mort___ has quit [Ping timeout: 272 seconds]
ollehar has quit [Read error: Operation timed out]
ollehar has joined #ocaml
Yoric has quit [Ping timeout: 256 seconds]
tane has joined #ocaml
<emias> o
<emias> Ups.
ocp has quit [Ping timeout: 252 seconds]
cesar_ has joined #ocaml
cesar_ is now known as Guest18172
Kakadu has quit []
Kakadu has joined #ocaml
Neros has quit [Ping timeout: 245 seconds]
thomasga has quit [Quit: Leaving.]
Fullma has quit [Read error: Connection reset by peer]
ontologiae has quit [Ping timeout: 265 seconds]
Fullma has joined #ocaml
qzmp has quit [Quit: Page closed]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
shinnya has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
Guest18172 has quit [Remote host closed the connection]
Yoric has joined #ocaml
enstrophy has quit [Quit: Page closed]
nikki93 has joined #ocaml
caseyjames has quit [Ping timeout: 250 seconds]
Arsenik has joined #ocaml
nikki93 has quit [Ping timeout: 272 seconds]
Neros has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
ocp has joined #ocaml
sepp2k has quit [Quit: Konversation terminated!]
djcoin_ has quit [Quit: WeeChat 0.4.1]
hardliner_ has quit [Ping timeout: 272 seconds]
Plainview has joined #ocaml
ttamttam has quit [Quit: ttamttam]
Plainview has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
ocp has quit [Ping timeout: 260 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
tani has joined #ocaml
ontologiae has joined #ocaml
zpe has joined #ocaml
Drup has quit [Ping timeout: 248 seconds]
yezariaely has quit [Ping timeout: 265 seconds]
Arsenik has quit [Ping timeout: 260 seconds]
tane has quit [Ping timeout: 246 seconds]
avsm has quit [Ping timeout: 272 seconds]
zpe has quit [Ping timeout: 260 seconds]
dsheets has quit [Ping timeout: 246 seconds]
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 245 seconds]
Kakadu has quit []
madroach has quit [Ping timeout: 264 seconds]
Simn has joined #ocaml
madroach has joined #ocaml
ocp has joined #ocaml
oriba has joined #ocaml
ontologiae has quit [Ping timeout: 268 seconds]
ocp has quit [Ping timeout: 245 seconds]
ygrek has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Quit: Leaving.]
oriba has quit [Quit: oriba]
shinnya has quit [Ping timeout: 272 seconds]
mcclurmc has joined #ocaml
q66 has quit [Ping timeout: 256 seconds]
avsm has joined #ocaml
caseyjames has joined #ocaml
<caseyjames> Hi, does the basic file read/write example give anyone else an error? http://ocaml.org/tutorials/file_manipulation.html
watermind has joined #ocaml
<watermind> still having a few issues working with multiple files
<watermind> so I've set up the project structure in merlin and it works
weie__ has quit [Quit: Leaving...]
<watermind> although if I recompile a dependency to the file I'm using I need to refresh merlin
<watermind> that got me stuck for a while
<watermind> anyway it works
<watermind> compiling also works
<watermind> but in utop I still cannot interpret files with dependencies
<watermind> I've compiled the dependency, loaded the respective cmo file, and still get an unbound module error
<watermind> am I missing some step
<watermind> ?
dsheets has joined #ocaml
dsheets has quit [Remote host closed the connection]
dsheets_ has joined #ocaml
<caseyjames> How can I go about writing to a file?
<ggole> let f = open_out "foo" in output_string "words"; close_out f
<watermind> caseyjames: https://realworldocaml.org/beta3/en/html/imperative-programming-1.html they have a good section on it
<ggole> Er, there should be an 'f' between output_string and "words", of course.
avsm has quit [Quit: Leaving.]
zacts has joined #ocaml
<watermind> ggole: that really was confusing me :P
malo has quit [Quit: Leaving]
<caseyjames> The real world ocaml exmaple worked, thanks for that. ggole, when I run yours, with the f, I get this error that I'm getting with all other file write examples I've found, is it a core thing? Error: This expression has type out_channel but an expression was expected of type [ `Deprecated_use_out_channel ] #
<ggole> Yeah, that's a core thing
<watermind> caseyjames: there was an f missing, see ggole's comment just above
<caseyjames> yes i added it -> let f = open_out "foo" in output_string f "words"; close_out f
<watermind> OK so I did the following. 1. compiled a.ml to bytecode, 2. loaded the cmo on utop 3. tried to use b.ml on utop, which requires a module in a.ml
<watermind> shouldn't that ^ work?
qzmp has joined #ocaml
w0rm_x has quit [Ping timeout: 240 seconds]
<watermind> caseyjames: right, Core removes some things, same with == and !=, it'll tell you it's deprecated
<whitequark> ==/!= are deprecated?..
<ggole> Yes, that should work. You might need to fiddle with directories though.
<watermind> whitequark: in core they use some other functions instead of those operators
<ggole> If you are compiling things into _build, say.
<watermind> whitequark: rational being that you may accidentally mistake != for <>
<watermind> 1 !=2;; "Error: This expression has type int but an expression was expected of type [ `Consider_using_phys_equal ]"
<watermind> phys_equal is used instead
<watermind> personally I like it
<qzmp> Hi! I am doing homework, where i need to add item to list, but not on the begining, but on the end, as far as i know the only way to do this is to use "@", but the task says to write as optimal implementation as possible, and i read that adding item on the end of the list is slow, is there anothere way to do this?
<mrvn> qzmp: add them at the front and at the end reverse the result.
<whitequark> watermind: ooooh, that's awesome actually
<whitequark> I used = instead of == so much, and vice versa too, and for != too
<watermind> yeap
<ggole> Yeah, I've had the same experience
<whitequark> (Ruby uses == for equality and .equal? for physical one)
<ggole> Occasionally an infloop from using = instead of ==, too
<qzmp> mrvn: if i can't use reverse, is "@" optimal way to do this? because i think i relly cant use reverse
<ggole> @ is linear in the length of its first argument (the one on the left).
<ggole> So don't go calling it in a loop.
<mrvn> yes. Unless you use Obj.magic. But you can always reverse
Anarchos has joined #ocaml
Kakadu has joined #ocaml
<watermind> wait
mort___ has joined #ocaml
<watermind> so after loading a .cmo can I or cannot I access the respective module?
<watermind> #load "src/a.ml" ;;
<watermind> ops
<watermind> #load "src/a.cmo" ;;
<watermind> now what?
<adrien> cmi must be in search path
<ggole> A.foo some_arg should then work (if your directories are right)
<watermind> adrien: hmmm I see
Yoric has quit [Ping timeout: 268 seconds]
<watermind> so I definitely need to setup an ocaml makefile
<adrien> or use "ocaml -I src"
<watermind> right
* adrien -> bed
<ggole> Or put #directory "src" in .ocamlinit
<watermind> good night, thanks
<watermind> ggole: oh
<ggole> (Keep in mind that will hide the effect of any ~/.ocamlinit)
<watermind> right
avsm has joined #ocaml
asmanur_ has quit [Ping timeout: 260 seconds]
<watermind> so, if I understand, this will give me access only to the exported functions in the interface
<ggole> Yep
<watermind> so how do you usually test during development? keep a temporary interface exporting everything?
<mrvn> watermind: you add unit tests to the modules itself
<ggole> Tests that need access to internals fundamentally need to be within the module in question.
<watermind> mrvn: ggole: right all that makes sense.
stevej has joined #ocaml
avsm has quit [Client Quit]
<watermind> mrvn: ggole: I'm used to, mainly during early development, experiment in the interpreter as I develop though
<ggole> Yep, that's natural
<ggole> I think it's fairly common to leave the .mli until a module is somewhat developed.
<watermind> right
<ggole> So you get easy access to all the bits.
<ggole> Another approach is to load the source of a module into the toplevel directly
<watermind> ggole: that's what I was thinking, but can it be done if there are dependencies?
<ggole> Yes
<ggole> Of course, you have to get all the bits into place.
<watermind> right, for a moment i thought we couldn't load the dependency cmo and than use the dependent file
<ggole> Well, usually you would have the build system create a working toplevel for you, rather than loading .cmos by hand
<ggole> But doing it manually a few times until you understand what's going on is probably a good thing.
madroach has quit [Ping timeout: 264 seconds]
<watermind> ggole: yeap, I just wanted to get a feel for what's happening before I automate the process
caseyjames has quit [Ping timeout: 250 seconds]
nikki93 has joined #ocaml
avsm has joined #ocaml
ggole has quit []
Arsenik has joined #ocaml
wolfnn has joined #ocaml
avsm has quit [Quit: Leaving.]
Yoric has joined #ocaml
darkf has joined #ocaml
avsm has joined #ocaml
<watermind> ok so back to trying to work with two files...
<watermind> so from what I understood I could use 3 approaches: 1. specify the approriate dirs in .ocamlinit, 2. use a flag in the top-level to specify the dirs 3. use the build system to create a working toplevel
stevej has quit [Ping timeout: 268 seconds]
<watermind> 1. is not a good idea, since I'd lose ~/.ocamlinit...
<watermind> 2. I was told -l but no such flag is recognised by ocaml/utop and can't find any other
<rks`> -I
<watermind> 3. I don't fully understand the connection... a build system builds... I can build it by hand... how does that relate to create a working top level
<rks`> not -l, -i (uppercased)
<watermind> oh damn font
Anarchos has quit [Quit: must reboot on win7 to debug epson printer]
<rks`> as for creating a toplevel, wait a sec
<watermind> thanks rks`
<watermind> rks`: thanks you! I was trying to search for it, but was a bit lost with documentation about all sorts of build systems for ocaml
<rks`> :)
stevej has joined #ocaml
_andre has quit [Quit: leaving]
<watermind> using -I did the trick, ocamlmktop for some reason isn't working, it does create the toplevel, but then returns unbound module when trying to open
<watermind> even tried ocamlmktop -o test -I _build/src/ _build/src/arith.cmo
<watermind> in case the -I was still required for it to know about the mli
stevej has quit [Ping timeout: 260 seconds]
ocp has joined #ocaml
q66 has joined #ocaml
maurer has joined #ocaml
nikki93 has quit [Remote host closed the connection]
ohama has quit [Ping timeout: 240 seconds]
<watermind> is omake the de facto standard for building OCaml projects?
<companion_cube> there is no standard, sadly
steshaw has joined #ocaml
<companion_cube> some use ocamlbuild, some other omake, jenga, ocp-build...
<watermind> right
<companion_cube> I'm tending towards oasis+ocamlbuild
<companion_cube> so if some system wins the war, updating to it will take one line ;)
<watermind> :)
<def-lkb> In my view, ocamlbuild is more suited for small projects. omake & jenga for big ones. I never tried ocp-build.
<watermind> I've been using ocamlbuild, but just command line
<companion_cube> I use a small makefile + ocamlbuild, or makefile + oasis -> ocamlbuild
<ocp> I use ocp-build :-)
<companion_cube> oasis is actually pretty neat for medium projects
<companion_cube> ocp: what a surprise :]
<companion_cube> btw, I was wondering whether the DHT code of mldonkey was easy to extract as a library
<ocp> maybe I should write some documentation, it would make using it a bit easier...
<ocp> it used to be
<ocp> oups, 2 discussions clashing
<ocp> documenting ocp-build
<ocp> and the DHT code of mldonkey used to be modular
<def-lkb> Was ocp-build officially announced ?
maurer has left #ocaml []
<def-lkb> (`officially' as in `on the ML' :))
<companion_cube> on the ML donkey?
<ocp> no, of course
<ocp> I am still not completely sure about the description language
<ocp> but the "next" branch in GIT is close to something that could be officially announced
nikki93 has joined #ocaml
<def-lkb> Ok, that's nice to hear. I will wait for some official release
<watermind> if makefile + ocamlbuild is a possibility, does this mean omake + ocamlbuild is also sensible? or am I getting my tools confused here?
<ocp> yes, maybe a christmas gift :-)
<companion_cube> ocp: it used to be modular, and then some evil commit happened? :)
<whitequark> watermind: btw you can just use ocamlbuild without makefiles.
<ocp> no, I just stopped maintaining it 8 years ago
<companion_cube> I see
<ocp> maybe ygrek would know
<companion_cube> I suppose nowadays you would use async/lwt to write the network part, if you were to write it again
<ocp> but writting DHT code in OCaml is quite easy, just need to take an academic paper and write the corresponding code
ohama has joined #ocaml
<watermind> whitequark: right, I understand
<ocp> no, I still prefer mldonkey's socket library
stevej has joined #ocaml
<companion_cube> ocp: was it non-blocking?
<watermind> whitequark: so you'd build a script to run ocamlbuild and to make a toplevel with the appropriate bytecode?
<ocp> I don't like the idea that you can switch to another handler in the middle of a computation
<companion_cube> I find network code is difficult to write in a very different way than symbolic computation code
<ocp> let's say that lwt/async are better for performance, mldonkey's library is nice for writing sequential code
tani has quit [Quit: Verlassend]
<ocp> in the handlers
<ocp> well, also, it is completely non-documented, so you using lwt/async is clearly a better choice !
<watermind> whitequark: I'm just trying to figure out the simplest way of working with small projects, e.g. say 5 or 6 files max... with haskell, I just ghci any file and it loads it in the interpreter, or ghc --make to compile it
<companion_cube> besides, I suppose it was some UDP-based kademlia implementation
<companion_cube> doesn't look easy...
<watermind> whitequark: with ocaml right now I'm "ocamlbuilding it" then running top level, then loading cmo's, than using the file I want to edit
<watermind> whitequark: and everytime I edit a dependency I redo the process
<watermind> I really should move towards automating this
<watermind> but I also don't need an "industrial solution"
stevej has quit [Read error: Connection reset by peer]
qzmp has quit [Quit: Page closed]
wmeyer has left #ocaml []
<whitequark> watermind: oh, you need a toplevel... I never did that, let me look it up
<companion_cube> watermind: so, a .ocamlinit file could'nt do with the "loading cmo and #use" part?
<companion_cube> #directory "foo";; #load "foo.cmo";; #use "bar.cmo";; ...
<whitequark> watermind: looks like you need to make a foo.mltop file, enumerate all the modules you want to build in there, and then just ocamlbuild -use-ocamlfind foo.top
<whitequark> simple enough to not need a makefile at all.
<watermind> whitequark: well it's handy... rks` already showed me how to build a custom toplevel which is handy
<watermind> companion_cube: I guess so, that is a possibility... I have to copy my ~/.ocamlinit for any project of mine, and add on that though (I'm using core) but it is a solution
<watermind> whitequark: right, I was looking at some docs to see how to do it with utop https://github.com/diml/utop/blob/master/README.md
<companion_cube> watermind: I have .ocamlinit in my projects' git repositories
<companion_cube> it's very convenient
<watermind> companion_cube: I see, I may follow that approach then
<companion_cube> watermind: https://github.com/c-cube/logtk/blob/master/.ocamlinit ← an example, with printer installation and open...
<watermind> companion_cube: I thought .oca,linit was meant to just have external dependencies for your project (e.g. packages like core) and not to be edited as you add your own files to the project
<companion_cube> you do what you want with .ocamlinit! :)
<companion_cube> (if you don't, I also suggest you use utop)
Kakadu has quit []
<watermind> companion_cube: that looks nice
<watermind> companion_cube: yes I just started using utop today... that was a big change!
<watermind> merlin and autocomplete made a big difference too
<companion_cube> yeah
<watermind> what is that #install_printer directive, or better yet, where can I find out about them? I looked at https://github.com/diml/utop but couldn't find anything
stevej has joined #ocaml
<companion_cube> it's a standard feature of ocaml
<companion_cube> it installs custom pretty printers for some types
<companion_cube> this type will be printed by your function rather by its generic structure
<watermind> I see
<companion_cube> it accepts function of type Format.formatter -> t -> unit, where t is your type
stevej has quit [Read error: Connection reset by peer]
w0rm_x has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
w0rm_x has quit [Client Quit]
w0rm_x has joined #ocaml
stevej has joined #ocaml
mort___ has quit [Quit: Leaving.]
stevej has quit [Client Quit]
swistak35 has joined #ocaml
stevej has joined #ocaml
gour has quit [Quit: WeeChat 0.4.1]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
Yoric has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
steshaw has quit [Ping timeout: 272 seconds]
watermind has quit [Read error: Connection reset by peer]
watermind has joined #ocaml
Yoric has joined #ocaml
avsm has joined #ocaml
MoHaX has joined #ocaml
manizzle has joined #ocaml
Arsenik has quit [Ping timeout: 245 seconds]
Simn has quit [Read error: Connection reset by peer]
stevej has quit [Quit: Computer has gone to sleep.]
Yoric has quit [Ping timeout: 260 seconds]
manud_ has joined #ocaml
flx_ has joined #ocaml
stevej has joined #ocaml
flx_ is now known as Guest22718
flux has quit [Read error: Connection reset by peer]
Guest22718 is now known as flux
manud has quit [Ping timeout: 245 seconds]
lopex has quit [Ping timeout: 245 seconds]
manud_ is now known as manud
stevej has quit [Client Quit]
stevej has joined #ocaml
stevej has quit [Client Quit]
stevej has joined #ocaml
stevej has quit [Client Quit]
MoHaX has quit [Ping timeout: 272 seconds]
stevej has joined #ocaml
ollehar has quit [Ping timeout: 272 seconds]
stevej has quit [Read error: Connection reset by peer]
MoHaX has joined #ocaml
nikki93 has quit [Remote host closed the connection]
caseyjames has joined #ocaml
<caseyjames> Does anyone have experience with mapping over SELECT results from sqlite3?
MoHaX has quit [Ping timeout: 260 seconds]
ontologiae has joined #ocaml
stevej has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Remote host closed the connection]
MoHaX has joined #ocaml
Drup has joined #ocaml
MoHaX has quit [Ping timeout: 245 seconds]
<dsheets_> Is there an easy way to map between fds and ints in ocaml?
q66 has quit [Quit: Leaving]
mfp has quit [Ping timeout: 248 seconds]
<dsheets_> Unix.file_descr seems too abstract to give one access to the fd int
<dsheets_> but sometimes it is necessary to serialize/deserialize an fd for ipc
steshaw has joined #ocaml
<pippijn> magic
<dsheets_> pippijn, i feared as much
<dsheets_> or, a C binding, I suppose, eh?
nikki93 has joined #ocaml
<Drup> *purple* magic :]
ontologiae has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
<pippijn> dsheets_: Unix.file_descr are just fds on unix
<dsheets_> pippijn, it makes me nervous
<pippijn> yes, it should
avsm has quit [Ping timeout: 268 seconds]
MoHaX has joined #ocaml
stevej has quit [Quit: Computer has gone to sleep.]
ontologiae has joined #ocaml
nikki93 has quit [Remote host closed the connection]
shinnya has joined #ocaml
lopex has joined #ocaml
mcclurmc has quit [Quit: Leaving.]
wolfnn has quit [Ping timeout: 272 seconds]
quotemstr has left #ocaml []
MoHaX has quit [Ping timeout: 272 seconds]
ollehar has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]