demitar_ has quit [calvino.freenode.net irc.freenode.net]
slashvar1lri] has quit [calvino.freenode.net irc.freenode.net]
Submarine has quit [calvino.freenode.net irc.freenode.net]
bk_ has quit [calvino.freenode.net irc.freenode.net]
buggs has quit [calvino.freenode.net irc.freenode.net]
Lemmih has quit [calvino.freenode.net irc.freenode.net]
Banana has quit [calvino.freenode.net irc.freenode.net]
wolfman8k has quit [calvino.freenode.net irc.freenode.net]
vezenchio has quit [calvino.freenode.net irc.freenode.net]
kosmikus has quit [calvino.freenode.net irc.freenode.net]
_shawn has quit [calvino.freenode.net irc.freenode.net]
_fab has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
mattam has quit [calvino.freenode.net irc.freenode.net]
rox has quit [calvino.freenode.net irc.freenode.net]
pattern has quit [calvino.freenode.net irc.freenode.net]
skylan has quit [calvino.freenode.net irc.freenode.net]
mellum has quit [calvino.freenode.net irc.freenode.net]
kinners has quit [calvino.freenode.net irc.freenode.net]
srv has quit [calvino.freenode.net irc.freenode.net]
cmeme has quit [calvino.freenode.net irc.freenode.net]
gim has quit [calvino.freenode.net irc.freenode.net]
gl has quit [calvino.freenode.net irc.freenode.net]
jlouis has quit [calvino.freenode.net irc.freenode.net]
smkl has quit [calvino.freenode.net irc.freenode.net]
det has quit [calvino.freenode.net irc.freenode.net]
Riastradh has quit [calvino.freenode.net irc.freenode.net]
yella has quit [calvino.freenode.net irc.freenode.net]
lam has quit [calvino.freenode.net irc.freenode.net]
slashvar1lri] has joined #ocaml
demitar_ has joined #ocaml
Submarine has joined #ocaml
bk_ has joined #ocaml
buggs has joined #ocaml
Lemmih has joined #ocaml
det has joined #ocaml
Riastradh has joined #ocaml
lam has joined #ocaml
yella has joined #ocaml
smkl has joined #ocaml
wolfman8k has joined #ocaml
vezenchio has joined #ocaml
Smerdyakov has joined #ocaml
_shawn has joined #ocaml
_fab has joined #ocaml
mattam has joined #ocaml
kosmikus has joined #ocaml
Banana has joined #ocaml
rox has joined #ocaml
mellum has joined #ocaml
skylan has joined #ocaml
pattern has joined #ocaml
kinners has joined #ocaml
srv has joined #ocaml
cmeme has joined #ocaml
gim has joined #ocaml
jlouis has joined #ocaml
gl has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
yella has quit [Remote closed the connection]
Axioplase has joined #ocaml
<Axioplase>
Chat Lu!
<kinners>
salut Axioplase
kinners has quit ["leaving"]
Nutssh has joined #ocaml
Nutssh has left #ocaml []
Lor has joined #ocaml
mfurr has joined #ocaml
bk_ has joined #ocaml
maml has joined #ocaml
<maml>
hello
<maml>
i have an abstract type "foo" and a function with side effect get_foo() which return a foo and play a music (st james - amstrong).
<maml>
i want to put foo in a ref variable x like this:
<maml>
x := get_foo ();
<maml>
but i can't call get_foo before call init_sound (); (a function wich turn my jukebox on)
<maml>
how can i define 'x' ?
<maml>
let x = ???? in begin init_sounf (); x := get_foo (); end
<karryall>
let x = ref None
<karryall>
then later, after init_sound
<karryall>
x := Some (get_foo ())
<maml>
ah !
<maml>
thanks :)
<Smerdyakov>
Why not: init_soundf (); let x = get_foo() in ...
<karryall>
he probably wants x to be a toplevel element
<maml>
in fact it's:
<maml>
no, sorry.
<karryall>
:)
<karryall>
actually, I see you don't want x to be a toplevel element
<karryall>
you could also write it as
<karryall>
let x = ref (init_sound () ; get_foo ()) in ...
<Smerdyakov>
But then it's silly to make it a ref.
<karryall>
that depends on what is in the body of the let .. in
<maml>
it's very hard to describe it for me (i do my best to speak english but it's difficult)
<karryall>
do it in french then :)
<vincenz>
Oui si tu veux, je parles francais
<Submarine>
roncq = rocquencourt?
<maml>
:)
<maml>
roncq is a small town in the north of the france
<maml>
there is a "High field" in Roncq.
<Submarine>
bon c'est quoi le pb
<maml>
hum
<karryall>
bon moi je pars en week-end, tcho
<maml>
euh, ca va aller, je vous remercie
karryall has quit ["week-end"]
Axioplase is now known as Axio|JP
bzzbzz has joined #ocaml
<vincenz>
Is it possible to have an ocaml interpreter taht does not allow certain modules to be used?
<Submarine>
"Is it possible to have an ocaml interpreter taht does not allow certain modules to be used?" ?
<Submarine>
Please explain precisely what you wish...
<vincenz>
Well I'm thinking of building upon this ircbot I found
<vincenz>
and I would like to have the ability to run ocaml code from within irc
<vincenz>
much like the bot in #scheme
<vincenz>
however for that to happen I need two limitations
<vincenz>
a) timeout should occur after too many instructions
<vincenz>
b) no system-functions may be called
<Submarine>
you mean, it would input arbitrary source code and run it?
<vincenz>
yup
<vincenz>
ircbot; (fun x -> x+1) 2;;
<Submarine>
well, you have to take the ocaml interpreter and restrict the directory where it looks for .cmi files, and prevent the use of #load, #use etc...
<Submarine>
Note that this prevents you from distributing binaries of your bot.
<vincenz>
Hmm
<vincenz>
Either way...I can't just use the interpreter
<vincenz>
the bot will be written in ocaml
<Smerdyakov>
I predict OCaml is on the way out due to bad licensing and intellectual control limitations!
* vincenz
scrathes his head
kosmikus is now known as kosmikus|away
<Submarine>
You cannot make an interpreter based on OCaml.
<vincenz>
damn
<maml>
Smerdyakov, i don't understand why
<Smerdyakov>
As I understand it, OCaml development is legally in the hands of INRIA.
<Smerdyakov>
If they lose funding or interest, OCaml is done.
<Smerdyakov>
... which has already happened with SML/NJ.
<maml>
can't they change the licence in such case ?
<Smerdyakov>
INRIA probably restricts what they can do.
<Submarine>
It's more complex than that.
<Submarine>
Ever heard of Moscow ML?
<Smerdyakov>
Yes
<Submarine>
Well, Leroy and others felt short-changed after the Moscow ML people took Caml Light, changed the input syntax etc... and made a sub-SML interpreter.
Demitar has joined #ocaml
Demitar has quit [Client Quit]
<Smerdyakov>
Does your story go on?
<Submarine>
Well, Leroy felt pissed off.
<Submarine>
They don't want such thing to happen again.
Hipo has quit ["leaving"]
<wolfman8k>
Aren't the OCaml tools Free Software?
<mfurr>
wolfman8k: yes. they are just trolling
<wolfman8k>
ok thanks
demitar_ has quit [Read error: 110 (Connection timed out)]
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
<Submarine>
Well, the compiler is not free software according to some definitions. At least it was not so some while ago.
<Submarine>
Now the license has changed, I see.
<mfurr>
there was some issues with the bignum library until recently, and that should be resolved/replaced in the next release
<maml>
i have just made a pong game in o'caml via tcp, can someone play with me in order to test it ?