Talk:Automata-based programming

message: There is no something new in Automata-based programming, introduced by Anatoly Shalyto in 1991. Some words here are just an implementation-specific issues for a general FSM article. Also, the "Switch-technology" isn't described and published at all. Automata-Based Programming is not general purpose program development methodology. This article in just another one finite state machine implementation or "Original research".
20:13, 8 September 2006 (UTC)
thread_title:  'This article in just another one finite state machine implementation or "Original research".' 

message: The links I've provided definitely show the automata-based approach to programming is well-known at least since 1993 (see the paper by Peter Naur, 1963). As of now, the article describes a technique well-known to all experienced programmers. DrCroco (talk) 10:45, 29 January 2008 (UTC)
thread_title:  Rewritten completely 

message: I like this article and don't want to change it myself.  However, I think it is a good place to point out the relationship to systems theory (or Cybernetics).  From a systems point of view a software artifact is just another system.  The recognition and use of state makes this very clear, and helps in many situations where the software artifact interacts with other artifacts such as electrical, mechanical, biological, social, or human.  The focus of this article is state as a programming paradigm, the explicit recognition of state is an interdisciplinary point of view that is sometime very useful.  Thaeick (talk) 18:31, 2 November 2009 (UTC)
thread_title:  A Software Systems Theory 

message: There are quite a few things wrong with it, but before I make a fix, I wanted to see which rewrite is preferred.  If we want it to mirror the C version, we could use this:
loop do
    c = STDIN.getc.chr
    while c =~ /\s/
        c = STDIN.getc.chr
    end
    until c =~ /\s/
        print c
        c = STDIN.getc.chr
    end
    puts
    while c != "\n"
        c = STDIN.getc.chr
    end
end
To my eyes, though, that's pretty ugly. Here's a more idiomatic Ruby example:
while gets
    word = $_.split.first
    puts word if word
end
For now, I'll use the first version. It's ugly, but it matches the intent of the example better, I think. Thoughts?  --Perimosocordiae (talk) 20:39, 29 March 2010 (UTC)
thread_title:  Provided Ruby code is wrong 

message: imperative one prints '\n' on empty files, automata-based prints nothing
something like this should work exactly as imperative one:
#include <stdio.h>
int
main(void) {
	enum states {
		before, inside, after
	} state;
	int c;
	state = before;
	do {
		c = getchar();
		switch(state) {
		case before:
			switch(c) {
			case EOF:
			case '\n':
				putchar('\n');
				break;
			case ' ':
				break;
			default:
				putchar(c);
				state = inside;
			}
			break;
		case inside:
			switch(c) {
			case EOF:
			case '\n':
				putchar('\n');
				state = before;
				break;
			case ' ':
				state = after;
				break;
			default:
				putchar(c);
			}
			break;
		case after:
			switch(c) {
			case EOF:
			case '\n':
				putchar('\n');
				state = before;
				break;
			default:
				break;
			}
                }
    } while(c != EOF);
    return 0;
}
85.222.39.194 (talk) 12:12, 28 February 2013 (UTC)
thread_title:  C examples work slighly different 

message: Hello fellow Wikipedians,
I have just modified  on Automata-based programming. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
*Added archive https://web.archive.org/web/20080202163122/http://www.cs.ucsb.edu:80/~seclab/projects/stat/index.html to http://www.cs.ucsb.edu/~seclab/projects/stat/index.html
*Added archive https://web.archive.org/web/20080318180229/http://dec.bournemouth.ac.uk:80/forth/jfar/vol7/paper1/paper.html to http://dec.bournemouth.ac.uk/forth/jfar/vol7/paper1/paper.html
When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at ).
Cheers.—InternetArchiveBot (Report bug) 05:54, 22 October 2016 (UTC)
thread_title:  External links modified 

message: Hello fellow Wikipedians,
I have just modified 2 external links on Automata-based programming. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
*Added archive https://web.archive.org/web/20080202163122/http://www.cs.ucsb.edu/~seclab/projects/stat/index.html to http://www.cs.ucsb.edu/~seclab/projects/stat/index.html
*Corrected formatting/usage for http://dec.bournemouth.ac.uk/forth/jfar/vol7/paper1/paper.html
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
Cheers.—InternetArchiveBot (Report bug) 08:24, 12 July 2017 (UTC)
thread_title:  External links modified