gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
<thelema_> Ralith: maybe you need to link with unix.cm[x]a
<Ralith> that would appear to be the case
<Ralith> guess it left that out
letrec has joined #ocaml
<Ralith> thelema_: is glcaml the recommended gl binding?
sebz has quit [Quit: Computer has gone to sleep.]
raichoo has quit [Quit: leaving]
sebz has joined #ocaml
alaa has quit [Remote host closed the connection]
Tobu has joined #ocaml
ftrvxmtrx has joined #ocaml
linshuai_irc has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
oriba has quit [Quit: oriba]
Tobu has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 255 seconds]
philtor has joined #ocaml
linshuai_irc has left #ocaml []
mattrepl has joined #ocaml
ftrvxmtrx has joined #ocaml
oriba has joined #ocaml
oriba has quit [Client Quit]
oriba has joined #ocaml
philtor has quit [Ping timeout: 272 seconds]
oriba has quit [Quit: oriba]
philtor has joined #ocaml
philtor has quit [Ping timeout: 252 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
Tobu has quit [Ping timeout: 248 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ocaml
sebz has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
Tobu has joined #ocaml
mdelaney has joined #ocaml
ftrvxmtrx has quit [Read error: Operation timed out]
ftrvxmtrx has joined #ocaml
otk has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
mdelaney has quit [Quit: mdelaney]
mdelaney has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 248 seconds]
mdelaney has quit [Quit: mdelaney]
mdelaney has joined #ocaml
pilki has joined #ocaml
Kakadu has joined #ocaml
pilki has quit [Client Quit]
pilki has joined #ocaml
<Ralith> I'm trying to use OCamlMakefile
<Ralith> for a trivial project
<Ralith> and it keeps giving me errors to the effect of:
<Ralith> make[1]: Circular testsdl_1.cmo <- testsdl_1.cmo dependency dropped.
<Ralith> and then bailing out
<Ralith> with:
<Ralith> Error: Cannot find file testsdl_1.cmo
<Ralith> what am I doing wrong?
Snark has joined #ocaml
ftrvxmtrx has joined #ocaml
<adrien> you're introducing a circular dependency in your files
<adrien> are you using "open Testsdl_1" in testsdl1.ml or using "Testsdl_1.foo" in that file?
<adrien> i.e. referencing a module named "Testsdl_1" from inside testsdl_1.ml?
sebz has quit [Quit: Computer has gone to sleep.]
MaskRay has joined #ocaml
pilki has quit [Quit: Leaving]
<Ralith> adrien: there are no 'open' statements whatsoever, nor any macro directives
<Ralith> possibly of interest:
<Ralith> % ocamldep testsdl_1.ml
<Ralith> testsdl_1.cmo:
<Ralith> testsdl_1.cmx:
<adrien> can I see the testsdl_1.ml file? (pastebin)
<adrien> and the Makefile from which you're including OCamlMakefile
<Ralith> both are identical to those described in the "testsdl_1 - Hello, World!" section of the linked wiki page
<Ralith> literally copypasted from there
<adrien> the wiki page is probably at least 4 years-old
<Ralith> do you have a better resource to recommend?
<adrien> almost 5 years
<adrien> that doesn't mean it's not applicable
<Ralith> "This page was last modified on 10 May 2010, at 11:54."
<adrien> yeah, but not the section for testsdl_1
<Ralith> alright
<Ralith> so what's it got wrong?
<adrien> and it refers to a very old version of ocamlmakefile
<adrien> good question =)
<Ralith> its advice seems to be consistent with the ocamlmakefile docs
<adrien> how did you get ocamlmakefile? which versiondo you have?
MaskRay has quit [Remote host closed the connection]
ftrvxmtrx has quit [Ping timeout: 272 seconds]
<adrien> hmm, it's working fine here
<Ralith> :/
<Ralith> using those exact files?
<adrien> yes
<adrien> which version of ocaml do you have?
<Ralith> % ocaml Objective Caml version 3.12.1
<Ralith> not sure why irssi stripped that newline but you get the idea
mdelaney has quit [Quit: mdelaney]
<Ralith> what does ocamldep produce for you?
<Ralith> and what's the output of make?
<adrien> it works with ocamlmakefile 6.29
<Ralith> (mine produces http://paste.pocoo.org/show/541969/ )
<adrien> but not 6.34
<Ralith> ahah!
<Ralith> who's upstream for this?
ftrvxmtrx has joined #ocaml
<adrien> it add the line: %.cmi: %$(IMPL_SUF);
<adrien> does anyone know why there is a trailing ';'?
<adrien> without it, it works
* Ralith doesn't know make very well
<Ralith> just remove that, then? huh.
<adrien> yeah, try without the semicolon
<Ralith> okay, now I get: Error: Unbound module Sdl
<adrien> I kinda expected that one =)
<Ralith> that sounds promising
<adrien> how did you "get" sdl?
<adrien> distribution?
<Ralith> yep
<Ralith> I take it the paths are shoddy?
<Ralith> it's installed to /usr/lib/ocaml/site-lib/sdl/
<adrien> ok, godi
<Ralith> that is to say, that's the basedir
<adrien> distribution or godi?
<Ralith> installed by my distro's package manager
<adrien> because the path shouts "godi"
<adrien> which distro is that?
<Ralith> arch linux
<Ralith> should I be using godi?
<adrien> no, it's fine; I didn't know someone else was using similar paths
<adrien> anyway, it shows it has ocamlfind support so it's good
<adrien> in Makefile, you want:
<adrien> INCDIRS = $(shell ocamlfind query sdl)
<Ralith> that seems awkward, but okay
<adrien> because "+sdl" means that it's a path relative to the location of the compile
<Ralith> ah.
<adrien> r
<adrien> and here, it's placed somewhere else
<Ralith> aaand now it can't find dllsdlstub.so
<adrien> well, it's not very pretty but I can't remember if OCamlMakefile has something more pretty
<Ralith> which I guess you probably don't know anything about
<adrien> try running: make native-code
<Ralith> that did it! thanks :D
<Ralith> what caused that issue?
<adrien> not sure yet
JdpB42 has joined #ocaml
<JdpB42> what will the next major release of ocaml entail?
<adrien> can you run this: find /usr -iname "dll*sdl*so*" ?
<Ralith> running
<Ralith> adrien: is godi good to use in general? my distro has pretty sparse ocaml packaging
<Ralith> /usr/lib/ocaml/site-lib/stublibs/dllsdlstub.so
ftrvxmtrx has quit [Ping timeout: 272 seconds]
<adrien> I've been using godi for some time now; there are quite a lot of things, it's well-tested, especially on linux
<adrien> I know the arch linux packaging effort is quite recent but I can't compare both because I don't know much about it
<adrien> s/both/the two/
<Ralith> so that's where the lib is
<adrien> ah, it found the file, ok
<adrien> run: "ocamlfind -printconf", and pastebin the "ld.conf" file mentionned at the end of the output
<Ralith> packaging error?
<adrien> likely
ftrvxmtrx has joined #ocaml
<Ralith> I'll see if I can find where to submit a bug report, then
<adrien> stulibs are only used when using bytecode so you'll be safe for now if you use native code
<adrien> dunno :P
<adrien> (where)
* adrien tired
* Ralith is only really interested in native, with the odd bit of interpreted dev, anyway
<Ralith> on the subject of bug reports, were you going to contact the OCamlMakefile author?
<Ralith> I can, though I won't be able to discuss the error very usefully
<adrien> I'm almost done contacting him :-)
<Ralith> wonderful!
<Ralith> thanks for the help
<adrien> :-)
<adrien> and you helped too by having an issue on a simple example ;p
<Ralith> I'm sure I'd've had it on a complex one if I'd managed to get that far.
<Ralith> while you're here, any introductory material you can recommend for the language? I'm conversant in Haskell and fluent in Common Lisp, though I'm also interested in stuff to recommend to someone who's merely conversant in C++
zoyd23 has joined #ocaml
<adrien> maybe http://www.cs.jhu.edu/~scott/pl/lectures/caml-intro.html and the official manual
<adrien> the "Developing Applications With Objective Caml" book should be quite complete
<Ralith> thanks again
<adrien> and http://caml.inria.fr/pub/docs/manual-ocaml/index.html for the reference; specifically part II for the language itself
<adrien> you're welcome =)
ftrvxmtrx has quit [Ping timeout: 276 seconds]
sebz has joined #ocaml
ftrvxmtrx has joined #ocaml
sebz has quit [Ping timeout: 244 seconds]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 252 seconds]
ftrvxmtrx has joined #ocaml
MaskRay has joined #ocaml
daimrod has joined #ocaml
mdelaney has joined #ocaml
mdelaney has quit [Client Quit]
BiDOrD has joined #ocaml
edwin has joined #ocaml
testcocoon has quit [Ping timeout: 240 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
Ptival has joined #ocaml
milosn has quit [Ping timeout: 252 seconds]
sebz has joined #ocaml
ulfdoz has joined #ocaml
zoyd23 has quit [Quit: Leaving]
milosn has joined #ocaml
ikaros has joined #ocaml
mcclurmc has quit [Excess Flood]
<otk> http://langref.org/ocaml/unsolved anyone feeling motivated
mcclurmc has joined #ocaml
<otk> looks like someone broke the html too
sebz has quit [Quit: Computer has gone to sleep.]
<Ptival> looks like someone was a spammer
<otk> yep
<otk> i emailed rob, dont think its going to get fixed though
<otk> the submit form for the page has been deleted by the injected content :(
<Ptival> didn't even know that website
<otk> it used to be awesome
<otk> but i think the maintainer went on leave
<otk> hopefully he responds to email
<otk> sigh someone has ruined F# too
<otk> hopefully the data is stored in a DB that he can revert
<otk> ...if he caes
<otk> cares*
<otk> well, the solutions pages are still good, but i cant work on submitting answers
Cyanure has joined #ocaml
iago has joined #ocaml
letrec has quit [Ping timeout: 252 seconds]
letrec has joined #ocaml
sebz has joined #ocaml
testcocoon has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
lusory has quit [Ping timeout: 252 seconds]
lusory has joined #ocaml
testcocoon has quit [Ping timeout: 240 seconds]
testcocoon has joined #ocaml
lamawithonel_ has quit []
edwin has quit [Remote host closed the connection]
sebz has quit [Quit: Computer has gone to sleep.]
testcocoon has quit [Read error: Connection reset by peer]
testcocoon has joined #ocaml
oriba has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
BiDOrD has quit [Ping timeout: 276 seconds]
ulfdoz has joined #ocaml
Drup has joined #ocaml
lusory has quit [Ping timeout: 252 seconds]
lusory has joined #ocaml
Drup has quit [Quit: Leaving.]
BiDOrD has joined #ocaml
testcocoon has quit [Quit: Coyote finally caught me]
emmanuelux has quit [Quit: Ex-Chat]
emmanuelux has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
MaskRay has quit [Quit: leaving]
emmanuelux has joined #ocaml
testcocoon has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
Drup has joined #ocaml
edwin has joined #ocaml
cdidd has joined #ocaml
fraggle_ has joined #ocaml
ulfdoz has quit [Quit: kernel-upgrade]
cdidd has quit [Quit: Leaving]
cdidd has joined #ocaml
ulfdoz has joined #ocaml
letrec has quit [Ping timeout: 276 seconds]
raichoo has joined #ocaml
Ralith has quit [Ping timeout: 248 seconds]
mattrepl has quit [Quit: mattrepl]
pilki has joined #ocaml
Drup has quit [Quit: Leaving.]
Transformer has joined #ocaml
Transformer has quit [Excess Flood]
blackdog_ has joined #ocaml
JdpB42 has left #ocaml []
avsm has joined #ocaml
EmmanuelOga has joined #ocaml
oriba has quit [Remote host closed the connection]
mdelaney has joined #ocaml
ikaros has joined #ocaml
mdelaney has quit [Quit: mdelaney]
ikaros has quit [Client Quit]
ikaros has joined #ocaml
mdelaney has joined #ocaml
mdelaney has quit [Client Quit]
trhodes has quit [Ping timeout: 255 seconds]
trhodes has joined #ocaml
avsm has quit [Quit: Leaving.]
tautologico has joined #ocaml
avsm has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
avsm has quit [Quit: Leaving.]
Submarine has quit [Remote host closed the connection]
ikaros has quit [Remote host closed the connection]
pilki has quit [Quit: This computer has gone to sleep]
Snark has quit [Quit: Quitte]
milosn has quit [Read error: No route to host]
milosn has joined #ocaml
sebz has joined #ocaml
cdidd has quit [Remote host closed the connection]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
antegallya has joined #ocaml
edwin has quit [Remote host closed the connection]
bbear has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
<bbear> helo
<thelema_> hello
thelema_ is now known as thelema
<tautologico> what is the "standard" way of using batteries? with or without the syntax extensions?
philtor has joined #ocaml
<thelema> tautologico: as lead of the batteries project, I don't use the syntax extensions
<bbear> hello
<thelema> I believe many users don't use them. I don't really know anyone who does.
<thelema> bbear: hello
<tautologico> so why keep them in the library?
<bbear> what has ocaml different compared to lisp, scheme, haskell, erlang or clojure ?
<thelema> tautologico: some users really appreciate using the print extensions (which aren't very well documented, so I can't help much with them)
<thelema> bbear: I think of it like haskell with a reasonable runtime system; eager semantics and very efficient builtin operations
<thelema> tautologico: but it's a fair question; maybe they should be moved outside batteries. I don't think it costs batteries much to keep them.
<tautologico> one problem I see with adoption is that if people use all the extensions together, it's almost like another language, or another dialect of ocaml
<tautologico> this can make some people wary
<adrien> I haven't seen many (if any) widespread/common language extension that gave that impression
<adrien> usually the effect is well-delimited and well-documented
<zorun> tautologico: this is a well-known issue for Lisp
<tautologico> zorun: yes, I know
<zorun> but as adrien, I think most people are simply using OCaml as it is, without modifying the language
<tautologico> the first example on the "getting started" page in the batteries wiki already uses 2 syntax extensions, that's why I asked
<tautologico> I like both, actually... not having a standard way to get a simple i..j range list in ocaml is an usual annoyance for me (along with having to write lots of other utility functions that should be in the std lib)
<tautologico> thelema: hm, just simple operators then?
<thelema> yup. let (|>) x f = f x
<tautologico> doesn't this have some efficiency issues?
antegallya has quit [Remote host closed the connection]
<tautologico> looking at https://github.com/ocaml-batteries-team/batteries-included/wiki/Syntax-extensions I see batteries have only a few
<tautologico> I seem to remember seeing an older documentation that listed more stuff
sebz has joined #ocaml
raichoo has quit [Quit: leaving]
<thelema> tautologico: the list has been cut down slightly.
<thelema> tautologico: efficiency issues for |>? Actually, the ocaml compiler just added a new primitive to make this kind of operator free.
<tautologico> that's good
<thelema> %revapply
Cyanure has quit [Remote host closed the connection]
Ralith has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
bbear has quit [Remote host closed the connection]
letrec has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
blackdog_ has quit [Quit: Leaving]