Re: [Caml-list] try ocaml website

2011-12-26 Thread Mihamina Rakotomandimby

On 12/23/2011 09:00 PM, Fabrice Le Fessant wrote:

   We worked hard on our Try OCaml website, started by Çagdas, and we
managed to improve it enough, so that we think people can start using it
(and hopefully, improving it).
It is available here:
http://try.ocamlpro.com/


Very nice work.
Congratulations.

--
RMA.


--
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-26 Thread Esther Baruk
Very nice work, and what a great idea !

We will definitely add a link to Try OCaml on the future OCaml Web
Portalhttps://forge.ocamlcore.org/projects/ocamlweb/website.



Esther Baruk


On Fri, Dec 23, 2011 at 7:00 PM, Fabrice Le Fessant 
fabrice.le_fess...@inria.fr wrote:

 Dear ocamllers,

  We worked hard on our Try OCaml website, started by Çagdas, and we
 managed to improve it enough, so that we think people can start using it
 (and hopefully, improving it).

 It is available here:

 http://try.ocamlpro.com/

  There are 3 lessons, two lessons for getting a taste of OCaml
 (totalling 10 steps), and the last one about some new features in 3.12.
 You can use the lessons() command in the toplevel to get the current
 list of lessons (in case we contribute more in the meantime !).

  We welcome any comment to improve it, bug reports, and new content.
 The repository is on Github:

 https://github.com/OCamlPro/tryocaml

  You can easily fork it, compile it, modify it, and send us pull
 requests if you want your content published on our site.

 We will probably continue to focus on the first lessons (the getting a
 taste of OCaml virtual section), but we are also looking for
 contributions on advanced topics : we plan to make them start around
 lesson 10, and focus on particular issues (modules, functors, labels,
 objects, classes, polymorphic variants, etc.). Send us a mail if you
 want to volunteer !

  As the engine is translated from OCaml to Javascript by js_of_ocaml,
 you can even play with it offline, when you are disconnected.

 Have fun,
 Fabrice

 --
 Caml-list mailing list.  Subscription management and archives:
 https://sympa-roc.inria.fr/wws/info/caml-list
 Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
 Bug reports: http://caml.inria.fr/bin/caml-bugs



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-24 Thread Stéphane Glondu
Le 23/12/2011 19:40, oliver a écrit :
 From the js_of_ocaml page it looks like it's based on Ocsigen.
 Maybe it's time to explore it. :-)

It's the other way around: Ocsigen is based on js_of_ocaml. The examples
on [1] (and Try OCaml AFAICT) don't need Ocsigen.

[1] http://ocsigen.org/js_of_ocaml/manual/

If you want to write a full client-server application with both sides
written in OCaml and a clean integration, then Ocsigen is for you :-)


Cheers,

-- 
Stéphane



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-24 Thread Dominique Martinet
Hi,

oliver wrote on Sat, Dec 24, 2011 :
 Is there also something like Python's Django for this project,
 or planned at least?
 Django is a Python-based Webframework that also integrates usage of databases.
 And there are good reasons to have access to a databases in Web-applications.

I have only toyed around with ocsigen a bit and didn't make anything
complicated with it, but it includes database gestion out of the box -
either with just a file or with sqlite through its Ocsipersist module.

Of course, you're still free to use mysql or postgresql with the usual
ocaml libraries available through godi or other :)

I find ocsigen fairly complete and good for big projects, its only
problem is the lack of examples around compared to PHP or whatsnot, but
it is definitely more fun to write an ocsigen website ;)

Regards,
-- 
Dominique Martinet | Asmadeus

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Dominique Martinet
Hi,

The website is really nice :) I'm a bit too used to ledit and find the
lack of ^w, ^u, ^k a bit annoying, but the experience is really smooth,
that's good!

The only real thing that it's missing is a way to reset the toplevel
without reloading the page. It's the same problem as with the real
toplevel now that I think about it, but I didn't think of reloading the
page directly!

Great work anyway :)

-- 
Asmadeus | Dominique Martinet

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Çagdas Bozman

 The only real thing that it's missing is a way to reset the toplevel
 without reloading the page. It's the same problem as with the real
 toplevel now that I think about it, but I didn't think of reloading the
 page directly!


You can clear the editor view by using the command clear().

-- 
Çagdas Bozman cagdas.boz...@ocamlpro.com

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Török Edwin
On 12/23/2011 08:00 PM, Fabrice Le Fessant wrote:
 Dear ocamllers,
 
   We worked hard on our Try OCaml website, started by Çagdas, and we
 managed to improve it enough, so that we think people can start using it
 (and hopefully, improving it).
 
 It is available here:
 
 http://try.ocamlpro.com/
 
   There are 3 lessons, two lessons for getting a taste of OCaml
 (totalling 10 steps), and the last one about some new features in 3.12.
 You can use the lessons() command in the toplevel to get the current
 list of lessons (in case we contribute more in the meantime !).
 
   We welcome any comment to improve it, bug reports, and new content.

Would it be possible to provide the Nums module?
I think it'd look nice to show that you can do bignum ops using just the stdlib.

Best regards,
--Edwin

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Ashish Agarwal
This is really great!

One comment, it doesn't work on Safari. I see parts of the page, but the
dynamic parts don't work. This is a problem I already had on an
ocsigen.orgpage, and I reported on the Ocsigen list. When I turn on
the javascript
debugger in Safari and reload the page, it then works. However, without the
javascript console open, refreshing the page does nothing.


On Fri, Dec 23, 2011 at 1:00 PM, Fabrice Le Fessant 
fabrice.le_fess...@inria.fr wrote:

 Dear ocamllers,

  We worked hard on our Try OCaml website, started by Çagdas, and we
 managed to improve it enough, so that we think people can start using it
 (and hopefully, improving it).

 It is available here:

 http://try.ocamlpro.com/

  There are 3 lessons, two lessons for getting a taste of OCaml
 (totalling 10 steps), and the last one about some new features in 3.12.
 You can use the lessons() command in the toplevel to get the current
 list of lessons (in case we contribute more in the meantime !).

  We welcome any comment to improve it, bug reports, and new content.
 The repository is on Github:

 https://github.com/OCamlPro/tryocaml

  You can easily fork it, compile it, modify it, and send us pull
 requests if you want your content published on our site.

 We will probably continue to focus on the first lessons (the getting a
 taste of OCaml virtual section), but we are also looking for
 contributions on advanced topics : we plan to make them start around
 lesson 10, and focus on particular issues (modules, functors, labels,
 objects, classes, polymorphic variants, etc.). Send us a mail if you
 want to volunteer !

  As the engine is translated from OCaml to Javascript by js_of_ocaml,
 you can even play with it offline, when you are disconnected.

 Have fun,
 Fabrice

 --
 Caml-list mailing list.  Subscription management and archives:
 https://sympa-roc.inria.fr/wws/info/caml-list
 Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
 Bug reports: http://caml.inria.fr/bin/caml-bugs



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Dominique Martinet
Hi,

Çagdas Bozman wrote on Fri, Dec 23, 2011 :
  The only real thing that it's missing is a way to reset the toplevel
  without reloading the page. It's the same problem as with the real
  toplevel now that I think about it, but I didn't think of reloading the
  page directly!

 You can clear the editor view by using the command clear().

Yes, I've seen that - what I mean isn't clearing the view, but really
reseting the variables and whatever is defined.
Maybe there actually is something in the standard toplevel, but I don't
think I've ever heard about it :)

The behaviour I want would be:

# let x = 42;;
val x : int = 42
# reset ();;
- : unit = ()
# x;;
Characters 0-1:
Error: Unbound value x


Regards,
-- 
Dominique Martinet | Asmadeus

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Philippe Strauss
On Fri, Dec 23, 2011 at 01:56:46PM -0500, Ashish Agarwal wrote:
 This is really great!
 
 One comment, it doesn't work on Safari. I see parts of the page, but the
 dynamic parts don't work. This is a problem I already had on an
 ocsigen.orgpage, and I reported on the Ocsigen list. When I turn on
 the javascript
 debugger in Safari and reload the page, it then works. However, without the
 javascript console open, refreshing the page does nothing.

I confirm that one.

on safari 5.1.2 (OSX 10.6.8) it does not work, while within chrome and FF it 
runs fine.

-- 
Philippe Strauss
av. de Beaulieu 25
1004 Lausanne
http://www.philou.ch

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Jérémie Dimino
Le vendredi 23 décembre 2011 à 20:10 +0100, Dominique Martinet a écrit :
 Yes, I've seen that - what I mean isn't clearing the view, but really
 reseting the variables and whatever is defined.
 Maybe there actually is something in the standard toplevel, but I don't
 think I've ever heard about it :)

You can do that:

# let env = !Toploop.toplevel_env;;
val env : Env.t = abstr
# let x = 1;;
val x : int = 1
# Toploop.toplevel_env := env;;
- : unit = ()
# x;;
Characters 0-1:
Error: Unbound value x

Cheers,

-- 
Jérémie



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Adrien
I happened to have a windows virtual machine started and tried in IE 8
(8.0.7600.16385). I can't type in it and it seems to work fine at
first I get this behaviour:
  # let x = 42;;
  # x;;
  Characters 0-1:
  Error: Unbound value x

Also, something statements don't produce anything on screen except a
new prompt: 42;; and print_endline \pouet\;; don't print
anything. It looks like nothing gets evaluated.

I wouldn't consider IE8 as a high-priority however since I've actually
been having troubles finding people who were using IE on their own
free will nowadays.

Regards,
Adrien Nader

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Dominique Martinet
Hi,

Jérémie Dimino wrote on Fri, Dec 23, 2011 :
 # let env = !Toploop.toplevel_env;;
 val env : Env.t = abstr
 # let x = 1;;
 val x : int = 1
 # Toploop.toplevel_env := env;;
 - : unit = ()
 # x;;
 Characters 0-1:
 Error: Unbound value x

Thanks!
I've even found Toploop.initialize_toplevel_env () that does exactly
what I wanted thanks to you :)


It might be a good idea to make it more obvious or name it in the handy
commands of the website then - I really believe that people, especially
beginners or when toying around, want to clean their environment
often. I though about it because I just had something weird I could not
explain because the first thing I did was define a global x, and 10
minutes later it came back inside a function where I shouldn't have had
an x...
Maybe reset it when changing lesson? (though that might be unwanted
sometimes too, I don't know.)


Cheers,
-- 
Dominique Martinet | Asmadeus

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread Norman Hardy

On 2011 Dec 23, at 11:15 , Philippe Strauss wrote:

 On Fri, Dec 23, 2011 at 01:56:46PM -0500, Ashish Agarwal wrote:
 This is really great!
 
 One comment, it doesn't work on Safari. I see parts of the page, but the
 dynamic parts don't work. This is a problem I already had on an
 ocsigen.orgpage, and I reported on the Ocsigen list. When I turn on
 the javascript
 debugger in Safari and reload the page, it then works. However, without the
 javascript console open, refreshing the page does nothing.
 
 I confirm that one.
 
 on safari 5.1.2 (OSX 10.6.8) it does not work, while within chrome and FF it 
 runs fine.

It works on WebKit which is an experimental version of Safari:
http://nightly.webkit.org/

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread oliver
On Fri, Dec 23, 2011 at 08:54:15PM +0200, Török Edwin wrote:
 On 12/23/2011 08:00 PM, Fabrice Le Fessant wrote:
  Dear ocamllers,
  
We worked hard on our Try OCaml website, started by Çagdas, and we
  managed to improve it enough, so that we think people can start using it
  (and hopefully, improving it).
  
  It is available here:
  
  http://try.ocamlpro.com/
  
There are 3 lessons, two lessons for getting a taste of OCaml
  (totalling 10 steps), and the last one about some new features in 3.12.
  You can use the lessons() command in the toplevel to get the current
  list of lessons (in case we contribute more in the meantime !).
  
We welcome any comment to improve it, bug reports, and new content.
 
 Would it be possible to provide the Nums module?
 I think it'd look nice to show that you can do bignum ops using just the 
 stdlib.
[...]

Following the manual, it's not part of the stdlib, even though it's shipped
in the std-distribution.

Ciao,
  Oliver

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread oliver
On Fri, Dec 23, 2011 at 01:56:46PM -0500, Ashish Agarwal wrote:
 This is really great!
 
 One comment, it doesn't work on Safari.
[...]

On Konqueror it also does not work.

On FF it runs fine.


Ciao,
   Oliver

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



Re: [Caml-list] try ocaml website

2011-12-23 Thread oliver
On Fri, Dec 23, 2011 at 08:29:09PM +0100, Jérémie Dimino wrote:
 Le vendredi 23 décembre 2011 à 20:10 +0100, Dominique Martinet a écrit :
  Yes, I've seen that - what I mean isn't clearing the view, but really
  reseting the variables and whatever is defined.
  Maybe there actually is something in the standard toplevel, but I don't
  think I've ever heard about it :)
 
 You can do that:
 
 # let env = !Toploop.toplevel_env;;
 val env : Env.t = abstr
 # let x = 1;;
 val x : int = 1
 # Toploop.toplevel_env := env;;
 - : unit = ()
 # x;;
 Characters 0-1:
 Error: Unbound value x
[...]

Oh, cool. :-)

Ciao,
   Oliver

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs