SavanVaghela / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Support F# #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
A forum user (ademar) has given us a simple bot written in F#. Try to support 
F#.

Original issue reported on code.google.com by cameron.jp@gmail.com on 7 Sep 2010 at 2:17

Attachments:

GoogleCodeExporter commented 8 years ago
I think it will be probably better to address -Issue 101: Use a more recent 
version of Mono.- first

Original comment by ademar.g...@gmail.com on 12 Sep 2010 at 4:41

GoogleCodeExporter commented 8 years ago
The following commands should be enough to get installed F# on the server:

#requires root
cd ~
wget 
http://download.microsoft.com/download/B/8/6/B869DF5B-B2C7-4125-8A1E-23CA7723504
8/fsharp.zip
unzip fsharp.zip -d /usr/bin
mv /usr/bin/FSharp-2.0.0.0/ /usr/bin/fsharp
cd /usr/bin/fsharp/
wget http://anonsvn.mono-project.com/source/trunk/mcs/class/mono.snk
chmod +x install-mono.sh
./install-mono.sh

Attached is a patch for compile_anything.py to compile F# submissions

Original comment by ademar.g...@gmail.com on 16 Sep 2010 at 11:24

Attachments:

GoogleCodeExporter commented 8 years ago
One issue with F# is that the order of the source files in the compile command 
matters.  I am not sure if the same thing happens in ocaml.    It may be 
necessary to warn F# users to only submit a single source file, or to be sure 
that their code compiles if the .fs files are given in alphabetical order.  (if 
that is how safeglob returns its results).

Original comment by dmj...@gmail.com on 22 Sep 2010 at 2:27

GoogleCodeExporter commented 8 years ago
@dmj111 The user could also submit a text file with the names of the files in 
the order in which they should be compiled.

Original comment by lee.d...@gmail.com on 23 Sep 2010 at 3:06