|
|
I heard talk once of a "computer languages" item being entered here, as a joke. In other words, people would try to communicate with each other in computer languages. It never happened. In order to get the ball rolling, your fairwitness hereby issues a *dare*: I challenge you to start such an item. (If nothing else, it could launch an interesting discussion on the differences between natural and artificial languages.)
19 responses total.
main()
{
printf("Can we use this item as the\n");
printf("computer languages item? In any case,\n");
printf("I'm glad Jennie entered this.\n");
printf("It'll give me a chance to show off.\n");
printf("My knowledge of computer languages.\n");
}
10 for x = 1 to 50 20 Print "Way Cool !!!" 30 next x 40 end 50 rem basicly that's all.
10 print " Um... 20 goto 10
Or, for those of you who want to automate your meditiation: 10 PRINT "OM" 20 GOTO 10
wont #3 give a syntax (they tax everything these days) error. no closing quote. :)
Some BASICs may assume a closing quote at end of line if you don't type one in.
Amiga Basic does not even require line numbers. :)
That was a smidgen of code from my college days, when BASIC was the only choice, and there was no need to close quotes. We used punched cards half of the time, the other half cassete tapes and a PET. My, those were the days.
: WOW
0 10 LOOP + DO
." I might join the crowd ."
END ;
A very forthright response, in my opinion.
Your idea is interesting. I found something related with the subject in a book of Umberto Eco: The Foucault's Pendulum. In the book, there is a program called Abulafia, that request words in groups like adjectives, nouns and verbs. Then the program mixed the word randomly[D[D[D[D[D[D[D[D[D[D[D[D[De words randomly but following the rules of grammar. So, it could generate correct sentences and the main character tried to give them a mystical significance. By the way, if the Creation was an act of God expressed with words, there is a relationship between the program and Its Will, don't you think?
There are real computer programs designed to mock intelligent English speech (I don't know about Spanish, but I wouldn't be surprised). Elisa, the psychoanalyst, is probably one of the oldest. ( Btw, buendia, the arrow keys will not edit on Grex very well. that's what caused the repeated [D in your post. You must use backspace, which should generate the proper character, ^h or ^? usually, to erase one character. If this doesn't work for you, send me email. If you want to edit back farther than the current line, you can drop into an editor. There are some that are easy to learn. ) #11 revives an item that was 3.5 years old. Time for everyone to go back asnd re-read it. :-) Some of the original participants may be gone.
program FUBAR;
var response: char;
begin
repeat
writeln('Does anyone here have a working knowledge of Pascal?');
readln(response);
if response = n then
writeln('Next.')
else writeln('Huh?');
until response = y;
writeln('Great! You can help me with my CS class!');
end.
{Note: I am not a CS major so if there is something wrong with this code}
{please be understanding ;) Thank you for your time.}
This response has been erased.
100 'childish argument 110 a$(1)="not":a$(2)="so" 120 i=1 130 print "Did ";a$(i);"!" 140 i=3-i 150 goto 130
#!/bin/bash
#I prefer DOS batch files or Visual Basic but can't remember the syntax.
echo "Hello, world!"
echo '#!/bin/bash^Mecho "Hello again!"' > /tmp/bang$$
for xx in {1,2,3}{1,2,3}
do
/tmp/bang$$
done
exec /tmp/bang$$
#We should be done by now!
.
help
quit
whoa ! i used to use DOS a lot
Nous tous avons nos croix à porter.
echo Hello world forever! %0
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss