gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0+beta1 http://permalink.gmane.org/gmane.comp.lang.caml.inria/49168
jakedouglas has quit [Quit: Leaving.]
jgrozave has quit [Quit: Page closed]
thrasibule has joined #ocaml
valross has quit [Ping timeout: 265 seconds]
_unK has quit [Read error: Connection reset by peer]
_unK has joined #ocaml
travisbrady has quit [Quit: travisbrady]
jakedouglas has joined #ocaml
elehack has joined #ocaml
walrus__ has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
jonrafkind has joined #ocaml
<jonrafkind> is the order of execution of setting fields of a type specified? {a = f (); b = f2 (); c = f3 () }
<jonrafkind> it seems to execute f3, f2, then f
<jonrafkind> ok, i just used a-normal form instead
th5 has quit [Ping timeout: 248 seconds]
jonrafkind has left #ocaml []
jakedouglas has quit [*.net *.split]
thomasga has quit [*.net *.split]
emias has quit [*.net *.split]
olegfink has quit [*.net *.split]
elehack is now known as elehack|afk
jakedouglas has joined #ocaml
thomasga has joined #ocaml
emias has joined #ocaml
olegfink has joined #ocaml
elehack|afk is now known as elehack
elehack is now known as elehack|afk
jakedouglas1 has joined #ocaml
jakedouglas has quit [Ping timeout: 276 seconds]
malc_ has joined #ocaml
_unK has quit [Remote host closed the connection]
malc_ has left #ocaml []
pad has quit [Remote host closed the connection]
Associat0r has quit [Quit: Associat0r]
jakedouglas1 has quit [Ping timeout: 276 seconds]
th5 has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
walrus__ has quit [Ping timeout: 265 seconds]
thrasibule has quit [Ping timeout: 265 seconds]
walrus__ has joined #ocaml
avsm has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
pigdude has joined #ocaml
pigdude has quit [Client Quit]
ulfdoz has joined #ocaml
jakedouglas has joined #ocaml
avsm1 has quit [Ping timeout: 265 seconds]
jakedouglas has quit [Quit: Leaving.]
orbitz has quit [Read error: Connection reset by peer]
orbitz has joined #ocaml
BlueSilver39 has joined #ocaml
<BlueSilver39> any good ocaml web frameworks out there?
<flux> bluesilver39, there are ocsigen and less ambitious ocamlnet's ocamlcgi
<BlueSilver39> hmm i mean is it a web framework for productivity or is it a framework for driving me insane? hehe
<flux> take a look?-)
th5 has quit [Ping timeout: 276 seconds]
ulfdoz has quit [Ping timeout: 260 seconds]
<BlueSilver39> flux: scared its going to be so over complicated that you well you know
<thelema> yoric's company is doing something that could be categorized as "ocaml" and "web framework"
BlueSilver39 has quit [Ping timeout: 240 seconds]
Amorphous has quit [Ping timeout: 248 seconds]
ttamttam has joined #ocaml
jeddhaberstro has quit [Quit: jeddhaberstro]
Amorphous has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
th5 has joined #ocaml
th5 has quit [Client Quit]
<flux> as is smerdyakov's. but for some reason the name of the system escapes my mind now..
<flux> both implement a new language, so one wouldn't be writing in ocaml.
<flux> hmh.. I wonder, is there an ocaml cvs (or rather: 3.12) deb repository for ubuntu around?
<flux> something that would take the most recent ocaml and build all lib*ocaml-packages with it
<flux> and keep track of ubuntu dependencies while doing this
fabjan has joined #ocaml
itewsh has joined #ocaml
eelte has joined #ocaml
<alexyk> flux: what's really new in 3.12?
jonafan has quit [Read error: Connection reset by peer]
coucou747 has quit [Ping timeout: 260 seconds]
walrus__ has quit [Remote host closed the connection]
<theDroggl> cvs?
<theDroggl> ocaml uses cvs?
alexyk has quit [Quit: alexyk]
joewilliams_away is now known as joewilliams
Associat0r has joined #ocaml
ikaros has joined #ocaml
myu2 has quit [Ping timeout: 258 seconds]
ftrvxmtrx has joined #ocaml
<adrien> theDroggl: svn
myu2 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
oriba has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Client Quit]
joewilliams is now known as joewilliams_away
<theDroggl> oh ok thats at least slightly less awful ;)
alexyk has joined #ocaml
Yoric has joined #ocaml
oriba has quit [Quit: Verlassend]
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
alexyk has quit [Client Quit]
Yoric has quit [Quit: Yoric]
Associat0r has quit [Quit: Associat0r]
thrasibule has joined #ocaml
thrasibule has quit [Ping timeout: 259 seconds]
ccasin has joined #ocaml
Yoric has joined #ocaml
_unK has joined #ocaml
ikaros has joined #ocaml
jakedouglas has joined #ocaml
Yoric has quit [Quit: Yoric]
avsm has joined #ocaml
boscop has joined #ocaml
elehack|afk has quit [Ping timeout: 245 seconds]
derdon has joined #ocaml
avsm has quit [Ping timeout: 276 seconds]
avsm has joined #ocaml
alexyk has joined #ocaml
derdon has quit [Quit: WeeChat 0.3.0]
_andre has joined #ocaml
_unK has quit [Remote host closed the connection]
jonafan has joined #ocaml
seafood has quit [Quit: seafood]
murphe has quit [Remote host closed the connection]
boscop_ has joined #ocaml
avsm has quit [Quit: Leaving.]
boscop has quit [Ping timeout: 264 seconds]
Yoric has joined #ocaml
Yoric has quit [Client Quit]
avsm has joined #ocaml
Associat0r has joined #ocaml
jgrozave has joined #ocaml
<jgrozave> does anyone here know how to use ocamlfind's preprocessing features?
<jgrozave> how to set up a meta file to take care of the syntax flag and all that
pad has joined #ocaml
<jgrozave> okay, i've got a bit of a different question then. requiring camlp4 basically sets the preprocessor to camp4. what if you wanted to use camlp4of or any of the other variations of camlp4
<jgrozave> thelema: what are the equivalent -parser options to give to camlp4 for all of those?
<thelema> that I don't know
<thelema> -syntax camlp4of ?
<jgrozave> there is a -parser of option for camlp4
<jgrozave> but it doesn't seem to function the same as using camlp4of
<jgrozave> this command runs just fine "ocamlc -c -pp camlp4of -I +camlp4 pa_openin.ml"
<jgrozave> but this one complains that there's a parse error "ocamlc -c -pp 'camlp4 -parser of' -I +camlp4 pa_openin.ml -verbose"
<thelema> I'm not a big fan of camlp4, so I don't know this either
<jgrozave> no problem, camlp4 interests me quite a bit, but there isn't much recent documenation
<jgrozave> it's all for older versions of ocaml and it seems to have changed a lot
<jgrozave> gives me a reason to dig through the source i guess haha
<jgrozave> HAHA speaking of that, i just found this line which seems quite promising: mk_camlp4 "camlp4of" [pa_r; pa_qc; pa_q; pa_o; pa_rp; pa_op; pa_g; pa_macro; pa_l] [pr_a] [];;
<thelema> yup, the update of camlp4 around 3.10 left it with less docs. There's a wiki somewhere to add docs to
<jgrozave> those definitely look like options you can pass to camlp4 to function just like camlp4of :)
<jgrozave> do you know what this syntax means: A"string"
<jgrozave> that's a really hard thing to google :P
<thelema> it's part of the estring extension, I think: (old docs) http://github.com/thelema/batteries-included/blob/master/doc/batteries/html/extensions.html
<thelema> is it really a 'A' before the string?
<jgrozave> yeah, it turns out it's just a type constructor A of string
<jgrozave> and you don't need the space apparently
<jgrozave> much simpler than I thought
<thelema> oh, in myocamlbuild.ml... yes, of course
<jgrozave> yeah that's it
<thelema> A for Argument
<jgrozave> thanks for the help though!
avsm has quit [Quit: Leaving.]
ftrvxmtrx has quit [Quit: Leaving]
derdon has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ttamttam has quit [Quit: Leaving.]
th5 has joined #ocaml
joewilliams_away is now known as joewilliams
ikaros has joined #ocaml
<alexyk> looks like omake has error-enabled warnings by default; how do I turn it off?
<mfp> alexyk: you can do OCAMLFLAGS += -warn-error a
<mfp> alexyk: was about to reply to your email btw
<alexyk> mfp: I borrowed your OMakefile btw :)
<mfp> alexyk: you can use Patricia trees (http://www.lri.fr/~filliatr/software.en.html) for maps over integers
<alexyk> mfp: so where do I add that line? in Omakefile or OMakeroot?I compile native and you have OCAMLOPTFLAGS there already
<mfp> OMakefile
<mfp> -warn-error is honored by both ocamlc and ocamlopt, so you can use OCAMLFLAGS directly (which is used for both)
<alexyk> and [-warn-error a] will turn it off?
<mfp> yes
<alexyk> cool!
<mfp> the list of flags is documented in ocamlc -h
<alexyk> I really want to try to replace Hashtbl with one of yours as I grow Twitter graphs to 10-30 GB
<alexyk> and it's a major time expense
<alexyk> so if I understood the benchmark, it's either FastHashtbl or Ternary, right?
<alexyk> and if I want functional, then Ternary?
<mfp> the safest thing is to benchmark with a subset of your corpus ;-)
<mfp> alexyk: Ternary is much faster than Map if you don't mind the size, but imperative hash tables are usually faster (but for sorted traversals). As for FastHashtbl, its performance will degrade if you're deleting elements, so it's not always the best choice.
<alexyk> mfp: I actually don't delete, so that may be good
<alexyk> mfp: not all of them are API-rich, i.e. they're not drop-in replacements for Hashtbl... Ternary seems almost standard-like
<alexyk> I need fold for all
<mfp> I didn't bother to implement iter & fold for FastHashtbl, but it should be trivial
<mfp> off the top of my head...
* mfp looks at the type def
<mfp> let iter f h = Array.iter (function Data (k, v, _) -> f k v | Empty | Removed -> ()) h.data or such
<mfp> let fold f h x = Array.fold_left (function e x -> match e with Empty | Removed -> x | Data (k, v, _) -> f k v e) x h.data
<mfp> that types modulo s/function/fun/ in the 2nd def
<mfp> ugh and another braino
<mfp> make that let fold f h x = Array.fold_left (fun x e -> match e with Empty | Removed -> x | Data (k, v, _) -> f k v x) x h.data
th5 has quit [Read error: Connection reset by peer]
th5 has joined #ocaml
<jgrozave> thelema: hey, I finally figured out that camlp4 problem I was having earlier
travisbrady has joined #ocaml
joewilliams is now known as joewilliams_away
avsm has joined #ocaml
ftrvxmtrx has joined #ocaml
<alexyk> mfp: thx!
ulfdoz has joined #ocaml
ztfw` has joined #ocaml
ztfw has quit [Read error: Connection reset by peer]
boscop_ has left #ocaml []
ttamttam has joined #ocaml
boscop has joined #ocaml
alexyk has quit [Quit: alexyk]
avsm has quit [Quit: Leaving.]
jgrozave has quit [Quit: Page closed]
travisbrady has quit [Read error: Connection reset by peer]
travisbrady_ has joined #ocaml
Anarchos has joined #ocaml
Modius has quit [Quit: I'm big in Japan]
alexyk has joined #ocaml
travisbrady_ has quit [Ping timeout: 258 seconds]
th5 has quit [Quit: th5]
<alexyk> when I want to add debugging to opt, do I add -g to OCAMLOPTFLAGS, omake clean; omake?
<alexyk> hmm, omake ate my executable, and it doesn't work.
<alexyk> make does fine... so simply copying an OMakefile from mfp and adding my objects and packages is not enough :)
mbishop has quit [Read error: Connection reset by peer]
mbishop has joined #ocaml
avsm has joined #ocaml
travisbrady has joined #ocaml
eelte is now known as coucou747
drk-sd is now known as Dark-Side
Dark-Side is now known as drk-sd
_unK has joined #ocaml
th5 has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Anarchos has joined #ocaml
_andre has quit [Quit: *puff*]
mbishop has quit [Ping timeout: 240 seconds]
<derdon> thelema: I've found a tiny typo in the doc to the Print module
<derdon> thelema: "This module define" -> "This module defines"
avsm has quit [Quit: Leaving.]
ulfdoz has quit [Ping timeout: 248 seconds]
<alexyk> how do you both match a pattern and name it as a whole?
<alexyk> ah, as z
<Anarchos> f x as b -> ....
<Anarchos> let f = function x as y -> do_something_with_y
alexyk has quit [Quit: alexyk]
ttamttam has quit [Quit: Leaving.]
<travisbrady> How does one read a double from a bytestring?
<travisbrady> woops, wrong chat window
Anarchos has quit [Ping timeout: 265 seconds]
alexyk has joined #ocaml
ccasin has quit [Quit: Leaving]
valross has joined #ocaml
alexyk has quit [Quit: alexyk]
ikaros has quit [Quit: Leave the magic to Houdini]
<travisbrady> Is there a 'best' option for parallelizing something? I'm thinking of processes, threads, lwt and perhaps jocaml.
seafood has joined #ocaml
elehack|afk has joined #ocaml
emmanuelux has joined #ocaml
jgrozave has joined #ocaml
thrasibule has joined #ocaml
<jgrozave> feels good to finally get batteries compiled under windows
<derdon> jgrozave: how can you use windows as a serious OS for developping?
myu2 has quit [Quit: Leaving...]
elehack|afk has quit [Quit: not a typewriter]
elehack has joined #ocaml
<elehack> jgrozave, glad it's working for you. have you documented what's needed to get it done anywhere?
<jgrozave> yeah i've been keeping notes
<jgrozave> not online anywhere yet
<jgrozave> the biggest problem is the DOS line endings and the difference in file paths between windows and cygwin
<jgrozave> derdon: i'd rather use linux, but i thought I'd give a shot to getting batteries up and running on windows for portability
patronus has quit [Remote host closed the connection]
patronus has joined #ocaml
derdon has quit [Ping timeout: 258 seconds]