Skip to Content
深入理解運算原理|從簡單的機器到無所不能的程式
book

深入理解運算原理|從簡單的機器到無所不能的程式

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
20
|
2
意義的『意義』
語言學裡的
語意學
semantic
)專門在研究字詞及其意義之間的關聯,例如:『狗』這
個字是頁面上外形的約定,或者是某人聲帶造成的一組空氣震動;這些與實際的狗或一
般對狗的想法截然不同。語意關注的是這些具體的意符如何關聯到它們的抽象意義及抽
象意義本身的基本性質。
在電腦科學的領域,
形式語意
formal semantic
)涉及的是程式難以捉摸之意的尋求之
道,以及利用它們發現或證明程式語言的趣事。形式語意的用途廣泛,從像是指定新語
言和設計編譯器最佳化的具體應用,一直到諸如建構程式正確性的數學證明的抽象概
念。
要完全具體詳述某種程式語言,我們需要提供兩件事:一是描述程式外觀的
語法
syntax
),再者是描述程式意義的語意
1
許多語言並沒有官方的書面規格,只有能運作的直譯器或編譯器。Ruby 本身就屬於這
種『源自實作物的規格』(specification by implementation)的類型:雖然有很多 Ruby
應該如何運作的書籍和教程,但這些資訊的最終來源都是 Matz Ruby Interpreter
MRI,譯註:Matz Ruby 的原始創造者),這是 Ruby 的參考實作物。如果有任
Ruby 文件的隻字片語不同意 MRI 實際的行為,這份就是錯的文件。諸如 JRuby
RubiniusMacRuby 之類的第三方 Ruby 實作物都必須竭力且完全模仿 MRI 的行為,
這樣它們才敢聲稱與 Ruby 語言相容。其他像是 PHP
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JSON實務手冊

JSON實務手冊

Tom Marrs

Publisher Resources

ISBN: 9789864766000