The Glasgow (Glorious) Haskell Compiler is installed locally; type
ghc -helpfrom any of the solaris servers.
setenv PATH "/projects/pdebug/sml/bin:"$PATHThen you should be ready to go! The 'sml' command will start a read-eval-print loop, and prompt you with a '-' for some input (enter 'print "hello world\n"'; for an exciting start!). When you are done, use ctrl-D to quit. Running more complicated programs is a little, well, more complicated. There are web sites to help you through it. Here is a reasonable one: http://www-2.cs.cmu.edu/~petel/smlguide/smlnj.htm
;;; TO INSERT:
(setq temporary-file-directory "~/temp") ;;; or whatever you'd prefer
;; don't forget to add the directory to your load-path
(add-to-list 'load-path
"/projects/pdebug/sml/emacs/site-lisp/sml-mode")
;; make sure the mode is loaded when necessary
(add-to-list 'auto-mode-alist '("\\.s\\(ml\\|ig\\)\\'" . sml-mode))
; put this also if you feel like it (for SML/NJ's compilation manager)
(add-to-list 'completion-ignored-extensions "CM/")
;; the rest is the auto-generated autoloads
;;; (autoloads (sml-mode) "sml-mode" "sml-mode.el" (14257 57462))
;;; Generated autoloads from sml-mode.el
(autoload (quote sml-mode) "sml-mode" "\
Major mode for editing ML code.
Entry to this mode runs the hooks on sml-mode-hook.
\\{sml-mode-map}" t nil)
;;;***
;;; (autoloads (run-sml) "sml-proc" "sml-proc.el" (14257 55157))
;;; Generated autoloads from sml-proc.el
(autoload (quote run-sml) "sml-proc" "\
source /projects/pdebug/jsr14/jsr14.sh(or add to your .cshrc, etc.) Then use gjavac and gjava instead of javac and java ("g" stands for generic). There is an example using Java generics from sun (Test.java) and a hello world (GHello.java) in /projects/pdebug/jsr14/examples/.
setenv PATH "/projects/pdebug/mono/mono-0.23/bin:"$PATHYou can then execute the C# compiler as mcs and the Common Language Infrastructure runtime as mono. (If you want your code to run interpreted rather than JIT-compiled, use mint instead of mono.) For example, given the hello.cs file in /projects/pdebug/mono/examples/, we can compile and run the program as follows:
[192] stuart@emperor% mcs hello.cs Compilation succeeded [193] stuart@emperor% mono hello.exe mono:: is alive and well...(Ever run a .exe file on a Linux machine before?) Note that this is a preliminary version, so be aware that things might not work perfectly. For example, its garbage collection is said to be unreliable and is not used by default.
setenv PATH "/projects/pdebug/plt/bin:"$PATHType "mzscheme" for a text interpreter or "mzscheme -r < filename>" to run a file. There's also an IDE called "drscheme" in the same directory (/http://www.drscheme.org/); you might enjoy playing with that.
Links to downloads, documentation, and learning tools from: http://www.plt-scheme.org/software/mzscheme/
"Teach yourself Scheme in Fixnum days" may be useful to skim: http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html
alias prolog /projects/public/terra/sicstus2.1.9/sicstusthen just type prolog on any of the Solaris machines.
The prolog command will then start an interactive command line. To exit prolog, type "halt." and press enter, or press control-D. This starts an interactive command line. To load a file, use the consult predicate. For example, if I have a file called hello.pl (same extension as for perl!) with these contents:
hello :-
write('Hello world!').
Then to run the program, at the prolog prompt ("| ?-") you can type:
consult(hello). hello. halt.(Notice the periods, they are important!) There is also an emacs mode for running prolog and editing code; an elisp file is in the sicstus prolog directory. An exhaustive source of information is the SICStus prolog manual ... please note that this is for a more recent version of prolog than the one we own, but there should be very few differences. (Please don't print it out, it's big!)
This page maintained by Charlie McDowell. Email regarding this site.