Waleee has quit [Read error: 104 (Connection reset by peer)]
animist has joined #ocaml
Waleee has joined #ocaml
animist has quit [Read error: 110 (Connection timed out)]
fremo has quit [Remote closed the connection]
fremo has joined #ocaml
fremo is now known as Guest77356
Guest77356 has quit [Remote closed the connection]
fremo has joined #ocaml
fremo is now known as Guest51384
sporkmonger has quit [Read error: 104 (Connection reset by peer)]
sporkmonger has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
<Alpounet>
Hi all.
<Alpounet>
I would like to, given a .ml file, "simulate" its content's behavior in the toplevel, i.e getting types of expressions, etc... Is there a way to do that ?
minus273 has quit [Remote closed the connection]
<totom>
ocamlc -i ?
<totom>
for the types
animist has joined #ocaml
<Yoric[DT]>
Other possibility: use option -annot and parse the resulting .annot file.
Stefan_vK has quit ["Leaving."]
sporkmonger has quit []
Stefan_vK has joined #ocaml
willb has joined #ocaml
kaustuv has left #ocaml []
sporkmonger has joined #ocaml
Stefan_vK has quit ["Leaving."]
sporkmonger_ has joined #ocaml
vovkaii__ has joined #ocaml
animist has quit [Read error: 110 (Connection timed out)]
sporkmonger has quit [Read error: 110 (Connection timed out)]
Camarade_Tux has joined #ocaml
<Alpounet>
Ok, I'll go this way.
vovkaii__ has quit [Read error: 110 (Connection timed out)]
* ski__
idly wonders whether there's an option `-cannot'
chrisliaw has joined #ocaml
vovkaii__ has joined #ocaml
chrisliaw has quit [Client Quit]
sporkmonger has joined #ocaml
vovkaii__ has quit [Connection timed out]
theIdeaMen is now known as th5
th5 has quit []
sporkmonger_ has quit [Read error: 110 (Connection timed out)]
thelema has joined #ocaml
^authentic has joined #ocaml
<flux>
pgocaml is a bliss especially if you revise your database, say, rename a column :)
authentic has quit [Connection timed out]
^authentic is now known as authentic
<flux>
I imagine batteries will let me write this in a nicer way :-) : let generate_salt n = let alphabet = "abcdefghijlkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" in String.concat "" (Array.to_list (Array.init n (fun _ -> String.make 1 alphabet.[Random.int (String.length alphabet)])))
^authentic has joined #ocaml
Alpounet has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]>
flux: I'm not even sure I understand what this means.
kelaouchi has quit ["leaving"]
kelaouchi has joined #ocaml
ikaros has joined #ocaml
vovkaii__ has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
s4tan has quit []
_zack has quit ["Leaving."]
ttamttam has left #ocaml []
vovkaii__ has quit [Read error: 60 (Operation timed out)]
<flux>
yoric[dt], generate an n-character string of random characters from the alphabet (plus digits)
alexyk has joined #ocaml
l_a_m has quit [Read error: 60 (Operation timed out)]
l_a_m has joined #ocaml
angerman has quit []
vovkaii__ has joined #ocaml
sgnb has quit [Read error: 104 (Connection reset by peer)]
sgnb` has joined #ocaml
jeromeg has joined #ocaml
vovkaii__ has quit [Read error: 110 (Connection timed out)]
<jeromeg>
hey guys
<jeromeg>
I have a stupid problem
<jeromeg>
I use emacs tuareg mode to program in ocaml
<jeromeg>
but when results are too long
<jeromeg>
it truncates the displayed result and prints ... at the end
<jeromeg>
how could I access "visually" to the rest of the result ?
<Yoric[DT]>
You can extend the display length.
<Yoric[DT]>
#print_length n;;
<jeromeg>
oh cool
<Yoric[DT]>
(where n is the number of nodes to print)
<Yoric[DT]>
There's no way to make it unlimited, as OCaml can have infinite data (i.e. cycles).
<mrvn>
That is a ocaml runtime thing, right?
<mrvn>
Yoric[DT]: well, unlimited would just take a while :)
<Yoric[DT]>
:)
<Yoric[DT]>
mrvn: it's a toplevel directive, yes.
<jeromeg>
Yoric[DT]: that did the trick, thank you very much
<Yoric[DT]>
my pleasure
<mfp>
uh
<mfp>
# 'a' ~~ 'z';;
<mfp>
# Error: This expression is not a function, it cannot be applied
<Yoric[DT]>
Yeah, ~~ was a poor choice.
<Yoric[DT]>
In the latest git, it has become --~
<mfp>
so it cannot be used at all?
<mfp>
ah
<mfp>
alright, ~~ is a prefix op
<mfp>
~~ 'a' 'z';; - : char t = <abstr>
<mfp>
like unary (~-)
jeremiah has quit [Read error: 104 (Connection reset by peer)]
chickenzilla has quit ["Imagination fail."]
<mfp>
flux: let (@@) = Enum.append let gen = let a = Array.of_enum ('a' --~ 'z' @@ 'A' --~ 'Z' @@ '0' --~ '9') in let l = Array.length a in fun n -> String.init n (fun _ -> a.(Random.int l));;
<mfp>
shouldn't String.init be : (int -> char) -> int -> string instead of int -> (int -> char) -> string ?
Walee has joined #ocaml
<flux>
String.init helps a lot, yes
<flux>
Array.init has int -> (int -> char) -> string
<mfp>
OTOH Array.init also follows that convention
<flux>
it sort of makes sense
<mfp>
well, I cannot imagine any use for partial application to get reusable functions that create arbitrary arrays with N (fixed) elements
<ski__>
one argument for the current ordering might be that the function argument are more often large, textually, than the `int' argument
<ski__>
String.init (2*n) (fun i ->
<ski__>
..i..
<ski__>
...)
<mfp>
true, I often leave the func as the last param for that reason
<ski__>
the `(2*n)' would feel lonely after a big anonymous
<mfp>
(in my own HOFs)
jeromeg has left #ocaml []
<ski__>
(argument for the other ordering is that (a) `(int -> char) -> (int -> string)' feels like a "nicer" type, and (b), there's possibly more uses with partially applying the function argument than the length argument)
<mfp>
where was the Labels version again...
<mfp>
StringLabels (legacy) -> doesn't have init
<mfp>
ArrayLabels.init is : int -> f:(int -> 'a) -> 'a array
Waleee has quit [Connection timed out]
jeremiah has joined #ocaml
Stefan_vK has joined #ocaml
alexyk has quit []
<mrvn>
A vector/matrix library might create many arrays of a fixed size in a function.
vovkaii__ has joined #ocaml
Alpounet has joined #ocaml
<Camarade_Tux>
Yoric[DT], something about lzma bindings : trying to make something clean and redistribuable in practice has shown almost nobody has a lib supporting lzma compression already installed, mostly because no project provides such a lib
<Yoric[DT]>
:/
<mrvn>
you could just fork the binary.
<Camarade_Tux>
the closest team is tukaani's but they don't have any stable release yet
<Camarade_Tux>
mrvn, 7-zip and therefore p7zip is underdocumented for developpers anyway
<Camarade_Tux>
plus it's using c++ so it's not very friendly to bind
<Camarade_Tux>
(I mean it's really using c++, not just a simple superset of C)
<mrvn>
we need a external++ foo : Foo # int -> unit = "value foo(int)"
<mrvn>
or "value Foo::foo(int)"
<mrvn>
Has anyone written QT bindings? How do you represent a class hierachy?
<mfp>
maybe MS & Intel have no interest in stuff being released under a 3-clause BSD? :-P
_zack has joined #ocaml
itewsh has joined #ocaml
vovkaii__ has joined #ocaml
Waleee has joined #ocaml
sgnb` is now known as sgnb
<thelema>
mfp: microsoft is already a member of caml consortium - they have pretty much full rights to code.
OChameau has quit [Read error: 113 (No route to host)]
<mfp>
thelema: the consortium doesn't fund new development the way IHG will do
<mfp>
thelema: so my Q was... why not?
vovkaii__ has quit [Read error: 145 (Connection timed out)]
Walee has quit [Connection timed out]
alexyk has joined #ocaml
alexyk_ has joined #ocaml
<kaustuv_>
mfp: I work at a lab that is a joint effort of INRIA and MS Research.
<thelema>
the money for the consortium goes somewhere
<kaustuv_>
There is always a constant startup buzz around ocaml these days anyhow
<flux>
thelema, iirc the amount of consortium was not said to be all that much, from the how-much-work-can-it-perform point of view
<kaustuv_>
But yes, ocaml's license is a potential nightmare, even though most people should be able to just pretend it's LGPL. But lawyers like to spread paranoia.
<Camarade_Tux>
and the caml consortium membership fee is between 2k€ and 10k€ per year, the haskell consortium asks for something like 10k$ (6k£) for 6 months
<ehird>
19:57 kaustuv_: There is always a constant startup buzz around ocaml these days anyhow
<ehird>
I don't hear much buzz...
sgnb` has joined #ocaml
sgnb has quit [Read error: 104 (Connection reset by peer)]
Alpounet has quit ["Ex-Chat"]
<kaustuv_>
Well, it's possible that I am just covered in bees.
<flux>
in general, the amount of buzz perceived may depend on how a person is positioned to hear such buzz?-)
itewsh has quit [Connection timed out]
vovkaii__ has joined #ocaml
<ehird>
flux: yeah, exact;y
<ehird>
*exactly
<ehird>
every clique thinks it's the most popular :)
itewsh has joined #ocaml
<flux>
you know, that covers both ends?-)
alexyk has quit [Read error: 110 (Connection timed out)]
kaustuv_ has quit [Remote closed the connection]
kaustuv_ has joined #ocaml
Alpounet has joined #ocaml
vovkaii__ has quit [Success]
<kaustuv_>
How to I use a library such as str in myocamlbuild.ml?
vovkaii__ has joined #ocaml
<flux>
good question. I've just snabbed off the myocamlbuild.ml that handles findlib and use that for everything.
Waleee has quit [Read error: 104 (Connection reset by peer)]
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
<aplusbi>
is there anything I could use instead of Printf.printf to output to stdout?
Cheshire has quit [Nick collision from services.]
<flux>
print_string?
<thelema>
aplusbi: yes - print_int, print_string, etc.
alexyk_ has quit [Read error: 60 (Operation timed out)]
jeremiah has joined #ocaml
<aplusbi>
well at least those functions work
Waleee has joined #ocaml
<kaustuv_>
Bookdrama unfolding in a major way on the list.
_zack has quit [Read error: 60 (Operation timed out)]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
<thelema>
yup. It'll be interesting to see how it turns out - if the book gets retracted.
<thelema>
or if the authors can work something out.
sporkmonger has quit []
_zack has joined #ocaml
vuln has joined #ocaml
jeremiah has joined #ocaml
slash_ has quit [Read error: 104 (Connection reset by peer)]
Stefan_vK1 has joined #ocaml
aplusbi has quit [Read error: 104 (Connection reset by peer)]
aplusbi has joined #ocaml
_zack has quit [Remote closed the connection]
_zack has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
Alpounet has quit ["Quitte"]
<aplusbi>
you know while I'm here I may ask this as well
<aplusbi>
I initially installed ocaml 3.11 on windows
<aplusbi>
but nothing would compile because pervasives.cmi was not a compiled interface
<aplusbi>
3.10 works fine so I went with that
<aplusbi>
is that a known issue?
<Yoric[DT]>
That sounds like you're attempting to compile 3.11 code using 3.10 libraries (or the opposite).
<kaustuv_>
or a mingwized library with a cygwinized compiler or any of the dozen other combinations possible in the mess that is ocaml on windows
jeromedezorro has joined #ocaml
<kaustuv_>
just today I discovered that a strange value of OCAMLLIB in the registry (from earlier installs of ocaml, not cleaned up by uninstallers) during *compilation* of ocaml results in permanent brain damage to ocamlbuild
alexyk has joined #ocaml
<aplusbi>
ah, probably a mess of cygwin and mingw
<aplusbi>
I have both installed on this computer
ttamttam has left #ocaml []
Stefan_vK has quit [Read error: 110 (Connection timed out)]
jeromedezorro has quit []
jeremiah has joined #ocaml
itewsh has quit [Read error: 145 (Connection timed out)]
itewsh has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
psnively has joined #ocaml
<psnively>
Hi guys!
<thelema>
hi.
<psnively>
:-)
bjorkintosh has joined #ocaml
bjorkintosh has left #ocaml []
slash_ has joined #ocaml
seafood has quit [Read error: 110 (Connection timed out)]
jeremiah has joined #ocaml
_zack has quit ["Leaving."]
itewsh has quit [Read error: 110 (Connection timed out)]
Waleee has quit []
itewsh has joined #ocaml
alexyk has quit []
animist has joined #ocaml
mlh has quit [brown.freenode.net irc.freenode.net]
haelix has quit [brown.freenode.net irc.freenode.net]
totom has quit [brown.freenode.net irc.freenode.net]
rodge has quit [brown.freenode.net irc.freenode.net]
psnively has quit []
svenl_ has joined #ocaml
jld_ has joined #ocaml
steg has quit [Remote closed the connection]
jld has quit [Read error: 104 (Connection reset by peer)]
<sanguinev>
Hello
mlh has joined #ocaml
totom has joined #ocaml
rodge has joined #ocaml
haelix has joined #ocaml
sporkmonger has joined #ocaml
sporkmonger has quit [Remote closed the connection]
steg_ has joined #ocaml
haelix has quit [brown.freenode.net irc.freenode.net]
totom has quit [brown.freenode.net irc.freenode.net]
rodge has quit [brown.freenode.net irc.freenode.net]
mlh has quit [brown.freenode.net irc.freenode.net]
authentic has quit [brown.freenode.net irc.freenode.net]
bzzbzz has quit [brown.freenode.net irc.freenode.net]
munga has quit [brown.freenode.net irc.freenode.net]
jlouis_ has quit [brown.freenode.net irc.freenode.net]
Hadaka has quit [brown.freenode.net irc.freenode.net]
ulfdoz has quit [brown.freenode.net irc.freenode.net]
itewsh has quit [brown.freenode.net irc.freenode.net]
rwmjones has quit [brown.freenode.net irc.freenode.net]
xian has quit [brown.freenode.net irc.freenode.net]
mehdid has quit [brown.freenode.net irc.freenode.net]
mr_uggla_ has quit [brown.freenode.net irc.freenode.net]
holgr has quit [brown.freenode.net irc.freenode.net]
sanguinev has quit [brown.freenode.net irc.freenode.net]
maskd has quit [brown.freenode.net irc.freenode.net]
willb has quit [brown.freenode.net irc.freenode.net]
sbok has quit [brown.freenode.net irc.freenode.net]
schme has quit [brown.freenode.net irc.freenode.net]
bacam has quit [brown.freenode.net irc.freenode.net]
acatout has quit [brown.freenode.net irc.freenode.net]
jeremiah has quit [brown.freenode.net irc.freenode.net]
kaustuv_ has quit [brown.freenode.net irc.freenode.net]
Camarade_Tux has quit [brown.freenode.net irc.freenode.net]
Ched has quit [brown.freenode.net irc.freenode.net]
steg_ has quit [brown.freenode.net irc.freenode.net]
det has quit [brown.freenode.net irc.freenode.net]
brendan has quit [brown.freenode.net irc.freenode.net]
mattam has quit [brown.freenode.net irc.freenode.net]
ertai_ has quit [brown.freenode.net irc.freenode.net]
r0bby has quit [brown.freenode.net irc.freenode.net]
tarbo2 has quit [brown.freenode.net irc.freenode.net]
Asmadeus has quit [brown.freenode.net irc.freenode.net]
mttobks has quit [brown.freenode.net irc.freenode.net]
mishok13 has quit [brown.freenode.net irc.freenode.net]
gaze__ has quit [brown.freenode.net irc.freenode.net]
lintrippz has quit [brown.freenode.net irc.freenode.net]
olegfink has quit [brown.freenode.net irc.freenode.net]
tomaw has quit [brown.freenode.net irc.freenode.net]
flux has quit [brown.freenode.net irc.freenode.net]
xevz has quit [brown.freenode.net irc.freenode.net]
tsuyoshi has quit [brown.freenode.net irc.freenode.net]
mbishop has quit [brown.freenode.net irc.freenode.net]
ozzloy has quit [brown.freenode.net irc.freenode.net]
ski__ has quit [brown.freenode.net irc.freenode.net]
ppsmimou has quit [brown.freenode.net irc.freenode.net]
steg_ has joined #ocaml
haelix has joined #ocaml
rodge has joined #ocaml
totom has joined #ocaml
mlh has joined #ocaml
itewsh has joined #ocaml
jeremiah has joined #ocaml
kaustuv_ has joined #ocaml
authentic has joined #ocaml
Camarade_Tux has joined #ocaml
willb has joined #ocaml
rwmjones has joined #ocaml
Ched has joined #ocaml
gaze__ has joined #ocaml
lintrippz has joined #ocaml
sbok has joined #ocaml
olegfink has joined #ocaml
bzzbzz has joined #ocaml
munga has joined #ocaml
det has joined #ocaml
brendan has joined #ocaml
mattam has joined #ocaml
ertai_ has joined #ocaml
xian has joined #ocaml
r0bby has joined #ocaml
bacam has joined #ocaml
tarbo2 has joined #ocaml
tomaw has joined #ocaml
schme has joined #ocaml
jlouis_ has joined #ocaml
mehdid has joined #ocaml
Hadaka has joined #ocaml
acatout has joined #ocaml
mishok13 has joined #ocaml
holgr has joined #ocaml
maskd has joined #ocaml
ulfdoz has joined #ocaml
mr_uggla_ has joined #ocaml
sanguinev has joined #ocaml
Asmadeus has joined #ocaml
flux has joined #ocaml
xevz has joined #ocaml
mbishop has joined #ocaml
ppsmimou has joined #ocaml
ski__ has joined #ocaml
ozzloy has joined #ocaml
mttobks has joined #ocaml
tsuyoshi has joined #ocaml
willb has quit [Operation timed out]
itewsh has quit [SendQ exceeded]
itewsh has joined #ocaml
animist has quit [Read error: 60 (Operation timed out)]
alexyk has joined #ocaml
jeddhaberstro has joined #ocaml
itewsh has quit ["There are only 10 kinds of people: those who understand binary and those who don't"]
animist has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
aplusbi has quit [" HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it"]
animist has quit [Read error: 145 (Connection timed out)]