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/
tani has quit [Quit: Verlassend]
stj has joined #ocaml
<stj> why does this tail recursive function cause stack overflow? http://pastebin.com/gT04M6fm
<stj> is it because of exception handling?
<stj> I see, that's the reason... nvm
travisbrady has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
<pippijn> stj: yes
<pippijn> stj: also try compiling with -annot and look at the .annot file
<pippijn> stj: it will tell you whether it's a "tail" call or a "stack" call
<pippijn> the exception handling thing has bit me before, too
<stj> pippijn: didn't know about annot, thanks!
cdidd has joined #ocaml
eikke has quit [Ping timeout: 252 seconds]
alxbl has quit [Ping timeout: 246 seconds]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
alxbl has joined #ocaml
gnuvince has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
leoncamel has joined #ocaml
travisbrady has quit [Quit: travisbrady]
hongboz has joined #ocaml
lolcathost has quit [Ping timeout: 260 seconds]
mye has joined #ocaml
mattrepl has joined #ocaml
lolcathost has joined #ocaml
mattrepl has quit [Quit: mattrepl]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
areece has joined #ocaml
<areece> I'm trying to use ocamlgraph to parse dotfiles, and I suspect that I'm either using it incorrectly or I found a bug in the way it parses dotfiles
<areece> I assert that the two dotfiles are the same graph, but for the first one ocamlgraph produces an invalid dfs traversal
gbarboza has joined #ocaml
mye_ has joined #ocaml
mye has quit [Ping timeout: 240 seconds]
mye_ is now known as mye
lolcathost has joined #ocaml
tac has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
hongboz has quit [Ping timeout: 260 seconds]
jewel has joined #ocaml
leoncamel has quit [Ping timeout: 252 seconds]
alxbl has quit [Ping timeout: 252 seconds]
alxbl has joined #ocaml
tac has quit [Quit: Page closed]
lolcathost has quit [Ping timeout: 250 seconds]
lolcathost has joined #ocaml
andreypopp has joined #ocaml
jewel has quit [Ping timeout: 248 seconds]
answer_42 has joined #ocaml
<areece> ah, upon examination of the source it appears that ocamlgaph is parsing the dotfile incorrectly
<areece> here is a patch
<areece> can I have some advice on making that a more idiomatic solution?
mye has quit [Quit: mye]
Cyanure has joined #ocaml
Cyanure has quit [Ping timeout: 240 seconds]
Kakadu has joined #ocaml
lolcathost has quit [Ping timeout: 252 seconds]
lolcathost has joined #ocaml
Yoric has joined #ocaml
dwmw2_gone has quit [Ping timeout: 260 seconds]
Yoric has quit [Ping timeout: 240 seconds]
dwmw2_gone has joined #ocaml
leoncamel has joined #ocaml
Yoric has joined #ocaml
philed``` has quit [Ping timeout: 240 seconds]
UncleVasya has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
leoncamel has quit [Ping timeout: 256 seconds]
Zerker has joined #ocaml
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 260 seconds]
andreypopp has quit [Quit: sleep]
andreypopp has joined #ocaml
lolcathost has quit [Ping timeout: 256 seconds]
jewel has joined #ocaml
milosn has joined #ocaml
lolcathost has joined #ocaml
Zerker has quit [Quit: Colloquy for iPad - Timeout (10 minutes)]
lolcathost has quit [Ping timeout: 265 seconds]
lolcathost has joined #ocaml
ikaros has joined #ocaml
UncleVasya has quit [Read error: Connection reset by peer]
xavierm02 has joined #ocaml
emmanuelux has joined #ocaml
Yoric has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 252 seconds]
UncleVasya has joined #ocaml
tane 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.]
lolcathost has joined #ocaml
pango has quit [Remote host closed the connection]
pango has joined #ocaml
lolcathost has quit [Ping timeout: 248 seconds]
Yoric has joined #ocaml
lolcathost has joined #ocaml
Kakadu has quit []
stj has quit [Quit: Page closed]
milosn has quit [Read error: No route to host]
milosn has joined #ocaml
pango has quit [Read error: Operation timed out]
Yoric has quit [Ping timeout: 252 seconds]
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
Yoric has joined #ocaml
pango has joined #ocaml
eikke 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.]
lolcathost has joined #ocaml
leoncamel has joined #ocaml
ontologiae has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
Submarine has quit [Ping timeout: 255 seconds]
weie has quit [Ping timeout: 252 seconds]
weie has joined #ocaml
iZsh has quit [Quit: Coyote finally caught me]
iZsh has joined #ocaml
Yoric has joined #ocaml
lolcathost has quit [Quit: brb peepls!!1!1!1]
lolcathost has joined #ocaml
myx has joined #ocaml
UncleVasya has quit [Ping timeout: 250 seconds]
UncleVasya has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
alxbl has quit [Ping timeout: 244 seconds]
alxbl has joined #ocaml
andreypopp has quit [Quit: sleep]
ontologiae has joined #ocaml
andreypopp has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
andreypopp has quit [Quit: sleep]
andreypopp has joined #ocaml
pango has quit [Ping timeout: 260 seconds]
pango has joined #ocaml
andreypopp has quit [Read error: Connection reset by peer]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
lolcathost has joined #ocaml
andreypopp has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
eikke has quit [Read error: Operation timed out]
mattrepl has joined #ocaml
Snark_ has joined #ocaml
andreypopp has quit [Quit: sleep]
jewel has quit [Ping timeout: 276 seconds]
Snark_ is now known as Snark
ulfdoz has joined #ocaml
lolcathost has quit [Quit: b(not so)rb]
Zerker has joined #ocaml
Zerker has quit [Quit: Colloquy for iPad - Timeout (10 minutes)]
djcoin has joined #ocaml
TDJACR has quit [Ping timeout: 260 seconds]
ontologiae has joined #ocaml
jave has quit [Ping timeout: 260 seconds]
Yoric has quit [Remote host closed the connection]
jave has joined #ocaml
cdidd has quit [Read error: Operation timed out]
emmanuelux has quit [Ping timeout: 240 seconds]
Submarine has quit [Ping timeout: 250 seconds]
emmanuelux has joined #ocaml
astertronistic has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
mye has joined #ocaml
<xavierm02> hey
<xavierm02> how do I declare "recursive" types in ocaml?
<xavierm02> like
<xavierm02> type And = Expression * Expression
<xavierm02> type Or = Expression * Expression
<xavierm02> type Expression = And | Or
<orbitz> type And = Expression * Expression and Expression = ..
<xavierm02> oh
<xavierm02> I'm stupid
<xavierm02> how did I not think of that >_<
<xavierm02> ty
<xavierm02> type and_expression = expression * expression and
<xavierm02> expression = or_expression | and_expression | variable and
<xavierm02> not_expression = expression and
<xavierm02> or_expression = expression * expression and
<xavierm02> variable = int;;
<xavierm02> syntax error line 2
<xavierm02> >_<
<xavierm02> oh
<xavierm02> i cant do that with type without giving a name?
<xavierm02> "something of type" ?
gbarboza has left #ocaml []
<xavierm02> ok
<xavierm02> I just need one type in fact
<orbitz> xavierm02: ah, whoops
ontologiae has quit [Ping timeout: 276 seconds]
ontologiae has joined #ocaml
bobry_ has joined #ocaml
Cyanure has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]
bobry has quit [Remote host closed the connection]
wmeyer``` has joined #ocaml
<wmeyer```> hi
<wmeyer```> is there anyway to use Batteries without all these prefixes?
<wmeyer```> I want BatList to default to List
<xavierm02> I really have no idea what I'm talking about
<xavierm02> but I thought open was for this
<orbitz> wmeyer```: only thin I can think of is having a module that does module List = BatList then open that module
<wmeyer```> orbitz: thanks, yes, I've been doing that, but I am not 100% satisfied with that
<orbitz> yeah kind of annoying
<orbitz> I'm a Core-boy though
<wmeyer```> actually I think this is what stops me to use Batteries as drop in replacement
<wmeyer```> and I am sure many people would report the same psychological behavior
<wmeyer```> BatList just does not look neat to me, binding to module better but then cumbersome
* orbitz shrugs, I can't really say, I have never used Batteries
<wmeyer```> maybe I will just a module that collects all this into single module containing all of these.
<wmeyer```> orbitz: What are your impressions when using Core?
<orbitz> So far I've been very pleased
<wmeyer```> OK, I might try it then
<orbitz> It is not stdlib compatible, if that is a factor for you, but I prefer its design over the stdlib
<wmeyer```> ok, thanks
<orbitz> wmeyer```: here is a little project using Core: https://github.com/orbitz/opass
<wmeyer```> the Command module makes bigger sense than what is in Batteries BatOpt based on GNU getopt
<orbitz> yeah, it's its own beast for sure
<Qrntz> wmeyer```, «open Batteries» sounds like what you want, doesn't it?
<Qrntz> that actually does what you intend to re-invent
<Qrntz> 21:10:33 < wmeyer```> maybe I will just a module that collects all this into single module containing all of these.
<orbitz> Qrntz: does that define List to be BatList?
<Qrntz> it does
<orbitz> there you go
Yoric has joined #ocaml
tane has quit [Quit: Verlassend]
Snark has quit [Quit: Quitte]
<wmeyer```> ah yes, my bad ...
<wmeyer```> Qrntz: thanks
<Qrntz> you're welcome
<wmeyer```> anybody knows a good and fast vector library to reuse with Cairo contexts? Archimedes would work?
<wmeyer```> actually I don't need Cairo but need either direct gtk drawing, or through gtk opengl
<wmeyer```> what I want is to build primitives as data, and then render them somewhere in the window
<wmeyer```> it must be fast too
Cyanure has quit [Read error: Connection timed out]
answer_42 has quit [Ping timeout: 240 seconds]
wormphlegm has quit [Ping timeout: 248 seconds]
Submarine has quit [Read error: Operation timed out]
areece has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
areece has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
Neros has quit [Ping timeout: 255 seconds]
<areece> is this idiomatic ocaml: https://gist.github.com/4238636
<areece> and if not, how can I make it better
<areece> er, wrong link
mye has quit [Ping timeout: 244 seconds]
<wmeyer```> areece: Looks good
leoncamel has quit [Ping timeout: 252 seconds]
<areece> wmeyer```: thanks :)
xavierm02 has quit [Quit: Leaving]
UncleVasya has quit [Quit: UncleVasya]
andreypopp has joined #ocaml
<wmeyer```> areece: you're welcome :)
andreypopp has quit [Client Quit]
djcoin has quit [Quit: WeeChat 0.3.9.2]
mattrepl has quit [Quit: mattrepl]
iZsh has quit [Ping timeout: 250 seconds]
iZsh has joined #ocaml
iZsh has quit [Excess Flood]
Yoric has joined #ocaml
iZsh has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
iZsh has quit [Quit: jumpin' jumpin']
iZsh has joined #ocaml
Yoric has quit [Ping timeout: 252 seconds]