dan2 changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
<Smerdyakov> judge, I honestly don't care about Mandrake.... and SML/NJ seems in a bit of trouble now in Debian, but MLton works great. Unforunately, smlweb requires SML/NJ now, but it's very easy to install manually.
<judge> Smerdyakov: what kind of trouble?
vezenchio has joined #ocaml
Submarine has quit ["Leaving"]
_fab has quit []
<Smerdyakov> judge, I don't know, but it's in an unusable state.
Inspico has joined #ocaml
<Inspico> hello :)
<Inspico> can i ask a little question about Graphics on ocaml ? :p
<Inspico> I try to create a windows with another color on the background than white
<Inspico> and on the manual of references this isn't clear
CrewdenX has quit ["."]
<Inspico> moarf
<Inspico> noone ?
<Inspico> :s
<beschmi> what about fill_rect?
smkl has quit [Read error: 60 (Operation timed out)]
xqw has joined #ocaml
<Inspico> hum
<Inspico> I have to draw a rectangle of color to change background ?
<Inspico> :s
<Inspico> what is the char for the botton escape ? :p
<Inspico> ^^
<beschmi> "Graphics.clear_graph fills the screen with the background color. The initial drawing color is foreground." so setting the right background color should work
<Inspico> I try to do an let background = rgb 181 165 245 ;;
<Inspico> but :/
<Inspico> not work
<Inspico> in fact
<Inspico> i have to do an GUI
<humasect> a
<humasect> a
<Inspico> ^^
<Inspico> and i learn to use the module Graphics ^^
<Inspico> :))
<humasect> =)
<Inspico> an load dont work on the compilation that's right ?
<Inspico> #load "graphics.cma";;
KrispyKringle has quit [Read error: 104 (Connection reset by peer)]
KrispyKringle has joined #ocaml
cjohnson has quit ["attempting sleep"]
smkl has joined #ocaml
gim has quit []
CosmicRay_ has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
drewr has quit ["bed"]
humasect has quit [Read error: 110 (Connection timed out)]
quamaretto has joined #ocaml
smkl has joined #ocaml
zzorn has quit ["They are coming to take me away ha ha"]
monochrom has quit ["Few people understand "understanding"."]
Amorphous has joined #ocaml
<Amorphous> hi. anyone has any idea on this problem (orphaned tcp file descriptors on macOsX)? is it a bug in ocaml as the comment says? see the last 2 comments and especialy the part on ocaml-3.08.0/otherlibs/unix/accept.c from https://savannah.nongnu.org/bugs/?func=detailitem&item_id=11384
<Nutssh> You aren't closing them?
<Amorphous> Nutssh: so the part with that ocaml-3.08.0/otherlibs/unix/accept.c needs a fix is um the wrong direction?
CosmicRay_ has quit [Read error: 113 (No route to host)]
* Nutssh didn't want to bring up the source at... what time is it.
<Amorphous> ok :) thx anyway
<Nutssh> I gave a glib reply without reading the msg. :(
<Nutssh> I retract what I said. Must think before saying things.
<Amorphous> np (happens me, too)
<Nutssh> Happens to me too much.
xqw has quit [Read error: 110 (Connection timed out)]
lodewijk has quit [Read error: 60 (Operation timed out)]
smkl has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
<vincenz> hi
smkl has joined #ocaml
KrispyKringle has quit [Read error: 110 (Connection timed out)]
_fab has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
Banana has quit [Read error: 60 (Operation timed out)]
Banana has joined #ocaml
smkl has joined #ocaml
Banana_ has joined #ocaml
Banana has quit [Read error: 60 (Operation timed out)]
Robot101 has quit ["rebooting"]
Banana_ has quit [Remote closed the connection]
Banana has joined #ocaml
mlh has joined #ocaml
smimou has joined #ocaml
mbh has quit [Read error: 110 (Connection timed out)]
stef_ has quit [Read error: 60 (Operation timed out)]
Herrchen has joined #ocaml
stef_ has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
Submarine is now known as Mai
Mai is now known as GrosChat
GrosChat is now known as Submarine
xqw has joined #ocaml
_JusSx_ has joined #ocaml
smkl has joined #ocaml
kuribas has joined #ocaml
cjohnson has joined #ocaml
<_JusSx_> cjohnson:
<cjohnson> hi
smkl has quit [Read error: 110 (Connection timed out)]
zzorn has joined #ocaml
DeathWolf has quit [Read error: 110 (Connection timed out)]
mlh has quit [Client Quit]
lurch_ has quit [Remote closed the connection]
zzorn is now known as zzorn_afk
<Inspico> Someone knows if some module exist with object like bouton exist ?
gim has joined #ocaml
zzorn_afk is now known as zzorn_away
kuribas has quit ["Leaving"]
smkl has joined #ocaml
xqw has quit [Read error: 110 (Connection timed out)]
drewr has joined #ocaml
xqw has joined #ocaml
drewr has quit ["ERC Version 5.0 $Revision: 1.725 $ (IRC client for Emacs)"]
pango has quit [Remote closed the connection]
pango has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
<Inspico> euh
<Inspico> hi
<Inspico> help ^^
<Inspico> # The external function `gr_moveto' is not available
<Inspico> # The external function `gr_set_color' is not available
<Inspico> why the toplevel say that ?
<Inspico> let draw_rect x0 y0 w h =
<Inspico> let x1 = x0+w and y1 = y0+h in
<Inspico> Graphics.moveto x0 y0;
<Inspico> Graphics.lineto x0 y1;
<Inspico> Graphics.lineto x1 y1;
<Inspico> Graphics.lineto x1 y0;
<Inspico> Graphics.lineto x0 y0;
<Inspico> ;;
<Inspico> and
<Inspico> let bouton_contour bcf col =
<Inspico> Graphics.set_color col ;
<Inspico> Graphics.draw_rect bcf.x bcf.y bcf.w bcf.h ;;
<Smerdyakov> Inspico, try reading the documentation.
<Inspico> u_u
<Inspico> hum
<Inspico> i don't see where the documentation can help me here
<Inspico> ^^
<Smerdyakov> I mean the documentation for Graphics.
<Inspico> yes
<Smerdyakov> Have you read it from start to finish?
<Inspico> the function moveto and set_color are into
<Inspico> u_u
<Smerdyakov> You're reading the wrong part.
<Inspico> yes ...
<Inspico> no
<Smerdyakov> Start from the _beginning_.
<Inspico> hum
<Inspico> i do an entier GUI so i can tell you that this function are on the module graphics
<Smerdyakov> Can you paste for me please the first sentence of the manual section on Graphics?
<Inspico> hmm
<Smerdyakov> (I don't believe that you're really reading it.)
<Inspico> I have it on paper
<Smerdyakov> OK, then can you read it tome?
<Inspico> wait a moment ^^
<Smerdyakov> I mean the graphics library, BTW, not the Graphics module.
<Inspico> what ?
<Smerdyakov> That's the Graphics module. I meant the graphics library.
<Inspico> i don't understand what do you want
<Smerdyakov> Do you understand what libraries are?
<Inspico> in this case yes
<Smerdyakov> OK. Do you understand that Graphics is in the graphics library?
<Inspico> for me Graphics is a module
<Inspico> i use it
<Smerdyakov> Well, then you need to learn that it is in a library that is not loaded by default, and that library is called "graphics".
<Inspico> hum
<Smerdyakov> How did you find the page whose URL you pasted?
<Inspico> if i put Graphics. before every method it will work
<Inspico> no ?
<Smerdyakov> I doubt it.
<Inspico> ah ?
<Smerdyakov> How did you find the page whose URL you pasted?
<Inspico> it's the manual of ocaml
<Smerdyakov> But what sequence of clicks did you take to get there?
<Inspico> from http://caml.inria.fr/
<Smerdyakov> Then what?
<Inspico> #load "graphics.cma";;
<Inspico> moarf
<Inspico> but at the compilation it will works ?
<Smerdyakov> That's not what I'm asking.
<Smerdyakov> I'm asking what link you followed on http://caml.inria.fr/ocaml/htmlman/index.html
<Inspico> i click on the link for the documentation of ocaml
<Smerdyakov> What URL is that?
<Inspico> from http://caml.inria.fr/
<Inspico> i say it before
<Smerdyakov> Yes. ON THAT NEW PAGE, which link do you follow?
<Inspico> Objective Caml manual.
<Smerdyakov> Wrong. There is no such link.
<Inspico> lol
<Inspico> mdrrrrrr
<Smerdyakov> The page is divided into a few sections. There is:
<Smerdyakov> "Part I: An Introduction to Objective Caml"
<Smerdyakov> "Part II: The Objective Caml Language"
<Smerdyakov> etc.
<Smerdyakov> Are we looking at the same page?
<Inspico> ah
<Inspico> yes
<Smerdyakov> What link do you follow from THIS page to get to the Graphics page?
<Inspico> you are not really clear on your question
<Inspico> part IV and Part V
pango has quit [Read error: 104 (Connection reset by peer)]
<Inspico> The graphics library
<Inspico> Index of modules
<Smerdyakov> Hold on. Remember the first thing that I advised you to do?
<Smerdyakov> I said you should read the manual section on the graphics library from the beginning.
<Smerdyakov> It looks like you knew how to find that part, but that you didn't read it.
pango has joined #ocaml
<Inspico> ok
<Inspico> but i didn't see what you was talking about
<Inspico> so cool
<Smerdyakov> "The graphics library" is pretty specific. :P
<Inspico> and tks
<Inspico> :)
<Inspico> in fatc i was working into since yesterday 2h
<Inspico> *fact
<Inspico> and my toplevel has crash
<Smerdyakov> If the graphics library manual doesn't help you, there is no hope.
<Inspico> and when i open it again it was work ^^
<Inspico> :)
<Inspico> lol
<Inspico> it work now
<Inspico> ;)
KrispyKringle has joined #ocaml
Smerdyakov has quit ["go airplane"]
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specif]
gim has quit ["bbw"]
smkl has joined #ocaml
gim has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
KrispyKringle has quit [Nick collision from services.]
KrispyKringle has joined #ocaml
drewr has joined #ocaml
stef_ has quit [Read error: 60 (Operation timed out)]
smkl has quit [Read error: 110 (Connection timed out)]
_JusSx_ has left #ocaml []
Herrchen has quit ["bye"]
quamaretto has quit [Read error: 60 (Operation timed out)]
mrsolo has joined #ocaml
mrvn has joined #ocaml
drewr is now known as drewr_sick
mrvn_ has quit [Read error: 60 (Operation timed out)]
smkl has joined #ocaml
quamaretto has joined #ocaml
stef has joined #ocaml
KrispyKringle has quit ["Get MacIrssi - http://www.g1m0.se/macirssi/"]
tea has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
whee has joined #ocaml
smkl has joined #ocaml
drewr_sick is now known as drewr
mbh has joined #ocaml
Inspico has quit [Read error: 104 (Connection reset by peer)]
Submarine has quit ["Leaving"]
smkl has quit [Read error: 60 (Operation timed out)]
mlh has joined #ocaml
CosmicRay has quit ["Leaving"]
smimou has quit ["?"]
gim has quit ["reboot kernel change"]
pango has quit ["switching box"]
pango has joined #ocaml
mbh has quit ["brb"]
gim has joined #ocaml