Denommus has quit [Remote host closed the connection]
Denommus has joined #ocaml
ewanas has quit [Read error: No route to host]
chengsun has quit [Quit: leaving]
<Denommus>
I can't get macaque to work with my project
<Denommus>
and I just made a camlp4 project to be sure it would work!
<Denommus>
I'm getting an exception that the extension "table" was not found
walter|r has joined #ocaml
walter|r has quit [Remote host closed the connection]
fedruantine has quit [Max SendQ exceeded]
jimt_ is now known as jimt
FreeBirdLjj has joined #ocaml
hcarty has joined #ocaml
walter|r has joined #ocaml
walter|r has quit [Ping timeout: 244 seconds]
hcarty has quit [Ping timeout: 246 seconds]
walter|r has joined #ocaml
jeffmo has quit [Quit: jeffmo]
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
FreeBird_ has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
FreeBirdLjj has joined #ocaml
johnelse has quit [Ping timeout: 260 seconds]
walter|r has quit [Remote host closed the connection]
crass has quit [Remote host closed the connection]
johnelse has joined #ocaml
ygrek has quit [Ping timeout: 244 seconds]
alpen has quit [Ping timeout: 260 seconds]
alpen has joined #ocaml
mysiticity has joined #ocaml
fluter has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Ping timeout: 258 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
tmtwd has joined #ocaml
MercurialAlchemi has joined #ocaml
fluter has joined #ocaml
tmtwd has quit [Max SendQ exceeded]
tmtwd has joined #ocaml
travula has joined #ocaml
jtmcf has quit [Ping timeout: 244 seconds]
copy` has quit [Quit: Connection closed for inactivity]
jtmcf has joined #ocaml
travula has quit [Ping timeout: 252 seconds]
buddyholly has joined #ocaml
SomeDamnBody has joined #ocaml
<SomeDamnBody>
So, I have this particular graph problem. I want to use ocamlgraph to solve it, but basically, here's the issue: I have a node starting point, and it has two edges
<SomeDamnBody>
I want to know if the two edges eventually rejoin at a common node later
<SomeDamnBody>
How can I know that
jonasen has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Mercuria1Alchemi has joined #ocaml
tmtwd has quit [Ping timeout: 276 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
douglascorrea has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
tmtwd has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonasen has joined #ocaml
Simn has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
tmtwd has quit [Ping timeout: 244 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
AlexRussia has quit [Ping timeout: 246 seconds]
douglascorrea has joined #ocaml
douglascorrea has quit [Ping timeout: 240 seconds]
travula has joined #ocaml
mysiticity has quit [Ping timeout: 244 seconds]
rand__ has joined #ocaml
travula has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
pierpa has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 258 seconds]
travula has joined #ocaml
tane has joined #ocaml
nojb has joined #ocaml
A1977494 has joined #ocaml
dexterph has joined #ocaml
tmtwd has joined #ocaml
A1977494 has quit [Quit: Leaving.]
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ocaml
MercurialAlchemi has joined #ocaml
tmtwd has quit [Ping timeout: 272 seconds]
silver has joined #ocaml
silver_ has joined #ocaml
silver__ has joined #ocaml
silver has quit [Remote host closed the connection]
silver__ has quit [Remote host closed the connection]
mysiticity has joined #ocaml
silver_ is now known as silver
mysiticity has quit [Ping timeout: 252 seconds]
jwatzman|work has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 258 seconds]
larhat has joined #ocaml
MercurialAlchemi has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
mysiticity has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
<Drup>
SomeDamnBody: I don't think you are going to have a better answer than do a big graph traversal
<mrvn>
SomeDamnBody: node coloring. Color all nodes black, color the start node red, recursivley follow the first link and color the node red, recursivley follow the second link and color the node green. If you hit one that is red and green you have your answere.
fluter has quit [Ping timeout: 260 seconds]
fluter has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Kakadu has joined #ocaml
FreeBirdLjj has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
travula has quit [Ping timeout: 272 seconds]
sdothum has joined #ocaml
jwatzman|work has joined #ocaml
AlexRussia has joined #ocaml
silver_ has joined #ocaml
silver has quit [Ping timeout: 244 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
dhil has joined #ocaml
tane has quit [Quit: Leaving]
jonasen has joined #ocaml
silver_ is now known as silver
Denommus has quit [Ping timeout: 250 seconds]
jonasen has quit [Client Quit]
nzyuzin has quit [Ping timeout: 244 seconds]
nzyuzin has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
chengsun has joined #ocaml
octachron has joined #ocaml
malc_ has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
tane has joined #ocaml
tane has quit [Remote host closed the connection]
tane has joined #ocaml
mysiticity has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ocaml
SomeDamnBody has quit [Remote host closed the connection]
agarwal1975 has joined #ocaml
nojb_ has joined #ocaml
d0nn1e has quit [Ping timeout: 252 seconds]
douglascorrea has joined #ocaml
nojb has quit [Ping timeout: 244 seconds]
d0nn1e has joined #ocaml
douglascorrea has quit [Ping timeout: 246 seconds]
kdas_ has joined #ocaml
kdas_ is now known as kushal
kushal has quit [Changing host]
kushal has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Denommus has joined #ocaml
dave24 has joined #ocaml
<dave24>
how do I create a fixed size array in ocaml? i can't find this anywhere
<mrvn>
all arrays are fixed size
<companion_cube>
Array.init 42 (fun i -> i*3)
<dave24>
oh i thought normal arrays were dynamic
<dave24>
thanks
chengsun has quit [Quit: leaving]
jwatzman|work has joined #ocaml
hcarty has joined #ocaml
mysiticity has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
mysiticity has quit [Ping timeout: 250 seconds]
FreeBird_ has joined #ocaml
FreeBird_ has quit [Remote host closed the connection]
douglascorrea has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
dhil has joined #ocaml
malc_ has quit [Remote host closed the connection]
shinnya has joined #ocaml
crass has joined #ocaml
BitPuffin has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
darkf has quit [Quit: Leaving]
douglascorrea has quit []
jnavila has joined #ocaml
<hcarty>
aantron: I'm going to take a stab at making a version of Lwt_preemtive with multiple thread pools
<hcarty>
aantron: That should greatly simplify the init/at_exit code
jnavila has quit [Ping timeout: 276 seconds]
<hcarty>
This could be an external library, a new module in Lwt alongside Lwt_preemptive or a replacement for it
<companion_cube>
you are crazy :p
<hcarty>
companion_cube: Perhaps... I'm hoping I can reuse 90% of what's there
mysiticity has joined #ocaml
dexterph has quit [Ping timeout: 276 seconds]
mysiticity has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
frefity has joined #ocaml
A1977494 has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
frefity has quit [Client Quit]
dexterph has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
tautologico has joined #ocaml
luzie has quit [Quit: WeeChat 1.5-rc1]
mysiticity has joined #ocaml
kushal has quit [Quit: Leaving]
larhat has quit [Quit: Leaving.]
mysiticity has quit [Ping timeout: 276 seconds]
mysiticity has joined #ocaml
dexterph has quit [Ping timeout: 244 seconds]
ygrek has quit [Ping timeout: 276 seconds]
Mercuria1Alchemi has quit [Ping timeout: 244 seconds]
pierpa has joined #ocaml
yunxing_ has joined #ocaml
mysiticity has quit [Quit: WeeChat 1.5]
sepp2k has quit [Quit: Leaving.]
BitPuffin has quit [Ping timeout: 276 seconds]
BitPuffin has joined #ocaml
<dave24>
i am using the core Command module and have this as an argument: ... flag "-s" (optional_with_default now date) ~doc:"Start date" ... this produces the error:
<dave24>
This expression has type Date.t Arg_type.t but an expression was expected of type (zone:Core.Zone.t -> Date.t) Arg_type.t
<dave24>
which is referring to the "date", but I do not understand what it wants from me.
ygrek has joined #ocaml
picolino has quit [Ping timeout: 250 seconds]
picolino has joined #ocaml
<dave24>
nvm i fixed it
Kakadu has quit [Quit: Page closed]
<Denommus>
in Eliom, how do I take the value of a text input as a reactive signal?
<pitastrudl>
what about Array.make?
copy` has joined #ocaml
<Denommus>
actually, I need a recursive definition
AlexRussia has quit [Ping timeout: 244 seconds]
yunxing__ has joined #ocaml
yunxing_ has quit [Ping timeout: 250 seconds]
jonasen has joined #ocaml
jonasen has quit [Client Quit]
BitPuffin has quit [Ping timeout: 260 seconds]
dhil has quit [Remote host closed the connection]
<gasche>
pitastrudl: Array.init is a safer recommendation for beginners, as it is more expressive and less conductive to harder-to-understand bugs
<gasche>
(as in: ask a class of students to create a (create_matrix : int -> int -> 'a -> 'a array array) function when you've taught them Array.make instead of Array.init, hilarity ensues)
<Drup>
gasche: in the context of a class, it's quite educational, though :)
Kakadu has joined #ocaml
dave24 has quit [Quit: leaving]
<hcarty>
gasche: Said hilarity is definitely not limited to a classroom :-)
BitPuffin has joined #ocaml
TheLemonMan has joined #ocaml
octachron has quit [Quit: Page closed]
luzie has joined #ocaml
sh0t has joined #ocaml
kushal has joined #ocaml
jnavila has joined #ocaml
kushal has quit [Read error: Connection reset by peer]
yunxing__ has quit [Ping timeout: 250 seconds]
kushal has joined #ocaml
jnavila has quit [Ping timeout: 276 seconds]
jnavila has joined #ocaml
BitPuffin has quit [Remote host closed the connection]
<hcarty>
aantron: Not necessarily something to release, but the mli is there
<hcarty>
And the resource leaks :-)
<hcarty>
Food time...
enquora has joined #ocaml
crass has joined #ocaml
<rgrinberg>
Can Format do spade padding?
agarwal1975 has quit [Ping timeout: 260 seconds]
crass has quit [Read error: Connection reset by peer]
crass has joined #ocaml
Denommus has quit [Ping timeout: 264 seconds]
tristero has quit [Quit: tristero]
<Drup>
rgrinberg: depends what you mean
<rgrinberg>
space*. Something like printing "xxx" 6 as "xxx "
<Drup>
I guess you don't have "xxx" as a string already ?
<rgrinberg>
yeah, i have a string whose length I know is less than the padding so I'd like to fill the remainder with spaces
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<rgrinberg>
it's easy enough to do manually
<gasche>
eh
<gasche>
"%5s"?
<gasche>
(or "%-5s" for right padding)
tristero has joined #ocaml
<rgrinberg>
gasche: \o/ right padding is what I need.
<gasche>
works with Printf too
<rgrinberg>
but actually in my case the padding is variable
<gasche>
I think Drup was thinking of the harder case where the stuff to pad is itself composed by boxes etc.
<gasche>
hm
<gasche>
"%-*s" 10 "foo"
<gasche>
(some format things cannot be unlearned)
<gasche>
(afk)
<rgrinberg>
gasche: ^_^ this is definitely the pleasant arcana found in OCaml
<rgrinberg>
thanks, that works like a charm
<Drup>
gasche: well, I asked before really wondering about it, but It would be quite harder.
rgrinberg has quit [Ping timeout: 276 seconds]
Simn has quit [Quit: Leaving]
agarwal1975 has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
jeffmo has quit [Quit: jeffmo]
MercurialAlchemi has joined #ocaml
maurer is now known as s1
s1 is now known as maurer
yunxing_ has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 264 seconds]
crass has quit [Remote host closed the connection]
octachron has quit [Quit: Leaving]
benwbooth has joined #ocaml
dexterph has quit [Ping timeout: 244 seconds]
benwbooth has quit [Client Quit]
<aantron>
hcarty: :D
Kakadu has quit [Remote host closed the connection]
darkf has joined #ocaml
enquora has quit [Quit: enquora]
walter|r has joined #ocaml
venture37 has joined #ocaml
<venture37>
hello
manizzle has joined #ocaml
<venture37>
is there a security page where vulnerabilities in Ocaml are published?
<venture37>
In particular, I'm looking for the official advisory for CVE-2015-8869 from the project
Algebr` has joined #ocaml
tane has quit [Remote host closed the connection]
wolfcore has quit [Read error: Connection reset by peer]
wolfcore has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
sveit has joined #ocaml
<sveit>
is there any way to interactively use optimized ocaml code? the usecase is that I want to write some methods in ocaml that need to be optimized, but then play around with them in the toplevel. I don't need JIT (although of course that would be great).
yunxing_ has joined #ocaml
A1977494 has quit [Remote host closed the connection]
<hcarty>
sveit: There is a native code toplevel (ocamlnat) but as far as I know it is not installed by default and it is not well supported yet
<sveit>
yes I read about this, and came to the same conclusion about support that you mentioned. I was hoping there would be a "hacky" workaround for the time being. Ocaml is a pleasure to use for interactive/exploratory analysis, but lack of any optimized code in the toplevel would be a serious obstacle.
yunxing_ has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 244 seconds]
<Algebr`>
sveit: when is lack of opt code in top level an obstacle?
madroach has joined #ocaml
hcarty has quit [Ping timeout: 246 seconds]
<sveit>
my main usecase is writing somewhat heavy numerical routines that would be convenient to play around with interactively
<sveit>
but that naturally run much faster when compiled
<sveit>
for example in Haskell it is possible to compile down a program with optimizations, then load the library into ghci (their repl)
<sveit>
to be very concrete, I might want to explore some properties of large prime numbers, for which fast generation/testing is important. it would be tedious to compile/run a program for every new set of (potentially very slightly modified) inputs I am interested in
yunxing_ has joined #ocaml
jeffmo has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
<Algebr`>
right
<Algebr`>
I guess utop can't do #load "foo.cma"?
<sveit>
i'm new to ocaml so i could be wrong, but i was under the impression *.cma files are bytecode compiled, not native?
<aantron>
thats right
<aantron>
cmxa are the native ones
<Algebr`>
ah right, cmxa I meant
<sveit>
normal ocaml can certainly do #load "foo.cma", i'm sure this means utop can as well.
<Algebr`>
yes
jeffmo has quit [Quit: jeffmo]
<sveit>
so is there anything people do to work around this? it seems a lot is being left on the table. the two options i see are (1) build my own mini-repl in each program, which has the disadvantage that i will not (unless there is an easy way?) have interactive access to the ocaml language
<sveit>
or (2) is there a way to compile a toplevel with my code so that it is integrated into the program?
<sveit>
repl*?
<Algebr`>
pretty sure there is a way to do the latter
<Algebr`>
ocamlmktop?
<sveit>
i don't see an option for it, but as i said i am new