<Camarade_Tux>
I'm compiling something with ocamlbuild and WITHOUT ocamlbuild, it doesn't find sexplib or fileutils which are NOT in subdirectories
<Camarade_Tux>
they are next to other gallium libraries that are found
<Camarade_Tux>
if I call ocamlbuild with -lib, it's working as expected but I'd like to use the _tags file
ttamttam has quit [Quit: Leaving.]
enthymene has joined #ocaml
ccasin has joined #ocaml
<Camarade_Tux>
a bit more than two hours to install mingw, msys, ocaml, reinstall ocaml, try to install findlib, get cygwin's cygpath, try to install findlb, try to recompile ocaml, install typeconv, install sexplib, try to install mikmatch, remove the mikmatch bits of my code, change my ocamlbuild config files not to rely on ocamlfind, get my native executables, sounds almost ok =)
pimmhogeling has quit [Ping timeout: 245 seconds]
jao has quit [Ping timeout: 258 seconds]
<flux>
writing stream parsers is boring..
<Camarade_Tux>
for what?
<flux>
I'm parsing graphviz dot files
<orbitz>
the Stream API seems a bit weird to me
<flux>
I'm using the syntax extensions
tmaeda is now known as tmaedaZ
<flux>
I think their documentation has actually decreased over time..
<flux>
maybe I'm looking at the wrong place :)
<thelema>
flux: ty for bug fix. I can't get it at that url.
<flux>
jännästi git tuntuisi suhtautuvan noihin eri tavalla
<mfp>
flux: ocaml.fi?
<flux>
argh, wrong channel :-)
<flux>
no, I was actually trying to talk to the modeemi (unix club at the uni) channel..
<thelema>
flux: yes, better
drk-sd has quit [Ping timeout: 252 seconds]
<thelema>
flux: how do you install/use the man pages?
<flux>
thelema, I installed them manually to /usr/local/share/man/man3/, I don't yet have a rule to do that
<flux>
and I just do man BatGenlex and it gives me the page
<elehack>
thelema, what would you think of making the v2 branch use Batteries_mt/Batteries vs. Batteries/Batteries_uni and closing issue 34 (the -thread compile issue)?
<orbitz>
Any played with clojure? I like it's (lazy)lists
<orbitz>
its*
<thelema>
flux: ok. I wonder what the right place is, and how to find it automatically
<flux>
thelema, $(PREFIX)/man/man3/ perhaps?
<flux>
actually, my example doesn't match that ;-)
<flux>
soo, $(PREFIX)/share/man/man3/ perhaps
thrasibule has joined #ocaml
<thelema>
elehack: yes, that's exactly what should be done, and if you get to that before me, it'll help me out.
<elehack>
OK, I'll try to do that today.
<elehack>
any reason not to update the v2 branch against master while I'm at it?
<thelema>
none I can think of.
<elehack>
ok.
<thelema>
I don't want to sync v2 every commit, but every week or two is fine.
maattd is now known as maattd|away
avsm has joined #ocaml
Yoric has quit [Ping timeout: 256 seconds]
drunK has joined #ocaml
_unK has quit [Ping timeout: 260 seconds]
julm has joined #ocaml
drunK is now known as _unK
pimmhogeling has joined #ocaml
Submarine_ has joined #ocaml
Submarine has quit [Ping timeout: 258 seconds]
psnively has joined #ocaml
<flux>
meh, BatSet doesn't have of_list, to_list, etc?
Submarine_ is now known as submarine
<flux>
ah, never mind, it has enum-versions :)
avsm has quit [Quit: Leaving.]
pimmhogeling has quit [Ping timeout: 265 seconds]
<thelema>
flux: Enum handles conversion between just about every container format
BigJ has quit [Quit: Leaving]
BigJ has joined #ocaml
psnively has left #ocaml []
derdon has joined #ocaml
slash__ has joined #ocaml
slash_ has quit [Ping timeout: 265 seconds]
Yoric has joined #ocaml
slash__ has quit [Quit: leaving]
slash_ has joined #ocaml
avsm has joined #ocaml
seafood has joined #ocaml
mutew has joined #ocaml
jcaose has quit [Ping timeout: 256 seconds]
seafood has quit [Read error: Connection reset by peer]
seafood has joined #ocaml
threeve has joined #ocaml
mutew has quit [Quit: leaving]
seafood has quit [Quit: seafood]
pimmhogeling has joined #ocaml
ygrek has joined #ocaml
ygrek has quit [Client Quit]
ygrek has joined #ocaml
ygrek has quit [Quit: Leaving]
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
submarine has quit [Ping timeout: 265 seconds]
<sfuentes>
I was hoping someone could take a look at this small snippet:
<Camarade_Tux>
I guess you want !m3 = 0 and !m5 = 0
<sfuentes>
i get this error: Error: This expression has type int but is here used with type int ref
<thelema>
Camarade_Tux: you ruin the entre game of playing teacher if you just give the answer... :)
<Camarade_Tux>
thelema: yeah, definitely :P
<sfuentes>
Camarade_Tux: aren't they equivalent?
<thelema>
sfuentes: yes, it's telling you that [m3] is an int ref, not an int.
<Camarade_Tux>
I hadn't realized, I'm far too tired :P
<thelema>
they are not equivalent.
<thelema>
Camarade_Tux: don't mind me. Maybe sfuentes just wanted a quick answer.
<thelema>
just like you did [!accum] to get the value of [accum], you have to do [!m3]
<sfuentes>
i can appreciate a good teacher
<Camarade_Tux>
but quick answer are rarely the ones you should give ;-)
<sfuentes>
thelema: agghh .... embarassing
<Camarade_Tux>
sfuentes: a 'ref' is actually like a record: # let a = ref 0;;
<Camarade_Tux>
val a : int ref = {contents = 0}
<Camarade_Tux>
so not like an int :-)
<sfuentes>
you guys are absolutely right
<sfuentes>
i had recently swapper types and i totally forgot
<sfuentes>
i originally had let m3 = i mod 3 in
<thelema>
sfuentes: yup, this would let you use m3 without the !
<Camarade_Tux>
ah nice, the ocaml part of my program is good now (thanks to a fix between fileutils 0.3.0 and 0.4.0), now I need a more recent version of tar on windows
<derdon>
Camarade_Tux: are you working on a big project in OCaml?
<Camarade_Tux>
derdon: this one is meant to be short and I'm quite happy it is : 400 to 500 lines of ocaml
<derdon>
oh, really short
<Camarade_Tux>
on the other hand, a proficient C hacker is doing something similar but he already has more than 5k lines and his program does less than mine =)
<derdon>
and what does it do?
<derdon>
haha
<sfuentes>
i was using these ref types just to see how they work, but i'm not clear when i should be using refs vs simple let definitions
<Camarade_Tux>
package manager, mostly meant for windows and mingw
<Camarade_Tux>
installing libraries in mingw is a pita
ygrek has joined #ocaml
<derdon>
sfuentes: references are mutable. these are real variables
<derdon>
Camarade_Tux: package manager for windows? I always thaught that's a contradict
ygrek has quit [Client Quit]
<thelema>
sfuentes: if you can use a let binding that keeps its value, do so. If you really need to change the value of an identifier after it's defined, use a reference
<Camarade_Tux>
derdon: I have a /bin, a /usr/lib*, /usr/include...
ygrek has joined #ocaml
<Camarade_Tux>
and for the record, I think ocamlbuild doesn't remakes as much as it should on windows
<derdon>
sfuentes: the first function uses references
<derdon>
Camarade_Tux: didn't learn yet how ocaml is used for building packages, maintaining projects, solving dependencies, etc.
<thelema>
derdon: you didn't include the "sum" function
<derdon>
thelema: oh, sorry.
<derdon>
thelema: it is simply defined as ``let sum = List.fold_left (+) 0``
<Camarade_Tux>
I've been using ocamlbuild + ocamlfind + rudimentary makefile
<Camarade_Tux>
ocamlbuild builds, ocamlfind will find libs and solve deps
<derdon>
Camarade_Tux: what does ocamlfind do?
<Camarade_Tux>
as for maintaining, I've been using git
ygrek has quit [Ping timeout: 245 seconds]
<Camarade_Tux>
btw, I've been coding and compiling on linux and once it's working, I've been commiting and then switching to a windows virtual machine where I get a tarball from git, it's been working pretty well, switching between both has been pretty nice