手机APP下载

您现在的位置: 首页 > 行业英语 > 计算机英语 > 计算机专业英语教程 > 正文

计算机专业英语教程第2版 第18期:程序设计语言介绍

来源:可可英语 编辑:clover   可可英语APP下载 |  可可官方微信:ikekenet

A programming language is a defined set of instructions that are used to make a computer perform a specific task. Written using a defined vocabulary the programming language is either complied or interpreted by the computer into the machine language that is understood by the processor.

程序设计语言是用来使得计算机完成特定任务的一系列指令。使用专用词汇的程序设计语言,被计算机编译或解释成处理器可以识别的机器语言。
There are several types of programming languages, the most common are:

常用的程序设计语言类型如下:

High-level Languages-these are written using terms and vocabulary that can be understood and written in a similar manner to human language. They are called high-level languages because they remove many of the complexities involved in the raw machine language that computers understand. The main advantage of high-level languages over low-level languages is that they are easier to read, write, and maintain. All high-level languages must be compiled at some stage into machine language. The first high-level programming languages were designed in the 1950s. Now there are dozens of different languages, including BASIC, COBOL, C, C++, FORTRAN and Pascal.
高级语言——使用接近人类语言的短语、词汇和书写方式。之所以被称为高级语言,是因为它们去除了计算机所能理解的原始机器语言所包括的复杂性。高级语言相对于低级语言的主要优点是它们易于读写和维护。所有高级语言都要在某种程度上翻译成机器讲言。最早的高级语言大约出现于20世纪50年代。现在有很多种高级语言,包括BASIC、COBOL、C、C++、FORTRAN 和 Pascal 等。
Scripting Languages-like high-level languages, scripting languages are written in manner similar to human language. Generally, scripting languages are easier to write than high-level languages and are interpreted rather compiled into machine language. Scripting languages, which can be embedded within HTML, commonly are used to add functionality to a Web page, such as different menu styles or graphic displays, or to serve dynamic advertisements. These types of languages are client-side scripting languages, affecting the data that the end user sees in a browser window. Other scripting languages are server-side scripting languages that manipulate the data, usually in a database, on the server. Scripting languages came about largely because of the development of the Internet as a communications tool. Some examples of scripting languages include VBScript, JavaScript, ASP and Perl.
脚本语言——类似于高级语言,脚本语言用与人类语言相似的方式书写。一般来说,用脚本语言比用高级语言更容易编程,并且脚本语言采用解释方式而不是编译方式转换成机器语言。脚本语言可以被嵌入HTML,经常被用来在网页中添加功能,例如不同的菜单风格或图形显示或动态广告。这种类型的语言是客户端脚本语言,影响终端用户在浏览器窗口看到的数据。另一种是服务器端的脚本语言,操作服务器端数据库中的数据。脚本语言产生的很大原因是通信工具Internet的发展。脚语言的例子包括VBScript、JavaScript、 ASP 和 Perl。
Assembly Language-assembly language is as close as possible to writing directly in machine language. Due to the low level nature of assembly language, it is tied directly to the type of processor and a program written for one type of CPU generally will not run on another.
汇编语言——汇编语言尽可能的接近机器语言。由于汇编语言的低级特性,它和处理器的类型密切相关,在一种CPU类型上编写的程序一般不能在另一种类型上运行。
Machine language—The lowest-level programming language. Machine languages are the only languages understood by computers. While easily understood by computers, machine languages are almost impossible for humans to use because they consist entirely of numbers. Programmers, therefore, use either a high-level programming language or an assembly language. An assembly language contains the same instructions as a machine language, but the instructions and variables have names instead of being just numbers.
机器语言——最低级的编程语言。机器语言是惟一能直接被计算机识别的语言。易于被计算机理解的同时,机器语言几乎不能被人类使用,因为它们完全由数字组成。所以程序员使用高级语言或汇编讲言。汇编语言的指令与机器语言对应,但是汇编语言中的指令或变量用名字表示而不是数字表示。
Programs written in high-level languages are translated into assembly language or machine language by a compiler. Assembly language programs are translated into machine language by a program called an assembler.
用高级语言编写的程序要通过编译器翻译成汇编语言或机器语言。汇编语言的程序通过汇编程序翻译成机器语言。
Every CPU has its own unique machine language. Programs must be rewritten or recompiled, therefore, to run on different types of computers.
每种CPU有自己专用的机器讲言。当用于不同类型的计算机时,程序需要重写或重新编译。
For now, let's talk about some high level languages very briefly, which are used by professional programmers in the current mainstream software industry.
下面简要介绍几种主流软件工业中专业程序员采用的高级语言:
C:This is probably the most widely-used, and definitely the oldest, of the three languages I mentioned. It's been in use since the 70s, and is a very compact (i.e. not much "vocabulary" to learn), powerful and well-understood language.
C:这可能是提到的三种语言中应用最广最久的一种语言。从20世纪70年代开始应用,是一种紧凑(即不需要学习太多词汇)、功能强并且易于理解的语言。
C++:This language is a superset of C (that just means that it's C with more stuff added; it's more than C, and includes pretty much all of C). Its main benefit over C is that it's object oriented. The key point is that object oriented languages are more modern, and using object oriented languages is the way things are done now in the programming world. So C++ is most definitely the second-most used language after C, and may soon become the most used language.
C++:这种语言是C的超集(也就是说,是C的扩充,比C增加了很多,包括C的全部)。C++相对于C的主要优点是面向对象。关键的一点是面向对象的语言更更现代化,使用该语言是当今程序世界处理事务的方式所以C++无疑是应用广泛度仅次于C的语言,并且很快会成为应用最为广泛的语言。
Java: Java has a benefit which other programming languages lack: it's cross-platform. It means that it runs on more than one platform without needing to be recompiled. A platform is just a particular type of computer system, like Windows or Mac OS or Linux. Normally, if you wanted to use the same program on a different platform from the one it was written on, you'd have to recompile it-you'd have to compile a different version for each different platform. Sometimes, you'd also need to change some of your code to suit the new platform. This probably isn't surprising, since the different platforms work differently, and look different.
Java: Java有一个别的语言所没有的优点:它是跨平台的。也就是说,它不需要重新编译就可以运行于多个平台。一个平台就是一种计算机系统的类型,比如Windows、Mac OS或 Linux, 一般来说,如果你在一个平台上编写了程序,想到另一个平台上去运行,需要重新编译——你需耑要为不同的平台编译不同的版本。有时候,你还需要更改代码以适应新的平台。这也许不奇怪,因为不同的平台工作不同,并且外观也不同。
Java has another advantage that it runs inside web browsers, letting programmers create little applications which can run on web sites. However, Java also has a disadvantage, which is almost as serious: it's slow. Java achieves its cross-platform trick by putting what is essentially a big program on your computer which pretends to be a little computer all of its own. The Java runs inside this "virtual machine", which runs on whatever platform you're using (like Windows or Mac OS). Because of this extra layer between the program and the computer's processor chip, Java is slower than a program written and compiled natively for the same platform. Anyway, as the Internet develops, Java will be used more widely.
Java还有一个优点,就是可以运行于Web浏览器,使程序员创建能够运行在Web站点的小的成用程序。但是,Java也有缺点,并且很严重,就是它速度慢。Java得到跨平台性是通过在计算机上放置一个木质上的大程序,这使得它好像有自己的计算机。Java运行于这个虚拟机中,而虚拟机运行于任何一种平台(像Windows或Mac OS)上。因为在程序和计算机之间又附加了这么一层,Java的运行比在该平台上编写并编译的程序慢。无论如何,随着Internet的发展,Java会得到史多的应用。

重点单词   查看全部解释    
manipulate [mə'nipjuleit]

想一想再看

vt. 操纵,操作,控制,利用,(巧妙地)处理,篡改

联想记忆
disadvantage [.disəd'væntidʒ]

想一想再看

n. 不利,不利条件,损害,损失

 
compile [kəm'pail]

想一想再看

vt. 编译,编纂

联想记忆
layer ['leiə]

想一想再看

n. 层
vi. 分层
vt. 将某

联想记忆
code [kəud]

想一想再看

n. 码,密码,法规,准则
vt. 把 ...

 
essentially [i'senʃəli]

想一想再看

adv. 本质上,本来

 
benefit ['benifit]

想一想再看

n. 利益,津贴,保险金,义卖,义演
vt.

联想记忆
specific [spi'sifik]

想一想再看

adj. 特殊的,明确的,具有特效的
n. 特

联想记忆
particular [pə'tikjulə]

想一想再看

adj. 特殊的,特别的,特定的,挑剔的
n.

联想记忆
dynamic [dai'næmik]

想一想再看

adj. 动态的,动力的,有活力的
n. 动力

 

发布评论我来说2句

    最新文章

    可可英语官方微信(微信号:ikekenet)

    每天向大家推送短小精悍的英语学习资料.

    添加方式1.扫描上方可可官方微信二维码。
    添加方式2.搜索微信号ikekenet添加即可。