<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)