Yurik changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml| Early releases of OCamlBDB and OCamlGettext are available
<_BT> can a function return multiple values in ocaml?
<Kinners> you can return a tuple, like (1,2,3)
<Riastradh> Why would you need to return mutliple values and not a tuple?
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
Kinners has left #ocaml []
<_BT> no particular reason, just wondering
shea has joined #ocaml
<_BT> has anybody tried porting ocaml to S390 Unix System Services?
<_BT> ocaml on the mainframe would be killer.
<_BT> although, of course, nobody would use it.
<_BT> just like nobody uses Perl on the mainframe
<mrvn_> Package: ocaml
<mrvn_> Architecture: any
<mrvn_> +':'
<mrvn_> 3.06-15 (latest build at Dec 26 00:11: maybe-successful)
<mrvn_> Why wouldn't one want to use ocaml on a mainframe?
mrvn_ is now known as mrvn
<_BT> mainframe people almost never use any of the neat stuff that's available.
<_BT> at least not at the companies I've been at
<mrvn> With Debian linux S390 you can hardly not use perl though.
<_BT> yeah, but linux S390 isn't used most places. Unix system Services is much more prevalent, but at my shop it's used strictly for hosting websphere.
<_BT> nobody thinks to use it for anything else, even though it offers easy solutions to a host of common problems
<_BT> the nice thing about Unix system Services is that it can live on the same LPAR as your regular MVS environment, and read and write MVS files
<mrvn> IBM is developing linux S390 a few km from where I live.
<_BT> my company put linux s390 on one box as an experiment, but we can't get fundinmg to make it permanent
<_BT> budgets are really tight right now
<_BT> and IBM wants 100K for the underlying VM version necessary to run linux
<mrvn> I'm not sure if its cost effective anyway. PCs are so cheap.
<_BT> PCs are cheap, but managing them is costly
<_BT> if you have 1000s of them
lament has joined #ocaml
seth_ has joined #ocaml
<seth_> Is ocaml input sensitive to format, the way Haskell is?
_BT has quit [Remote closed the connection]
mattam has joined #ocaml
lament_ has joined #ocaml
lament_ has quit [Client Quit]
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
xtrm has quit ["byebye"]
foxster has quit [Read error: 110 (Connection timed out)]
<pattern_> is there any way i can compare functions?
<pattern_> # sin = sin ;;
<pattern_> Exception: Invalid_argument "equal: functional value".
<pattern_> # sin == sin ;;
<pattern_> - : bool = false
gene9 has joined #ocaml
systems has joined #ocaml
systems has left #ocaml []
JPJFIUM has joined #ocaml
JPJFIUM has left #ocaml []
docelic|sleepo is now known as docelic
<pattern_> what is the difference between := and <-
<mrvn> the type
<pattern_> don't both change a mutable value?
<mrvn> # let foo a = a := 1;;
<mrvn> val foo : int ref -> unit = <fun>
<mrvn> # let bla a = a.[1] <- 'a';;
<mrvn> val bla : string -> unit = <fun>
<mrvn> # let blub a = a.(1) <- 1;;
<mrvn> val blub : int array -> unit = <fun>
<mrvn> # type bla = { mutable a : int; };;
<mrvn> type bla = { mutable a : int; }
<mrvn> # let grumpf a = a.a <- 1;;
<mrvn> val grumpf : bla -> unit = <fun>
<pattern_> so := is only used with a simple reference
<mrvn> and <- only with records
<pattern_> got it
<pattern_> thanks, mrvn
gene9 has quit [Read error: 104 (Connection reset by peer)]
_BT has joined #ocaml
gene9 has joined #ocaml
_BT has quit ["Client Exiting"]
gene9 has quit [Read error: 104 (Connection reset by peer)]
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
avn has quit [Read error: 110 (Connection timed out)]
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
gl has quit [Read error: 110 (Connection timed out)]
docelic has quit [Read error: 60 (Operation timed out)]
TachYon26 has joined #ocaml
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
smkl has quit [Read error: 113 (No route to host)]
docelic has joined #ocaml
<pattern_> can i have two different types in a record?
<pattern_> type 'a 'b foo = { bar: 'a ; baz: 'b } ;;
<pattern_> that doesn't work
seth_ has quit [Remote closed the connection]
smkl has joined #ocaml
mellum has quit [Read error: 110 (Connection timed out)]
mellum has joined #ocaml
TachYon26 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
avn has joined #ocaml
gl has joined #ocaml
systems has joined #ocaml
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
Krystof is now known as K_music
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
systems has quit [Read error: 110 (Connection timed out)]
shea has quit [Read error: 60 (Operation timed out)]
docelic has quit [Remote closed the connection]
docelic has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
mrvn has joined #ocaml
Vincenz has joined #ocaml
shea has joined #ocaml
systems has joined #ocaml
systems has left #ocaml []
TachYon has joined #ocaml
TachYon has quit ["Client Exiting"]
Kinners has joined #ocaml
Vincenz has quit ["Sleep, lots of sleep"]
docelic has quit ["brb"]
docelic has joined #ocaml
Kinners has left #ocaml []
mattam has quit [Read error: 110 (Connection timed out)]