flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
rogo has quit ["Leaving."]
rogo has joined #ocaml
psnively has quit []
bzzbzz has joined #ocaml
jeddhaberstro has quit []
landonf has quit []
bluestorm has joined #ocaml
bluestorm has quit [Client Quit]
bluestorm has joined #ocaml
bzzbzz has quit ["leaving"]
bluestorm has quit [Client Quit]
bluestorm has joined #ocaml
<bluestorm> sorry for the join/quit noise
jeddhaberstro has joined #ocaml
Proteus__ has joined #ocaml
netx has joined #ocaml
Associat0r has quit []
Proteus_ has quit [Read error: 113 (No route to host)]
bluestorm has quit [Read error: 110 (Connection timed out)]
jeddhaberstro has quit []
TaXules has quit [Remote closed the connection]
TaXules has joined #ocaml
<palomer> flux, awake yet?
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
palomer has quit [Remote closed the connection]
Proteus_ has joined #ocaml
Proteus__ has quit [Read error: 113 (No route to host)]
seafood has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
jonafan_ has joined #ocaml
jonafan has quit [Read error: 60 (Operation timed out)]
Linktim has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
filp has quit [Remote closed the connection]
Amorphous has joined #ocaml
Jedai has quit [Read error: 110 (Connection timed out)]
coucou747 has joined #ocaml
mikezackles has quit [Read error: 110 (Connection timed out)]
Linktim_ has joined #ocaml
Linktim_ has quit ["Quitte"]
Linktim_ has joined #ocaml
Linktim has quit [Read error: 113 (No route to host)]
det has quit [Remote closed the connection]
GustNG has joined #ocaml
asmanur has joined #ocaml
coucou747 has quit [Remote closed the connection]
coucou747 has joined #ocaml
gaja has quit ["leaving"]
Yoric[DT] has joined #ocaml
guillem has joined #ocaml
ygrek has joined #ocaml
jlouis has joined #ocaml
seafood has joined #ocaml
knucker has joined #ocaml
<knucker> Hello, I have a file "allReader.ml" inside it I am defining "module AllReader : sig .. end = ...."
Linktim_ has quit ["Quitte"]
<knucker> What I end up with, is a nested module.... AllReader.AllReader ... how do I avoid this?
<mfp> knucker: place the signature in allReader.mli
<mfp> and remove module AllReader .... from the .ml
<mfp> knucker: e.g., a.ml: let foo = (+) a.mli: val foo : int -> int -> int
<mfp> btw. ocamlc -i can generate the interface for you (remove values and make types abstract as needed)
Linktim has joined #ocaml
szell` has joined #ocaml
<knucker> makes sense, thanks
seafood has quit []
<knucker> next step is that I want all my *Reader.ml modules to share the same Reader signature
<knucker> How do I do that... I've see this done through module AllReader : Reader = ... am I not going to end up with the same nesting issue?
szell has quit [Read error: 110 (Connection timed out)]
RobertFischer has joined #ocaml
RobertFischer has quit [Client Quit]
knucker has quit ["This computer has gone to sleep"]
hkBst has quit ["Konversation terminated!"]
bluestorm has joined #ocaml
szell has joined #ocaml
filp has joined #ocaml
szell` has quit [Read error: 110 (Connection timed out)]
filp has quit ["Bye"]
knucker has joined #ocaml
<Smerdyakov> knucker, use the [include] signature item in your .mli files.
thelema has quit [Read error: 110 (Connection timed out)]
* knucker googles it up
Linktim has quit ["Quitte"]
<Smerdyakov> knucker, bad move. Use the manual.
<knucker> Yeah, I'm looking at the Ocaml Oreilly PDF
<knucker> Can't find anything...
Linktim has joined #ocaml
<Smerdyakov> That's not the manual.
<knucker> which is the manual? The PDF is the main reference I have been using
<bluestorm> the formal description of the .mli (aka module signatures) content is at http://caml.inria.fr/pub/docs/manual-ocaml/manual018.html
asmanur has quit [Read error: 60 (Operation timed out)]
Associat0r has joined #ocaml
rwmjones has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
jlouis has quit [Remote closed the connection]
redocdam has joined #ocaml
jlouis has joined #ocaml
<gildor> rwmjones: hi
vixey has joined #ocaml
knucker has quit ["This computer has gone to sleep"]
rwmjones has quit [Read error: 113 (No route to host)]
ulfdoz_ has joined #ocaml
ulfdoz_ has quit [Client Quit]
jlouis has quit [Remote closed the connection]
pango_ has quit [Remote closed the connection]
<mfp> gildor: I've been reading ocaml-autobuild
<mfp> so you have in place essentially: platform + dep checks, cmdline handling, env/configuration caching, interpolation of $(var) in .in files, calling ocamlbuild/others, right?
<gildor> mfp: yes, that is the idea
jlouis has joined #ocaml
<gildor> mfp: but it is not a "everyone must use my progam" this is a "I build this for my own use hoping other can use it"
<mfp> atm. you have #directory and #use; I suppose it'd be installed eventually?
<gildor> mfp: FYI the program is one week old ;-)
<gildor> #directory and #use are only here because I am in dev stage
<gildor> i think at the end there will a #ocaml-autobuil ocamlbuild
<mfp> well, the goal would be "everyone want to use this because it makes it easier to develop, release, obtain, install, etc." :-)
<gildor> that will transform in #directory + #use for dev. env
<gildor> and expand to the full source for distribution
<mfp> I'm not sure I get this
<gildor> indeed the goal is "I hope everyone want to use this because"
<gildor> mfp: this is not yet implemented
<mfp> you mean releasing w/ a new toplevel directive in the build.ml?
<gildor> but my idea is to have build.ab (autobuild)
<gildor> that transform into build.ml
<gildor> depending if you are a dev. or a user
pango_ has joined #ocaml
<mfp> I'd like to have something as simple as foo.cabal
<mfp> so the info can be extracted without running anything
<mfp> the equiv to build.ml is a 3-line Setup.lhs
<gildor> i think it is a good idea
<mfp> all the info is essentially in a very simple file name: foo version: 0.0 ....
<gildor> indeed
<gildor> and you can parse it quite easily
<mfp> want me to write the parser?
<gildor> if you want
<mfp> no external dependencies, right?
<gildor> But you should think "minimal external dependencies"
<mfp> OK
<gildor> you can use everything in ocaml (Str... Unix but only things that are OK on windows)
<gildor> + findlib
<gildor> + fileutils
<mfp> roger
<gildor> the idea is to be able to copy and paste the parser directly in build.ml (ie #use)
<mfp> yup
<mfp> what about creating a sample project so we have something to run this against?
<mfp> say, something like cryptokit, which combines stubs and OCaml code
<mfp> (it's also the example used in ocamlbuild's wiki)
<gildor> i prefer a real "sample" project
<gildor> we don't care if there is something in the project
<gildor> and i don't want license problem by copying other project
<mfp> just to make sure it's doing the right thing
<mfp> OK, dummy code then
<gildor> use a directory name "test" at the root of the project
<gildor> i use oUnit most of the time to do unitary test
<mfp> something with trivial stubs and an executable, so we can darcs setpref the tests
<gildor> ok
<mfp> what about the "special files" like META, .clib, _tags, .itarget, etc.?
<mfp> they could be generated automatically
<mfp> unless already present, in which case they are preserved
<gildor> yes, but make this an "option"
<mfp> this makes simple things easy (nothing to do besides build.ab), and complex things possible (can hand-write them)
<gildor> you should separate the parsing and the generation of this file
<mfp> for instance with build-type: [simple | custom-ocamlbuild | ...] in build.ab
<gildor> ok
<mfp> yes, since the parser will be reused when the time comes to extract the info (for the DB, etc.)
<gildor> and you should avoid recreating a file that will have the same conten
<gildor> content
<gildor> which will trigger a rebuild in certain case
<mfp> any prefs regarding ocamlyacc vs. ad-hoc String processing for the parser?
<gildor> i do prefer ad-hoc string processing (sorry)
<mfp> the former is "more correct" but takes more work and is messier installation-wise, the later is simpler
<gildor> you can use Str
<mfp> me too in this case actually :)
<gildor> and Genlex
<gildor> mfp: if you are interested in cooperation, i will setup a project on forge.ocamlcore.org
<mfp> I was about to suggest it
<gildor> keep your changes into your local copy of darcs
<mfp> ok
<gildor> I will setup the project after my holiday (15th August)
<mfp> does it require manual intervention? iow. cannot I create the project as a normal forge user (once I register)?
<gildor> it needs admin intervention for creating the darcs repository
<mfp> I see
<gildor> but we are not in a hurry
<gildor> you can record everything you want inside your darcs local repository and then send it to the project we will setup
<Yoric[DT]> For a darcs repository ?
<Yoric[DT]> I thought ssl + http was sufficient ?
<mfp> ssl? do you mean SSH?
<gildor> Yoric[DT]: yes, but and admin must create the directory hosting the project with the good right
<gildor> mkdir darcsroot/XXX + chmod g+w darcsroot/XXX + chown scm-forge ...
* mfp has always darcs pushed through SSH --- don't remember if it can also do HTTP PUT, but it'd need extra setup in the server anyway
<mfp> bbiaw
<Yoric[DT]> mfp: yes, I meant ssh.
<Yoric[DT]> gildor: ok.
jeddhaberstro has joined #ocaml
marmotine has joined #ocaml
tomh- has joined #ocaml
tomh- is now known as tomh
Kopophex has joined #ocaml
<flux> hm, I suppose ocaml toplevel could use some findlib-like godi-integration ala haskell: http://chrisdone.com/blog/2008/08/01/ghci-on-acid-goa/
Watza has joined #ocaml
<Watza> donc comme je vous le disais il y a quelque temps
<Watza> j'ai des insomnies de merde !!!
<Watza> ralalala
Watza has left #ocaml []
<bluestorm> gildor: do project owner get notified when someone submit a new patch ?
<mfp> AFAIK darcs doesn't have any hook for push
<mfp> git does, however
<bluestorm> mfp: i used the forge "tracker" system
<mfp> ah
<mfp> that might be user-configurable (I remember receiving notices w/ some forges and not getting anything w/ some other)
asmanur has joined #ocaml
<gildor> bluestorm: I think you can configure it
<gildor> but i have not try
<gildor> when people submit bug to site admin, i get notified
<gildor> i think it is the same principle
mikezackles has joined #ocaml
asmanur has quit [Read error: 110 (Connection timed out)]
Linktim has quit [Read error: 110 (Connection timed out)]
palomer has joined #ocaml
<palomer> flux, you awake?
Linktim has joined #ocaml
<palomer> http://ocaml.pastecode.com/?show=m180f24a9 <--this opens an empty window, what gives?
<flux> palomer, maybe you could try stracing the binary, if you're on linux
<flux> I'm guessing it blocks somewhere
<flux> alternative to stracing is to add debug trace messages
<flux> also the channel isn't in nonblocking mode
<flux> moreover you're using open_process_full, but you're never providing it any input. shoudln't matter with ls, though.
<flux> also, you're not consuming err_c, but that shoudln't matter in this case either
<flux> damn, typoing that should-word alot
<flux> does it work without the add_watch-thingy?
ygrek has quit [Remote closed the connection]
mattam has quit ["Lost terminal"]
vixey has quit []
mattam has joined #ocaml
seafood has joined #ocaml
Linktim has quit ["Quitte"]
seafood has quit [Read error: 54 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Connection reset by peer]
seafood has joined #ocaml
seafood has quit [Read error: 54 (Connection reset by peer)]
seafood has joined #ocaml
thelema has joined #ocaml
<palomer> flux, still around??
<palomer> flux, "running" is never printed
seafood has quit [Read error: 110 (Connection timed out)]
* palomer hates unix.read!
jlouis has quit ["Leaving"]
rogo has quit [Read error: 110 (Connection timed out)]
coucou747 has quit ["bye ca veut dire tchao en anglais"]
Yoric[DT] has quit ["Ex-Chat"]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]