vect changed the topic of #ocaml to: OCaml 3.07 ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn, ICFP'03 http://www.icfpcontest.org/, A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/, A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
mattam has quit [sterling.freenode.net irc.freenode.net]
mattam has joined #ocaml
phubuh has quit [sterling.freenode.net irc.freenode.net]
__DL__ has quit [sterling.freenode.net irc.freenode.net]
__DL__ has joined #ocaml
phubuh has joined #ocaml
g1m has quit ["dodo"]
__DL__ has quit [Remote closed the connection]
phubuh has quit [sterling.freenode.net irc.freenode.net]
phubuh has joined #ocaml
mellum has quit [sterling.freenode.net irc.freenode.net]
avn has quit [sterling.freenode.net irc.freenode.net]
avn has joined #ocaml
mellum has joined #ocaml
mimosa has quit ["I like core dumps"]
simon- has joined #ocaml
Kinners has joined #ocaml
lus|wazze has joined #ocaml
Kinners has left #ocaml []
systems has joined #ocaml
systems has left #ocaml []
rox has quit [Operation timed out]
maihem has joined #ocaml
karryall has quit ["go"]
srv has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
The-Fixer has quit [Read error: 104 (Connection reset by peer)]
systems has joined #ocaml
karryall has joined #ocaml
systems has left #ocaml []
g1m has joined #ocaml
<Maddas> Hm, any vim user around?
<lus|wazze> yep
<lus|wazze> why?
<Maddas> How do I get O'Caml auto-indenting again?
<lus|wazze> ?
<Maddas> Last time I just modified my ocaml syntax file, but I was told that it works differently too
<lus|wazze> set ai ?
<lus|wazze> or do you mean something else?
<Maddas> hm, probably ai
<Maddas> What exactly do I set it to? :-)
<lus|wazze> on`?
<lus|wazze> its a flag ...
<lus|wazze> :set autoindent
<Maddas> doh
<lus|wazze> the alternative would be :set noai
<Maddas> Hm, doesn't work either
<lus|wazze> its just the default vi autoindent
<lus|wazze> what do you want it to do?
<Maddas> Indent O'Caml!
<Maddas> I'll just modify my O'caml syntax file again
<Maddas> lus|wazze: I don't mean indent-like-last-line
<Maddas> I mean indenting by syntax
<lus|wazze> yeah well then the syntax file has to support it
<lus|wazze> and i don't know if the one that comes with vim does
<Maddas> ok
<Maddas> I'll just copy the syntax file I hacked together on my other PC, thanks then
<Maddas> I thought maybe the default syntax file would support it
<mellum> Hm. I have a failure in Problems__fun_623, is there any way to find out where that is in the source? Some closure in module problem, presumably...
srv has quit ["leaving"]
systems has joined #ocaml
systems has left #ocaml []
rox has joined #ocaml
The-Fixer has joined #ocaml
mimosa has joined #ocaml
owll has joined #ocaml
owll has quit [Client Quit]
srv has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
cm has quit [Read error: 113 (No route to host)]
cm has joined #ocaml
<Maddas> hmm
<Maddas> srv: you there?
<srv> Maddas: yes
<Maddas> srv: is libnn still being developed?
<srv> Maddas: actually, the project has been forked and renamed
<srv> and it's under ACTIVE development
<Maddas> oh
<Maddas> srv: what's the new name?
<Maddas> cool, thanks
<Maddas> why the fork?
<srv> We are currently integrating some genetic programming stuffs
<srv> because libnn was a sub project of a project called "the marvin project", wich will not be maintained any more
<Maddas> ah, I see
<Maddas> that's very cool then
* Maddas checks for documentation
<srv> lots of changes are going to come pretty soon
<srv> I'm going to rewrite all the project's compilation system pretty soon
<srv> (whithin a few days)
<Maddas> hah
<srv> why are you interested in the project?
<Maddas> I thought I'd play around with neural networks and stuff a little
<Maddas> and I remembered your project :)
<srv> :)
<karryall> srv: looks interesting
<srv> I don't really know how far we are from a release
<Maddas> hm, I'm having problems connecting to that site
<karryall> what kind of algorithms are implemented ?
<Maddas> srv: oh, you haven't made any release yet? So I should wait before playing around?
<Maddas> I'm not really in a hurry or anything, just thought I'd like to have a go at it once
<srv> I think I'll announce the first release on the Caml mailing list when it's out.
<karryall> mainly neural networks so ?
<Maddas> hm, savannah.nongnu.org times out for me :-(
<srv> for now...
<srv> strange
<srv> try later (I don't really know what else to say...)
<Maddas> ok
<Maddas> does it work for you?
<srv> yes
<Maddas> hm. Can you resolve the hostname for me maybe?
<srv> avannah.nongnu.org is an alias for nongnu.org.
<srv> nongnu.org has address 199.232.41.4
<karryall> eek visitor patterns all over the place
<srv> I repeat: it's not supposed to be usable for now.
<srv> karryall: yep... we do a lot of visitors (almost everywhere, actually)
<Maddas> times out too, I'll try from home when I'm there
<srv> Maddas: :(
<Maddas> Hm, anybody mind looking into a problem I'm having? I'll paste the code if anybody feels like helping :)
* srv is quite busy (project deadline tomorrow). Sorry....
<Maddas> sure, no problem :)
srv has quit ["Lost terminal"]
srv has joined #ocaml
<Maddas> Anybody? :/
<karryall> yeah ?
<Maddas> I'll paste the code
<karryall> OK
<Maddas> the problem is the type of f
<Maddas> e.g. if I call it with mat_op (+) a b
<Maddas> it complains
<karryall> well of course, (+) is of type int -> int -> int
<karryall> er no
<karryall> forget what I said
<Maddas> yes, but why wouldn't that work?
srv has quit ["leaving"]
<Maddas> I can't see any operation that would not work when f is int -> int -> int
<Maddas> I didn't have the signatures in the function declaration before -I added them while debugging, didn't help
<karryall> hum, it doesn't compile for me
srv has joined #ocaml
<karryall> if think you meant:
<karryall> Array.init la (fun x -> Array.init laa (fun _ -> newitem))
<karryall> or
<karryall> Array.init la (fun x -> Array.create laa newitem)
<karryall> mat_op (+) [| [| 1; 0|]; [|0; 1|] |] [| [| 1; 1|]; [| 0; 1|] |] ;;
<karryall> - : int array array = [|[|2; 1|]; [|0; 2|]|]
<karryall> works !
<Maddas> hmm
<Maddas> yes :)
<Maddas> thakns a lot!@
<Maddas> silly keyboard
<Maddas> Thanks a lot!
<Maddas> But I am right that there isn't any way to declare multi-dimensional arrays directly, right?
<Maddas> I didn't use Array.create because if I use Array.create 10 (Array.create 10) then all the ten first arrays point to the same structure
<karryall> right
<karryall> you have to use Array.init to evaluate Array.create each time
<karryall> got to go, bye
<Maddas> yup
<Maddas> bye
karryall has quit ["home"]
<Maddas> (Was just wondering if there is a workaround)
<Demitar> Maddas, multi-dimensional no, unless you use bigarray, to create two-dimensional arrays (matrix) you can use Array.make_matrix and Array.create_matrix
<Maddas> hm ok, thanks
* Demitar points to the docs. ;-)
<Maddas> sorry for bothering :)
<Demitar> No worries, just that if you didn't know about *_matrix you obviously never looked in the Array module documentation. :)
<Demitar> (Which is the natural place to look really. bigarray is a bit harder to find naturally)
<Maddas> True
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
systems has joined #ocaml
phubuh has quit [Remote closed the connection]
cgxt has joined #ocaml
<cgxt> does anyone know how to get lists working in a parser
<Demitar> Using ocamllex?
<cgxt> yah
<cgxt> i have this
<cgxt> list_expr:
<cgxt> |LBRACK RBRACK { ListExp [] }
<cgxt> |LBRACK inside_list RBRACK { ListExp $2 }
<cgxt> inside_list:
<cgxt> |expression SEMI { ListExp }
<cgxt> but im not sure what i should put in the brackets to make a list of expressions
<Demitar> How about adding in inside list:
<Demitar> Umm. Let me thing. (A bit tired so my brain works at half-speed. :)
<cgxt> haha
<cgxt> np thx for the help though
<Demitar> Perhaps: | expression SEMI inside_list { $1 :: $3 }
<cgxt> dude i think your a genious
<cgxt> that might just work
<Demitar> I did something like this a few months ago don't remember what I came up with eventually, but in essence you need an recursive declaration.
<cgxt> hmm yah that seems like it should do it
<cgxt> but for some reason no
<Demitar> Well it doesn't give the toplevel list anywhere.
<Demitar> It works as long as you have an unlimited amount of items in the list. :)
<Demitar> But it never resolves into the last item. [] or [$1]
<Demitar> Thus you get "foo" :: "bar" :: "quux" :: but you need to add a [] at the end to make it unwind.
<cgxt> shouldn't it be gettin that from list_expr though
<cgxt> im not really sure
systems has quit ["Client Exiting"]
<Demitar> Try changing |expression SEMI { ListExp } into | expression SEMI { [$1] }
<mattam_> cgxt: inside_list: | expr { [$1] } | expr COMMA inside_list { $1::$2 }
<cgxt> ah hell yah
<cgxt> why comma
<cgxt> oh thats if you want to use comma's ok
<cgxt> yah i got it
<cgxt> thanks a lot
<mattam_> np
mattam_ is now known as mattam
<cgxt> yah i forgot to re include | expression SEMI { [$1] }
<cgxt> i also put | expression { [$1] }
<cgxt> so you can end it without a semi colon
<cgxt> thanks again guys
srv has quit ["leaving"]
yinnte has joined #ocaml
<yinnte> hi
yinnte has left #ocaml []
maihem has quit ["Client exiting"]
owll has joined #ocaml
owll has quit [Read error: 104 (Connection reset by peer)]
srv has joined #ocaml
owll has joined #ocaml
owll has quit [Remote closed the connection]
karryall has joined #ocaml
karryall has quit ["ERC vVersion 3.0 $Revision: 1.328 $ (IRC client for Emacs)"]
cgxt has quit []
<Maddas> Ah, cool, got it working.
<Maddas> (vim indenting)
Jack_Avon has quit []
systems has joined #ocaml
<simon-> Maddas, was it hard?
<Maddas> simon-: no, I just copied my .vimrc from home to here :)