aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Recherche




Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
296 Abonnés
Webmaster - Infos
Visites

   visiteurs

   visiteurs en ligne

StatPays
En ligne

Colombia : 5
China : 5
Russian Federation : 2
United States : 5
Germany : 1
Japan : 2



Depuis le 11/02/2009

France:3249203
United States:1011336
United Kingdom:527623
Germany:290500
Italy:246121
Canada:178547
Belgium:163583
Japan:124718
Spain:102914
Russian Federation:91119
Switzerland:84533
Netherlands:83691
Mexico:76530
Brazil:66571
Argentina:59224
Czech Republic:51446
Poland:48950
Morocco:47300
China:44312
Colombia:39938
Hungary:38976
Turkey:35325
Australia:35066
Portugal:28839
Sweden:26584
Austria:23412
Taiwan:21649
Finland:20429
Denmark:20080
Venezuela:15533
India:13399
Romania:12813
Korea:11691
Greece:11424
Norway:11118
New Zealand:10788
Chile:10575
Luxembourg:10288
Slovakia:8642
Croatia:8271
Ireland:8085
Ukraine:8065
Indonesia:8016
Malaysia:7445
South Africa:6413
Uruguay:6370
Singapore:6222
Israel:5713
Peru:5160
Estonia:4555
Bulgaria:4407
Thailand:4204
Lithuania:4109
Cote D'Ivoire:3026
Madagascar:2920
New Caledonia:2580
Gibraltar:2569
Belarus:2187
Hong Kong:2146
French Polynesia:2145
Dominican Republic:1720
Philippines:1635
Saudi Arabia:1615
Latvia:1519
Serbia and Montenegro:1518
Pakistan:1487
Moldova:1444
Algeria:1412
United Arab Emirates:1370
Guatemala:1295
Slovenia:1253
Ecuador:1232
Bosnia and Herzegovina:987
Costa Rica:956
Tuvalu:924
Vietnam:915
Monaco:871
Paraguay:807
Egypt:786
Macedonia:541
Bolivia:499
Nicaragua:446
Guadeloupe:435
Cyprus:403
GoogleBot:398
Lebanon:372
Honduras:361
Cuba:361
Netherlands Antilles:351
Kazakstan:345
Syrian Arab Republic:287
Jordan:276
Mauritius:244
Albania:234
Kenya:234
Andorra:223
Ghana:223
Nepal:212
Georgia:202
Reunion:191
Mozambique:180
Congo:180
Uzbekistan:25
Jamaica:2
Zimbabwe:1
Iran:1
Trinidad and Tobago:
article.gifIII. Gratuitiels Palm - 10. iHeadAche

iHeadAche

  • Version : 1.1 (Septembre 2007)
  • Gratuitiel pour :
  • Langue :
  • Ecran :
  • Fichier téléchargeable : iheadache.zip (91 Ko)

iHeadAche est un autre de mes petits exercices de style, le développement d'un interpréteur BrainF*ck pour Palm en utilisant iziBasic.



Qu'est ce que iHeadAche ?

Note : la population concernée par ce genre de "joujou" étant principalement la communauté des développeurs, la langue usuelle de travail de cette communauté étant l'anglais, je vous prie de bien vouloir me pardonner de ne pas avoir pris le soin de traduire en français le reste de cette page (mais si quelqu'un souhaite le faire, il sera le bienvenu !).


iHeadAche is an interpreter for the BrainF*ck esoteric language.
iHeadAche can also convert a BrainF*ck source code to an iziBasic source code for being then compiled with iziBasic.

iHeadAche was itself written in iziBasic for Palm.
Its source code is to be found in the ZIP file you downloaded (please read the Installing iHeadAche paragraph).


BrainF*ck

BrainF*ck was created by Urban Mueller for the Amiga OS 2.0, and he wrote an assembler compiler which was only 240 bytes long!
This tiny language has only 8 instructions (yes, only 8!) but it still is Turing complete, meaning that any computable calculation can be computed using it.

The BrainF*ck operators are:
<decrements the pointer
>increments the pointer
+ increments the pointed byte
-decrements the pointed byte
.outputs the pointed byte
,reads a byte from the input and stores it at pointed byte
[jumps to matching ] if the pointed byte is null
]jumps to matching [ if the pointed byte is not null
Note: bytes (8 bits integers) can be replaced by 16 bits integers as an option in iHeadAche

Knowing this, the BrainF*ck source code for the classical 'Hello World' sample program, which does nothing else but to display 'Hello World' on the screen, is:
++++++++[>+++++++++<-]>.<+++++[>++++++<-]>-.+++++++..+++.<++++++++[>>++++<<-]>>.<<++++[>------<-]>.<++++[>++++++<-]>.+++.------.--------.>+.
This seems quite weird... But, do not be afraid by this first feeling, please read below!

Plenty of resources and web sites made by people who like BrainF*ck a lot (yes, this is possible!) are easily found on the internet. Just type in "brainfuck" (Drat it! I wrote it replacing the * character by the u letter!) in the search field of any search engine and you will be amazed by the number of returned links...

Here below are just a few recommended links:

Link #1: http://home.planet.nl/~faase009/Ha_BF.html
Nieko Maatjes wrote back in 2002 what I believe to be the best tutorial for the BrainF*ck language, a must read.

Link #2: http://www.hevanet.com/cristofd/brainfuck/
Daniel Cristofani has a great collection of sample source codes, including a BrainF*ck interpreter written in BrainF*ck... amazing!), and plenty of other useful resources & links.

And, if you do not like my iHeadAche implementation, you will find not less than 2 other implementations of BrainF*ck running on the Palm devices (BrainF*ck is a so called esoteric development language but, as you can see, it is well widespread):
IDE Palm #1: http://arainyday.se/projects/palm/BFEdit/
IDE Palm #2: http://www.chocopoolp.com/go_freeware.php (this one by a good French friend of mine)


Updates Description

1.1 (09/17/07)
- recompiled this program with the latest iziBasic version 6.1 to avoid device freezes or soft resets on some devices
- changed the applications's name from iBrainF*ck to iHeadAche to bypass some American referencing site's prudish censorship!

1.0 (05/24/06)
- initial release

Date de création : 25/05/2006 @ 22:30
Dernière modification : 26/09/2007 @ 11:42
Catégorie : III. Gratuitiels Palm


Imprimer l'article Imprimer l'article

 
react.gifRéactions à cet article

Personne n'a encore laissé de commentaire.
Soyez donc le premier !

 
Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Sites web de la famille

News Amis
Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
^ Haut ^