[Tutor] forth

Hilton Garcia Fernandes hgfernan at lsi.usp.br
Fri Mar 2 21:00:06 CET 2007


in python:

print "Hello world!"

21 bytes. 

all the best,
hilton
 
Em Sexta 02 Março 2007 16:48, Kirk Bailey escreveu:
> Hello world
>
> : helloWorld ."Hello World!;
>
> that's it.
>
> HelloWorld is now part of the language. Now if your language instance
> lets you compile it down, it will include all functions to create that
> function, and leave all others out, resulting in a executable. Mine came
> in at 263 bytes.
>
> Microsoft C came in at 47 K.
>
> to add 2+ 2:
>
> 2
> 2
> +
> .
>
> As it uses Reverse Polish Notation and is stack oriented, doing math is
> rather intresting, different, and novel. It's a novel language. VERY
> good for controllers giving you maximum program in a small device such
> as your usuall PIC chip. Really SHINES in this venue.
>
> Here's a link to wikipedia:
> http://en.wikipedia.org/wiki/Forth_(programming_language)
>
> But this is python list, so enough of comparitive languages.

-- 
Hilton Garcia Fernandes
Nucleo de Tecnologias sem Fio (NTSF) -- Wireless Technologies Team
Lab de Sistemas Integraveis Tecnologico (LSI) -- Integrable Systems Lab
Escola Politecnica (Poli) -- Engineering School
Univ S Paulo (USP)
Tel: (5511)3091-5676 (work)
    (5511)8131-5213 (mobile)
Av. Prof. Luciano Gualberto,158 trav.3 CEP 05508-900
S. Paulo -- SP -- Brazil
Pagina inicial: http://www.lsi.usp.br/~hgfernan


More information about the Tutor mailing list