<karasuman>
I thought I got HOL Light going--it loaded in the ocaml top level without any errors--but I get this error whenever I type anything in backquotes: Parse error: [ident] expected after '`' (in [expr])
<karasuman>
does anyone know what that means?
Cybera has joined #ocaml
Cybera has left #ocaml []
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
ched_ has joined #ocaml
seafood_ has quit [Read error: 110 (Connection timed out)]
Ched has quit [Read error: 110 (Connection timed out)]
pierre_m has joined #ocaml
karasuman is now known as kara-zzz
kara-zzz is now known as karasuman
jeddhaberstro has quit []
karasuman has left #ocaml []
AxleLonghorn has joined #ocaml
jonafan_ has joined #ocaml
AxleLonghorn has left #ocaml []
AxleLonghorn has joined #ocaml
jonafan has quit [Read error: 110 (Connection timed out)]
manju__ has joined #ocaml
manju_ has quit [Remote closed the connection]
^authentic has joined #ocaml
authentic has quit [Read error: 145 (Connection timed out)]
^authentic is now known as authentic
seafood has quit []
<AxleLonghorn>
I get that OSpec [1] is a little new, but has anyone used it yet? Is it any good?
seafood has quit [Read error: 54 (Connection reset by peer)]
seafood_ has quit []
slash_ has quit [Client Quit]
kaustuv_ has quit ["ERC Version 5.3 (IRC client for Emacs)"]
mbishop_ is now known as mbishop
mikeX has joined #ocaml
mikeX__ has joined #ocaml
mikeX has quit [Read error: 60 (Operation timed out)]
mikeX_ has quit [Read error: 110 (Connection timed out)]
s4tan has joined #ocaml
animist has quit [Read error: 110 (Connection timed out)]
animist has joined #ocaml
^authentic has joined #ocaml
authentic has quit [Read error: 145 (Connection timed out)]
^authentic is now known as authentic
Alpounet has joined #ocaml
<Alpounet>
Hi
verte has joined #ocaml
seafood has joined #ocaml
_zack has joined #ocaml
_zack has quit [Remote closed the connection]
_zack has joined #ocaml
Palace_Chan has joined #ocaml
Palace_Chan has left #ocaml []
jeanbon has joined #ocaml
Yoric[DT] has joined #ocaml
<Yoric[DT]>
hi
<Alpounet>
hi Yoric[DT]
pierre_m has quit ["Leaving."]
hkBst has joined #ocaml
Alpounet has quit [K-lined]
Alpounet has joined #ocaml
jeanbon has quit ["J'y trouve un goût d'pomme."]
<Alpounet>
Hi all
<Alpounet>
I've a grammar defined with camlp4 and then try to parse a string wrt my grammar. I catch the Loc.Exc_located exception. But I get "(_,_)" instead of where the problem is in my string. I print the exception with :
komar_ has quit [Read error: 113 (No route to host)]
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
s4tan has quit []
Komar__ is now known as komar_
_zack has quit ["Leaving."]
ttamttam has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
ttamttam has left #ocaml []
barismetin has quit [Remote closed the connection]
th5 has quit []
komar_ has quit [Read error: 113 (No route to host)]
Alpounet has joined #ocaml
Camarade_Tux_ has quit [Read error: 110 (Connection timed out)]
<Alpounet>
hi
Camarade_Tux_ has joined #ocaml
Komar_ has joined #ocaml
pierre_m has left #ocaml []
ygrek has joined #ocaml
robocop has joined #ocaml
<flux>
alpounet, hi. I usually special case those. but I _think_ it should show it also if you run it from the toplevel and have the releavant .cmi-files in your search path
<robocop>
haha : let rec x = true::x;;
<robocop>
it's cute.
<Alpounet>
flux, about what ?
Komar_ has quit [Remote closed the connection]
Komar_ has joined #ocaml
<flux>
alpounet, Fri135803 < Alpounet> Any way of getting more details, unlike : Parse error: Loc.Exc_located(_, _)
<Alpounet>
oh
<Alpounet>
ok
<Alpounet>
thanks !
kmkaplan has quit [Read error: 113 (No route to host)]
Camarade_Tux_ has quit [Read error: 104 (Connection reset by peer)]
slash_ has quit [Read error: 110 (Connection timed out)]
wsmith84 has joined #ocaml
Ched has joined #ocaml
marmottine has quit [Read error: 60 (Operation timed out)]
itewsh has joined #ocaml
<mrvn>
Is the order in which values in a class are initialized specified by ocaml?
<palomer>
I'm writing a library with modules A and B. I want everything in module A to be visible in module B, but I want some of module A to be private to users of my library
<palomer>
is it possible to do this?
<mrvn>
include A in B?
<Camarade_Tux>
mrvn, I'd rather not bet on that
<Camarade_Tux>
actually in a (); b ();, b () could be ran before a ()
ttamttam has joined #ocaml
<palomer>
mrvn, but that would make a really big module
ttamttam has left #ocaml []
<palomer>
like, REALLY big
<mrvn>
let n = ref 0
<mrvn>
let next () = incr n; !n
<mrvn>
class foo = object val x = next () val y = next () val z = next () method print = Printf.printf "%d %d %d\n" x y z end;;
<mrvn>
Camarade_Tux: Instead of next () I parse data from a stream. And that better be in order x y z.
<mrvn>
.oO( Otherwise I'm screwed )
<mrvn>
back in a while
<Camarade_Tux>
mrvn, I and a friend of mine have personnaly witnessed that and the solution has been to use let _ = a () in b (), nothing less, nothing more and the bugs we had were solved
<Camarade_Tux>
since that I don't rely on evaluation order in ocaml when ; is involved as a separator
<mattam>
There's no way to ascribe without ascribing in modules right (like the <: construct in Coq). It just checks a signature is satisfied by the module instead of sealing it.
vuln has joined #ocaml
sgnb has quit [Read error: 54 (Connection reset by peer)]
sgnb has joined #ocaml
Alpounet has joined #ocaml
marmottine has joined #ocaml
<mrvn>
re
marmottine has quit [Read error: 60 (Operation timed out)]
jeddhaberstro has joined #ocaml
<mrvn>
Camarade_Tux: Problem is I can't use class foo stream = let x = ... in let y = ... in object inherit super stream ... end. I need the super class to parse its stuff from the stream first.
<mrvn>
Camarade_Tux: Otherwise I have to first parse the super stuff into a temp value, then parse the rest and then inherit super temp later. That becomes quite ugly.
<Camarade_Tux>
mrvn, unfortunately I have very little experience with ocaml's object system
<mrvn>
I is somewhat limited.
<mrvn>
It
<palomer>
whoa
<palomer>
I forgot that you could call == on an object
<palomer>
== is referential equality, right?
<mrvn>
palomer: for object = and == are the same
<palomer>
and = is structural
<palomer>
oh, so objects don't have structural equality?
<mrvn>
# class foo = object end;;
<mrvn>
class foo : object end
<mrvn>
# new foo = new foo;;
<mrvn>
- : bool = false
<Alpounet>
brb
<palomer>
well...this solves many issues
<palomer>
and you can put objects in a hash table, right?
<palomer>
as the key
<mrvn>
they are a value like any other. :)
<palomer>
and it'll use == semantics, right?
<mrvn>
you want this for your tree plotting thing?
<palomer>
yeah
<mrvn>
I don't think this will help you. you can just as well use an int as type instead of an object.
<mrvn>
as key I mean
<palomer>
im going to index my node objects
<palomer>
how can this not help me?
<mrvn>
Are they objects already?
<palomer>
yeah
<palomer>
im big on OO
<mrvn>
then it works. I thought you wanted to create an object for every node in your tree as yougo along.
* palomer
wonders if there are functionally inspired GUIs
<palomer>
gui toolkits, that is
<mrvn>
somehow GUIs are inherently screaming for OO and imperative.
<hcarty>
There is FrGui, which (somewhat) masks the OO pieces of lablgtk
<hcarty>
It is somewhat incomplete and (apparently) unmaintained though
<palomer>
ok
* palomer
sticks with OO
<Camarade_Tux>
iirc another functional reactive gui project has been started a few months ago fwiw
<Alpounet>
where ?
oof has joined #ocaml
<oof>
hello
<oof>
how is Random.set_state supposed to be invoked?
<hcarty>
oof: It looks like you could either take snapshots of the default state using Random.get_state, or make new ones with Random.State.make or .make_self_init
<Alpounet>
gn Camarade_Tux, thanks
<oof>
what is int array?
<Alpounet>
an array of integers ... ? :)
ygrek has quit [Remote closed the connection]
<oof>
[1;2;3]?
<oof>
ah nevermind, [|1;2;3|]
<Alpounet>
[ (* something *) ] => list
<Alpounet>
[| (* something *) |] => array
<oof>
ok i see
<oof>
so the int array that is used to seed the state? like how does each item contribute?