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]
<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 :-)
<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]