FYI.

I have just added the following two examples:

https://github.com/ats-lang/ATS-CodeBook/tree/master/RECIPE/Hangman
https://github.com/ats-lang/ATS-CodeBook/tree/master/RECIPE/Hangman2

Hangman implements the famous word-guessing game. The user input is handled
via a linear stream, a signature feature of the style of functional 
programming in ATS.
One may compare Hangman to the following example by Ryan King:

http://ryanking.com/blog/joy-of-ats-2-a-simple-game/

which handles the user input in the traditional ML style (which is largely 
taken from C).

In Hangman2, the user input is based on a simply web service, making it 
possible for
someone to play the game remotely.

Happy programming in ATS!!!

On Tuesday, January 9, 2018 at 10:56:42 PM UTC-5, gmhwxi wrote:
>
> Hi,
>
> I have put together some code to demonstrate how to do various "practical" 
> stuff in ATS:
>
> https://github.com/ats-lang/ATS-CodeBook/
>
> This is an ongoing project and new code will be added from time to time.
>
> Functional programming done in ATS can be of quite different style from 
> that in ML or Haskell. I would
> really like to illustrate this point based on concrete examples. For 
> instance, in ReadFromSTDIN3, a LINEAR
> stream is built to handle user's input that may be interrupted by a signal 
> (SIGALRM). As far as I can tell, this
> kind of stream is unique in ATS; it provides high-level programming 
> support while being very efficient both
> time-wise and memory-wise.
>
> Also, I would really like to emphasize the use of npm-based packages for 
> constructing programs in ATS. This
> is a great way for people to share code. I will try to say more on this 
> later.
>
> Cheers,
>
> --Hongwei
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/d31e094e-d4a9-46c7-b95c-246510b78ca9%40googlegroups.com.

Reply via email to