Is there a site like try ruby that allows one to experiment in an F# interactive shell? I'd like to try a few commands without installing Visual Studio or Mono.
+5
A:
Not yet that I know of. (This is something the F# team would love to do if/when we can find the free time to put it together.)
(Note that you don't need VS or Mono - you can just have .Net and then install the F# CTP and just get the runtime, command-line compiler, and fsi.exe, and use that. But it would be nicer if there were a no-install web-site-visit try-it thingy.)
Brian
2009-12-18 01:32:46
+1 so that you do it!
Benjol
2009-12-18 07:12:08
I have been working on something like this, but don't have anything to show for it yet.
Tristan
2009-12-19 22:11:44
+3
A:
You can use codepad.org for experiments with OCaml. The core of F# and OCaml is similar, just remember not to use light version of syntax, advanced F# features and .net libraries :)
ssp
2009-12-18 11:11:43
Thanks for the codepad.org link. Unfortunately, even for the most basic F# programs, there are syntax difference that prevent them from working in OCaml. For example, [1..10] works in F#, but in OCaml one needs to define a range function.
brianegge
2009-12-20 22:01:59
Yes, you are right, but you may use ocaml with syntax expensions (not at codepad) and you will get nice resalts. F.e. see pa_monad to beautify monadic expressions.
ssp
2009-12-21 04:07:14
+2
A:
ideone.com now supports F# ! Here are some samples.
It's not really a REPL, but rather an online compiler.
Mauricio Scheffer
2010-08-28 23:46:43