gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
lopex has quit []
lopex has joined #ocaml
ikaros_ has quit [Quit: Leave the magic to Houdini]
boscop has quit [Ping timeout: 240 seconds]
groovy2shoes has joined #ocaml
oriba has joined #ocaml
oriba has quit [Client Quit]
Oejet has quit [Ping timeout: 240 seconds]
oriba has joined #ocaml
oriba has quit [Client Quit]
ulfdoz has quit [Ping timeout: 264 seconds]
ulfdoz has joined #ocaml
enthymeme has joined #ocaml
lopex has quit []
smerz has quit [Quit: Ex-Chat]
lamawithonel_ has quit [Ping timeout: 264 seconds]
lamawithonel_ has joined #ocaml
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
f[x] has quit [Ping timeout: 272 seconds]
tauntaun has quit [Quit: Ex-Chat]
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
arubin has quit [Quit: arubin]
eye-scuzzy has quit [Quit: leaving]
eye-scuzzy has joined #ocaml
lamawithonel_ has quit [Ping timeout: 264 seconds]
srcerer has quit [Max SendQ exceeded]
srcerer has joined #ocaml
dnolen has joined #ocaml
ulfdoz has quit [Ping timeout: 264 seconds]
fraggle_ has quit [Ping timeout: 240 seconds]
philtor has quit [Ping timeout: 240 seconds]
dnolen has quit [Quit: dnolen]
fraggle_ has joined #ocaml
Cyanure has joined #ocaml
groovy2shoes has left #ocaml []
Yoric has joined #ocaml
ygrek has joined #ocaml
Yoric has quit [Quit: Yoric]
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
gorgonite has joined #ocaml
gorgonite has quit [Client Quit]
ikaros has joined #ocaml
ttamttam has joined #ocaml
jao has quit [Ping timeout: 276 seconds]
f[x] has joined #ocaml
f[x] has quit [Client Quit]
f[x] has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
edwin has joined #ocaml
Yoric has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
AdmWiggin has quit [Ping timeout: 272 seconds]
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
boscop has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
_andre has joined #ocaml
ftrvxmtrx has joined #ocaml
oriba has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
Oejet has joined #ocaml
Znudzon has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
lopex has joined #ocaml
f[x] has joined #ocaml
Znudzon has quit [Ping timeout: 240 seconds]
alpounet has quit [Ping timeout: 240 seconds]
alpounet has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
examachine has joined #ocaml
<examachine> hello there i'm trying to add marshaling to mlgmpidl GMP floating point type, but I'm getting the following error: Fatal error: exception Failure("input_value: unknown custom block identifier"). serialization seems to succeed, but because of this error deserialization doesn't start. how to fix it?
f[x] has quit [Read error: Connection reset by peer]
<examachine> camlidl_custom_mpf precisely. what i'm doing is i'm trying to plug my own serialization/deserialization functions instead of the default ones in the custom block. and failure. how could i trace that?
f[x] has joined #ocaml
<examachine> could it be because the custom functions aren't properly registered? 'doh let me try that :P
decaf has joined #ocaml
<examachine> still learning about bindings :D
f[x] has quit [Read error: Connection reset by peer]
<examachine> ok i need a cup of coffee :)
f[x] has joined #ocaml
<f[x]> examachine, probably they are not implemented?
<examachine> well i implemented them but oversight first you have to register the functions and mlgmpidl doesn't register them, it uses the custom block structure in alloc funcs only. a grep revealed that.
lamawithonel_ has joined #ocaml
<examachine> it's a pity that there aren't arbitrary precision floats in num library!
<examachine> and it's funny but i think i need at least 160-170 bits of precision for my code to work properly. i still don't regret i didn't take that numerical analysis course though :D
<examachine> bignum*
<examachine> my code is completely weird, a slight numerical error and it goes into an infinite loop!
nejimban has quit [Ping timeout: 250 seconds]
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
lamawithonel_ has quit [Ping timeout: 264 seconds]
myu2 has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
eye-scuzzy has quit [Remote host closed the connection]
f[x] has joined #ocaml
decaf has quit [Quit: Leaving]
eye-scuzzy has joined #ocaml
mikemc has quit [Quit: Leaving]
agarwal1975 has quit [Quit: agarwal1975]
f[x] has quit [Read error: Connection reset by peer]
myu2 has quit [Remote host closed the connection]
myu2 has joined #ocaml
<examachine> stuzzy!
f[x] has joined #ocaml
myu2 has quit [Remote host closed the connection]
Yoric_ has joined #ocaml
Yoric has quit [Ping timeout: 240 seconds]
Yoric_ is now known as Yoric
avsm has joined #ocaml
lamawithonel_ has joined #ocaml
lamawithonel_ has quit [Remote host closed the connection]
lamawithonel has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
examachine has quit [Ping timeout: 272 seconds]
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
f[x] has joined #ocaml
Yoric has quit [Ping timeout: 264 seconds]
Yoric has joined #ocaml
joewilliams_away is now known as joewilliams
BiDOrD has joined #ocaml
BiDOrD_ has joined #ocaml
BiDOrD__ has quit [Read error: Connection reset by peer]
BiDOrD has quit [Ping timeout: 276 seconds]
Yoric_ has joined #ocaml
Yoric has quit [Ping timeout: 264 seconds]
Yoric_ is now known as Yoric
ccasin has quit [Quit: Lost terminal]
ccasin has joined #ocaml
myu2 has joined #ocaml
chompg has joined #ocaml
oriba has quit [Quit: Verlassend]
f[x] has quit [Read error: Operation timed out]
nejimban has joined #ocaml
ymasory_ has quit [Quit: Leaving]
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
ttamttam has left #ocaml []
Yoric has quit [Ping timeout: 250 seconds]
Yoric has joined #ocaml
rwmjones has joined #ocaml
philtor has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
yezariaely has joined #ocaml
lopex has quit []
lopex has joined #ocaml
Yoric has quit [Quit: Yoric]
dnolen has joined #ocaml
chompg has quit [Remote host closed the connection]
smerz has joined #ocaml
Znudzon has joined #ocaml
<hcarty> thelema: Any progress on your odb-minus project?
sepp2k has joined #ocaml
<thelema> hcarty: one sec while I push it to github
<thelema> I got it to download and install all the deps for oasis
<thelema> there's some tweaks I want to still do, but it's usable for what's been prepared for it in my archive
Znudzon has quit [Ping timeout: 240 seconds]
<thelema> odd, my ssh key doesn't log into github all of a suden
<thelema> something wierd is going on... imap.gmail.com's ssl cert doesn't verify
mikemc has joined #ocaml
tauntaun has joined #ocaml
<hcarty> thelema: Oh my. Good luck - I hope it's not anything serious.
<thelema> very odd - maybe someone was mitm-ing me... It seems to have gone away.
<thelema> github's fingerprint checks out
<thelema> evolution is still complaining about imap.google.com
dnolen has quit [Quit: dnolen]
<thelema> okay, pushed to https://github.com/thelema/odb
<thelema> I'm going to try keeping the name odb since it's shorter than oasis-db
jonafan_ is now known as jonafan
<thelema> next step is to make batteries distribute properly with this.
<thelema> this is hard to test, as the dep checking finds batteries, and if I remove batteries, I can't build odb
<thelema> I made a few issues of things I think would be useful to have working soon
tauntaun has quit [Quit: Ex-Chat]
<hcarty> thelema: I don't know that it simplifies things at all, but you could the OCaml curl bindings in place of ocamlnet.
<hcarty> It cuts out the Pcre dependency
<gildor> thelema: why did you call this oasis-db, when there is nothing related to oasis in it ?
<thelema> it's called odb
<gildor> thelema: you could have at least used "ocaml setup.ml -configure/-build/-install"
<thelema> gildor: and the backend generation can be better automated by extracting from oasis files
<thelema> gildor: won't work for batteries (nor its deps)
<gildor> thelema: don't fool me, the title is "Oasis-db minimal "
<thelema> Should I rename it?
<gildor> no I don't care
<thelema> it's definitely inspired by oasis-db
<gildor> though, I still think we should work together
<thelema> and I admit it's nowhere near as well made as the current oasis-db
<gildor> rename it -> well, maybe "oasis-db experiments" or something similar
ftrvxmtrx has joined #ocaml
<thelema> done
<gildor> thelema: just use a more oriented oasis style
<gildor> thelema: e.g. it costs you almost nothing to call "ocaml setup.ml -configure" rather than "configure"
<thelema> I can autodetect both.
<gildor> and you can adapt batteries to have a setup.ml that call "./configure"
<gildor> and then I would be able to reuse your code
<thelema> but you've already got compatibility for makefiles in oasis, so I'm using that
<gildor> the compatibility is optional
<thelema> batteries has no ./configure
<gildor> and far from perfect
<thelema> just make targets
<gildor> thelema: you can have an empty target for -configure in the setup.ml you create for batteries
* thelema looks into setup.ml examples to see about creating one for batteries
<thelema> although it'll be wierd for setup.ml to call make, no?
<gildor> and have a look at standard variables for configure (but it should be useless, if you don't have configure for batteries)
<gildor> thelema: if we can work using this convention (for setup.ml) we can share the work -- and avoid autodetecting compatibility layer vs real configure
<gildor> (and it would become really related to oasis BTW)
<thelema> If it makes you feel any better, I had the setup.ml -configure, etc. in my initial version, but switched it out when I found the makefile with the targets I wanted.
<thelema> I see that setup.ml is fundamental to oasis and will modify to use it in preference to makefile
<gildor> Makefile targets are not standard entry points, esp for ocaml projects
<gildor> (e.g. make byte opt bc all)
<gildor> whereas setup.ml try to create a standard (right now it is not a standard, but pushing for it is part of the oasis effort)
<thelema> yes, but it's generally pretty easily standardized in the package source, by setting build=<cmd> variables in the info file
<thelema> s/standardized/worked around/
<gildor> which info file ?
<thelema> webroot/pkg/dep/<package-name>
<thelema> which is a bad URI since it's no longer only dep info
<gildor> ah, you recreated GODI info file
<thelema> it must have been a good idea
<thelema> at least a good enough idea
<gildor> that is not a bad idea
<gildor> but GODI is more advanced
<gildor> e.g.: BUILD_DEPENDS+= godi-findlib>=0.8.1:../../godi/godi-findlib
<thelema> it was the simplest thing to parse with batteries that gave me enough flexibility
<gildor> BUILD_DEPENDS+= conf-curl>=3:../../conf/conf-curl
<thelema> hmmm, I don't think I need to add any heirarchy to mine
<gildor> DEPENDS+= ${CONF_CURL_DEPENDS}
<thelema> although dealing with versions is something I've not done
<gildor> thelema: let say that if you complete all the version/uploading/right management et al
<gildor> thelema: you'll end up with something quite similar to oasis-db
<thelema> right management?
<gildor> thelema: account to upload
<gildor> in CPAN, you can upload stuff
<thelema> ah, yes. everything on the server is manually managed now. Some interface to that would be good for searching and uploading and automatic testing, but that's not critical to getting to the "it's useful for people" stage
Yoric has joined #ocaml
<gildor> thelema: ok nevermind, good luck
<thelema> for me, getting to that stage is critical to finding out what really needs to be done
<thelema> just like profiling to determine where to optimize, contact with users is necessary to find the correct requirements
<thelema> I'll be discovering how perfect oasis is soon enough
<gildor> oasis, is by far not perfect
<gildor> you can see the list of bugs in BTS, and it is not short
<gildor> but you know "never optimize at the beginning"
<thelema> yup, that's what I'm doing, except not for performance but for featureset
<thelema> gildor: if a step is omitted from setup.ml, what's expected?
<gildor> if configure is omitted, it fails
<gildor> (no setup.data)
<gildor> install only install what has been built
<thelema> i.e. if I do setup.ml -test on a project with no tests, should I expect a positive return code?
<gildor> you'll get an error
<gildor> (at least an exception is raised)
<thelema> okay, setup.ml support is restored
<thelema> and Batteries even has a shim setup.ml now
agarwal1975 has joined #ocaml
<gildor> agarwal1975: how is ocamlweb ?
<agarwal1975> didn't get to work on it more yesterday. I'll try right now.
<agarwal1975> it worked!
<gildor> URL ?
<agarwal1975> hold hold on that for a minute, it's in the middle of the install.
<agarwal1975> drupal wants an admin email from which all emails will be sent. it recommends this be from the same domain as the site. do I have such an account as a forge user?
<gildor> agarwal1975: you can send them to a mailing list
<gildor> but use your own email for now, it is probably something you can change after
<agarwal1975> this is the "from" email address. so for instance, the website will send an email when someone registers.
<agarwal1975> yeah, i'll just use my own.
<gildor> great, that is the beginning ;-)
<agarwal1975> But it is of course empty. Now, the hard work. I have to define the content types.
<gildor> did you get the cocan/tutorial content ?
Edward has joined #ocaml
<agarwal1975> no, I'll ask Richard again now that I've got the basics running.
<agarwal1975> thanks for all the help.
<gildor> no pb
<gildor> we'll continue to collaborate
<agarwal1975> thanks. :)
<gildor> if you reach your goals, it will become the default for www.o.o -- I already told you so
<agarwal1975> great! i hope I can do it.
rwmjones has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
agarwal1975_ has joined #ocaml
agarwal1975 has quit [Read error: Connection reset by peer]
agarwal1975_ is now known as agarwal1975
ygrek has joined #ocaml
rwmjones has joined #ocaml
groovy2shoes has joined #ocaml
Edward has quit [Ping timeout: 246 seconds]
Edward has joined #ocaml
Fullma has joined #ocaml
agarwal1975_ has joined #ocaml
agarwal1975 has quit [Ping timeout: 272 seconds]
agarwal1975_ is now known as agarwal1975
Edward has quit [Ping timeout: 240 seconds]
_andre has quit [Quit: leaving]
vivanov has joined #ocaml
Edward has joined #ocaml
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
enthymeme has joined #ocaml
vivanov has quit [Read error: Connection reset by peer]
groovy2shoes has left #ocaml []
vivanov has joined #ocaml
<vivanov> hi - i am creating threads within threads and things run not smooth as without threads in threads. Is it common and i should avoid doing that or i need to debug further? i run ocaml-3.12 on gentoo-linux
<thelema> vivanov: bytecode or native code?
<vivanov> both
<vivanov> native is slower
<thelema> I can't see any problem with threads in threads in bytecode.
<thelema> how many threads? hundreds? thousands?
<vivanov> ))
<vivanov> 5
<vivanov> for a server
<thelema> :( network server?
<thelema> 5 threads should be no problem
<vivanov> the function i call within thread in thread gets executed to some point and after that point just refuses to work
<vivanov> ok ic
<vivanov> if 5 threads should be ok ill debug further and get back in case what -- thanks
<thelema> you're welcome.
<thelema> you may consider using LWT
<vivanov> ?
<vivanov> what is LWT
<vivanov> by the way -- i ran ocamldebug with my program and it gave me Misc.Fatal_error
<vivanov> does it mean smth wrong with my code or ocamldebug doesnt support threads in threads?
<thelema> are you calling fork?
<vivanov> no
<vivanov> thread
<vivanov> im not calling fork anywhere
<thelema> interfacing with C?
<vivanov> yes - i am using a library that is interfaced with c
<vivanov> jane street's core
<thelema> hmm, I'd expect their code to be quite threadsafe... probably not that.
<vivanov> ok -- so ocamldebug should be working fine?
<thelema> yes, it should work fine even with core.
<vivanov> ok ic
<vivanov> so basically you say everything should be fine with threads -> ill debug further -- thanks very much
<ygrek> "threads within threads" in meaningless btw
<vivanov> y?
<vivanov> a thread is created within thread
<flux> vivanov, it doesn't matter where a thread is created. the thread is not associated to its 'parent thread' in any way.
<vivanov> :) ok ic
<vivanov> thanks vm
<vivanov> then calling Thread.join on parent doesnt join threads created by the parent, right?
<thelema> vivanov: Thread.join takes as argument the thread.t of the thread you want to join with
<vivanov> ok ic
<thelema> it only joins with the one thread.
<vivanov> i see
<thelema> if that thread is joining with its children...
<vivanov> thanks
olauzon has joined #ocaml
yezariaely has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 240 seconds]
agarwal1975 has quit [Quit: agarwal1975]
ulfdoz has quit [Ping timeout: 252 seconds]
<milosn> hmmm
<milosn> when i try to compile my test CGI app i get this:
<milosn> ocamlopt -o blog blog.ml
<milosn> File "blog.ml", line 1, characters 0-11:
<milosn> Error: Unbound module Netcgi
<milosn> what flags do i need to pass to ocamlopt so it knows about Netcgi?
<thelema> milosn: ocamlfind ocamlopt -package netcgi -liknpkg blog.ml -o blog
* thelema double checks on the name netcgi
<thelema> ah, have to specify netcgi1 or netcgi2 or netcgi-plex or netcgi_apache
<milosn> where do you find that info?
<thelema> *-linkpkg
<thelema> which netcgi to specify?
<thelema> or how to use ocamlfind?
<thelema> You probably want netcgi2
avsm has quit [Quit: Leaving.]
<thelema> and ocamlfind docs are at http://projects.camlcity.org/projects/findlib.html, but that doesn't help most people. ask here for real help
<thelema> (or on stackoverflow)
<milosn> thelema: it works with netcgi2
<milosn> thanks
<milosn> it compiled and i can run it on command line, it outputs error html
<milosn> :)
<thelema> there you go.
<milosn> which is far better than what i got last night
<milosn> !
* milosn learning ocaml
<thelema> amazing things happen when you ask here. Often the answer just comes directly to one's mind.
<milosn> :)
<milosn> i have another question ... this line: let main (cgi:cgi) =
<milosn> i am defining function main() with one argument which is a touple, right?
<milosn> (cgi:cgi) ... what does that mean?
<thelema> that the binding "cgi" has type cgi
<thelema> () have nothing to do with tuples, they're just precedence
<milosn> ah i see
<thelema> , is what makes (and deconstructs) tuples
<milosn> hmmm
<milosn> i must say its all very confusing
<thelema> it makes more sense with time
<thelema> there's a lot of things that are different in ocaml
<milosn> i am coming from python background ... ive done a bit of scala for fun as well, bit ocaml is different
<milosn> yeah
* milosn making simple blog that serves entries from files in local directory
<milosn> thats my first project ;)
<thelema> you might want to use more of a framework than netcgi
<thelema> http://ocsigen.org/ is one option
edwin has quit [Remote host closed the connection]
<milosn> nah i am not ready for that, CGI is good for start ... to learn how to read files in a directory and print them to web via netcgi2
<milosn> even the simple examples that come with ocamlnet are confusing at the moment :)
<thelema> ok.
<flux> I actually think ocsigen requires to be quite familiar with ocaml before it can be used
<thelema> flux: well that's disappointing.
<flux> actually the latest ocsigen release will ease it a bit, atleast
<flux> no more passing explicit server parameter setting around
<flux> but to effectively use ocsigen you're fast in the lwt land, so you need to learn to deal with monads, etc
<flux> with netcgi I feel the problems are much easier to deal with, if you are atleast familiar with web programing in general :)
<thelema> okay, I won't suggest ocscigen to beginners anymore
<flux> perhaps that's a good idea.
<flux> of course, it can be insipiring to see that there are Solutions(TM) out there :)
olauzon_ has joined #ocaml
olauzon has quit [Ping timeout: 240 seconds]
olauzon_ has quit [Client Quit]
jonafan_ has joined #ocaml
_2x2l_ has joined #ocaml
joewilliams_ has joined #ocaml
<gildor> thelema, flux: ocsigen can be quite easy if you are a total beginner
<gildor> thelema, flux: with a background in OCaml
<gildor> but if you already know some PHP/CGI stuff, you'll get confused
<thelema> okay.
<gildor> on the other hand, learning ocsigen makes me understand a lot of thing about XHTML/Cookie et al
kerneis_ has joined #ocaml
<gildor> ocsigen framework makes thing more clear about a lot of concepts that you don't really master with PHP
<gildor> esp. with XHTML
pheredhel` has joined #ocaml
smerz has quit [*.net *.split]
philtor has quit [*.net *.split]
Amorphous has quit [*.net *.split]
mikemc_home has quit [*.net *.split]
_2x2l has quit [*.net *.split]
jonafan has quit [*.net *.split]
rup has quit [*.net *.split]
joewilliams has quit [*.net *.split]
avsm2 has quit [*.net *.split]
ymasory has quit [*.net *.split]
mrvn has quit [*.net *.split]
pheredhel has quit [*.net *.split]
kerneis has quit [*.net *.split]
mrvn has joined #ocaml
philtor has joined #ocaml
smerz has joined #ocaml
ymasory has joined #ocaml
Amorphous has joined #ocaml
rupert_ has joined #ocaml
rupert_ is now known as rup
Edward has quit []
Oejet has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Operation timed out]
ikaros has quit [Quit: Leave the magic to Houdini]
fraggle_ has quit [Ping timeout: 276 seconds]
Yoric has quit [Quit: Yoric]
fraggle_ has joined #ocaml
sepp2k has joined #ocaml
waern has joined #ocaml
joewilliams_ is now known as joewilliams
sepp2k has quit [Quit: Leaving.]