flux 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.org | Public logs at http://tunes.org/~nef/logs/ocaml/
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
osnr has quit [Quit: Leaving.]
ollehar has joined #ocaml
contempt has quit [Ping timeout: 245 seconds]
contempt has joined #ocaml
ousado has quit [Read error: Operation timed out]
ousado has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
<wmeyer> hello
<wmeyer> :-)
<pippijn> // set "set" to "to" where "where" is "is"
<pippijn> public void set (String where, String is, String set, String to) {
dwcook_ has joined #ocaml
dwcook has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
dwcook_ is now known as dwcook
dwcook has quit [Changing host]
dwcook has joined #ocaml
ollehar has quit [Ping timeout: 276 seconds]
Watcher7 is now known as Watcher7|off
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
Watcher7|off is now known as Watcher7
eikke has quit [Ping timeout: 256 seconds]
pkrnj has quit [Ping timeout: 264 seconds]
pkrnj has joined #ocaml
q66 has quit [Remote host closed the connection]
chrisdotcode has joined #ocaml
pkrnj has quit [Quit: Computer has gone to sleep.]
pkrnj has joined #ocaml
talzeus has joined #ocaml
yacks has joined #ocaml
ben_zen has quit [Read error: Connection reset by peer]
ben_zen has joined #ocaml
pkrnj has quit [Read error: Operation timed out]
ygrek has joined #ocaml
weie has joined #ocaml
Drup has quit [Quit: Leaving.]
Neros has quit [Ping timeout: 256 seconds]
pkrnj has joined #ocaml
pkrnj has quit [Client Quit]
darkf has joined #ocaml
jcao219 has joined #ocaml
dtg has quit [Ping timeout: 240 seconds]
dtg has joined #ocaml
jcao219 has quit [Client Quit]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
Watcher7 is now known as Watcher7|off
Snark has joined #ocaml
weie_ has joined #ocaml
weie has quit [Ping timeout: 264 seconds]
osnr has quit [Quit: Leaving.]
hto has quit [Read error: Operation timed out]
hto has joined #ocaml
mcclurmc has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
osnr has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 256 seconds]
mye has joined #ocaml
ccasin has quit [Ping timeout: 245 seconds]
zpe has joined #ocaml
Yoric has joined #ocaml
ttamttam has joined #ocaml
zpe has quit [Ping timeout: 276 seconds]
ttamttam has quit [Client Quit]
Arsenik has joined #ocaml
ttamttam has joined #ocaml
caligula has joined #ocaml
caligula has quit [Client Quit]
caligula has joined #ocaml
ygrek has joined #ocaml
tane has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
zpe has joined #ocaml
Yoric has quit [Quit: Instantbird 1.5a1pre -- http://www.instantbird.com]
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 260 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
zpe has quit [Ping timeout: 248 seconds]
ontologiae has joined #ocaml
osnr has quit [Ping timeout: 256 seconds]
Yoric has joined #ocaml
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
chrisdotcode has quit [Ping timeout: 248 seconds]
ggole has joined #ocaml
Arsenik has quit [Remote host closed the connection]
raichoo has joined #ocaml
raichoo_ has joined #ocaml
raichoo has quit [Ping timeout: 248 seconds]
raichoo_ has quit [Client Quit]
raichoo has joined #ocaml
zpe has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
ocp has joined #ocaml
mika1 has joined #ocaml
cago has joined #ocaml
Kakadu has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
sgnb has quit [Remote host closed the connection]
kaste has quit [Ping timeout: 240 seconds]
djcoin has joined #ocaml
eikke has joined #ocaml
djcoin has quit [Client Quit]
kaste has joined #ocaml
ontologiae has joined #ocaml
djcoin has joined #ocaml
dwmw2_go` is now known as dwmw2_gone
ggole has quit [Ping timeout: 252 seconds]
Yoric has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
ggole has joined #ocaml
yezariaely has quit [Remote host closed the connection]
yezariaely has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
sgnb has joined #ocaml
ccasin has joined #ocaml
mcclurmc has quit [Ping timeout: 256 seconds]
jbrown has joined #ocaml
zpe has joined #ocaml
ollehar has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
yacks has quit [Ping timeout: 264 seconds]
ski has quit [Quit: Lost terminal]
yacks has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
beckerb has joined #ocaml
beckerb has quit [Client Quit]
speredenn has joined #ocaml
beckerb has joined #ocaml
osnr has quit [Ping timeout: 264 seconds]
speredenn has quit [Client Quit]
eikke has quit [Ping timeout: 252 seconds]
hkBst has quit [Ping timeout: 252 seconds]
scribble has quit [Remote host closed the connection]
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
zpe has joined #ocaml
hkBst has quit [Excess Flood]
hkBst has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
ttamttam has quit [Ping timeout: 264 seconds]
weie has joined #ocaml
dsheets has joined #ocaml
Yoric has joined #ocaml
ttamttam has joined #ocaml
weie_ has quit [Ping timeout: 248 seconds]
eikke has joined #ocaml
<Kakadu> I need pgocaml hacker. http://paste.in.ua/8303/raw/
rwmjones has quit [Read error: Operation timed out]
Zeev has joined #ocaml
rwmjones has joined #ocaml
<Zeev> Hi all. Is there an example on the web on how to call windows dll from ocaml? I want to make my f# dll independent on .net, I saw this one for haskell: http://stackoverflow.com/a/1028417/1227804, can't find something relevant in ocaml, digging in haskell for now
<Zeev> f# app*
mcclurmc has joined #ocaml
mort___ has joined #ocaml
<adrien_oww> which function are you interested in?
<adrien_oww> just one example
zpe has joined #ocaml
ollehar has quit [Ping timeout: 256 seconds]
Zeev has quit [Ping timeout: 256 seconds]
Zeev has joined #ocaml
ollehar has joined #ocaml
tane has quit [Quit: Verlassend]
<Zeev> ardien_oww: mainly gdi + functions, like: GdipLoadImageFromFile(), gdiplus.GdipDrawImageI()
<Zeev> but again, I don't know where to dig (a nice working example with GetComputerName or such) would be a good start point for me
zpe has quit [Ping timeout: 252 seconds]
<adrien_oww> Zeev: ok, and what's your C toolchain?
<Zeev> I installed ocaml 4.0.1 cygwin minigw
<adrien_oww> using mingw-w64?
<Zeev> the what's recommended on the page
<Zeev> the one that doesnt need cygwin to run I'll check
<flux> kakadu, you cannot use self-constructed dynamic strings with PSQL
<flux> why don't you just do .. "..to_tsquery($text).."
<flux> ?
<flux> that's pretty much the whole point of PSQL :-)
ollehar has quit [Ping timeout: 252 seconds]
<adrien_oww> but it's fairly old
<Zeev> adrien_oww: mingw64
<adrien_oww> ok, good
<flux> kakadu, (also, self-constructed dynamic strings are the whole reason for those sql injection vulnerabilities)
<adrien_oww> Zeev: you can try to build this project; I hope it'll work and that it'll match what mingw-w64 offers
<adrien_oww> because years ago, mingw.org didn't provide enough API functions to make this work OOTB
<flux> kakadu, also2, are you certain you want to retrieve tuples as the response?
<flux> kakadu, usually you would do the response like: select id, descr, maxexp from ..
<flux> doing it like that returns rows that have a single three-tuple
<flux> (which probably is a postgresql extension)
<gasche> that looks like a reasonable usage case for Macaque
<Kakadu> gasche: Is it possible to do this with current version of macaque?
<gasche> adrien_oww, Zeev: once we get information on this precise problem, can you write it down somewhere (mail to caml-list, blog post, whatever) so that other people with the same question can find a structured answer?
<gasche> Kakadu: you cannot turn arbitrary text into a WHERE-condition
<gasche> but you can build rather arbitrary WHERE-conditions as well-typed pieces of queries
<adrien_oww> gasche: good idea; I have to admit I wasn't even sure to find this again
<adrien_oww> gasche: I should also try to build with mingw-w64; last time I tried ocaml-win32 was really long ago (4 or 5 years at least...)
<flux> gasche, as far as I can see his problem did not require that..
* adrien_oww -> Essen
<Kakadu> flux: next line gives the same error
<Kakadu> let s text = PSQL(dbh) "select id,descr,maxexp from skills where to_tsvector(descr) @@ to_tsquery($text)"
<Kakadu> gasche: Are u talking about my current SQL query or about macaque?
<gasche> Macaque
<flux> kakadu, gives the same error about a constructor?
<flux> kakadu, and you're certainly using the language extension to compile that file?
<gasche> hm
<gasche> seems I overlooked what the to_tsquery part is trying to do
<Kakadu> I lloked at macaque readme and have not seen any mentions about text searcgh
<flux> macaque seems interesting in that it has still been developed (in december)
<gasche> in any case
<Kakadu> flux: Yeah, I'm certain. http://paste.in.ua/8304/raw/
<gasche> try using ocamlfind ocamlc -verbose to see what invocation is actually being made
eikke has quit [Ping timeout: 248 seconds]
<flux> ..found your problem
<flux> it's PGSQL, not PSQL :-)
<Kakadu> )))))))))))))))))))))
<gasche> :]
speredenn has joined #ocaml
<gasche> yet another problem with Camlp4 syntax extensions
<flux> what problem was that?
<flux> the problem of adding new language constructs?
<gasche> as you're using a "false name" that is not part of the language, the usual error-reporting mechanism do not work
<Kakadu> gasche: +500
<gasche> in trunk OCaml, confusing, say, a PGSQL module name with PSQL will return in a helpful error message
<gasche> but that doesn't work with the PSQL(foo) <string> construct added
<gasche> note that Camlp4 *quotations* are better for this
<flux> but more heavyweight
<gasche> hu, I'm not sure
<flux> I suppose you're right, but plenty more <<>>s
<flux> right?
<gasche> I mean they may be in some cases (eg. small regexps), but I don't think that's the case for PSQL
<gasche> well compare
<Kakadu> okay, I made s/PSQL/PGSQL/ and now we have
<Kakadu> File "Db_test.ml", line 6, characters 17-99:
<Kakadu> Camlp4: Uncaught exception: Unix.Unix_error (20 | CstTag21, "connect", "")
<gasche> PGSQL(dbh) "foo"
q66 has joined #ocaml
<gasche> <:pgsql< foo >> dbh
<gasche> that's not much heavier
<gasche> lunch time, anyway
<flux> kakadu, you need to tell which database to connect, I think
<flux> if the default doesn't work
<flux> I think now's a good time to read the .pdf doc for pgocaml :)
<Kakadu> flux: I set database in another module
<flux> you can probably make-do with some environment variables
<flux> well, you know how it works
<flux> it compiles that file with that syntax extension
<flux> and the syntax extension connects to the db
<flux> how would it know about some other module?
<flux> personally I just have a script that sets up the environment for compiling
<flux> along the lines export PGDATABASE=foo PGHOST=bar
<flux> but, lunch time is here as well, good luck :)
<flux> you might also consider putting all your db stuff into its own module..
<ontologiae> Hi
<ontologiae> I have a problem with aurochs_lib, a parsing library
beckerb has quit [Ping timeout: 248 seconds]
<ontologiae> when i load it in toplevel, i have a message "Error: The external function `caml_aurochs_get_production_count' is not available"
<ontologiae> So i checked the source, and the function exists in the c file and in the ml source file
<ontologiae> I used dtrace to check what happend, when I type #load "aurochs_lib.cma";; in toplevel
<ontologiae> it just load the cma and ouput the error directly
zpe has joined #ocaml
<ousado> gasche, flux, fyi: I've found this when looking for compiler-libs usage examples https://bitbucket.org/camlspotter/compiler-libs-hack
zpe has quit [Ping timeout: 252 seconds]
ttamttam has quit [Ping timeout: 256 seconds]
ollehar has joined #ocaml
Drup has joined #ocaml
ttamttam has joined #ocaml
<Kakadu> Is it common when camp4 crashes with exception?
<Kakadu> camlp4*
<flux> ontologiae, possibly the module is built somehow wrong..
<Kakadu> eh, I do as like as in manual but I get this exception.... http://paste.in.ua/8306/raw/
<flux> kakadu, if you type 'psql' do you get a connection?
<flux> because I don't see a directive telling the database connection stuff
<flux> the part you have in the do_search function
<flux> that's for runtime, not for compile-time
<ygrek> Kakadu, obviously the camlp4 extension tries to connect somewhere
tane has joined #ocaml
<ygrek> looks like very evil extension
<ygrek> trying to eavesdrop on you!
<Drup> pgsql check the coherence between queries and the database at compile time
<ygrek> get rid of it immediately, report to antivirus companies and format your drive
<Drup> pgocaml
<Drup> *
<ygrek> ocaml raises malware bar at the new level - eavesdropping at compile time!
<flux> next step: infiltrate typerex?
beckerb has joined #ocaml
zpe has joined #ocaml
<ygrek> flux, I guess it already does so!
<ygrek> have you seen "don't be evil" anywhere at ocamlpro site? They don't even dare to claim that!
<flux> but pgsql is pretty nice (once you get it working)
<flux> but it has some problems. you would need a macro-system to accompany it
<flux> otherwise there's no way to share fragments between queries
<flux> and then another problem is that the array support leaks some server resources
<flux> and the third one is that sometimes it doesn't understand what is 'a option and what is 'a
<flux> maybe those could be fixed!
<ygrek> sounds too complex for me
<flux> the first one could be fixed with any general macro system evaluated before that extension, the second one might be trickier, the third one I don't know about - maybe explicit annotations
<Drup> flux: you're talking about macaque, aren't you ? :)
<flux> no, I'm talking about pgsql ;), but yeah I should take a new look to macaque..
<flux> last time I looked at it it was nowhere near production-use for me at least
<flux> does it still do aggreagations? at least with pgsql you get access to all postgresql goodness such as procedures (with types inferred automatically), window functions, lateral joins, etc etc..
<Drup> oh, it's absolutly not production-use at all, it lacks most of sql operators, but you have composability
<ygrek> sqlgg rules both out of the water in no time
zpe has quit [Ping timeout: 264 seconds]
mort___ has quit [Quit: Leaving.]
<flux> depdendency on "menhir" sugests it doesn't support all those niceties either ;)
<flux> but thanks, I'll git clone that as well for later perusal!
<ygrek> flux, it supports sqlite and mysql --> 1:0
eikke has joined #ocaml
<ygrek> and it doesn't eavesdrop at compile-time --> 2:0
<Drup> sqlgg doesn't have the same goal at all, you generate code by giving sql. macaque and pgocaml are the exact opposite ...
<flux> I see it doesn't come with mli-files -> 2:1
<ygrek> Drup, oh thanks, that counts --> 3:0
<ygrek> flux, yes, but that counts other way round - less clutter to read through!
<Drup> euh, no, the whole point is to NOT write sql !
<Drup> (and to type it statically)
<ygrek> Drup, if you think sql is all bad - you've got it all wrong, man
<flux> sql is pretty nice
<flux> you just write english sentences and values come out! how brilliant!
<ygrek> flux, any english sentence!
<Drup> x)
hkBst has quit [Ping timeout: 256 seconds]
<ygrek> and sql gurus write elfish and it works too!
hkBst_ has joined #ocaml
hkBst_ has quit [Changing host]
hkBst_ has joined #ocaml
<flux> any* sentence indeed! (* except invalid sentences)
_andre has joined #ocaml
<gasche> ygrek: I didn't know about sqlgg
<ousado> anyone aware of an easy way to add a local ocaml version to opam?
<gasche> ousado: yes, wait
speredenn has quit [Quit: Leaving]
<ousado> gasche: sweet! thanks
mort___ has joined #ocaml
<gasche> ousado: that said, you shouldn't need to patch OCaml itself to use Jun's compiler-libs-hack
<gasche> so I'm not sure why you need this script at all
<ousado> gasche: well, the issue is that the sources are not available anymore, as far as I can see
<ousado> and I wanted to test building that vanilla compiler
<ousado> from his description, I need main.ml for that
<ousado> oh.. my opam "system" compiler is a local one already
<ousado> so I actually don't need it, but it's still good to know/have
<gasche> which sources are you talking about?
<ousado> the ocaml compiler sources
<gasche> then I'm not sure what you mean by "not available"
<ousado> oh, opam puts them into the ./opam/build
<ousado> .. directory
<ousado> I assumed it removes the build directory, as it does with packages
<ousado> per default
<gasche> if you want to build some additional tools, you may need to play a bit with a build directory, indeed
<gasche> (have you written about the example of metaprograms you have in mind yet?)
<ousado> not yet
zpe has joined #ocaml
<ousado> I'll need some time to collect my use-cases, check the terminology etc.
<ousado> there seem to be very different terms for similar things in various languages
<gasche> don't be too perfectionist
<gasche> just Haxe code examples with explanation of the intended behavior would be fine as far as I'm concerned
<gasche> but of course you're free to make it as general and interesting as you can :p
<ollehar> I actually get a seg fault from my ocaml app :(
<ollehar> running on shared host, webserver
<ousado> yes, you're right, I shouldn't get too formal. but OTOH I'd like to know myself what people are talking about when they use terms like nested quotation/anti-quotation/quasiquotation in haskell/ocaml vs reified macros in haxe, scala etc.
<ousado> ollehar: which server is that?
<ollehar> lib/libc.so.6 version `GLIBC_2.15' not found
<ollehar> ousado: ubuntu
zpe has quit [Ping timeout: 256 seconds]
<ollehar> I then copied my own private libc to /home/ollehar/lib, exported LD_LIBRARY_PATH, and then seg fault
<ollehar> could it be that my libc doesn't rhyme well with the rest of the shared host system?
<ollehar> or it could be liblua5.1...
<ollehar> or libpcre
<ollehar> sigh
<Drup> ousado: the concept betwen quotation is actually very simple
<Drup> behind* x)
<ollehar> lol, get seg fault when using ls too
<ollehar> not ocaml dependent
mort___ has quit [Quit: Leaving.]
talzeus has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 256 seconds]
Neros has joined #ocaml
beckerb has quit [Quit: Konversation terminated!]
Zeev has quit [Disconnected by services]
wagle has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
wagle has joined #ocaml
beckerb has joined #ocaml
<ousado> Drup: yes, that's the problem with terminology, it's often more complex (as in ambiguous, context-dependent) than the concepts behind it
<ousado> people like to invent new terms for existing things, or reuse existing terms for different ones
<ousado> s/ones/things
bitbckt has quit [Ping timeout: 260 seconds]
ontologiae has quit [Ping timeout: 248 seconds]
<Drup> ousado: basically, a client value in eliom is a quotation and % is a generalized splicing operator (that do also anti-quotation, because %({{ x }}) ~= x)
<Drup> and you almost know all of it
zpe has quit [Ping timeout: 240 seconds]
Neros has quit [Remote host closed the connection]
Neros has joined #ocaml
ontologiae has joined #ocaml
ollehar has quit [Ping timeout: 252 seconds]
Drup has quit [Ping timeout: 276 seconds]
Drup has joined #ocaml
<ousado> Drup: it looks like I explained the 'problem' I have insufficiently. It's not that I don't know what these things are in general (I mean there's plenty of resources to look them up) but there are both smaller and more significant differences between what people refer to, depending on whether they talk about reified macros in haxe, quasi-quotation in template haskell, camlp4, fan, etc. (see the discussion here: http://hongboz.wordpress.com/2013/02/05/
<ousado> syntactic-meta-programming-in-ocaml-ii-5/ ). So if I come here and ask "Does ocaml has macros?" or even 'reified macros' that's an almost meaningless question, because I still have to explain in detail what I mean. Which is why I like to define terms somehow to ease further communication.
<ousado> woops
<ousado> that was long
zpe has joined #ocaml
beckerb has quit [Quit: Konversation terminated!]
zpe has quit [Ping timeout: 252 seconds]
mort___ has joined #ocaml
beckerb has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
_andre has quit [Quit: leaving]
osnr has quit [Ping timeout: 245 seconds]
Drup has quit [Quit: Leaving.]
Drup1 has joined #ocaml
Kakadu has quit [Read error: Connection reset by peer]
_andre has joined #ocaml
tane has quit [Quit: Verlassend]
<rixed> batteries people: don't we want singleton for BatList and BatArray like we have for most containers?
<Drup1> ousado: ok, I understand what you mean
Drup1 is now known as Drup
zpe has joined #ocaml
<gasche> rixed: it doesn't make much sense for BatArray, you're welcome to do it for uniformity's sake
Drup has quit [Ping timeout: 248 seconds]
_andre has quit [Quit: leaving]
ygrek has joined #ocaml
_andre has joined #ocaml
<rixed> gasche: I often need such trivial functions which make no sense out of context. Probably a bad smell :)
zpe has quit [Ping timeout: 240 seconds]
<rixed> gasche: what's the purpose of the "let map = map" in batArray.ml ?
<flux> it introduces a symbol from the module it has opened
<flux> like: module MyPrintf = struct open Printf let printf = printf end
<ygrek> flux, actually that specific example is not useful :)
<rixed> gasche: Ok, not more sense since Array is now included (not just opened). I'm afraid git blame me for the include :/
<gasche> rixed: no tests ? :'(
<rixed> flux: except it's: module MyPrintf = struct include Printf let printf = printf end :-)
<rixed> gasche: seriously, for singleton?
<gasche> half-seriously
<rixed> hmmm... Ok,. will to it with the test generator, just to unrust my qtest :)
<gasche> think of, for example, code coverage metrics
<rixed> s/unrust/stretch/
<gasche> we have been using Bisect on Batteries a few months ago
<gasche> we're far from 100% anyway
<gasche> but *if* we were, singletons with no tests would move from green to red
<gasche> and that would be bad, right?
<gasche> (I'm not quite sure 100% coverage is actually an important goal, but I still think it's better to have more tests than less)
<gasche> rixed: besides, I'm thinking about working on this BatString.nreplace thing
<gasche> that would actually be a very bad idea given the workload I already have, but for some reason I would feel bad not doing it
ollehar has joined #ocaml
<gasche> ollehar: do you have any idea whether it's possible to call winapi functions from OCaml compiled with mingw-64?
<gasche> someone asked that a few hours ago and adrien_oww was unsure about it
<gasche> I'm thinking you may be the second person qualified to help answer that
<rixed> gasche: hopefully you'll prove me wrong with a nreplace that's both simple and fast as Glyn's one is ;)
<gasche> chan: what should we submit on reddit today?
<ollehar> gasche: thanks for your confidence :) No idea, though :P
hkBst_ has quit [Ping timeout: 256 seconds]
<gasche> I'm hoping Windows people around here will have their curiosity piqued by this question, provide a clear answer, and then we can write it down somewhere for when someone ask it again
hkBst_ has joined #ocaml
<adrien_oww> well it's definitely possible
<adrien_oww> the issue was that the API coverage of mingw.org was fairly bad
<adrien_oww> so you had to skip quite a lot of functions
<adrien_oww> and ocaml-win32 was developped for MSVC
<gasche> to be frank, the only reason I care about mingw vs. something else is that, iirc., that's what is used by Jonathan's Windows installer
<adrien_oww> I cannot care about MSVC since I can't do shit with it because of its EULA; iirc it's completly ridiculous, even worse than most others
talzeus has joined #ocaml
<gasche> what do you mean?
<ousado> I've built hax with mingw64 recently
<ousado> *haxe
<adrien_oww> gasche: I can't find the license easily but it's the kind of thing that I cannot use simply for the fact that even though the command-line stuff is freely downloadable from microsoft.com, you can't redistribute it
<ousado> IIRC, the resulting executable is independent of any cygwin/whatever stuff
<adrien_oww> and that's only one of the many annoyances of the licenses as you can guess
zpe has joined #ocaml
<gasche> ok
<adrien_oww> and you cannot build from linux with MSVC :P
mort___ has quit [Quit: Leaving.]
<gasche> that maybe wouldn't be a problem for an end-user OCaml install script, but I'm sure Jonathan had reasons for not using it as well
<adrien_oww> anyway, back to the original issue: mingw-w64 is a much more active project with a much better API coverage(*) so the bindings should be buildable
<adrien_oww> (*) mingw.org's API coverage stopped at windows 9x; mingw-w64 compatibility starts at windows 2k
chrisdotcode has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
smondet has joined #ocaml
hkBst__ has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
hkBst__ has quit [Excess Flood]
hkBst__ has joined #ocaml
<ollehar> can I in some way pass this gcc switch to ocamlopt?
<ollehar> -Wl,--dynamic-linker=/path/to/newglibc/ld-linux.so.2
<adrien_oww> what's the build system?
<adrien_oww> also
<adrien_oww> -cclib -Wl,--dynamic-linker=/path/to/newglibc/ld-linux.so.2
<adrien_oww> r
<adrien_oww> or
<adrien_oww> -cclib --dynamic-linker=/path/to/newglibc/ld-linux.so.2
<adrien_oww> I don't remember if ocamlopt uses ld directly or goes through gcc
<ollehar> adrien_oww: ocamlfind
<adrien_oww> extra arguments passed to ocamlfind are passed to ocamlopt
<adrien_oww> so try with the -cclib stuff I wrote
<ollehar> thanks!
<Kakadu> back, to pgocaml. Should this code work in toplevel? http://paste.in.ua/8307/raw/
ygrek has quit [Remote host closed the connection]
zpe has joined #ocaml
ygrek has joined #ocaml
<flux> kakadu, no. that works only if 'psql' works.
<smondet> Kakadu: you need to tell pgocaml.syntax about your connection parameters
<flux> the syntax extension cannot see inside the values of your program
<flux> because it works in the level before the program is executed
<Kakadu> It is very inconvenient
<smondet> you can use environment variables, or there is a special syntax (that i don't rememeber)
hkBst__ has quit [Read error: Connection reset by peer]
hkBst__ has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
ttamttam has quit [Quit: ttamttam]
ttamttam has joined #ocaml
ttamttam has quit [Client Quit]
beckerb has quit [Read error: Connection reset by peer]
ollehar has quit [Ping timeout: 248 seconds]
ollehar has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
hkBst__ has quit [Quit: Konversation terminated!]
osnr has quit [Ping timeout: 240 seconds]
beckerb has joined #ocaml
cago has left #ocaml []
mika1 has quit [Quit: Leaving.]
zpe has joined #ocaml
Yoric has quit [Ping timeout: 260 seconds]
ocp has quit [Read error: Operation timed out]
zpe has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
beckerb has quit [Read error: Connection reset by peer]
beckerb_ has joined #ocaml
eikke has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
smondet has quit [Remote host closed the connection]
smondet has joined #ocaml
eikke has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
zpe has quit [Ping timeout: 248 seconds]
eikke has quit [Ping timeout: 256 seconds]
Kakadu has quit [Ping timeout: 276 seconds]
Kakadu has joined #ocaml
ollehar has quit [Ping timeout: 245 seconds]
eikke has joined #ocaml
raichoo has quit [Quit: leaving]
bholst has quit [Ping timeout: 240 seconds]
bholst has joined #ocaml
zpe has joined #ocaml
eikke has quit [Read error: Operation timed out]
Drup has joined #ocaml
zpe has quit [Ping timeout: 248 seconds]
mort___ has joined #ocaml
talzeus has quit [Remote host closed the connection]
ocp has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
ollehar has joined #ocaml
Arsenik has joined #ocaml
zpe has joined #ocaml
thelema has quit [Read error: Connection reset by peer]
thelema has joined #ocaml
beckerb_ has quit [Ping timeout: 252 seconds]
osnr has quit [Quit: Leaving.]
zpe has quit [Ping timeout: 264 seconds]
ocp has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 256 seconds]
Kakadu has quit []
ontologiae has quit [Ping timeout: 252 seconds]
Tobu has quit [Remote host closed the connection]
ocp has joined #ocaml
weie has quit [Read error: Connection reset by peer]
giaour has joined #ocaml
giaour is now known as foo303
foo303 has quit [Changing host]
foo303 has joined #ocaml
<foo303> Is there any way to run the ocaml interpreter and have statements like "open Batteries" for instance, work there?
<flux> foo303, put #use "topfind";; and #require "batteries";; to your ~/.ocamlinit
<foo303> ah. so for each module I expect to be using in that manner, I should be doing this? (otherwise, just compile and link to them obviously)
<flux> well
<flux> not every module supports ocamlfind (which provides topfind)
<flux> but most do
<flux> ocamlfind list from the shell shows which packages you have installed
<flux> those ones you can #require
raichoo has joined #ocaml
<flux> (actually the ones that don't are quite rare exceptions)
tane has joined #ocaml
breakds has joined #ocaml
<foo303> Sweet. It works now :) Thanks, flux.
ocp has quit [Ping timeout: 243 seconds]
<flux> foo303, great! good luck with your ocaml ventures :)
zpe has joined #ocaml
weie has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ocaml
Yoric has joined #ocaml
mort___ has quit [Quit: Leaving.]
djcoin has quit [Quit: WeeChat 0.4.0]
zpe has joined #ocaml
mcclurmc has quit [Ping timeout: 252 seconds]
zpe has quit [Ping timeout: 264 seconds]
ontologiae has joined #ocaml
osnr has quit [Quit: Leaving.]
ocp has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
mye_ has joined #ocaml
mye has quit [Ping timeout: 260 seconds]
mye_ is now known as mye
emmanuelux has quit [Quit: emmanuelux]
osnr has quit [Ping timeout: 264 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
mcclurmc has joined #ocaml
Neros has quit [Read error: Connection reset by peer]
Neros has joined #ocaml
karswell has joined #ocaml
ontologiae has quit [Ping timeout: 264 seconds]
oriba has joined #ocaml
osnr1 has joined #ocaml
Snark has quit [Quit: leaving]
osnr has quit [Read error: Connection reset by peer]
mort___ has joined #ocaml
zpe has joined #ocaml
ocp has quit [Quit: Leaving.]
osnr2 has joined #ocaml
osnr1 has quit [Ping timeout: 276 seconds]
foo303 has quit [Quit: leaving]
zpe has quit [Ping timeout: 248 seconds]
raichoo has quit [Quit: leaving]
osnr2 has quit [Quit: Leaving.]
malo has joined #ocaml
eni has joined #ocaml
eikke has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
Watcher7|off is now known as Watcher7
emmanuelux has joined #ocaml
_andre has quit [Quit: leaving]
malo has quit [Read error: Connection reset by peer]
malo has joined #ocaml
rwmjones has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
malo_ has joined #ocaml
ggole has quit []
osnr has quit [Quit: Leaving.]
malo_ has quit [Client Quit]
malo has quit [Ping timeout: 256 seconds]
rwmjones has joined #ocaml
breakds has quit [Ping timeout: 256 seconds]
dsheets has joined #ocaml
Yoric has quit [Ping timeout: 260 seconds]
Neros has quit [Ping timeout: 252 seconds]
ocp has joined #ocaml
Neros has joined #ocaml
ocp has quit [Client Quit]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
breakds has joined #ocaml
breakds has quit [Ping timeout: 248 seconds]
ulfdoz has quit [Ping timeout: 276 seconds]
osnr has quit [Quit: Leaving.]
jbrown has quit [Ping timeout: 256 seconds]
rzm has joined #ocaml
<madroach> in batteries there is no Enum.reverse, is there?
mye has quit [Quit: mye]
eikke has quit [Ping timeout: 248 seconds]
eni has quit [Ping timeout: 248 seconds]
<rgrinberg> about this nreplace thing in batteries
<rgrinberg> i'm surprised core doesn't have it
<rgrinberg> (i looked there for a reference implementation)
eikke has joined #ocaml
<madroach> my fixed implementation can be found at ftp://gmerlin.de/pub/nreplace.ml
<madroach> I guess this is quite optimal except from the find part.
breakds has joined #ocaml
Neros_ has joined #ocaml
Neros has quit [Ping timeout: 260 seconds]
breakds has quit [Ping timeout: 248 seconds]
bitbckt has joined #ocaml
<dsheets> Sexplib.Std.string_of_sexp (Host.(sexp_of_t (detect ()))) <-- why should that ever go wrong?
<dsheets> I get Pre_sexp.Of_sexp_error with Failure("string_of_sexp: atom needed")
Arsenik has quit [Remote host closed the connection]
tane has quit [Quit: Verlassend]
smondet has quit [Ping timeout: 264 seconds]
olasd_ has joined #ocaml
olasd_ has quit [Read error: Connection reset by peer]
contempt has quit [Ping timeout: 264 seconds]
mfp has quit [Ping timeout: 256 seconds]
contempt has joined #ocaml
darkf has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
mfp has joined #ocaml
chrisdotcode has quit [Remote host closed the connection]
<q66> darkf, merc devel is calling
<q66> by merc devel i mean rfw
<q66> you should come back
dsheets has quit [Ping timeout: 256 seconds]