ChanServ 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-lang.org
kmels_ has quit [Quit: Leaving]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
ulfdoz_ is now known as ulfdoz
Progster has joined #ocaml
mnabil has quit [Ping timeout: 264 seconds]
arneis has joined #ocaml
Neros has quit [Ping timeout: 246 seconds]
mathieui has joined #ocaml
ben_zen has joined #ocaml
<arneis> anyone familiar with the differences between camlp4/camlp4o? I was under the impression that camlp4o is the same but with some modules preloaded
<arneis> but this gives me a binary output: camlp4 pa_o.cmo pa_op.cmo pr_dump.cmo -I /usr/lib/ocaml/js_of_ocaml/ pa_js.cmo test.ml
<arneis> .. and this gives me text: camlp4o -I /usr/lib/ocaml/js_of_ocaml/ pa_js.cmo test.ml
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
mrm has quit [Ping timeout: 256 seconds]
<hnrgrgr> arneis: I believe camlp4o use 'pr_a.cmo' instead of 'pr_dump.cmo'.
<hnrgrgr> the latter always dump the raw ast, while the former try to pretty-print the AST when stdout is a terminal
<arneis> thanks.. I just figured that out too
<arneis> I'm trying to get code completion/error highlighting working in OcaIDE with js_of_ocaml, not having much luck
rgrinberg has joined #ocaml
<rgrinberg> Is it possible to install batteries 2.0 through opam?
ng__ has joined #ocaml
<ng__> http://postimage.org/image/w9w7lg6dp/ my university have a site to training programing, where we can send our codes... I send my code,
<ng__> in the left image -> correct output
<ng__> right image-> my output
<ng__> what is wrong?
<ng__> -.-
<ng__> *has
jamii has quit [Read error: Connection reset by peer]
jbrown__ has joined #ocaml
|jbrown| has quit [Ping timeout: 260 seconds]
<_habnabit> ng__, your pastebin expired
<ng__> wait a few seconds
<ng__> :D
<wmeyer> ng__: first of all why do u use imperative features that much
<wmeyer> second your while loop could be rewriten to for loop
<wmeyer> if you prefer to use loops
<wmeyer> I think I agree that here maybe the for loop is justified
<ng__> ok... still know very little of this...
<wmeyer> ng__: OK :-)
<ng__> think that will be caused by spaces?
<wmeyer> what exactly does not work?
<ng__> I submit the code, and the site does not accept...
<ng__> so
<ng__> i send a mail to the professor
emmanuelux has quit [Remote host closed the connection]
<ng__> and he replied with that "image"
<ng__> he told me that I was very close
<wmeyer> apart from naked girls I can't see much.
<wmeyer> I think it's too late for me...
<ng__> Discover the rules of construction of the structure and write a recursive function that given an integer parameter n, power of 2 belonging to the interval [1. . . 100], this pattern such that reproduces the highest number of asterisks is in line n.
<ng__> ;D
<wmeyer> maybe tomorrow, i will be more handy.
<ng__> ok
<ng__> no problem
<ng__> ;D
<wmeyer> today maybe
<ng__> yes
<ng__> ;D
<ng__> thanks
<wmeyer> yes, it's 4:31
<wmeyer> thx
<ng__> exactly
<ng__> .D
<ng__> thanks wmeyer
<wmeyer> ng__: not at all
<ng__> :D
<_habnabit> ng__, please keep it on channel
<ng__> ok
<_habnabit> i have no idea what that image is supposed to show and your code is basically unreadable to me
<_habnabit> this is much, much easier to read
arneis has quit [Ping timeout: 245 seconds]
<ng__> ok... the image is the supposed output...
<_habnabit> i don't see how that's even possible
<ng__> My should appear as the left...
<_habnabit> your code doesn't output any []s
<ng__> the [] are the spaces...
<_habnabit> weird
<ng__> -.-
<ng__> yes
<_habnabit> so... what do you need help with
<ng__> i think that i have "eliminate" all spaces in powers of 2
<ng__> will that be?
mjonsson has quit [Remote host closed the connection]
ng__ has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 265 seconds]
romildo has joined #ocaml
caligula__ has quit [Read error: Operation timed out]
<romildo> How can the following data type be translated from Haskell to OCaml?
<romildo> newtype Fix f = In (f (Fix f))
leoncamel has joined #ocaml
romildo has quit [Quit: Leaving]
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 256 seconds]
caligula__ has joined #ocaml
caligula_ has joined #ocaml
caligula__ has quit [Ping timeout: 265 seconds]
caligula__ has joined #ocaml
caligula_ has quit [Ping timeout: 268 seconds]
answer_42 has joined #ocaml
caligula__ has quit [Ping timeout: 245 seconds]
caligula_ has joined #ocaml
Submarine has joined #ocaml
<rgrinberg> can oasis make a custom toplevel?
caligula_ has quit [Ping timeout: 240 seconds]
caligula__ has joined #ocaml
caligula__ has quit [Ping timeout: 272 seconds]
<_habnabit> rgrinberg, ocamlbuild can
ninegrid has joined #ocaml
NaCl has quit [Read error: Operation timed out]
NaCl has joined #ocaml
NaCl has quit [Changing host]
NaCl has joined #ocaml
xavierm02_ has joined #ocaml
xavierm02_ has quit [Quit: Leaving]
answer_42 has quit [Ping timeout: 276 seconds]
mnabil has joined #ocaml
answer_42 has joined #ocaml
xavierm02 has joined #ocaml
eni has joined #ocaml
Cyanure has joined #ocaml
rgrinberg has quit [Ping timeout: 246 seconds]
andreypopp has joined #ocaml
andreypopp has quit [Quit: sleep]
eni has quit [Quit: Leaving]
sepp2k has joined #ocaml
paolooo has joined #ocaml
Kakadu has joined #ocaml
paolooo has quit [Ping timeout: 245 seconds]
cdidd has quit [Ping timeout: 264 seconds]
pango has quit [Remote host closed the connection]
pango has joined #ocaml
Submarine has quit [Ping timeout: 246 seconds]
ankit9 has joined #ocaml
Snark has joined #ocaml
Yoric has quit [Quit: Instantbird 1.3a1pre -- http://www.instantbird.com]
Yoric has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
tane has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 265 seconds]
ankit9 has quit [Ping timeout: 240 seconds]
ankit9 has joined #ocaml
tane has quit [Quit: Verlassend]
andreypopp has joined #ocaml
ankit9 has quit [Quit: Leaving]
Kakadu has quit [Quit: Konversation terminated!]
andreypopp has quit [Quit: sleep]
jave has joined #ocaml
Progster has joined #ocaml
leoncamel has quit [Remote host closed the connection]
Neros has joined #ocaml
ng__ has joined #ocaml
chambart has joined #ocaml
Kakadu has joined #ocaml
emmanuelux has joined #ocaml
arneis has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
mjonsson has joined #ocaml
Neros_ has joined #ocaml
milosn has quit [Read error: No route to host]
Neros has quit [Ping timeout: 246 seconds]
milosn has joined #ocaml
ankit9 has joined #ocaml
chambart has joined #ocaml
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Remote host closed the connection]
jamii has joined #ocaml
xavierm02 has quit [Quit: Leaving]
xavierm02 has joined #ocaml
<ng__> how can I remove the space after the last asterisk on each line?
chambart has quit [Ping timeout: 256 seconds]
Tobu has quit [Ping timeout: 260 seconds]
Tobu has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
jamii has quit [Ping timeout: 264 seconds]
CmrPantoufle has quit [Quit: leaving]
chambart has joined #ocaml
chambart has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Quit: emmanuelux]
tane has joined #ocaml
chambart has joined #ocaml
<ng__> problem solved, I just wanted something easy ... I wanted to remove the "\n" between the input and output...
chambart has quit [Ping timeout: 264 seconds]
<ng__> i can´t
<ng__> -.-
ankit9 has quit [Ping timeout: 246 seconds]
Vinnipeg has joined #ocaml
mnabil has quit [Ping timeout: 252 seconds]
chambart has joined #ocaml
djcoin has joined #ocaml
gnuvince has joined #ocaml
tani has joined #ocaml
tane has quit [Ping timeout: 246 seconds]
gnuvince has quit [Ping timeout: 246 seconds]
mnabil has joined #ocaml
GnomeStoleMyBike has joined #ocaml
Vinnipeg has quit [Quit: Leaving.]
chambart has quit [Ping timeout: 248 seconds]
sepp2k1 has joined #ocaml
sepp2k has quit [Ping timeout: 246 seconds]
rgrinberg has joined #ocaml
smerz has joined #ocaml
gnuvince has joined #ocaml
chambart has joined #ocaml
Vinnipeg has joined #ocaml
chambart has quit [Ping timeout: 248 seconds]
cdidd has joined #ocaml
caligula__ has joined #ocaml
gnuvince has quit [Ping timeout: 246 seconds]
cdidd has quit [Read error: Operation timed out]
Vinnipeg has quit [Remote host closed the connection]
caligula_ has joined #ocaml
caligula__ has quit [Ping timeout: 246 seconds]
uselpa has joined #ocaml
gnuvince has joined #ocaml
cdidd has joined #ocaml
answer_42 has quit [Ping timeout: 276 seconds]
ng__ has quit [Quit: Leaving]
Snark has quit [Quit: Quitte]
answer_42 has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
Tobu has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
uselpa has quit [Remote host closed the connection]
Tobu has joined #ocaml
tlockney has quit [Ping timeout: 246 seconds]
<arneis> I have a newbie question... how the hell do I build this? https://gist.github.com/danmey/Dom_react
<arneis> it looks like it uses ocamlbuild but I can't seem to get anywhere with it
mnabil has quit [Ping timeout: 256 seconds]
rgrinberg has quit [Remote host closed the connection]
<adrien> what have you tried?
<arneis> various things... ocamlbuild myocamlbuild.native
andreypopp has joined #ocaml
<adrien> hmm, ok, I see
<adrien> there is no tarball for that?
<adrien> probably better to drop a message to the author and ask if he can provide a tarball with "oasis -setup" done
<adrien> afk
emmanuelux has joined #ocaml
emmanuelux has quit [Max SendQ exceeded]
emmanuelux has joined #ocaml
Neros_ has quit [Ping timeout: 246 seconds]
emmanuelux has quit [Quit: emmanuelux]
Tobu has quit [Ping timeout: 272 seconds]
tani has quit [Quit: Verlassend]
Tobu has joined #ocaml
caligula_ has quit [Ping timeout: 248 seconds]
notdan has left #ocaml []
Tobu_ has joined #ocaml
Tobu has quit [Read error: Connection reset by peer]
emmanuelux has joined #ocaml
andreypopp has quit [Quit: sleep]
|jbrown| has joined #ocaml
jbrown__ has quit [Ping timeout: 260 seconds]
andreypopp has joined #ocaml
answer_42 has quit [Ping timeout: 276 seconds]
Submarine has quit [Remote host closed the connection]
ng__ has joined #ocaml
GnomeStoleMyBike has quit [Ping timeout: 264 seconds]
andreypopp has quit [Quit: sleep]
<ng__> this is the expected result: http://pastebin.com/cKfweX7z
<ng__> why this code is not doing the same?
caligula_ has joined #ocaml
GnomeStoleMyBike has joined #ocaml
chambart has joined #ocaml
<_habnabit> ng__, are you able to read your own code
<_habnabit> ng__, because this is still basically unreadable to me
<ng__> sorry _habnabit
<ng__> I will change it
<ng__> wait a few seconds
<ng__> -.-
<_habnabit> it's not the choice of pastebin that makes it unreadable
<_habnabit> it's your indentation
Cyanure has quit [Remote host closed the connection]
chambart has quit [Read error: Connection reset by peer]
<ng__> like that?
<_habnabit> no, if anything, that's worse. what editor are you using?
<ng__> i use gedit
<wmeyer> ng__: use ocaml toplevel and paste it to gedit
<ng__> ok
<wmeyer> ng__: once you have it pretty printed it should be easier
<wmeyer> and it would be really better if you have been using something better than gedit, that does for you this automatically: emacs, vim or even eclipse
<ng__> ok...i will try emacs
<wmeyer> ng__: you might spend too much time on getting familiar with Emacs
<wmeyer> ng__: is it a short stint with OCaml or you are willing to learn it?
<wmeyer> if you are thinking you are willing to learn it - go for Emacs and tuareg mode.
ftrvxmtrx has joined #ocaml
<ng__> ok wmeyer ... but, after you can help me with that code ?
<wmeyer> ng__: if not then knowledge how use vim or emacs is great, but you might not on time with the core problem: getting this done.
<wmeyer> ng__: can we talk about it tomorrow? there are other people that might help you here, if you specify the problem. Currently I am thinking to go to bed
<wmeyer> ng__: first of all, you need to specify the problem
<wmeyer> state it
<ng__> ok -.-
<wmeyer> yourself
<wmeyer> how do you understand it
<wmeyer> what you need to do
<wmeyer> write pseudocode in any other language than OCaml that you understand
<wmeyer> then it will be easier for anybody here to help you, and might be very likely you will complete it yourself
<ng__> ok wmeyer
<ng__> :D
<ng__> thanks
tufisi has quit [Ping timeout: 252 seconds]
tac has joined #ocaml
ng__ has quit [Quit: Leaving]
GnomeStoleMyBike has quit [Ping timeout: 260 seconds]
chambart has joined #ocaml
xavierm02 has quit [Quit: Leaving]
djcoin has quit [Quit: WeeChat 0.3.7]
caligula__ has joined #ocaml
ivan\ has quit [Ping timeout: 245 seconds]
caligula_ has quit [Ping timeout: 240 seconds]
ivan\ has joined #ocaml
tlockney has joined #ocaml
tlockney has quit [Excess Flood]
tac has quit [Ping timeout: 245 seconds]
tlockney has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
chambart has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
chambart has joined #ocaml
avsm has joined #ocaml
avsm has quit [Ping timeout: 255 seconds]
<arneis> anyone using typerex completion? Does it work with external modules?
chambart has quit [Ping timeout: 246 seconds]
Neros has joined #ocaml
chambart has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
chambart has joined #ocaml
Tobu_ has quit [Ping timeout: 260 seconds]
Tobu has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]