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
caligula_ has quit [Ping timeout: 246 seconds]
caligula__ has joined #ocaml
caligula__ has quit [Remote host closed the connection]
caligula__ has joined #ocaml
dnolen has joined #ocaml
joewilliams_away is now known as joewilliams
lopex has quit []
joewilliams is now known as joewilliams_away
enthymeme has joined #ocaml
dnolen has quit [Quit: dnolen]
eye-scuzzy has joined #ocaml
Associat0r has joined #ocaml
impy has quit [Quit: impy]
ulfdoz has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
orbitz has quit [Ping timeout: 252 seconds]
orbitz has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
sgnb` has joined #ocaml
jderque has joined #ocaml
sgnb has quit [Ping timeout: 260 seconds]
Associat0r has quit [Ping timeout: 248 seconds]
ulfdoz has quit [Ping timeout: 246 seconds]
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
edwin has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
boscop_ is now known as boscop
hyperboreean has quit [Ping timeout: 246 seconds]
avsm has joined #ocaml
Cyanure has joined #ocaml
yezariaely has joined #ocaml
yezariaely has left #ocaml []
joelr has joined #ocaml
<joelr> good morning
<joelr> how do you disable line wrapping in tuareg mode?
Snark has joined #ocaml
larhat has joined #ocaml
Cyanure has quit [Remote host closed the connection]
Associat0r has quit [Quit: Associat0r]
Associat0r has joined #ocaml
orbitz has quit [Ping timeout: 248 seconds]
thomasga has joined #ocaml
orbitz has joined #ocaml
<flux> line wrapping?
<flux> maybe you need (setq truncate-lines nil)
ftrvxmtrx has joined #ocaml
jderque has quit [Quit: leaving]
ftrvxmtrx has quit [Quit: Leaving]
Cyanure has joined #ocaml
ftrvxmtrx has joined #ocaml
douknoukem has joined #ocaml
DOUK has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
ikaros has joined #ocaml
douknoukem has quit [Ping timeout: 258 seconds]
cthuluh has quit [Ping timeout: 260 seconds]
avsm has quit [Quit: Leaving.]
ocp has joined #ocaml
<ocp> Hi
<ocp> if some of you are working in a team of OCaml developers
<ocp> please, fill this survey http://www.surveymonkey.com/s/R7BB6PL
<ocp> to explain why your company is using OCaml
<ocp> and what you feel should be improved
<ocp> this is important for us, to attract more people towards OCaml
douknoukem has joined #ocaml
Yoric has quit [Quit: Yoric]
Yoric has joined #ocaml
ankit9 has joined #ocaml
<douknoukem> hello
<douknoukem> in the jarvis march algorithm do i need to sort the points of the list?
joelr has quit [Quit: joelr]
jamii has joined #ocaml
jamii has quit [Ping timeout: 263 seconds]
avsm has joined #ocaml
hyperboreean has joined #ocaml
avsm has quit [Quit: Leaving.]
jamii has joined #ocaml
<ocp> thanks
jamii has quit [Ping timeout: 240 seconds]
ftrvxmtrx_ has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
DOUK has joined #ocaml
douknoukem has quit [Ping timeout: 248 seconds]
jamii has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
pdhborges has joined #ocaml
jamii has joined #ocaml
jderque has joined #ocaml
<flux> hmm.. ocp.. smells like.. O'Caml PRO?-)
<kaustuv> It was decided at the last OCaml meeting that the forms "O'Caml" and "Objective Caml" were to be retired in favour of "OCaml"
dcolish has quit [Ping timeout: 260 seconds]
dcolish has joined #ocaml
<flux> was WEB'Caml proposed at all?
<flux> it would be more hip.
<mcclurmc> iCaml would be most hip
<flux> iCaml, uCaml, everybodyCaml!
joelr has joined #ocaml
lopex has joined #ocaml
DOUK has quit [Ping timeout: 264 seconds]
avsm has joined #ocaml
<adrien> good morning, has anyone had a package that built fine outside of godi and didn't inside godi?
pdhborges has quit [Quit: Leaving.]
_andre has joined #ocaml
pdhborges has joined #ocaml
ankit9 has quit [Ping timeout: 258 seconds]
ankit9 has joined #ocaml
oriba has joined #ocaml
avsm has quit [Quit: Leaving.]
Associat0r has quit [Quit: Associat0r]
pdhborges has quit [Quit: Leaving.]
avsm has joined #ocaml
ankit9 has quit [Remote host closed the connection]
jderque has quit [Quit: leaving]
avsm has quit [Ping timeout: 248 seconds]
avsm has joined #ocaml
lamawithonel has joined #ocaml
oriba has quit [Quit: Verlassend]
Cyanure has quit [Remote host closed the connection]
ymasory_ has joined #ocaml
ymasory has quit [Remote host closed the connection]
ymasory_ is now known as ymasory
Shado has joined #ocaml
<Shado> helo, what are uses of ocaml? I did not find a lot of books or applications to check for it?
<Shado> is it a good replacement for my c++ code? python? perl scripts? java apps?!
<Shado> can't figure out where it fits
<flux> it fits many places. I guess the two slightly-well-known O'Caml OSS projects are unison and mldonkey.
<Shado> can you be more specific about where it fits flux ?
<adrien> you could probably replace all of your code or scripts with ocaml: it's used for servers, p2p applications, code generators, system tools
<adrien> and fftw ;-)
<flux> well, I guess O'Caml's forte is symbolic manipulation
<flux> so, compilers and proof checkers etc
<Shado> flux: ah i see.. that is cool..
<flux> but I've done command-line utilities, web-services and some graphical applications
<Shado> flux: are they available to test and see?
<flux> well, there is this: http://www.modeemi.fi/~flux/goba/
<flux> but I really do wonder if it's easy to compile today..
<Shado> flux: u mean it is old?
<flux> slightly
<Shado> flux: so can we say that 90% of actual use of ocaml is in compilers and proof checkers?
<flux> I think 90% is way too high
<flux> perhaps 30%
<Shado> mmm
willb1 has joined #ocaml
<Shado> well I am exicted to learn something new.. but I need something to motivate be about this language... unfortunately all I saw so far is poor number of books and OSS apps
<dcolish> flux: have you considered doing a snapframework-like project in ocaml?
<flux> dcolish, I don't know what is snapframework
<flux> but I don't like frameworks a lot :). I prefer libraries..
<dcolish> its not really a framework
<dcolish> but its a haskell web library based on combinators
<flux> so, what does it do? construct web pages?
<dcolish> similar in design philosophy to python's flask
thomasga has quit [Quit: Leaving.]
<Shado> ah you just reminded me of haskell! thanks folks! :D
<flux> this is one pretty cool ocaml project: http://www.openmirage.org/
<flux> basically running servers written in o'caml under "pure virtual iron"
<Shado> exo-kernel..
<Shado> sounds nice actually...
<flux> also another one I recently saw: http://www.algo-prog.info/ocaml_for_pic/web/index.php - if you're into microcontrollers
<Shado> flux: actually I am more of a web programmer.. I use python, perl and php...
<Shado> most of time..
<rproust> Shado: check out ocsigen
<larhat> https://github.com/camlunity/kamlo_wiki/blob/master/RealWorld.md <- here you can find list of "Ocaml in Real World" usage. it's in russian, but there are links on websites
<rproust> and also ocamlnet
<Shado> larhat: I am russian! :D
<larhat> Shado: so, checkout ocaml@conference.jabber.ru if you want to talk russian about ocaml ;-)
<Shado> larhat: spaseeeebo! :D
sepp2k has joined #ocaml
Shado has quit [Ping timeout: 252 seconds]
joewilliams_away is now known as joewilliams
avsm has quit [Quit: Leaving.]
waern_ has joined #ocaml
avsm has joined #ocaml
TaXules has joined #ocaml
lopex has quit []
impy has joined #ocaml
jderque has joined #ocaml
lopex has joined #ocaml
ftrvxmtrx_ has quit [Quit: Leaving]
thomasga has joined #ocaml
ulfdoz has joined #ocaml
avsm has quit [Quit: Leaving.]
rwmjones has quit [Read error: Operation timed out]
ocp has left #ocaml []
rwmjones has joined #ocaml
eye-scuzzy has quit [Read error: Operation timed out]
Associat0r has joined #ocaml
Associat0r has quit [Ping timeout: 240 seconds]
douknoukem has joined #ocaml
joelr has quit [Ping timeout: 276 seconds]
oriba has joined #ocaml
joelr has joined #ocaml
joelr has quit [Client Quit]
enthymeme has joined #ocaml
impy has quit [Quit: impy]
ftrvxmtrx has joined #ocaml
Lectus has joined #ocaml
neruda has joined #ocaml
neruda has quit [Changing host]
neruda has joined #ocaml
neruda has quit [Changing host]
neruda has joined #ocaml
Snark has quit [Quit: Ex-Chat]
<neruda> hi, ml noob here
<neruda> whats the standard ocaml toolchain in Linux?
<neruda> here's another easy one: how are unit tests written in ocaml?
jamii has quit [Ping timeout: 252 seconds]
<thelema> neruda: oUnit
larhat has quit [Quit: Leaving.]
<neruda> thelema: and the defacto toolchain?
<thelema> standard toolchain: emacs(tuareg), ocamlbuild, simple makefile
<neruda> emacs? the operating system?
* neruda runs away
<thelema> there's vim support too, if you like
<neruda> nice
<neruda> vim plugin?
<adrien> (I only use vim)
<adrien> support is built-in
<neruda> ok cool
neruda has quit [Quit: Page closed]
ocp has joined #ocaml
Associat0r has joined #ocaml
DOUK has joined #ocaml
ymasory_ has joined #ocaml
edwin has quit [Read error: Connection reset by peer]
edwin has joined #ocaml
douknoukem has quit [Ping timeout: 252 seconds]
thieusoai has joined #ocaml
impy has joined #ocaml
<ocp> for those who didn't receive the message this morning
<ocp> we are looking for the opinion of industrial companies on OCaml
ymasory_ has quit [Ping timeout: 248 seconds]
<ocp> so, if you work in a team of OCaml developers in a company
<ocp> or if your company decided not to use OCaml for some reason
<ocp> please, fill this survey
<ocp> it will help us attract more people to OCaml
<ocp> by understanding what needs to be improved
<ocp> thanks !
<ocp> (won't take much time, only 7 questions)
thieusoai has quit [Remote host closed the connection]
<jonafan> ocamljs is pretty nifty
oriba has quit [Ping timeout: 252 seconds]
Anarchos has joined #ocaml
<Anarchos> I am looking for a way to dynamically add rules to an ocamlyacc grammar
olauzon has joined #ocaml
Cyanure has joined #ocaml
oriba has joined #ocaml
ymasory has quit [Quit: Leaving]
everyonemines has joined #ocaml
<everyonemines> There's something I don't understand about Unix.fork (). When I compile this simple program:
<everyonemines> output_string stdout ("test\n");;
<everyonemines> Unix.fork ();;
<everyonemines> "test" is printed twice.
<Anarchos> everyonemines because outputs are delayed
<Anarchos> until you call fflush(stdout)
olauzon has quit [Quit: olauzon]
<ocp> because output_string puts the string in a buffer, that is only flushed at the end of the program
<everyonemines> ah
<ocp> and since your program terminates twice...
<everyonemines> thanks
_andre has quit [Quit: leaving]
douknoukem has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
DOUK has quit [Ping timeout: 260 seconds]
enthymeme has quit [Ping timeout: 258 seconds]
ftrvxmtrx has quit [Read error: Connection reset by peer]
ocp has quit [Ping timeout: 248 seconds]
jderque has quit [Quit: leaving]
edwin has quit [Quit: Leaving.]
cthuluh has joined #ocaml
Cyanure has quit [Remote host closed the connection]
thelema has quit [Read error: Connection reset by peer]
ymasory has joined #ocaml
thomasga has quit [Quit: Leaving.]
DOUK has joined #ocaml
douknoukem has quit [Ping timeout: 260 seconds]
alexgordon has quit [Read error: Operation timed out]
astertronistic has joined #ocaml
thelema has joined #ocaml
sepp2k has quit [Quit: Leaving.]
<everyonemines> I'm trying to use Unix.system but it doesn't understand spaces in file paths.
<everyonemines> I think that there's a faulty regex in there somewhere, which just splits by " "
<everyonemines> without accounting for "\ "
<everyonemines> All I want to do is run a command line argument normally....
<everyonemines> I tried execv, and it replaces "\ " with " "
<everyonemines> !!!!!
<ecc> that's just OCaml handling the backslash in a string constant -- nothing to do with execv etc. If you want to escape the space in a filename for Sys.command, try using two backslashes.
<ecc> for example, Sys.command "cat my\\ file\\ with\\ spaces"
<everyonemines> I was using Unix.system, hmm
eikke has joined #ocaml
<ecc> same logic applies, since the command line is passed to /bin/sh
<everyonemines> thanks though
<everyonemines> that works. should I have known that?
<eikke> if (in a rather low-level app) I need to allocate some fixed-size chunks of memory (several kb each), which should never be released during the app runtime, and I should be able to easily copy strings into the block at any given position, whats the data type I should be looking at?
<everyonemines> well i'm not an ocaml expert but how about
<everyonemines> an array of chars with array.blit
<eikke> I've been looking into that :) was wondering wheter there'd be a 'better' solution
<eikke> thanks!
impy has quit [Quit: impy]
<eikke> sheets: looked into buffer as well. that seems to have resizing support, which I wont ever need, so might be some useless overhead there
<sheets> eikke: the overhead would be a conditional on the range ops? is that too much?
<eikke> sheets: not sure :) I should check the implementation for sure
<sheets> eikke: if you use an array, i believe there is boxing overhead
<eikke> oh
<sheets> eikke: i am also not an expert, however, and so I may misunderstand the internals of both of these libs
<everyonemines> you can use bigarray
<everyonemines> that's unboxed right?
<everyonemines> iirc array is boxed, bigarray is unboxed
<sheets> you'll be storing characters in integers?
<eikke> no
<eikke> in C I'd malloc(size * sizeof(char)) and memcpy into the area ;)
<eikke> I know I'm thinking too low-level from an FP pov
<sheets> i think you'll have to force them to be int8 or int16 or whatever is appropriate for your chars, i don't think bigarray supports non-numeric parameter types
<everyonemines> wait, I think you want String.blit
<everyonemines> don't know the internal details of string but I'd guess that's what you want
<eikke> hmh, might make sense... a string is a char[] with some metadata anyway, right?
<eikke> night calls, will look into this further tomorrow. thanks!
impy has joined #ocaml
Yoric has quit [Quit: Yoric]
willb1 has quit [Ping timeout: 276 seconds]
eikke has quit [Ping timeout: 260 seconds]
thieusoai has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
everyonemines has left #ocaml []
enthymeme has joined #ocaml
willb has joined #ocaml
dnolen has joined #ocaml
alexgord- has joined #ocaml
Amorphous has quit [Ping timeout: 252 seconds]
olauzon has joined #ocaml
valross has joined #ocaml
Amorphous has joined #ocaml
olauzon has quit [Quit: olauzon]
lopexx has joined #ocaml
lopex has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
boscop has quit [Read error: Connection reset by peer]
boscop_ has joined #ocaml
alexgord- is now known as alexgordon