flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0 out now! Get yours from http://caml.inria.fr/ocaml/release.html
koppology has joined #ocaml
jeanb-- has joined #ocaml
jeanbon has quit [Nick collision from services.]
det has quit [Remote closed the connection]
det has joined #ocaml
jeanb-- is now known as jeanbon
Amorphous has quit [No route to host]
Amorphous has joined #ocaml
Ariens_Hyperion has quit []
jeanb-- has joined #ocaml
jeanbon has quit [Nick collision from services.]
jeanb-- is now known as jeanbon
mjonsson has quit [Client Quit]
sbok has quit [hubbard.freenode.net irc.freenode.net]
gildor has quit [hubbard.freenode.net irc.freenode.net]
rumbleca has quit [hubbard.freenode.net irc.freenode.net]
prigaux has quit [hubbard.freenode.net irc.freenode.net]
munga has quit [hubbard.freenode.net irc.freenode.net]
mfp has quit [hubbard.freenode.net irc.freenode.net]
mfp has joined #ocaml
rumbleca has joined #ocaml
munga has joined #ocaml
gildor has joined #ocaml
sbok has joined #ocaml
prigaux has joined #ocaml
Ched has quit [Read error: 110 (Connection timed out)]
Ched has joined #ocaml
koppology has quit [Remote closed the connection]
jeanbon has quit ["EOF"]
AxleLonghorn has joined #ocaml
jeddhaberstro has quit []
komamitsu has joined #ocaml
deech has quit [Read error: 104 (Connection reset by peer)]
deech has joined #ocaml
Associat0r has quit []
AxleLonghorn has left #ocaml []
AxleLonghorn has joined #ocaml
tar_ has joined #ocaml
<tar_> How do you decide between implementing something as a module or a class?
<AxleLonghorn> will you be using a lot of mutable state?
<AxleLonghorn> if the state can be easily wrapped up into one value, go with a module.
<AxleLonghorn> hmm, nevermind. You can emulate the object using records...
<kaustuv_> If you need inheritance, use classes. Otherwise use modules.
<tar_> hm, okay
SirNick has joined #ocaml
AxleLonghorn has quit [Read error: 110 (Connection timed out)]
AxleLonghorn has joined #ocaml
kaustuv_ has quit [Read error: 113 (No route to host)]
tar_ has quit []
tar_ has joined #ocaml
SirNick has quit []
SirNick has joined #ocaml
Camarade_Tux has joined #ocaml
komar_ has joined #ocaml
AxleLonghorn has left #ocaml []
SirNick has quit []
Camarade_Tux has quit ["Leaving"]
komar_ has quit [Remote closed the connection]
pumpkin_ has joined #ocaml
pumpkin_ has left #ocaml []
jamii has joined #ocaml
jedai has joined #ocaml
jedai has quit ["KVIrc 3.2.6 Anomalies http://www.kvirc.net/"]
m3ga has joined #ocaml
patronus_ has joined #ocaml
patronus has quit [Read error: 104 (Connection reset by peer)]
Snark has joined #ocaml
<hlab> hello
<hlab> what does ... mean in output?
<totom> and other elements ?
<totom> in an array for example
<hlab> yes
<hlab> [(a, [b;c;d]); (e, [f;g;h]); <many more similar entries> (k, [...]); ...]
<totom> so, what's the question ?
<hlab> what do the '...' mean?
<totom> it means you have other entries but that it's too long to be displayd
<hlab> hmm
<hlab> how can i increase the size of the display?
<totom> I'm not sure this is possible
<hlab> ah
<totom> but you can implement your own printer
<hlab> i know some expected outputs so maybe i will just create a test case
<totom> write a function which prints out your data
<hlab> let foo = <that list> in foo = test1
sfmatt has quit [Read error: 110 (Connection timed out)]
m3ga has quit ["disappearing into the sunset"]
s4tan has joined #ocaml
_zack has joined #ocaml
C_Tux has joined #ocaml
rwmjones_ has joined #ocaml
Alpounet has joined #ocaml
mlbot has joined #ocaml
<Alpounet> hi
<petchema_> hlab: #print_depth, #print_length (http://caml.inria.fr/pub/docs/manual-ocaml/manual023.html#toc82)
hkBst has joined #ocaml
hkBst has quit [Client Quit]
hkBst has joined #ocaml
jeanbon has joined #ocaml
jackie has joined #ocaml
jackie has quit [Remote closed the connection]
C_Tux has quit ["http://www.mibbit.com ajax IRC Client"]
lanaer has quit [Remote closed the connection]
Ori_B_ has joined #ocaml
lanaer has joined #ocaml
Ori_B has quit [Read error: 110 (Connection timed out)]
komamitsu has quit []
deech has quit [Read error: 54 (Connection reset by peer)]
deech has joined #ocaml
verte has joined #ocaml
wysek has joined #ocaml
<wysek> Hi, I need help with eclipse project properties
<wysek> I installed a ocaml-sem library in /usr/local/lib/ocaml/3.10.2/
<wysek> and I'd love to compile my source using ocamlbuild
<wysek> I managed to compile using ocaml compiler:
<wysek> ocamlopt -cclib -L.. -cclib -lpthread sem.cmxa unix.cmxa semtest.ml
<wysek> how to transform this command into ocamlbuild?
<wysek> anyone here?:)
Spiwack has joined #ocaml
love-pingoo has joined #ocaml
komar_ has joined #ocaml
komar__ has joined #ocaml
<kaustuv> wysek: add use_unix and use_sem tags to semtest.ml using the _tags file, and then write a myocamlbuild.ml that adds the -L .. and -lpthread options for tag use_sem
<wysek> I've found out a better way than ocamlopt:
<wysek> ocamlfind opt -package sem -cclib -lpthread sem.cmxa unix.cmxa semtest.ml
<wysek> kaustuv: how about this?
<kaustuv> I'd recommend reading this:
<wysek> thanks
<wysek> I don't like it ;)
bzzbzz has joined #ocaml
<wysek> actually ocamlfind is ok for me but I need eclipse running and that's the only reason to use ocamlbuild
<kaustuv> Are you using OcaIDE?
<wysek> yes
<kaustuv> "The manual is bundled in the plugi-in"? Wtf?
<wysek> Eclipse->Help->...
<wysek> :)
komar__ has quit [Remote closed the connection]
<kaustuv> I'm not in the mood to go through the hell of downloading and installing eclipse again. Sorry.
<wysek> ok:)
<kaustuv> But generally the suggested way of using pkg_<packagename> tags with ocamlfind is sound.
<wysek> it's just strange to me that I need a plugin to make ocamlbuild work with ocamlfind
<wysek> it's just strange = I find it strange...
<kaustuv> well, ocamlfind is not part of the official ocaml distribution.
<kaustuv> http://ocaml.eclipse.ortsa.com:8480/ocaide/tutorials/3-projects/projects.htm seems to suggest that it's easy to do what you want
<kaustuv> build properties -> project -> big honking boxes for libraries, cflags, etc.
<wysek> yeah but you just said that I need a plugin to use the packages system
<wysek> and I want to keep it simple
<wysek> so I'll stick with ocamlfind
<wysek> thanks anyway:)
<kaustuv> Generally speaking, "I'll use eclipse" comes several shots of hard liquor after "I want to keep it simple".
<kaustuv> Well, that's my experience anyway. YMMV
<wysek> :) the problem is the team uses eclipse and it is my task to make it work in eclipse even though I don't use it
s4tan has quit [Read error: 104 (Connection reset by peer)]
s4tan has joined #ocaml
<Alpounet> haaa, JSSP announcement today.
komar_ has quit [Connection timed out]
Ariens_Hyperion has joined #ocaml
patronus has joined #ocaml
<olegfink> Alpounet: today in PDT time? Something like late UTC evening?
patronus_ has quit [Read error: 104 (Connection reset by peer)]
bartiosze has quit ["No windows for this server"]
_andre has joined #ocaml
sgnb has quit [Read error: 104 (Connection reset by peer)]
sgnb has joined #ocaml
<flux> hmph, what was the syntax to make this work? method foo : 'a . string -> ([> A] as 'a) or something?
<flux> also, if someone knows where that can be found from the manual, I'd like to know that too..
<mrvn> you want a polymorphic method?
<flux> I currently have a function with signature string -> [> `Img] XHTML.M.elt, I want a method with similar signature
wysek has quit ["."]
tar_ has quit []
<mrvn> > class foo = object method bar : 'a. (string -> ([> `a of string] as 'a)) = function s -> Obj.magic s end;;
<mlbot> Type Error
<mrvn> > class foo = object method bar : 'a. (string -> ([> `A of string] as 'a)) = function s -> `A s end;;
<mlbot> Symtable.Error(_)
<mrvn> grr, stupid bot. In my toplevel that works.
<flux> hm, funny how my attempts at doing exactly that didn't work :-o
<mrvn> class foo : object method bar : string -> [> `A of string ] end
<flux> oh well, it turns out I dn't even need > :)
<mrvn> Only reason I could see would be to hide some `X types in the return value.
willb has joined #ocaml
s4tan has quit []
love-pingoo has quit ["Connection reset by pear"]
jzmer has joined #ocaml
<jzmer> could ocaml compile source to native code without a virtual machine?
<jzmer> so that i dont need a vm to run them?
<Alpounet> olegfink, don't know when it'll be pushed online... But it should be UTC, but what hour ?? Heh.
<kaustuv> jzmer: yes, use the command ocamlopt instead of ocamlc
<jzmer> kaustuv: thanks
komar_ has joined #ocaml
SirNick has joined #ocaml
<palomer> jane street summer of code winners will be announced today
<flux> jzmer, btw, you can also produce self-contained binaries with ocamlc -custom: it integrates the ocamlrun inside the binary
Ariens_Hyperion has quit []
kaustuv has quit ["ERC Version 5.3 (IRC client for Emacs)"]
<palomer> hrmph
Ariens_Hyperion has joined #ocaml
jedai has joined #ocaml
<mrvn> But then you can just use ocamlopt on most archs for the same effect and more speed.
<palomer> given that you have access to those archs
* palomer wonders to whatever happened to that ocaml cross compiler
<flux> to what?
<flux> I only know of rwmjones' windows cross compiler
<flux> (compile on linux and produce windows binaries that is)
<flux> I've gotta wonder though if, when producing new software for windows, it'd just be easier to use F#
_zack has quit ["Leaving."]
<mfp> > class foo = object method bar : 'a. (string -> ([> `A of string] as 'a)) = fun s -> `A s end;;
<mlbot> Symtable.Error(_)
<mfp> > class foo = object end;;
<mlbot> Symtable.Error(_)
<mfp> <- missing CamlinternalOO
<Alpounet> yeah
<Alpounet> even instantiating an object before disabling CamlinternalOO doesn't make it possible to have objects
jzmer has quit ["Lost terminal"]
<mfp> xavierbot did something to enable them
<Alpounet> I've tested the same
<Alpounet> :/
<Alpounet> damned, JSSP awards still not online.
<olegfink> Alpounet: you've applied to jssp, right?
<Alpounet> Yes.
<Alpounet> Why ?
<Alpounet> (otherwise, I wouldn't be impatient for seeing awards)
<olegfink> that explains you impatience, yes. :-)
<olegfink> sort of the same was going on april 20th with gsoc announcement :-)
<Alpounet> Heh.
<Alpounet> BTW, wine is ready if my project is selected :-)
<olegfink> I guess. :-)
<olegfink> I'd like to see some statistics about jssp, and I'm too sort of anxious despite the fact I'm not applying. :-)
<flux> alpounet, I can drink a wine for you nevertheles
<flux> well, actually, I'm already sipping my last glass of it..
<Alpounet> flux, oh, thanks ;-)
<Alpounet> Actually, I'm refreshing http://ocaml.janestreet.com/ for hours now.
<flux> soon their anti-dos scripts will react :)
psnively has joined #ocaml
<Alpounet> :-p
<Alpounet> It's at least 13pm @ Manhattan, right ?
<Alpounet> Pfft, they're probably eating and driking some wine, laughing about how they'll announce JSSP projects.
j_lenorm has joined #ocaml
<olegfink> Alpounet: you know, there's rss...
kaustuv has joined #ocaml
<Alpounet> olegfink, heh, F5-ing is fine in my case. I'm not concentrated on anything else for the moment, so ...
* j_lenorm is a happier person since he stopped using gtk
<kaustuv> Alpounet: were you selected? Do you know yet?
<Alpounet> kaustuv, I don't know yet.
<Alpounet> JSSP FAQ says awards will be announced today.
<Alpounet> But still nothing on their page... But it's only 13pm there I think.
<kaustuv> Wow, SML and Haskell proposals also this year?
<j_lenorm> yeah
<j_lenorm> I say we get a contigency in google's summer of code for next year
<Alpounet> kaustuv, yep, but OCaml has priority.
<Alpounet> +"a higher"
<j_lenorm> err
<j_lenorm> what does rss do?
<Alpounet> j_lenorm, it is integrable in your bookmarks or so (Firefox, ...), so that you don't have to load the whole page to know if there's a new post on a blog, etc.
<j_lenorm> cool
<j_lenorm> any comments? I don't have an account so I can't check
deech has quit [Read error: 104 (Connection reset by peer)]
deech has joined #ocaml
<Alpounet> no need for an account to read
<Alpounet> just for posting
<j_lenorm> oh, then I guess there are no comments
verte has quit [":)"]
j_lenorm has quit [Remote closed the connection]
<hlab> petchema_, wonderful :]
<flux> alpounet, iirc last time it took ages to publish the winning projects. never mind how long it took to publish some real information on them as well..
<Alpounet> if I'm selected, for informations about mine, you can ask here
<Alpounet> I plan to publish many stuffs about it on planet ocaml, about what has been done, what is being done, etc (still if I'm selected)
<flux> alpounet, what was the project you proposed?
prime2 has joined #ocaml
<flux> (an executive summary ;))
<Alpounet> An alternative code generation for OCaml's compiler, based on HLVM/LLVM, handling well parallelization and numeric computations (as opposed to the current implementation which is much better for symbolic computations
Associat0r has joined #ocaml
<Spiwack> Which would create life-long nightmares for people doing projects including a half of symbolic computation and a half of numeric computation
<Spiwack> Ça a pas l'air d'être ça
<Spiwack> .(
<Spiwack> Je vais quand même pas devoir partir en weekend sans avoir résolu ça :(
<Spiwack> ops
<Spiwack> wrong window every one :p
<Spiwack> Sorry for the interesting spam :p
<Alpounet> Spiwack, interesting for people like me who also speak French :-)
<Alpounet> Spiwack, then it would be interesting to introduce optimizations for getting a better compromise
<Alpounet> but it's not the aim of my project... And moreover, that would be interesting for scientific computing projects, with many numerical computations.
_andre has quit ["leaving"]
<Spiwack> I'm not sure it was to be taken seriously :p
<Alpounet> if it was not, I had nothing special to answer. If it was, I answered this way :-p
jzmer has joined #ocaml
<jzmer> is there any good linear algebra, especially symbolic linear algebra libraries or modules around for ocaml?
<Alpounet> have you searched in the (O)Caml hump ?
<jzmer> well i did find lacaml
<jzmer> but the problem is that lacaml does not support symbolic
<jzmer> and lacaml does not have any docs i could locate through googling
<jzmer> and that is the only item u could find in caml hump when u typed in "linear algebra"
Spiwack has quit ["Leaving"]
<Alpounet> ok jzmer
<Alpounet> Any "major" project in OCaml is added to the Caml hump
<jzmer> Alpounet: u mean google "major" in caml hump?
<Alpounet> but you should find some doc in the lacaml release
<jzmer> Alpounet: currently im using my distro's ocaml-lacaml package, which does not even have any example
<Alpounet> jzmer, are you sure ?
<jzmer> Alpounet: but i could also try the package from caml hump, which might have something more than those provided in the distro package
<Alpounet> jzmer, indeed, there isn't any doc in the release archive... But there are examples in the "examples" dir, and the code is commented, it can be of help ;-)
<Alpounet> Moreover, you can contact lacaml's author IMO.
<jzmer> Alpounet: thanks, checked the package at caml hump, does have some examples, just wonder my distro didnt include those . . .
<Alpounet> jzmer, it should... as it may just "transform" the archive to fit your system's hierarchy?.
<Alpounet> s/?//
<jzmer> well on my distro th e package is split into ocaml-lacaml and ocaml-lacaml-devel . and i did a rpm -ql with grep -i example , and it turns out nothing
<jzmer> and it also seems to be somewhat oudated . . .
<Alpounet> ok
<Alpounet> jzmer, you should rather use the release archive published on ocaml.info
<jzmer> anyway, u could rarely see outdated packages in fedora, i would probably contact the pkg maintainer
<Alpounet> Debian is better for OCaml IMO :-)
<jzmer> Alpounet: thanks, i just know hump before
<jzmer> dunno whether debian apply optimization flags and safety stacks and other feature flags to compiler for ocaml though
<jzmer> in fedora they have all those flags enable and the build log is visible
<mrvn> check on buildd.debian.org
prime2 has quit ["leaving"]
<jzmer> mrvn: thanks, checked the debian ocaml packages, but they seem to use less flags though
<jzmer> mrvn: a respective fedora build log for ocaml on i586 could be found at http://kojipkgs.fedoraproject.org/packages/ocaml/3.11.0/2.fc11/data/logs/i586/build.log
<Alpounet> hand-made build is better if you need *very* good performance on your machine
<Alpounet> > ($) ;;
<mlbot> Type Error
<jzmer> Alpounet: true, but i hope i have the time though, including installing at a non-default path and setting up confs and testing . . .
jzmer has quit ["leaving"]
Ariens_Hyperion has left #ocaml []
j_lenorm has joined #ocaml
<j_lenorm> results aren't in yet:/
<j_lenorm> Alpounet: still F5ing?
j_lenorm has quit [Remote closed the connection]
komar_ has quit [Read error: 60 (Operation timed out)]
thelema has quit [Read error: 104 (Connection reset by peer)]
_andre has joined #ocaml
<Alpounet> (even if he's gone) yes
komar_ has joined #ocaml
Snark has quit ["Ex-Chat"]
bluestorm has joined #ocaml
<bluestorm> mfp: is the OUnit branch yours ? why don't you push it to the main ?
<Alpounet> bluestorm, yes, it's mfp's branch
<bluestorm> I have tried it and think we should push it ASAP
<bluestorm> we need to add more test, the sooner the transition get done, the better
<hlab> what does this mean? http://rafb.net/p/oj74Oq13.html
<bluestorm> hlab: probably means you've been messing with the toplevel
<bluestorm> two different types with the same name defined at different times
<hlab> what does that mean? :P
<hlab> ahh!
<hlab> gotcha
<palomer> hrmph
<palomer> I'm writing a toolkit
<palomer> that depends on an external library called foo.cmxa
<palomer> erm...
<palomer> I better include foo.cmxa into my library I guess
kaustuv has quit [Remote closed the connection]
kaustuv has joined #ocaml
deech has quit [Read error: 104 (Connection reset by peer)]
deech has joined #ocaml
Yoric[DT] has joined #ocaml
ttamttam has joined #ocaml
<mfp> bluestorm, Alpounet: OK, pushing it in a while then
<mfp> (I've already rebased it against latest master)
<Alpounet> mfp, I'll just wait it's in master to create tests on monad stuffs
<mfp> actually, s/in a while/right now/
<mfp> so you have no excuse }:-)
<Alpounet> Haha.
<Alpounet> I'll write them tonight, still waiting for JSSP anouncement :-p
<mfp> pushed
monadic_kid has joined #ocaml
psnively has quit []
<Alpounet> mfp, cheers ;-)
<bluestorm> i've tried to adapt my camlp4 testing to the OUnit framework but's it's really quite difficult
<bluestorm> as it is very sensitive to the compilation options, and I haven't found the way to build then painlessly with ocamlbuild yet
<bluestorm> (it will probably need some ocamlbuild plugin)
ulfdoz_ has quit [SendQ exceeded]
ttamttam has left #ocaml []
_andre has quit ["Lost terminal"]
_andre has joined #ocaml
_andre has quit [Client Quit]
Ariens_Hyperion has joined #ocaml
komar_ has quit [Read error: 104 (Connection reset by peer)]
<hcarty> What is the proper way to use a polymorphic variant in the OCaml C ffi? Is Int_val(hash_variant(foo)) appropriate?
thelema has joined #ocaml
<mrvn> doesn't hash_variant() return a C int?
monadic_kid has quit ["Leaving"]
jamii has quit [Read error: 60 (Operation timed out)]
<Alpounet> good night all... let's see tomorrow for JSSPs
Alpounet has left #ocaml []
mlbot has quit [Remote closed the connection]
hkBst has quit [Read error: 104 (Connection reset by peer)]
Ariens_Hyperion has left #ocaml []
bluestorm has quit [Remote closed the connection]
jamii has joined #ocaml
jamii has quit [Remote closed the connection]
willb has quit ["Leaving"]
<hcarty> mrvn: It returns value
<hcarty> But it looks like it's a C int returned as a value
<hcarty> So I'm not quite certain what it is supposed to do
<hcarty> I want to compare hash_variant("foo") with (value variant_foo) and I'm not sure if (hash_variant("foo") == variant_foo) is the right thing to do
<hcarty> It seems to work
<hcarty> I don't want it to introduce other bugs later on though
Ariens_Hyperion has joined #ocaml
singintime has joined #ocaml
<singintime> hello world
singintime has left #ocaml []
deech has quit [Read error: 104 (Connection reset by peer)]
deech has joined #ocaml
<palomer> hrmph
CoryDambach has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
jeanbon has quit [Read error: 104 (Connection reset by peer)]
<palomer> anyone know of any good auto completion algorithms?
jeanbon has joined #ocaml
palomer has quit [Remote closed the connection]
seafood has joined #ocaml