Programming principles
The so-called cross-platform means that the program can be executed on different platforms without processing. The term "Platform" has many definitions.
The book refers to the combination of operating systems and hardware (processors.
Programs Written in compiled languages must first be compiled into machine code. Machine code is closely related to the underlying platform
Programs Written in compiled languages cannot be cross-platform (that is, they cannot be executed on different platforms ).
Bytes
Interpreted language is easy to cross-platform, because its executable code is the source code (no need to compile), so there is no
There are platform-related parts. Whether the platform is Microsoft PC (Windows + Intel) or Apple Mac (Mac OS X +
Intel), Android phones (Android + arm), or other platforms, as long as there is a corresponding interpreter on the platform
The program written in interpreted language can be successfully executed.
Bytes
The language used in this book is REBOL, which is the simplest syntax language. Only a few rules must be recorded, so it is quite suitable.
Beginners. But REBOL is not a toy. It is a very useful tool with powerful power and can do a lot of practical things. While
And REBOL
There are many innovative practices that can surprise other programming language veterans. Simple, practical, and innovative
For a reason, let me select REBOL as the main character of this programming book.
REBOL
It is an interpreted language. Programs Written in the REBOL language cannot run immediately and must be interpreted by the REBOL language.
. REBOL
The interpreter is like a interpreter who helps us translate the REBOL program into a platform that can understand it.
. Without the REBOL interpreter, our REBOL program cannot run, so we must prepare it in the computer.
One REBOL
Interpreter.
You can download the REBOL interpreter at www.rebol.com for free. Currently, the REBOL interpreter has two major versions:
Is 2.7.8.
Version. One is version 3.0. This book uses the latest 3.0 version.
Please also pay attention to a new language named red, which is an open version of the REBOL language. The URL is in www. Red-lang.
Org.
Bytes
Visit http://www.rebol.com/r3/downloads.html in a browser to download
REBOL
Interpreter. If your operating system is Windows, you can download r3-a111-3-1.exe. For example:
If your OS is Mac OS X, you can download r3-a111-2-5.tar.gz. A111 was published in this book
REBOL
The latest version. When you read this book, use the latest version if you have an updated version of the REBOL interpreter.
To speed up the download, some files are compressed to provide download. If the extension name of the downloaded file is .gz or
. Zip indicates that the file is in a compressed format. After downloading the file, there is another decompression step. The decompression method is simple.
Double-click the icon to decompress the package to a new folder. The file in the new folder is the REBOL interpreter.
You can rename the decompressed REBOL interpreter file and give it a concise and clear name (for example, rebol3),
The original extension name (for example, .exe) remains unchanged. You can create a REBOL home directory under the "user" directory,
Specially placed REBOL
Related Files. Take me as an example. In Windows, the REBOL home directory is c: \ Users \ Jerry \
REBOL. The REBOL home directory on Apple Mac OS X is/users/Jerry/REBOL.
Finally, the downloaded (and decompressed) REBOL
Copy the executable file to the REBOL home directory.
This article is excerpted from "programming ing: everyone can learn programming ".
Dr. Cai
Published by Electronic Industry Publishing House
Book details: http://blog.csdn.net/broadview2006/article/details/7768124