caml-list - the Caml user's mailing list
 help / Atom feed
* 
@ 2002-02-23 18:02 francois.hugel
  2002-02-23 20:48 ` [Caml-list] Nicolas FRANCOIS (AKA El Bofo)
  0 siblings, 1 reply; 12+ messages in thread
From: francois.hugel @ 2002-02-23 18:02 UTC (permalink / raw)
  To: caml-list

Monsieur,
j'ai le CD-ROM de l'INRIA avec le logiciel Caml Light, mais je ne sais pas 
comment accéder à un éditeur approprié pour taper des programmes.Pourriez-vous 
me renseigner,SVP, à l'adresse ci-dessous:
francois.hugel@free.fr
Merci pour votre aide.FH.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] Problem with Graph module
@ 2002-06-17  1:04 Nicolas FRANCOIS (AKA El Bofo)
  2002-06-17 13:23 ` Jun P.FURUSE
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas FRANCOIS (AKA El Bofo) @ 2002-06-17  1:04 UTC (permalink / raw)
  To: Caml List

A strange thing, under Linux : this piece of code :

open Graphics;;
open Random;;

type t_fourmi = {mutable dir : int;
		 mutable x : int;
		 mutable y : int};;

let trace_fourmi_deux_etats n =
  let mouvement = [|(0, 5); (-5, 0); (0, -5); (5, 0)|] in
  let init = open_graph " 800x800+50-50" in
  let ma_fourmi = {dir = 0; x = 349; y = 349} in
  let onestep () =
    if (point_color ma_fourmi.x ma_fourmi.y) = white
    then
      begin
	set_color black;
	ma_fourmi.dir <-
	if ma_fourmi.dir + 1 > 3 then 0 else ma_fourmi.dir + 1
      end
    else
      begin
	set_color white;
	ma_fourmi.dir <-
	if ma_fourmi.dir - 1 < 0 then 3 else ma_fourmi.dir - 1
      end;
    fill_rect ma_fourmi.x ma_fourmi.y 5 5;    
    let (dx, dy) = mouvement.(ma_fourmi.dir) in
      ma_fourmi.x <- ma_fourmi.x + dx;
      ma_fourmi.y <- ma_fourmi.y + dy;
  in
    init;
    for i = 0 to n do
      onestep ();
      for j = 1 to 10000 do begin end done
    done;;

trace_fourmi_deux_etats 10000;;


works perfectly in camllight (with a few modifications to adapt the code),
but not in Ocaml. The graphic window opens well, but the test 

if (point_color ma_fourmi.x ma_fourmi.y) = white

is allways false under Ocaml.

Can you see the problem ?????

Thanks.

-- 

                   Nicolas FRANCOIS
            http://nicolas.francois.free.fr
 A TRUE Klingon programmer does NOT comment his code
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
* 
@ 2002-10-19 17:14 climb
  2002-10-20 20:04 ` [Caml-list] Alessandro Baretta
  0 siblings, 1 reply; 12+ messages in thread
From: climb @ 2002-10-19 17:14 UTC (permalink / raw)
  To: caml-list

 i am quite confused about the orgnization of source files.
i have programmed with java . java has a simple rule to orgnize files: one file contains one class(public) or interface, and name of the file and the class  must be identical.

As to Ocaml.
Does the file name of *.ml or mli has some similar relation ship with the content ?
  for example , in the on-line manul
  it says :
  if complie like this
  ocaml -c aux.mli
  ocaml -c aux.ml
  behaves exactly as if 
  module Aux: sig (* contents of aux.mli*) end = struct (*contents of aux.ml*) end;;
  in the toplevel
  that seems to imply the exsiting fo some relationship , but i still has these questions:
1) can many modules be write in just one file ? 
   maybe not , then how does classes?
  
2) Is the multi sigs with one struct  or multi structs  with one sig  compiled at a prper dependency can get the same result that like as in the toplevel?   should i write anther file to tell them how to assigning?

3) take set.ml and set.mli for example which defined one functor: Make and two sigs : S and OrderedType.  But when we use , we use this command    Set.Make(..).       "Set" here seem can only get from the name of the file. So it seems the file name determined the library name .  Then how about the noraml module (not functor) case that if i define a module A with a funtion a(), in file b.ml and b.mli, how can i refer to a() in module A.  A.a() or B.A.a() or B.a()? 

 
 

Best regards
            
              Yours
                         climb
                         onlyclimb@163.com
                         2002-10-20

 




-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
* 
@ 2003-03-08  8:53 Vee Satayamas
  2003-03-08  9:06 ` [Caml-list] Seth Kurtzberg
  0 siblings, 1 reply; 12+ messages in thread
From: Vee Satayamas @ 2003-03-08  8:53 UTC (permalink / raw)
  To: caml-list

Hello,

I 'm interested in using Caml as the 
first language to teach student.
What is your opinion? Is there any
place use Caml as the first language
in programming course.

Thank you,
Vee Satayamas

=====
Please feel free to talk to me.
My homepage : http://www.geocities.com/liberalvee

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] Graphics frustration
@ 2003-07-24  4:20 Matt Gushee
  2003-07-26  1:37 ` SooHyoung Oh
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Gushee @ 2003-07-24  4:20 UTC (permalink / raw)
  To: caml-list

Hello, all--

I have been working on an application which will generate on-the-fly
graphics for the Web, but I have become very frustrated by the
limitations of the available graphics libraries for OCaml. If anyone
reading this thinks there are solutions I have overlooked, I would be
happy to discuss details. Right now, though, my purpose is to find out
whether others share my concerns, and how much interest there is in
developing better graphics libraries.

What I would like to see is a single library with at least the
following capabilities:

  * drawing primitives: line, rectangle, ellipse and/or arc, perhaps
    bezier curves

  * rendering text with arbitrary Type 1 and/or TrueType fonts

  * antialiasing

  * basic image manipulation functions such as transformations,
    contrast adjustment, cropping, etc.

  * saving to common bitmap formats such as JPEG and PNG

  * cross-platform

taking the various graphics packages together, all these capabilities
exist, but as far as I can tell there is no single package that combines
them all. So, in developing my application, I started out with
OCamlPlot, but discovered that it

  - doesn't do antialiasing

  - uses only 2 or 3 built-in fonts for PNG output

  - has a rather rigid and idiosyncratic API

  - doesn't run on Windows

Then I decided to try MLgraph + Camlimages, which is an improvement, but
still falls short: MLgraph is excellent for drawing, but saves only to
PostScript--and I find the final result, converted to PNG with
CamlImages, rather unsatisfactory (the main problem is that antialiasing
doesn't work very well, which may actually be a Ghostscript issue).
Performance with this combination is also markedly poorer than with
OCamlPlot.

Then there's OCamlGD, which seems quite promising. When complete, it
will probably satisfy all my requirements; but there hasn't been a
relesase in quite a while.

So that's a quick summary of my situation. Do others agree with me that
this is a significant problem? Are there any good solutions in the
works?

I am happy, by the way, to put some effort into developing something
better. My contribution would be limited, though (I'm not a C
programmer, for example, so I wouldn't be able to create a wrapper for
an existing C library.).

Comments?

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <200404290855.i3T8sxxM001342@host2.route66.net>]
* 
@ 2004-08-23 20:27 briand
  2004-08-24  9:09 ` [Caml-list] Damien Doligez
  0 siblings, 1 reply; 12+ messages in thread
From: briand @ 2004-08-23 20:27 UTC (permalink / raw)
  To: caml-list


This is a really weird user experience :


~/src/ocaml/math $ ocaml
        Objective Caml version 3.08.0

# #load "const.cmo";;
# Const.pi
  ;;
- : float = 3.14159265358979312
# 

Great, so that works as per the manual...
So then I change into another directory and load the EXACT SAME file.


~/src/ocaml/math $ cd ..
~/src/ocaml $ cd pll
~/src/ocaml/pll $ ocaml
        Objective Caml version 3.08.0

# #load "../math/const.cmo";;
# Const.pi;;
Unbound value Const.pi

Huh ??

Brian


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] Re:
@ 2011-04-07 14:20 nathalielibertine
  0 siblings, 0 replies; 12+ messages in thread
From: nathalielibertine @ 2011-04-07 14:20 UTC (permalink / raw)
  To: caml-list

[-- Attachment #0: Type: text/html, Size: 5315 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] 
@ 2021-04-07 11:51 Fabien / maufred
  2021-04-07 12:50 ` [Caml-list] RE : Jean-Denis EIDEN
  0 siblings, 1 reply; 12+ messages in thread
From: Fabien / maufred @ 2021-04-07 11:51 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 12 bytes --]

unsubscribe

[-- Attachment #2: Type: text/html, Size: 34 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, back to index

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-23 18:02 francois.hugel
2002-02-23 20:48 ` [Caml-list] Nicolas FRANCOIS (AKA El Bofo)
2002-02-24 12:00   ` stalkern2
2002-06-17  1:04 [Caml-list] Problem with Graph module Nicolas FRANCOIS (AKA El Bofo)
2002-06-17 13:23 ` Jun P.FURUSE
2002-06-17 17:38   ` [Caml-list] Nicolas FRANCOIS (AKA El Bofo)
2002-10-19 17:14 climb
2002-10-20 20:04 ` [Caml-list] Alessandro Baretta
2003-03-08  8:53 Vee Satayamas
2003-03-08  9:06 ` [Caml-list] Seth Kurtzberg
2003-03-10 16:41   ` Brian Hurt
2003-07-24  4:20 [Caml-list] Graphics frustration Matt Gushee
2003-07-26  1:37 ` SooHyoung Oh
2003-07-26  8:58   ` [Caml-list] Nicolas Janin
     [not found] <200404290855.i3T8sxxM001342@host2.route66.net>
2004-04-29  8:55 ` alex
2004-08-23 20:27 briand
2004-08-24  9:09 ` [Caml-list] Damien Doligez
2011-04-07 14:20 nathalielibertine
2021-04-07 11:51 [Caml-list] Fabien / maufred
2021-04-07 12:50 ` [Caml-list] RE : Jean-Denis EIDEN

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox