<ehird>
in the same way that a rotting, stinking zombie that's killed all its family and is walking across the ocean is alive, yes
<alexyk>
ehird: yeah, I thought only smart li'l girls use fink anyways
<alexyk>
not that there's anything wrong with it
<alexyk>
(see? where are the French when we need to break an awkward pause caused by a breach of the PC?)
hkBst has quit [Read error: 104 (Connection reset by peer)]
jeddhaberstro has joined #ocaml
alexyk has quit []
willb has quit [Read error: 110 (Connection timed out)]
onigiri has joined #ocaml
angerman has joined #ocaml
mfp has quit [Read error: 60 (Operation timed out)]
palomer has joined #ocaml
<palomer>
Unbound value GnoCanvas.canvas <--- ocaml isn't playing nice!
<palomer>
what should I add?
mfp has joined #ocaml
<palomer>
woops
<palomer>
wasn't installed
nuncanada has quit ["Leaving"]
jonafan_ has joined #ocaml
Asmadeus has quit [Remote closed the connection]
Asmadeus has joined #ocaml
mfp_ has joined #ocaml
mfp has quit [Read error: 110 (Connection timed out)]
r0bby has quit [Connection reset by peer]
r0bby_ has joined #ocaml
ched_ has joined #ocaml
Ched has quit [Read error: 110 (Connection timed out)]
jeddhaberstro has quit []
onigiri has quit []
slash_ has quit ["leaving"]
jonafan has quit [Read error: 110 (Connection timed out)]
Stefan_vK1 has quit [Read error: 110 (Connection timed out)]
tarbo2_ has joined #ocaml
tarbo2 has quit [Read error: 110 (Connection timed out)]
m3ga has joined #ocaml
seafood has joined #ocaml
sanguinev has quit [Remote closed the connection]
mfp_ has quit [Read error: 104 (Connection reset by peer)]
mfp_ has joined #ocaml
palomer has quit ["Leaving"]
r0bby_ is now known as r0bby
m3ga has quit ["disappearing into the sunset"]
angerman has quit []
caligula__ has joined #ocaml
gaze__ has quit [Remote closed the connection]
SanguineV has joined #ocaml
tonyIII__ has quit [Connection timed out]
tonyIII__ has joined #ocaml
caligula_ has quit [Read error: 110 (Connection timed out)]
blais has joined #ocaml
<blais>
Hello gang
<blais>
Caml newbie here, have a few questions.
^authentic has joined #ocaml
<blais>
let cons x y = (x, y);;
<blais>
Isn't cons built-in?
<sgnb>
blais: no
<blais>
e.g. to use with foldl
<sgnb>
:: is built-in for use with List.fold_left
<sgnb>
x::xs <-> cons x xs
<blais>
Ah yes, attempting to do that earlier, had syntax issue, (::) was not working.
<sgnb>
blais: you cannot use it this way
<sgnb>
if you need the function, you have to use (fun x xs -> x::xs)
<sgnb>
(constructors cannot be partially applied)
<blais>
Thx, I did that, but was wondering how come a named version of it wasn't available.
* sgnb
is not aware of a named version of it
<blais>
Caml is niiice BTW. I've been trying to use Haskell, making much faster progress with Caml now, so much more pragmatic.
<blais>
(BTW my let cons above is erroneous, shuldn't be called cons, I'm aware of that)
<thelema>
sgnb: batteries has a named cons -- List.cons
<thelema>
that said, it's exactly the one line you have: let cons h t = h :: t
<blais>
So that's another question: I've installed JS Core, and then Batteries, and I saw there's Extlib. What's the current status of all these libs? Batteries has some traction?
<thelema>
batteries is working on getting more traction - it's hard to install by hand (lots of deps), and GODI is flaky, and there's no debs.
<sgnb>
blais: here, you'll find much advertising for batteries ;-)
<thelema>
I plan on optionalizing the requirement for sexplib to greatly reduce depenency problems
<sgnb>
thelema: there are debs (for 20081112 version, in experimental)
<thelema>
sgnb: when I see people asking for something that batteries provides, should I not let them know it's already available?
seafood has quit []
<sgnb>
there soon will be more up-to-date versions
<thelema>
sgnb: ah, didn't know that
<blais>
I see, this is the Batteries club.
<blais>
Nice.
<sgnb>
(currently, we are transitioning ocaml to 3.11.0 in Debian)
<thelema>
Yoric and I are the batteries club.
<sgnb>
thelema: sure. I wasn't complaining...
<blais>
That's one thing that Python is strong about: one single std.lib, with a strong desire to keep it that way.
<blais>
Creates a lot of heavy debates on the mailing-list sometimes :-)
<blais>
It'd be nice to have the same for Caml.
<thelema>
that's great, but the community maintains that library. With ocaml, INRIA isn't willing or able to maintain a larger stdlib, so it's got to be separate.
<blais>
(Same w/ Python BTW)
<blais>
The danger is to go the way of LISP or Scheme, with everyone making their own versions of the same stuff...
<blais>
Allright, I'll stop mentioning the P-word now ;-)
<thelema>
that's what people have done with ocaml, and it's why batteries exists.
<blais>
Another question: during my dabbling with Caml, I've been yearning for a function to just print whatever, for debugging.
<blais>
I saw JS sexplib, which I assume was built for that. Is this what you use?
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
<thelema>
blais: the best we have is Std.dump, which dumps the runtime representation of anything - it's the best that can be done without source code filtering (which sexplib does)
<thelema>
what I use - If I can, I use the toplevel for debugging.
<thelema>
good night. Say to yoric if he shows up in a new minutes.
<blais>
Is this a limitation of the language?
<thelema>
*say hi
<blais>
e.g. with overloading, it would be easy, na?
<thelema>
yes, types are erased at runtime. Overloading can't happen because there's no type information to dispatch on.
<thelema>
(also because overloading funcamentally doesn't work with type inference)
<blais>
Oh, et en passant, je sais pas si vous parlez normalement francais ici, mais c'est pas un probleme si jamais.
<thelema>
en englais ici, svp
<thelema>
g'nite again
<blais>
g'nite!
SanguineV has quit ["leaving"]
sanguinev has joined #ocaml
coastermaster has joined #ocaml
ttamttam has joined #ocaml
angerman has joined #ocaml
verte has joined #ocaml
rwmjones_ has joined #ocaml
blais has quit [Read error: 60 (Operation timed out)]
s4tan has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
_zack has joined #ocaml
ilor_ has joined #ocaml
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
ilor has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has joined #ocaml
rwmjones_ has quit ["Closed connection"]
coastermaster has quit []
slash_ has joined #ocaml
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
jeremiah has joined #ocaml
angerman has quit []
jeremiah has quit [Read error: 104 (Connection reset by peer)]
ilor_ has quit [Read error: 113 (No route to host)]
hkBst has joined #ocaml
slash__ has joined #ocaml
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
slash_ has quit [Read error: 110 (Connection timed out)]
mfp_ is now known as mfp
<mfp>
argh Your mail to 'Batteries-devel' with the subject [PATCH] ... Is being held until the list moderator can review it for approval. Message body is too big: 46026 bytes with a limit of 40 KB :-|
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
schmx has quit [Read error: 60 (Operation timed out)]
schmx has joined #ocaml
<totom>
try to make your code a little more compact :p
seafood has joined #ocaml
slash__ has quit [calvino.freenode.net irc.freenode.net]
ched_ has quit [calvino.freenode.net irc.freenode.net]
Fullma has quit [calvino.freenode.net irc.freenode.net]
acatout has quit [calvino.freenode.net irc.freenode.net]
bacam has quit [calvino.freenode.net irc.freenode.net]
slash__ has joined #ocaml
ched_ has joined #ocaml
Fullma has joined #ocaml
bacam has joined #ocaml
acatout has joined #ocaml
chickenzilla has joined #ocaml
ched__ has joined #ocaml
Fullma has quit [calvino.freenode.net irc.freenode.net]
ched_ has quit [calvino.freenode.net irc.freenode.net]
slash__ has quit [calvino.freenode.net irc.freenode.net]
acatout has quit [calvino.freenode.net irc.freenode.net]
bacam has quit [calvino.freenode.net irc.freenode.net]
acatout has joined #ocaml
bacam has joined #ocaml
seafood_ has joined #ocaml
Fullma has joined #ocaml
jeremiah has joined #ocaml
<Yoric[DT]>
mfp: well, approved :)
<mfp>
thanks :)
slash_ has joined #ocaml
joelr1 has joined #ocaml
<joelr1>
morning
<Yoric[DT]>
hi
<joelr1>
anyone using dypgen?
<joelr1>
how do i fix this: Error: Unbound value Dyp.Tools.hashtbl_of_array
jeremiah has quit [Read error: 104 (Connection reset by peer)]
seafood has quit [Read error: 110 (Connection timed out)]
<mfp>
omake can use a separate _build directory like ocamlbuild; I was vaguely aware of that feature, but didn't know it was as simple as doing vmount(c,src,_build)
<mfp>
I've tried to like ocamlbuild, but still find omake MUCH easier to work with. The build language is simpler for most tasks, it handles subprojects perfectly, few surprises and ??? moments (comprehensive docs help).
<mrvn>
I couldn't get ocamlbuild to pass on CFLAGS. Seems you need to write your own build module for that with all sorts of cryptic magic in it.
<mrvn>
Plus ocamlbuild should know on its own that it needs -fPIC to compile a .so file
<mfp>
the plugin plus _tags plus .mllib plus stuff, too many things IMO
<mrvn>
plus .clibs
<mrvn>
Which in my opinion counts as "manual" and not "automatic" build system.
<mrvn>
mfp: ever used OCamlMakefile?
<mfp>
no, I now use omake whenever possible
<mfp>
how well does OCamlMakefile handle subprojects? That's something make tends to suck at.
<mrvn>
No manual entry for omake
<mrvn>
verry bad start.
<mrvn>
mfp: You just have the main makefile recurse into each project and call make there.
<mrvn>
At least that I would do with my meager knowledge.
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<mfp>
but does it know for instance about cross-subdir deps?
<mrvn>
it uses ocamldep
<mfp>
if I have subdirs foo and bar, with modules in bar depending on those in foo, will it rebuild those in bar when their deps in foo are modified?
<mrvn>
mfp: I would have that logic in the main makefile. But it should see it through the ocamldep output.
<mrvn>
omake -p / -P looks interesting.
<mrvn>
I have an OMakefile in my project. Adapted it from the source I copied the packaging from but never used it. I should try it.
<mrvn>
How does omake cope with depends across dirs? I have a lib dir and examples that then use the lib.
<mfp>
mrvn: it does it automagically; you can call omake in any subdir and it will move upwards to the project root, build deps in othr subdirs, then come back & build
<mfp>
*other
<mfp>
in examples/OMakefile, you'd do OCAML_LIBS[] += ../lib/mylib OCamlProgram(example, somemod main) # program example.{opt,run}, with modules Somemod and Main and it'd track the deps & link against that lib
<mfp>
Yoric[DT]: it just occurred to me that you might not be aware of git am... git am *.patch applies the patches on top of the current HEAD, taking the commit info from the message
<Yoric[DT]>
Interesting.
<Yoric[DT]>
I'm currently working on a type system with overloading, so that may slip from my mind before I actually need it, but thanks.
jeremiah has joined #ocaml
Camarade_Tux has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<mrvn>
Yoric[DT]: Does that give any usable type? Don't you end up with too many possibilities?
<Yoric[DT]>
That remains to be experimented.
<Yoric[DT]>
I'm afraid of the latter.
<Yoric[DT]>
However, that type system is not necessarily meant to be seen by the user.
<Yoric[DT]>
So that may be ok.
kelaouchi has quit ["leaving"]
kelaouchi has joined #ocaml
Camarade_Tux has quit ["Leaving"]
jeremiah has joined #ocaml
slash_ has quit ["leaving"]
slash_ has joined #ocaml
kelaouchi has quit ["leaving"]
kelaouchi has joined #ocaml
seafood_ has quit []
kelaouchi has quit ["leaving"]
kelaouchi has joined #ocaml
s4tan has quit [Read error: 145 (Connection timed out)]
<joelr1>
i'm trying to figure out how it gets to require easy_parser.mli
<joelr1>
this is a dypgen-generated parser and i'm only generating easy_parser.ml
<joelr1>
i'd like to tell ocamlbuild not to look for the mli in this case since i'm not producing it
<joelr1>
easy_parser.ml gets generated into _build/src if that matters
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<joelr1>
Alpounet: enough information?
_zack has quit ["Leaving."]
<Alpounet>
I think so. However, I'm not able to help you... Though my first thought is that ocamlbuild will always look for a .mli when trying to work on an .ml
Spiwack has joined #ocaml
Alpounet has quit ["Ex-Chat"]
Alpounet has joined #ocaml
_zack has joined #ocaml
jeremiah has joined #ocaml
_zack has quit [Read error: 104 (Connection reset by peer)]
_zack has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
Associat0r has joined #ocaml
joelr1 has quit []
joelr1 has joined #ocaml
<joelr1>
ertai_: ping
jeremiah has joined #ocaml
Fulax has joined #ocaml
joelr1 has quit []
kaustuv_ has joined #ocaml
sporkmonger has joined #ocaml
willb has joined #ocaml
willb has quit [Read error: 60 (Operation timed out)]
joelr1 has joined #ocaml
<joelr1>
ertai_: can i ask a camlp4 map generator question?
joelr1 has quit []
kaustuv has quit [Nick collision from services.]
kaustuv_ is now known as kaustuv
willb has joined #ocaml
joelr1 has joined #ocaml
<joelr1>
ertai_: will post the results in a minute
blais has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
joelr1 has quit []
blais has quit ["Leaving"]
angerman has joined #ocaml
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
Stefan_vK has joined #ocaml
jeremiah has joined #ocaml
th5 has quit []
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<gildor>
zack: ertai_: why ocamlbuild call ocamlc to produce a .cmi when it will call ocamlopt right after (.cmo is not used)
<gildor>
(-zack, just ertai_)
jeremiah has joined #ocaml
<ehird>
ifdef LIB_PACK_NAME
<ehird>
FOR_PACK_NAME := $(shell echo $(LIB_PACK_NAME) | sed -e 's/^\(.\)/\U\1/')
<ehird>
endif
<ehird>
I see.
<ehird>
It wants gsed.
Alpounet has quit ["Ex-Chat"]
wsmith84 has joined #ocaml
chickenz1lla has joined #ocaml
chickenz1lla has quit [Read error: 113 (No route to host)]
s4tan has quit []
chickenz1lla has joined #ocaml
chickenzilla has quit [Nick collision from services.]
chickenz1lla is now known as chickenzilla
jonafan_ is now known as jonafan
angerman has quit []
thelema has quit [Read error: 110 (Connection timed out)]
joelr1 has joined #ocaml
<joelr1>
can you see the contents of a CMA?
<joelr1>
i can load my cma into ocaml but cannot open a module
fbvortex has joined #ocaml
Camarade_Tux has joined #ocaml
<fbvortex>
Has anyone here used LACAML?
Spiwack has quit ["Leaving"]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<Yoric[DT]>
joelr1: objinfo foo.cma
<joelr1>
in ocaml?
<joelr1>
Yoric[DT]: i'm on mac osx
<Yoric[DT]>
I believe it's part of the OCaml distribution but it's a command-line tool.
<joelr1>
hmm
<joelr1>
Yoric[DT]: i think it's a linux tool
<joelr1>
Yoric[DT]: no, there's something in ocaml
<Yoric[DT]>
joelr1: at least, it's in my GODI directory.
<joelr1>
right
<joelr1>
Yoric[DT]: so Unit name: Topdog
<joelr1>
but
<joelr1>
Yoric[DT]: # open Topdog;;
<joelr1>
Error: Unbound module Topdog
<joelr1>
what gives?
<Yoric[DT]>
Have you loaded the .cma?
<flux>
joelr1, do you have topdog.cmi around?
<joelr1>
ocaml _build/src/topdog.cma
<joelr1>
Objective Caml version 3.12.0+dev2 (2009-01-25)
<flux>
it'd be nice if .cmi-files could be baked inside the .cma-files
<Yoric[DT]>
Yeah.
<flux>
also a related issue: I just hate it when people pack multiple modules into a new module for hierarchic reasons, but still provide the original .cmi-files
<flux>
:)
* Yoric[DT]
hopes he didn't do that.
fbvortex has quit [Read error: 104 (Connection reset by peer)]
ttamttam has left #ocaml []
chickenz1lla has joined #ocaml
chickenzilla has quit [Nick collision from services.]
chickenz1lla is now known as chickenzilla
jeremiah has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<joelr1>
flux, Yoric[DT] : related question
<flux>
hit it!
<joelr1>
loaded the cma, opened the module
<joelr1>
Error: Reference to undefined global `Parser_test'
<joelr1>
Parser_test is actually a module in the cma that I _just_ opened
<joelr1>
what is the cause?
<flux>
I take it things work great with .cmo-files?
<joelr1>
flux: i'm not sure, there are 27 of them and i didn't fancy putting them on a command line
<joelr1>
flux: this issue happens when i try to run a function that's part of the opened Parse_test module
<rwmjones>
and the file is _build/src/parser_test.cmi ?
<joelr1>
i wouldn't be able to open the module otherwise, no?
<joelr1>
find . -name parser_test.cmi
<joelr1>
./_build/src/parser_test.cmi
<rwmjones>
that depends .. I think "open Parser_test" checks for the cmi file, but I wouldn't be sure
chickenzilla has quit [Nick collision from services.]
chickenz1lla is now known as chickenzilla
<rwmjones>
anyway, if it's in the include path then that's not the problem
<joelr1>
rwmjones: i can invoke a function from a different module
<rwmjones>
maybe a missing or misspelled function?
<joelr1>
hmm
<joelr1>
i build a cma, right
<joelr1>
i can open the functions from the module that matches the cma name
<joelr1>
but trying to open functions from other modules (at least two) inside the cma gives me this error
<joelr1>
they don't have mli files, btw, but the cmi is there
wsmith84 has quit [Read error: 60 (Operation timed out)]
<joelr1>
darn :(
<joelr1>
rwmjones: no, the function is there
jeremiah has joined #ocaml
<joelr1>
rwmjones: it's not complaining about the function you see
<joelr1>
Error: Reference to undefined global `Parser_test'
jlouis has quit [Read error: 145 (Connection timed out)]
<joelr1>
it's in the docs . section 9.3
<joelr1>
Note that entering open Mod merely accesses the compiled interface (.cmi file) for Mod, but does not load the implementation of Mod, and does not cause any error if no implementation of Mod has been loaded. The error “reference to undefined global Mod” will occur only when executing a value or module definition that refers to Mod.
chickenzilla is now known as machinbidule
<joelr1>
rwmjones: this is weird, though, because i gave topdog.cma to ocaml on the command line
<rwmjones>
the cma file has nothing to do with ocaml looking for cmi files later
machinbidule is now known as chickenzilla
<joelr1>
rwmjones: ocaml wants me to run a bunch of #load-s
<joelr1>
i wish i could load everything in one fell swoop
<rwmjones>
joelr1, try #use "topfind"
<rwmjones>
then #require "foo" ... which loads all the dependencies & sets the dirs up too
<rwmjones>
'course you need findlib for that
Snark has joined #ocaml
<joelr1>
rwmjones: this is not an installed library, it's in my development tree
<joelr1>
rwmjones: can i use findlib in this scenario? i do have it installed
<joelr1>
in fact, i have a META file even
<joelr1>
the whole thing used to work, in fact, using your mod_caml
<joelr1>
but i lost a few bits and need to start without the web interface :(
chickenzilla is now known as machinbidule
<joelr1>
i guess i'll have to put all those commands into a .ocamlinit
machinbidule is now known as chickenzilla
jlouis has joined #ocaml
ched__ has quit [Remote closed the connection]
<rwmjones>
no I don't think you can use findlib in that scenario
Amorphous has quit [Read error: 104 (Connection reset by peer)]
naufraghi has joined #ocaml
<joelr1>
darn
<joelr1>
rwmjones: so there's no way to load all modules in a cma in one fell swoop then?
naufraghi has quit [Client Quit]
naufraghi has joined #ocaml
Ched has joined #ocaml
Associat0r has quit []
<joelr1>
rwmjones: btw, i really ought to take a look at your cross-compilation work. i'd love to build windows binaries on mac osx
<sgnb>
joelr1: you can add your working directory to OCAMLPATH
<joelr1>
sgnb: and what happens then?
<sgnb>
it will search in it for META files
<sgnb>
see man findlib.conf
<joelr1>
ah!
<joelr1>
sgnb: excellent because i have a meta file
<joelr1>
thanks!
dabd has joined #ocaml
OChameau has quit ["Leaving"]
Amorphous has joined #ocaml
wsmith84 has joined #ocaml
ttamttam has joined #ocaml
joelr1 has quit []
dabd has quit [Remote closed the connection]
thelema has joined #ocaml
chickenz1lla has joined #ocaml
chickenzilla has quit [Nick collision from services.]
chickenz1lla is now known as chickenzilla
_zack has quit ["Leaving."]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
chickenz1lla has joined #ocaml
chickenzilla has quit [Nick collision from services.]
chickenz1lla is now known as chickenzilla
jeremiah has joined #ocaml
Fulax has quit ["Out of Memory: Killed process [9823] xchat."]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
naufraghi has left #ocaml []
kelaouchi has quit ["Lost terminal"]
kelaouchi has joined #ocaml
ttamttam has left #ocaml []
jeremiah has joined #ocaml
wsmith84 has quit [Read error: 113 (No route to host)]
seafood has joined #ocaml
chickenzilla has quit ["J'y trouve un goût d'pomme."]
chickenzilla has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Connection timed out]
chickenzilla has quit ["J'y trouve un goût d'pomme."]
chickenzilla has joined #ocaml
wsmith84 has joined #ocaml
chickenzilla has quit ["J'y trouve un goût d'pomme."]
chickenzilla has joined #ocaml
Snark has quit [No route to host]
chickenzilla has quit ["J'y trouve un goût d'pomme."]
chickenzilla has joined #ocaml
chickenzilla has quit ["J'y trouve un goût d'pomme."]
chickenzilla has joined #ocaml
sporkmonger has quit []
hkBst has quit [Read error: 104 (Connection reset by peer)]
caligula__ has quit [Remote closed the connection]
caligula__ has joined #ocaml
malc_ has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
jeremiah has joined #ocaml
malc_ has quit ["leaving"]
chickenzilla has quit [Read error: 110 (Connection timed out)]
willb has quit [Read error: 110 (Connection timed out)]
wsmith84 has quit [Read error: 60 (Operation timed out)]
Camarade_Tux has quit ["Quitte"]
angerman has joined #ocaml
<jonafan>
do you guys know what gdal is
angerman has quit []
alexyk has joined #ocaml
seafood_ has quit [Read error: 60 (Operation timed out)]