flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.00.1 http://bit.ly/UHeZyT | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
smerz_ has quit [Ping timeout: 264 seconds]
ollehar has quit [Ping timeout: 255 seconds]
ollehar has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
Nahra has joined #ocaml
eikke has quit [Ping timeout: 245 seconds]
arj1 has joined #ocaml
Trollkastel has joined #ocaml
pkrnj has joined #ocaml
gildor has quit [Quit: leaving]
ollehar has quit [Ping timeout: 264 seconds]
groovy2shoes has quit [Quit: groovy2shoes]
ollehar has joined #ocaml
talzeus has joined #ocaml
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
gustav has quit [Quit: leaving]
chrisdotcode has joined #ocaml
arj1 has quit [K-Lined]
ollehar has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
cdidd has joined #ocaml
ggole has joined #ocaml
walter|r has joined #ocaml
walter has quit [Ping timeout: 264 seconds]
UncleVasya has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
Yoric has joined #ocaml
Trollkastel has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
ttamttam has joined #ocaml
zpe has joined #ocaml
<adrien> morning
<orbitz> morn adrien
zpe has quit [Ping timeout: 256 seconds]
tikhonjelvis has joined #ocaml
ontologiae has joined #ocaml
awm22 has quit [Quit: Leaving.]
zpe has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
asmanur has quit [Ping timeout: 272 seconds]
asmanur has joined #ocaml
djcoin has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
zpe has quit [Ping timeout: 245 seconds]
ulfdoz has joined #ocaml
chambart has joined #ocaml
mika1 has joined #ocaml
cago has joined #ocaml
<pippijn> ousado: was it you who wanted the pack/unpack code?
<pippijn> ousado: if so, it's at github/pippijn/pa_unpack
<pippijn> ousado: note that I haven't implemented pack, at all, for a lack of need
<pippijn> ousado: but I will :)
<pippijn> ousado: but I don't know when :/
<pippijn> ousado: it's trivial, though..
<pippijn> ousado: the whole module is trivial
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
<adrien_oww> what does it do?
zpe has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
Yoric has quit [Ping timeout: 264 seconds]
hkBst has joined #ocaml
hkBst has quit [Read error: Connection reset by peer]
hkBst has joined #ocaml
thomasga has joined #ocaml
<invariant> I have strace main.native 2>&1 but a binary which I am calling does not show up in the output. Is there something special I need to be doing?
ontologiae has joined #ocaml
<invariant> Is there some way to automatically start a debugger run a debugger when it throws an exception for example?
ocp has joined #ocaml
<adrien_oww> strace -tt -f -o log
<adrien_oww> you're missing the -f to follow children (forks actually)
<adrien_oww> and -o log because otherwise you get output to terminal which floods and mixes with your own stdout and stderr
<adrien_oww> plus your favorite editor can probably provide syntax highlighting (:set ft=strace in vim)
<pippijn> adrien_oww: perl pack/unpack
<pippijn> adrien_oww: get values out of binary strings
<pippijn> adrien_oww: in the most unreadable way :)
<companion_cube> every day I find myself thinking "ocaml is so powerful to write algorithms"
<pippijn> adrien_oww: of course, I prefer to call that "expressive"
<adrien_oww> ah, ok; I think I see what it does
<adrien_oww> I had the -for-pack stuff in mind
<pippijn> ok
tikhonjelvis has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<invariant> In OASIS we have CompiledObject: Define the compilation type of the section: byte, native or best. I would like to build multiple targets. Is that possible too?
UncleVasya has quit [Ping timeout: 252 seconds]
<adrien_oww> you can try "both" but I don't know if it applies to executables
<adrien_oww> iirc
zpe has joined #ocaml
<invariant> It doesn't.
Kakadu has joined #ocaml
RagingDave has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
<adrien_oww> but how would you name the binaries?
anderse has joined #ocaml
eikke has joined #ocaml
<invariant> adrien_oww, main.byte and main.native?
<adrien_oww> I don't remember at all but doesn't it rename the installed executable "main"?
<adrien_oww> i.e. it strips the suffix
anderse has quit [Quit: anderse]
ontologiae has quit [Ping timeout: 248 seconds]
jbrown has joined #ocaml
<invariant> adrien_oww, I created a workaround that fits my needs.
<invariant> The debugger does say now: No source for Lwt.
<invariant> I installed Lwt via opam. How do I get everything installed such that the debugger doesn't complain?
chambart has quit [Ping timeout: 256 seconds]
<Kakadu> Guys, If I ahve installed merlin from source, what should I do to enable it for vim? I have seen README but I still don't understand. SHould I mention merlin.vim in my .vimrc?
<invariant> How to configure opam such that it stores all the source code for everything it builds?
Yoric has joined #ocaml
awm22 has joined #ocaml
<def-lkb> Kakadu: do you pathogen or vundle or just plain vim ?
<def-lkb> use
<Kakadu> def-lkb: I have no idea what is pathogen or vundle. Probably I don't have anything
zpe has joined #ocaml
<Kakadu> I just wnat to test merlin with vim instead emacs to avoid possible cracking of my emacs config
<Kakadu> def-lkb: should I install these two tools?
<def-lkb> Kakadu: no, you just have to add a line to your .vimrc
<def-lkb> set rtp+=<path/to/merlin/vim>
<def-lkb> the path on my system being: /home/def/.opam/4.00.1+tk86/share/ocamlmerlin/vim
<def-lkb> Kakadu: you're right, the emacs mode has severe limitations at the time, sorry, we hope to push a bugfix soon :/
ontologiae has joined #ocaml
<def-lkb> Kakadu: though it won't break your emacs config, just not really useful
zpe has quit [Ping timeout: 256 seconds]
<Kakadu> heh, :ML moduleName works
<def-lkb> with default config, omnicompletion is bound to C-x C-o
beckerb has joined #ocaml
hkBst has quit [Ping timeout: 255 seconds]
hkBst_ has joined #ocaml
<Kakadu> should C-x C-o move cursor?
<Kakadu> Does omnicompletion available in vim out-of-box?
<def-lkb> yes, if you are in insert mode
<def-lkb> (at least, in vim >7)
<Kakadu> hm, it seems it is not enabled
<Kakadu> should It work in terminal emulator (like konsole) or I should use vimGtk or something?
<def-lkb> it should work in a terminal emulator. Try the following step:
<def-lkb> open an ml file with :e <path>
<def-lkb> switch to insert mode with i then type <C-x><C-o>
<Kakadu> nice, It shows available values in opened modules
<Kakadu> Can it draw in this list local let-bindings? function arguments?
<def-lkb> if the heuristic succeed yes
<def-lkb> type definitions and module-scoped let are caught 99% of the time
<Kakadu> maybe it will be better to start testing on toy program, not a real code ....
<def-lkb> I use it day-to-day with success on ocaml compiler source code :)
<Kakadu> Also, color of omnicompletion list is defined somewhere in omnicompleteion config files or merlin's?
<def-lkb> local-let and function arguments are caught if local definition is syntactically correct, with some error recovery heuristic
<Kakadu> (it is relly confusing of terminal background color is black and selected item in list is black too)
hkBst_ has quit [Remote host closed the connection]
<def-lkb> (error support is much improved in experimental branch)
hkBst_ has joined #ocaml
<def-lkb> this is a vim setting, try :colorscheme
<def-lkb> :colorscheme desert is not too bad, though default colorschemes are not really beautiful.
<def-lkb> next step would be to follow a vim tutorial :). also if you plan to try merlin on real code, you'll have to put a .merlin file in your project
<def-lkb> (this is needed to find other source files, to complete using cmi files and use findlib packages)
<Kakadu> it seems that selected item in omni-list is black all time. This doesn't depends on vim's colorscheme
<def-lkb> failure to recognize terminfo ? try :set t_Co=256
<Kakadu> heh, it's better :)
zpe has joined #ocaml
bitbckt has quit [Quit: out]
bitbckt has joined #ocaml
<def-lkb> good :) (if you find cases where you think the heuristic should work, don't hesitate to report)
zpe has quit [Ping timeout: 252 seconds]
yacks has quit [Read error: Operation timed out]
bitbckt has quit [Quit: out]
bitbckt has joined #ocaml
zpe has joined #ocaml
UncleVasya has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
zpe has joined #ocaml
malo has joined #ocaml
yacks has joined #ocaml
ontologiae has quit [Ping timeout: 256 seconds]
yacks has quit [Ping timeout: 260 seconds]
<ousado> pippijn: yes, that was me :)
<ousado> pippijn: great
Tobu has quit [Ping timeout: 256 seconds]
Tobu has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
Kakadu has quit [Quit: Page closed]
Kakadu has joined #ocaml
eikke has quit [Read error: Operation timed out]
othiym23 has quit [Ping timeout: 252 seconds]
othiym23 has joined #ocaml
yacks has joined #ocaml
_andre has joined #ocaml
eikke has joined #ocaml
mika1 has quit [Quit: Leaving.]
cago1 has joined #ocaml
cago has quit [Ping timeout: 256 seconds]
groovy2shoes has joined #ocaml
cago1 has quit [Ping timeout: 252 seconds]
ttamttam has quit [Ping timeout: 245 seconds]
hkBst_ has quit [Remote host closed the connection]
hkBst_ has joined #ocaml
hkBst_ has quit [Changing host]
hkBst_ has joined #ocaml
Neros has quit [Ping timeout: 258 seconds]
delamarche has joined #ocaml
delamarche is now known as Debo
ttamttam has joined #ocaml
Debo has left #ocaml []
gnuvince has quit [Ping timeout: 252 seconds]
hkBst_ has quit [Ping timeout: 256 seconds]
hkBst__ has joined #ocaml
wwilly has joined #ocaml
<wwilly> bonjour
ocp has quit [Read error: Operation timed out]
groovy2shoes has quit [Quit: groovy2shoes]
mcclurmc has joined #ocaml
<Kakadu> wwilly: hey
ontologiae has joined #ocaml
smondet has joined #ocaml
hkBst__ has quit [Remote host closed the connection]
hkBst__ has joined #ocaml
Yoric has quit [Quit: Instantbird 1.4a1pre -- http://www.instantbird.com]
Yoric has joined #ocaml
eikke has quit [Ping timeout: 245 seconds]
eikke has joined #ocaml
hkBst__ has quit [Read error: Connection reset by peer]
hkBst__ has joined #ocaml
darkf has quit [Quit: Leaving]
q66 has joined #ocaml
stomp has joined #ocaml
barbapapa has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
hkBst__ has quit [Ping timeout: 276 seconds]
ocp has joined #ocaml
cago has joined #ocaml
mcclurmc has joined #ocaml
cago has quit [Read error: Connection reset by peer]
cago1 has joined #ocaml
hkBst has quit [Remote host closed the connection]
Neros has joined #ocaml
breakds has joined #ocaml
Nahra has quit [Read error: Operation timed out]
hcarty has quit [Ping timeout: 240 seconds]
hcarty has joined #ocaml
mcclurmc has quit [Ping timeout: 252 seconds]
gnuvince has joined #ocaml
gnuvince has quit [Ping timeout: 256 seconds]
eikke has quit [Ping timeout: 268 seconds]
thomasga has quit [Quit: Leaving.]
mrm has joined #ocaml
cago1 has left #ocaml []
<mrm> Hello! Any OCamlBuild experts here? It's been driving me insane for the last couple of hours :-(
mcclurmc has joined #ocaml
ocp has quit [Quit: Leaving.]
tane has joined #ocaml
watermind has joined #ocaml
<tchell> mrm: what's the problem?
<mrm> I'll try to explain. It's kinda tricky :-)
<tchell> http://hastebin.com/ might help :)
<mrm> 1) I have a syntax extension which generates .rose files after preprocessing .ml files.
<mrm> 2) Some modules explicitly depend on those .rose files.
<mrm> So, I need a rule that would recompile the corresponding .ml files to satasfy those dependencies on the corresponding .rose files.
<mrm> Am I being clear? :-)
<mrm> It's tricky.
awm22 has quit [Quit: Leaving.]
<mrm> My last attempt at writing an ocamlbuild rule: http://slexy.org/view/s2FIyNNlNA
<mrm> It doesn't work :-(
mcclurmc has quit [Ping timeout: 264 seconds]
<mrm> For example, if there is an explicit rule like this: dep ["ocaml"; "file:rt_test.ml"] ["rt_type.rose"]
ttamttam has quit [Quit: ttamttam]
<mrm> ... then rt_type.ml must be compiled _before_ rt_test.ml (because compiling rt_test depends on rt_type.rose)
ttamttam has joined #ocaml
Yoric has quit [Ping timeout: 252 seconds]
<mrm> (now digging inside the ocamlbuild sources... _as usual_...) :-(
ttamttam has quit [Client Quit]
srcerer has quit [Read error: Connection reset by peer]
<tchell> mrm: your problem makes sense, but it is fancier than anything I've done with ocamlbuild
oriba has joined #ocaml
<mrm> I use those .rose files to pass semantic information between different invocations of Camlp4 (so an extension which is ran on module A can use the info corresponding to module B).
<mrm> I know: a totally insane scenario in the world of ocaml and camlp4 :-)
<mrm> Yeah, of course.
<mrm> I've seen like... _every_ piece of information which is googleable on ocamlbuild and camlp4 :-)
<mrm> And still have to study the sources from time to time :-(
thomasga has joined #ocaml
smango has quit [Read error: Operation timed out]
jamii has joined #ocaml
smango has joined #ocaml
ocp has joined #ocaml
zpe has quit [Remote host closed the connection]
Kakadu has quit [Quit: Page closed]
flx_ has joined #ocaml
gustav has joined #ocaml
flux has quit [Ping timeout: 245 seconds]
flx_ is now known as flux
srcerer has joined #ocaml
beckerb has quit [Ping timeout: 264 seconds]
barbapapa has quit [Remote host closed the connection]
Jenza has quit [Ping timeout: 258 seconds]
zpe has joined #ocaml
Jenza has joined #ocaml
breakds has quit [Quit: Konversation terminated!]
mcclurmc has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
ttamttam has joined #ocaml
tianon has quit [Ping timeout: 264 seconds]
tianon has joined #ocaml
AdmWiggin has joined #ocaml
gnuvince has joined #ocaml
pkrnj has joined #ocaml
tianon has quit [Ping timeout: 276 seconds]
tane has quit [Quit: Verlassend]
ttamttam has quit [Quit: ttamttam]
UncleVasya has quit [Read error: Connection reset by peer]
ocp has quit [Ping timeout: 252 seconds]
zpe has joined #ocaml
UncleVasya has joined #ocaml
Kakadu has joined #ocaml
mattrepl has quit [Quit: mattrepl]
jamii has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 272 seconds]
mrm has quit [Ping timeout: 272 seconds]
mk270 has joined #ocaml
<mk270> is there a good lwt postgres library for ocaml?
AdmWiggin is now known as tianon
tianon has quit [Quit: "I'm a very important man. I've got a tower!"]
tianon has joined #ocaml
<orbitz> mk270: there is only one isn't there?
<orbitz> it is functorized over any monadic interface
<mk270> orbitz: sorry, i don't understand
<orbitz> mk270: there is only 1 pgsql library for ocaml AFAIK, andit works on anything with a monadic interface, AFAIK
<mk270> it sounds like i was asking the wrong question, but that i don't know what i don't know to ask the right question
<mk270> i count three libraries on library for ocaml AFAIK, andit works on anything with a monadic interface,
<mk270> sorry
<mk270> paste error
<mk270> there are three - pgocaml
<mk270> postgresql-ocaml
<mk270> and postgres
<mk270> which one of those did you mean?
<orbitz> pgocaml works on anything monadic I think
<orbitz> see ocamlmq by mfp
<mk270> ok
<orbitz> it has a postgres examlple
<mk270> i hadn't initially associated "mondaic" with lwt
<mk270> monadic, even
<orbitz> lwt is a monadic
<mk270> so i can use pgocaml with lwt, right?
<orbitz> is a monad
<orbitz> mk270: yes
<mk270> orbitz: yes, i dunerstand that lwt is monadic, but it took me a while to remember it counts as a member of that class
<mk270> thanks, btw
zpe has joined #ocaml
zpe has quit [Ping timeout: 258 seconds]
Yoric has joined #ocaml
malo has quit [Quit: Leaving]
trep has joined #ocaml
mrm has joined #ocaml
sysopfb has quit [Ping timeout: 256 seconds]
ggole has quit []
zpe has joined #ocaml
ttamttam has joined #ocaml
bholst has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bholst has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
ttamttam has quit [Remote host closed the connection]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
<wmeyer> hi
<wmeyer> these are rules to build from %.byte file %.js file
<mrm> wmeyer: Hi, Wojciech :-)
<mrm> Thanks a lot! Will try to figure it out now.
<wmeyer> mrm: you are welcome
mattrepl has joined #ocaml
wmeyer has left #ocaml []
<mrm> wmeyer: in your case, you call the js_of_ocaml binary (which produces the required .cmo). In my case, I need to build the module using either ocamlc or ocamlopt, taking into account all the necessary dependencies :-)
<mrm> There is the Ocaml_compiler module in OCamlBuild which exposes several functions, which might be useful in my case (like Ocaml_compiler.native_compile_ocaml_implem). Unfortunately it is not exposed in the Ocamlbuild_plugin :-(
<mrm> *-the
zpe has joined #ocaml
zpe has quit [Ping timeout: 258 seconds]
pkrnj has quit [Ping timeout: 268 seconds]
eni has joined #ocaml
jbrown has quit [Read error: Operation timed out]
jbrown has joined #ocaml
UncleVasya has quit [Ping timeout: 252 seconds]
smerz_ has joined #ocaml
oriba has quit [Quit: oriba]
gildor has joined #ocaml
mcclurmc has quit [Ping timeout: 272 seconds]
zpe has joined #ocaml
mk270 has left #ocaml []
zpe has quit [Ping timeout: 256 seconds]
Anarchos has joined #ocaml
mattrepl has quit [Quit: mattrepl]
zpe has joined #ocaml
thomasga has quit [Ping timeout: 276 seconds]
milosn_ has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
milosn has quit [Ping timeout: 272 seconds]
breakds has joined #ocaml
_andre has quit [Quit: leaving]
pkrnj has joined #ocaml
eni has quit [Quit: Leaving]
darkf has joined #ocaml
thomasga has joined #ocaml
zpe has joined #ocaml
emmanuelux has joined #ocaml
awm22 has joined #ocaml
ttamttam has joined #ocaml
Kakadu has quit [Ping timeout: 256 seconds]
ttamttam has left #ocaml []
zpe has quit [Ping timeout: 258 seconds]
ontologiae has quit [Ping timeout: 268 seconds]
ulfdoz has quit [Ping timeout: 252 seconds]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Nahra has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.9.2]
Yoric has quit [Ping timeout: 252 seconds]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
zpe has joined #ocaml
RagingDave has quit [Quit: Ex-Chat]
zpe has quit [Ping timeout: 256 seconds]
thomasga has quit [Quit: Leaving.]
emmanuelux has quit [Quit: emmanuelux]
zpe has joined #ocaml
areece is now known as areece_
areece_ is now known as areece
zpe has quit [Ping timeout: 258 seconds]
smondet has quit [Ping timeout: 240 seconds]
smerz_ has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
mrm has quit [Ping timeout: 260 seconds]
groovy2shoes has joined #ocaml
ontologiae has joined #ocaml
q66 has quit [Remote host closed the connection]
PM has quit [Ping timeout: 246 seconds]
|jbrown| has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 256 seconds]
tikhonjelvis has joined #ocaml
PM has joined #ocaml
cdidd has quit [Remote host closed the connection]
walter|r has quit [Quit: This computer has gone to sleep]