mcclurmc has quit [Read error: Connection reset by peer]
mcclurmc_ has joined #ocaml
Drakken has joined #ocaml
<oriba>
rgrinberg, fftw-float-type.c:5:18: fatal error: fftw.h: No such file or directory
<oriba>
looks like the header-files are missing
<oriba>
if on Linux (debian/ubuntu...) maybe install the fftw-dev packages
fantasticsid has joined #ocaml
fantasticsid has left #ocaml []
f[x] has quit [Ping timeout: 244 seconds]
f[x] has joined #ocaml
arubin has quit [Quit: arubin]
larhat has joined #ocaml
dnolen has joined #ocaml
gnuvince has quit [Ping timeout: 252 seconds]
zzz_ has quit [Ping timeout: 252 seconds]
zzz_ has joined #ocaml
emmanuelux has quit [Read error: Operation timed out]
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 244 seconds]
<superbobry>
so, any type-conv users here? can't get it to work -- "... is not a supported type generator"
<tomprince>
superbobry: I don't use type-conv, but you should probably post some more detail, ideally pastebin a small example that demonstrates the issue.
<superbobry>
I wan't to make a minimal working example of type-conv usage. The extension (pa_bson.ml) compiles successfully, but the file using it (world.ml) fails with a weird error -- https://gist.github.com/1388036
<sgnb>
superbobry: did you compare with working type-conv stuff? (e.g. ocaml-data-notation)
<superbobry>
yeah, none of them seem to include any examples nor instructions
<superbobry>
funny thing is, the above example actually compiles, when i do it manually with "camlp4 -I +camlp4 -parser o -parser op -printer o pa_type_conv.cma _build/syntax/pa_bson.cmo examples/world.ml"
<superbobry>
seems like i'm missing some _tags tricks
<sgnb>
pa_bison.ml must be built before computing dependencies of world.ml
<sgnb>
the error message is understandable
<superbobry>
sgnb: it is built before world.ml
<sgnb>
your situation really looks like ocaml-data-notation (with its test suite)... I would have a look there
ankit9 has quit [Quit: Leaving]
reynir has joined #ocaml
dnolen has quit [Quit: dnolen]
hto has quit [Quit: Lost terminal]
Cyanure has joined #ocaml
edwin has joined #ocaml
zzz_ has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
raichoo has joined #ocaml
Cyanure has quit [Read error: Connection reset by peer]
<jessicah>
superbobry: looks like your bson thing isn't getting passed in to ocamlfind, so bson isn't loaded for your camlp4
ankit9 has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
zzz_ has joined #ocaml
thomasga has joined #ocaml
ikaros has joined #ocaml
<superbobry>
jessicah: right, i wonder why is that
<jessicah>
you need to tell ocamlbuild that it's a dependency of world.ml
<jessicah>
kaputt is another example of a project with broken make install target
<jessicah>
=/
<superbobry>
you can comment out test target in _oasis
<superbobry>
kaputt is only needed for tests
<superbobry>
and yeah, it's another example on "why you should try oasis" :)
<jessicah>
it's an example of use `ocamlc -where` to install your stuff
<jessicah>
people overcomplicate things
<superbobry>
if i recall correctly, kaputt issue is different
<superbobry>
it doesn't install kaputt.cmi
<jessicah>
no, kaputt doesn't install in a location where my system ocamlfind knows about
<superbobry>
it has install-findlib target i think
<jessicah>
things in ocaml-land have gotten way out of hand these days
<jessicah>
seriously =/
<superbobry>
:)
<jessicah>
i never had issues like this in the past
<superbobry>
broken makefiles?
<jessicah>
people simply doing stuff weirdly
avsm has quit [Quit: Leaving.]
<jessicah>
inventing systems to fix problems that are b/c of people, not the tools
avsm has joined #ocaml
<jessicah>
causing more problems
<superbobry>
not really, building things in OCaml world is just too comples, all that ocaml{dep,build,c,...} are a bit confusing, esp. for the newcomers
<superbobry>
for me oasis worked perfectly
<superbobry>
until the moment i tried writing a syntax extension :D
<superbobry>
s/comples/complicated/
<jessicah>
ocamlbuild is still somewhat new, but it's not really that hard to use :|
<gildor>
superbobry: what the problem with oasis ?
<jessicah>
my only problem with ocamlbuild was having a .cmx generated with invalid crc
<jessicah>
and only because i have special issues :)
<superbobry>
gildor: i have a syntax extension in my project, and an example using it -- for some reason example fails too build, and the error indicates, that my syntax extension wasn't loaded: https://gist.github.com/1388036
<gildor>
jessicah: oasis use ocamlbuild, so it can do everything ocamlbuild does
<jessicah>
yeah i get that
<gildor>
jessicah: this is not another layer of complexity, but a human-readable description of your project (depends, source repository, META)
<jessicah>
how is it different to/better than GODI and ocamlbuild/findlib?
<gildor>
GODI is a traditional packaging system
<gildor>
jessicah: if you want a package for GODI you have to create a separate set of files that are only GODI related
<jessicah>
if a project comes with oasis support, do i have to use it to build it?
<gildor>
jessicah: whereas _oasis file is made to be useful for dev and for GODI people
<jessicah>
or is it optional?
<gildor>
i.e. you use _oasis when developping your library/software and people at GODI use it for packaging
<gildor>
jessicah: no oasis generates a self contained setup.ml that does everything
<gildor>
(a little bit like autoconf/configure)
zorun has quit [Ping timeout: 276 seconds]
<gildor>
jessicah: as an example, there is oasis2debian that convert an _oasis file into debian/* files
<gildor>
superbobry: maybe adding something like Byte/NativeOpt: --ppopt _build/syntax/pa_bson.cma can do
<gildor>
to Executable hello
<gildor>
superbobry: and don't forget to add "examples/word.ml": syntax_camlp4o to _tags
* gildor
@work
_andre has joined #ocaml
<superbobry>
hm, this seems to work, when executed manuall (as in odn tests)
<superbobry>
but NativeOpts (ByteOpts) aren't being passed to ocamlbuild for some reason
<superbobry>
making 'ocamlfind ocamldep ...' fail
ikaros has quit [Quit: Ex-Chat]
<jessicah>
how do i get ocamlbuild to include a directory, but not compile files in it?
reynir has quit [Ping timeout: 248 seconds]
<jessicah>
i currently use -ignore, but the line gets pretty long....
reynir has joined #ocaml
mcclurmc_ has quit [Excess Flood]
mcclurmc has joined #ocaml
Pepe_ has quit [Ping timeout: 240 seconds]
<avsm>
jessicah: you mean to pick up .cmx/.cmi files, but not part of the dependency checking?
beckerb has quit [Ping timeout: 240 seconds]
destrius has quit [Quit: Leaving.]
<jessicah>
avsm: yes
<avsm>
jessicah: hm, i actually have rules to move all the .cmx files into a stdlib directory, and compile programs against that (with -nostdlib)
<avsm>
makes life a lot easier, especially since its not safe to build a pack .cmx as the submodules will be picked up if you add that directory to -I for someone else
<jessicah>
hmm
<jessicah>
actually, the tags I have from my myocamlbuild actually work
<jessicah>
just never tried them before
<jessicah>
minus one folder
<avsm>
i guess you can add a flag ["ocaml"; "build"] to add the -I
<avsm>
which should skip ocamldep
ygrek has quit [Ping timeout: 248 seconds]
<jessicah>
hmm
beckerb has joined #ocaml
ygrek has joined #ocaml
<jessicah>
oh, i found an easy way
<jessicah>
just added a flag rule to my snowflake_lib function
<jessicah>
flag ["ocaml";"compile";"plugin"] to add the -I worked
<jessicah>
then just -tag plugin to ocamlbuild
<jessicah>
thanks for inspiration :)
<jessicah>
can't believe how easy that was -_-
avsm has left #ocaml []
jessicah has left #ocaml []
ygrek has quit [Ping timeout: 248 seconds]
avsm has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
Pepe_ has joined #ocaml
<gildor>
superbobry: submit a bug if they are not passed, this is not normal
reynir has quit [Ping timeout: 245 seconds]
<gildor>
superbobry: bug + tarball of your problem
<superbobry>
sure, but i think i'll do some more checking first
pierrc has joined #ocaml
pierrc has left #ocaml []
Kakadu has joined #ocaml
musically_ut has joined #ocaml
oriba has quit [Remote host closed the connection]
zorun has joined #ocaml
avsm has joined #ocaml
avsm1 has quit [Ping timeout: 240 seconds]
pierrc has joined #ocaml
<pierrc>
Could someone tell how to load battop.ml? I've just installed batteries.
<pierrc>
I would like to have a taste of it. I don't where to begin.
<superbobry>
well, the easiest way would be to load it with finlib
<superbobry>
#use "topfind";;
<superbobry>
#require "batteries";;
<pierrc>
Yes, batteries is loaded, thank you! :)
pierrc has left #ocaml []
<f[x]>
using global NativeOpt to pass ppopt is very fragile
<f[x]>
syntax manipulation should be per-file precise
avsm has quit [Quit: Leaving.]
ikaros has joined #ocaml
oc13 has joined #ocaml
avsm has joined #ocaml
probst has quit [Quit: probst]
ttamttam has quit [Ping timeout: 258 seconds]
oc13 has quit [Ping timeout: 240 seconds]
emmanuelux has joined #ocaml
<Drakken>
What does the pattern "_ as x" mean?
<thomasga>
Drakken: in this case it means "x"
<thomasga>
but you can use _ deep inside a pattern
<thomasga>
and x will be the name of the whole pattern
<thomasga>
as in "(_,true) as x"
<Drakken>
thomasga thank you but I'm not asking about a specific case. I'm just wondering why anyone would write "_ as x" instead of just "x".
<thomasga>
(or "Foo _ as x")
<thomasga>
well I don't see any reason why you would want to write that
<Drakken>
Neither do I.
<f[x]>
(a,b,_) as x
<f[x]>
(a,b,_ as x)
<Drakken>
(a,b,x)
<f[x]>
not
<Drakken>
What's the difference?
<f[x]>
priority
<f[x]>
read the manual
<f[x]>
or test is manual
<rixed>
a,b,_ as x -> x is (a,b,_) :-)
<f[x]>
* or test in toplevel
<Drakken>
This is why Lispers love their parens so much.
<thomasga>
well this case is weird
<thomasga>
and confusing
larhat has quit [Quit: Leaving.]
oriba has joined #ocaml
beckerb has quit [Ping timeout: 248 seconds]
<Drakken>
agreed
<Drakken>
f[x] thank you
<thelema>
thomasga: I occasionally use (Foo _ as x)
reynir has joined #ocaml
<reynir>
Hello
<thelema>
reynir: hi
<reynir>
I'm supposed to truncate an int32 to a byte, but still have it as an Int32. That is, make 128l into -1l, for example
<reynir>
Any ideas?
<thelema>
an unsigned byte... hmmm
<thelema>
signed is easy - just and with 0xffl
<reynir>
no, it's supposed to be a signed byte
<thelema>
err, unsigned is easy
<thelema>
for signed, you'll have to extend the hgh bit
<reynir>
Yea
<reynir>
Do you know how to do that?
beckerb has joined #ocaml
<thelema>
open Int32 let to_byte x = if x log_and 0x80 then x log_or 0xffffff00l else x log_and 0xffl
<tomprince>
I have managed to succesfully build by hand with: ocamlopt -ccopt '-I/usr/include/python2.7 -fPIC' -cclib '-lpython2.7' -a -o pycaml.cmxa pycaml.mli pycaml.ml pycaml_stubs.c
Kakadu has quit [Ping timeout: 240 seconds]
Kakadu has joined #ocaml
avsm has quit [Quit: Leaving.]
<adrien>
gildor: the patch neds some slight changes before it can apply to 0.2.1, I'll put my updated patch whn when I get on a network that has less than 30 minutes of lag
JdpB42 has quit [Ping timeout: 240 seconds]
oriba has joined #ocaml
ankit9 is now known as ankit9|away
<adrien>
tomprince: I don't remember well but do you have .clib files?
Kakadu has quit [Quit: Konversation terminated!]
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
metasyntax|work has quit [Quit: WeeChat [quit]]
ulfdoz has quit [Ping timeout: 244 seconds]
Emmanueloga has joined #ocaml
<adrien>
would it be possible that Dynlink returned a first-class module?
ftrvxmtrx has quit [Quit: Leaving]
avsm has joined #ocaml
JdpB42 has joined #ocaml
<tomprince>
adrien: oasis is geenrating an empty clib file
<gildor>
tomprince: yeah, std error with c binding
<gildor>
replace Library pycaml by Library pyocaml, e.g.
edwin has quit [Remote host closed the connection]
alxbl is now known as Bob_McLoser
Bob_McLoser is now known as alxbl
<gildor>
tomprince: ok, got it
<gildor>
tomprince: put a comma between pycaml_stubs.c and pycaml.h
<gildor>
tomprince: and open a feature request to output a warning when 2 files separated by space exists whereas one file with space in it doesn't exist
<gildor>
e.g. W: file "pycaml_stubs.c pycaml.h" doesn't exist but "pycaml_stubs.c" and "pycaml.h" exists, maybe you should write "pycaml_stubs.c, pycaml.h"
ikaros has quit [Quit: Ex-Chat]
<tomprince>
gildor: thanks
<adrien>
heheh :P
<adrien>
and maybe more generally warn about spaces in filenames?
<gildor>
if you have a good scheme to warn about them, please comment to feature request that tomprince will open
<gildor>
adrien: ^^^
<gildor>
adrien: this is the kind of stuff that can go into 0.2.1