adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.00.1 http://bit.ly/UHeZyT | http://www.ocaml-lang.org | Public logs at http://tunes.org/~nef/logs/ocaml/
beginner42 has quit [Quit: irc2go]
teamon has joined #ocaml
dmilith has joined #ocaml
gusta157 has quit [Remote host closed the connection]
mye has quit [Quit: mye]
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 252 seconds]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
fraggle_ has joined #ocaml
fraggle_ has quit [Client Quit]
fraggle_ has joined #ocaml
destrius has joined #ocaml
cornihilio has quit [Ping timeout: 256 seconds]
lolcathost has quit [Ping timeout: 244 seconds]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
leoncamel has joined #ocaml
lolcathost has quit [Ping timeout: 246 seconds]
cornihilio has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
pleax has quit [Quit: pleax]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cornihilio has quit [Ping timeout: 244 seconds]
jimi_hendrix has quit [Remote host closed the connection]
cornihilio has joined #ocaml
<cornihilio> I don't get this code https://gist.github.com/4129368
<cornihilio> specifically how the hell does it detect a circular data structure in the last example?!?
<cornihilio> sorry I added the result
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
<cornihilio> err sorry I think I figured it out on my own, so don't bother :P
lolcathost has quit [Ping timeout: 245 seconds]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
everyonemines has joined #ocaml
lolcathost has quit [Client Quit]
lolcathost has joined #ocaml
lolcathost has quit [Quit: Lost terminal]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
fasta_ has quit [Ping timeout: 260 seconds]
fasta has joined #ocaml
lolcathost has quit [Ping timeout: 255 seconds]
everyonemines has quit [Quit: Leaving.]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
lolcathost has quit [Client Quit]
Yoric has joined #ocaml
justdit has joined #ocaml
lolcathost has joined #ocaml
cdidd has joined #ocaml
justdit has quit [Read error: Connection reset by peer]
justdit has joined #ocaml
<orbitz> Is there a trick to running $EDITOR from another program? I'm getting complaints about stdin not being a tty
Yoric has quit [Ping timeout: 252 seconds]
<cornihilio> what am I doing wrong?: https://gist.github.com/4129570
<orbitz> cornihilio: room needs a name
<orbitz> you should just do type room = room_exists option
<orbitz> or just make 'room' your record, and then use room option around
<cornihilio> orbitz: I do not understand
<orbitz> You are trying to represent a room not existing, or if it does what information it has, right?
<cornihilio> yes
<orbitz> the option type already does this
<cornihilio> ah okay
<orbitz> so just make a room type, and then if you want to express it mayb existing, use room option
<cornihilio> orbitz: thank you!
<cornihilio> could someone recommend a small module for me to look at?
<cornihilio> I don't understand mli all that well or what good ocaml code is supposed to look like
leoncamel has quit [Quit: WeeChat 0.3.9.2]
BiDOrD has joined #ocaml
astertronistic has joined #ocaml
BiDOrD_ has quit [Ping timeout: 246 seconds]
mjonsson has quit [Ping timeout: 246 seconds]
mattrepl has quit [Quit: mattrepl]
Cyanure has joined #ocaml
leoncamel has joined #ocaml
everyonemines has joined #ocaml
everyonemines has quit [Client Quit]
Yoric has joined #ocaml
<cornihilio> in this code: https://gist.github.com/4129755 what does this mean: digit_transition p st.lka if digit_transition only takes one argument? how does that record modifier work?
pango is now known as pangoafk
ikaros has joined #ocaml
leoncamel has quit [Quit: WeeChat 0.3.9.2]
cornihilio has quit [Ping timeout: 240 seconds]
cornihilio has joined #ocaml
Cyanure has quit [Remote host closed the connection]
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
Cyanure has joined #ocaml
djcoin has joined #ocaml
hkBst has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ontologiae has joined #ocaml
leoncamel has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
astertronistic has quit [Ping timeout: 252 seconds]
cago has joined #ocaml
Playground has joined #ocaml
Playground has quit [Changing host]
Playground has joined #ocaml
Playground has quit [Client Quit]
ontologiae has quit [Ping timeout: 246 seconds]
astertronistic has joined #ocaml
lolcathost has quit [Quit: Lost terminal]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
ftrvxmtrx has joined #ocaml
ocp has joined #ocaml
larhat has quit [Quit: Leaving.]
Neros has quit [Ping timeout: 244 seconds]
cornihilio has quit [Ping timeout: 265 seconds]
Kakadu has joined #ocaml
ontologiae has joined #ocaml
sepp2k has joined #ocaml
Neros has joined #ocaml
Yoric has joined #ocaml
ocp has quit [Quit: Leaving.]
eni has joined #ocaml
ontologiae has quit [Ping timeout: 246 seconds]
ontologiae has joined #ocaml
mindbender1 has joined #ocaml
Xizor has joined #ocaml
ontologiae has quit [Ping timeout: 256 seconds]
larhat has joined #ocaml
destrius has quit [Read error: Operation timed out]
_andre has joined #ocaml
avsm1 has joined #ocaml
mindbender1 has quit [Quit: Leaving.]
destrius has joined #ocaml
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Yoric has quit [Ping timeout: 244 seconds]
ontologiae has joined #ocaml
myx has joined #ocaml
avsm1 has quit [Quit: Leaving.]
pleax has joined #ocaml
ontologiae has quit [Ping timeout: 244 seconds]
beckerb has joined #ocaml
avsm1 has joined #ocaml
pleax has quit [Quit: pleax]
ontologiae has joined #ocaml
Yoric has joined #ocaml
eni has quit [Ping timeout: 252 seconds]
avsm1 has quit [Quit: Leaving.]
Neros has quit [Ping timeout: 276 seconds]
<yezariaely> is there a function in ocaml or batteries which takes two arguments and simply drops the second one?
<yezariaely> i.e. a -> b -> a ?
<Kakadu> like const?
<yezariaely> well, yes, like const :D
<yezariaely> thx
<Kakadu> Core.Fn.const
ontologiae has quit [Ping timeout: 248 seconds]
mye has joined #ocaml
beginner42 has joined #ocaml
<beginner42> how can i call a function from lablwebkit?
destrius has quit [Quit: Leaving.]
Neros has joined #ocaml
bitbckt has quit [Ping timeout: 246 seconds]
bitbckt has joined #ocaml
Neros has quit [Ping timeout: 246 seconds]
mindbender1 has joined #ocaml
cornihilio has joined #ocaml
<beginner42> adrien: Hi, can you tell me how i can use your lablwebkit binding? Whats the module name? I tried Lablwebkit with different uppercases
Neros has joined #ocaml
cdidd has quit [Remote host closed the connection]
Xizor has quit [Remote host closed the connection]
ontologiae has joined #ocaml
<Kakadu> hey
<Kakadu> have you tried to use ocamlbrower
<Kakadu> for isntance, ocamlbrowser -I `ocamlfind query lablwebkit`
<Kakadu> it wil list modules available in this package too
avsm1 has joined #ocaml
mjonsson has joined #ocaml
justdit has quit [Ping timeout: 250 seconds]
avsm1 has quit [Quit: Leaving.]
justdit has joined #ocaml
mindbender1 has quit [Quit: Leaving.]
avsm1 has joined #ocaml
<beginner42> Kakadu: i tried this. I find lots of Gtk-classes like GtkWebView, which i guess is the one i need, but i dont know how to access that
<Kakadu> beginner42: can you show simple window using OCaml and lablgtk?
gnuvince has quit [Ping timeout: 252 seconds]
avsm1 has quit [Quit: Leaving.]
Neros has quit [Ping timeout: 260 seconds]
gnuvince has joined #ocaml
fraggle_laptop has quit [Quit: Quitte]
fraggle_laptop has joined #ocaml
fraggle_laptop has quit [Remote host closed the connection]
Yoric has quit [Ping timeout: 252 seconds]
fraggle_laptop has joined #ocaml
andreypopp has joined #ocaml
ohama has joined #ocaml
avsm1 has joined #ocaml
cornihilio has quit [Ping timeout: 256 seconds]
Yoric has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
sgnb has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
sgnb has joined #ocaml
avsm1 has quit [Quit: Leaving.]
andreypopp has quit [Quit: sleep]
tane has joined #ocaml
justdit has quit [Ping timeout: 265 seconds]
Kakadu has quit []
avsm1 has joined #ocaml
avsm1 has quit [Quit: Leaving.]
hkBst has quit [Quit: Konversation terminated!]
djcoin has quit [Quit: WeeChat 0.3.9.1]
larhat has quit [Quit: Leaving.]
avsm1 has joined #ocaml
<flux> beginner42, you should find the cmi-files it comes with
<flux> beginner42, the module name is fooBar.cmi -> FooBar
<flux> beginner42, if it's a submodule, you can type this in the toplevel after getting FooBar to work: module M = fooBar;;
<flux> it makes module M and as a side effect shows everything inside FooBar
Cyanure has quit [Remote host closed the connection]
justdit has joined #ocaml
gustav__ has joined #ocaml
Cyanure has joined #ocaml
ocp has joined #ocaml
Kakadu has joined #ocaml
mattrepl has joined #ocaml
answer_42 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
mattrepl has quit [Quit: mattrepl]
Yoric has quit [Ping timeout: 252 seconds]
avsm1 has quit [Quit: Leaving.]
avsm1 has joined #ocaml
Neros has joined #ocaml
tac has joined #ocaml
xavierm02 has joined #ocaml
jamii has joined #ocaml
mye has quit [Quit: mye]
testcocoon has quit [Quit: Coyote finally caught me]
tac has quit [Quit: Page closed]
testcocoon has joined #ocaml
justdit has quit [Read error: Operation timed out]
sepp2k1 has joined #ocaml
sepp2k has quit [Ping timeout: 244 seconds]
answer_42 has quit [Ping timeout: 276 seconds]
answer_42 has joined #ocaml
ftrvxmtrx has joined #ocaml
pangoafk is now known as pango
cdidd has joined #ocaml
ocp has quit [Quit: Leaving.]
avsm1 has quit [Quit: Leaving.]
<adrien> beginner42: try to run: ocamlbrowser -I $(ocamlfind query lablwebkit)
<adrien> then look at WebView (iirc :P )
mye has joined #ocaml
cago has quit [Quit: Leaving.]
cago has joined #ocaml
vpm_ is now known as vpm
Yoric has joined #ocaml
eni has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
avsm1 has joined #ocaml
lambdas has joined #ocaml
<lambdas> Can I get some advice on whether I'm being dumb? If I want to create a public JSON data format to be used between languages, I should do so by writing my own functions to map data in various languages in and out of a JSON data structure which conforms to my spec, rather than letting yojson (and Template Haskell) do it for me.
pango has quit [Remote host closed the connection]
cornihilio has joined #ocaml
<ousado> lambdas: being able to define some scheme you could reuse across languages would be nicer, of course
pango has joined #ocaml
avsm1 has quit [Quit: Leaving.]
_andre has quit [Quit: leaving]
ontologiae has quit [Ping timeout: 264 seconds]
jamii has quit [Ping timeout: 244 seconds]
<ousado> s/scheme/schema
avsm1 has joined #ocaml
<pippijn> aren't there hundreds of those?
<pippijn> all kinds of IDLs
<flux> piqi is one
<flux> or maybe it's meta-idl
lolcathost has quit [Quit: Lost terminal]
mye has quit [Quit: mye]
avsm1 has quit [Quit: Leaving.]
<lambdas> ousado: So am I right in thinking that the automatic serialisation/deserialisation of yojson and Template Haskell is just intended for sending ocaml data between ocaml processes (resp haskell processes), such as with stuff like ocsigen?
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
ben_zen has quit [Read error: Connection reset by peer]
larhat has joined #ocaml
j2d2j2d2 has joined #ocaml
mye has joined #ocaml
cdidd has quit [Remote host closed the connection]
mmajchrzak_ has joined #ocaml
mmajchrzak_ is now known as Znudzon
larhat has quit [Quit: Leaving.]
larhat has joined #ocaml
walter|r has quit [Read error: Connection reset by peer]
walter|r has joined #ocaml
walter|r has quit [Read error: Connection reset by peer]
walter|r has joined #ocaml
bru has joined #ocaml
<bru> Hi! I came yesterday with a omake-related question, and it seems not to be over.
<bru> So I have everything in my src/, and there's a subdir called parser/
<bru> I compile it as a package (using OCamlPackage)
<bru> However, some files in src/parser/ need to know about src/types.mli
<bru> If types.cmi is present, then everything will be alright (for I have ".." in src/parser/OMakefile's INCLUDES field)
<bru> However, I first have to generate this cmi from the mli…
<bru> and I do not know how to do that through the OMakefile
<bru> (by cli it's easy — e.g. "ocamlc types.mli" will build it)
<bru> do you know what I should do? (maybe thelema, for your guidance was really useful yesterday?)
<ousado> lambdas: I don't know really, I wouldn't hope so. But check out the suggestions pippijn and flux made
cago has left #ocaml []
<lambdas> Cheers! Didn't even realise they were responses to me :)
<lambdas> Thanks guys. This looks like the stuff I was after, even if only for future reference.
Tobu has joined #ocaml
rwmjones has quit [Read error: Operation timed out]
sepp2k1 has quit [Ping timeout: 264 seconds]
bru has quit [Ping timeout: 264 seconds]
ftrvxmtrx has quit [Ping timeout: 240 seconds]
bru has joined #ocaml
sepp2k has joined #ocaml
rwmjones has joined #ocaml
ftrvxmtrx has joined #ocaml
avsm1 has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 256 seconds]
<Znudzon> hi any one use Ocaml from web services ?
Xizor has joined #ocaml
eni has quit [Ping timeout: 240 seconds]
Kakadu has quit []
myx has quit [Read error: Operation timed out]
<beginner42> adrien: i found GtkWebView, but when i use GtkWebView.create () or WebView.create () it does not find anything
<beginner42> adrien: i have lablwebkit in my makefile
myx has joined #ocaml
<cornihilio> how does one access a specific element in a list?
andreypopp has joined #ocaml
jamii has joined #ocaml
<Qrntz> cornihilio, List.nth
rwmjones has quit [Ping timeout: 255 seconds]
<Qrntz> but OCaml lists are not random access data structures to that'll be O(n) which you'll probably want to avoid depending on your purpose
shajen has joined #ocaml
answer_42 has quit [Ping timeout: 276 seconds]
<shajen> how to sort Array of float using: Array.sort (-.) tab;; ?
gnuvince has quit [Ping timeout: 252 seconds]
<Qrntz> shajen, why would you use the unary minus as a comparison function?
<Qrntz> «Array.sort compare» would do
milosn has quit [Ping timeout: 264 seconds]
milosn has joined #ocaml
tane has quit [Quit: Verlassend]
rwmjones has joined #ocaml
<cornihilio> List.nth? but vectors/strings have such a nice way of accessing specific elements
<Qrntz> cornihilio, that's because they are meant for it
lolcathost has quit [Ping timeout: 260 seconds]
<dmilith> i'm pretty new to ocaml. I want just to ask for a way to access to stdlib / libc functions access for ocaml. Do I need any wrappers or something?
gnuvince has joined #ocaml
<dmilith> for example seteuid()
<cornihilio> Qrntz: ah, okay. Thank you!
<cornihilio> err... a bit of a confession, but I am trying to learn as much Haskell as possible before Monday. Right now I am on page 76 of the Oreilly Ocaml book, but I am unsure I will be able to get more than 300 pages in. What should I make an extra effort to know/skip?
<cornihilio> as much Ocaml! stupid brain
<cornihilio> also, I don't really get the current state of ocaml libraries at all... is there something like cabal/cpan/quicklisp?
eikke has joined #ocaml
avsm has left #ocaml []
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
<shajen> # let a = ref in_channel;;
<shajen> Error: Unbound value in_channel
<shajen> why i got this error? :(
<dmilith> shajen: how did you get a bot for ocaml?
<dmilith> oh. no bot :(
<dmilith> nvm
<shajen> simply past ;)
iZsh has quit [Quit: Coyote finally caught me]
iZsh has joined #ocaml
<Qrntz> cornihilio, can't tell you what to skip without knowing your background and not having particularly read the book (I consider it outdated)
<Qrntz> as per your second question, there's OPAM
<Qrntz> shajen, in_channel is a type, not a value so that error message is perfectly sensible
<Qrntz> what are you trying to accomplish?
<Qrntz> dmilith, most of the system calls you'll need are likely to be already present in the Unix module
<Qrntz> for example, there is Unix.setuid which sets both the real and the effective user id for the process
<dmilith> Qrntz: already found. thanks anyway :}
<Qrntz> you're welcome
<dmilith> #open "unix.cma";; solved the case
<dmilith> or Unix.functionName
ocp has joined #ocaml
<dmilith> It's my first day of ocaml ;] don't shoot
jamii has quit [Ping timeout: 244 seconds]
mindbender1 has joined #ocaml
<Qrntz> dmilith, you probably meant «#load "unix.cma"» followed by «open Unix»
<Qrntz> no firearms readied, though :-p
<dmilith> open Unix;; is enough, but I'm appending this unix.cma in compiler line
cornihilio has quit [Ping timeout: 246 seconds]
<dmilith> #load "unix.cma";; is throwing characters 0-1:
<dmilith> Error: Syntax error
<Qrntz> that's an interpreter directive
<Qrntz> you don't compile it
Znudzon has quit [Read error: Operation timed out]
<Qrntz> thought we were talking interpreter directives since you mentioned «#open» which begins with a hash but isn't a defined directive
<Qrntz> can be a point of confusion
<dmilith> it is
<dmilith> so I need to give it to compiler
emmanuelux has joined #ocaml
<shajen> Qrntz: ok, thanks for help, i should write: let x = ref stdin;; to get ref to in_channel :)
<Qrntz> those are directives exclusive to the interpreter
<Qrntz> shajen, glad you solved it, that's one way to do it indeed
<dmilith> i see
<Qrntz> dmilith, you don't need to use the dreaded «;;» inside of source files either
<Qrntz> it's only a phrase terminator for the interpreter
fraggle_ has quit [Remote host closed the connection]
<dmilith> but ; is required anyway
<Qrntz> right, it's a statement terminator
andreypopp has quit [Quit: sleep]
fraggle_ has joined #ocaml
cornihilio has joined #ocaml
<cornihilio> Qrntz: what would you recommend instead?
bru has quit [Ping timeout: 264 seconds]
<Qrntz> http://realworldocaml.org/ looks promising but not out yet
thomasga has joined #ocaml
<Qrntz> I'd also advise you to never read that «Practical OCaml» thing by J. Smith, it's pretty horrible
beginner42 has quit [Quit: irc2go]
<cornihilio> Qrntz, thank you very much!
xavierm02 has quit [Quit: Leaving]
<Qrntz> cornihilio, np
<cornihilio> also, does weak typing prevent errors at compile time or does it cause run tim exceptions?
<cornihilio> time*
Yoric has quit [Ping timeout: 246 seconds]
chambart has joined #ocaml
<Qrntz> cornihilio, I'm not sure I understand what you mean
<Qrntz> weak typing allows more errors to occue compared to strong typing
<Qrntz> s/ue/ur/
<Qrntz> at runtime, that is
<Qrntz> so, I suppose that's a no to first, yes to second
Cyanure has quit [Remote host closed the connection]
<Qrntz> I think it's better if I depart to bed now, see you later
<cornihilio> thanks for the help!
thomasga has quit [Quit: Leaving.]
|jbrown| has quit [Ping timeout: 248 seconds]
|jbrown| has joined #ocaml
sepp2k has quit [Read error: Connection reset by peer]
<gustav__> Is there a list of possible/available programming language features somewhere? Such as strong typing, lazy evaluation and what not.
<gustav__> Variables even.
Apple has joined #ocaml
<Apple> hello
<Apple> anyone using ocsigen on osx mountain lion?
<Apple> how did they compile the sucker?
<Apple> I shoudl say bonjour
Apple has quit [Quit: leaving]
fraggle_ has quit [Ping timeout: 264 seconds]
fraggle_ has joined #ocaml
mye_ has joined #ocaml
mye has quit [Ping timeout: 265 seconds]
mye_ is now known as mye
lolcathost has quit [Ping timeout: 248 seconds]
mye has quit [Client Quit]
ocp has quit [Quit: Leaving.]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
sivoais has quit [Ping timeout: 260 seconds]
lolcathost has quit [Ping timeout: 244 seconds]
sivoais has joined #ocaml
fraggle_ has quit [Ping timeout: 264 seconds]
Neros has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
kba_ has quit [Ping timeout: 248 seconds]
kba has joined #ocaml
emmanuelux has joined #ocaml
kba is now known as Guest46040
wormphlegm has quit [Read error: Operation timed out]
wormphlegm has joined #ocaml