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

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

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
第1篇
程式和機器
何謂
運算
computation
)?雖然每個人對這個字本身有不同的看法,但人人都同意的
是,當電腦讀取程式、執行該程式、讀取某些輸入,最後產生一些輸出,的確是發生了
某種類型的運算。而這也給了我們很好的起點:運算是電腦某種行為的名稱。
為了建立熟悉的運算環境,我們需要 3 項基本元素:
能執行運算的
機器
machine
編寫指令的
語言
language
),讓前項的機器能瞭解指令
以前項的語言所編寫的
程式
program
),此程式應描述前項機器應執行的正確運
所以本書這個部分的重點就是機器、語言、程式,包括它們是什麼、如何運作,它們如
何建造、研習,以及如何探索並完成實用的工作。藉由上述 3 項元素的研究,我們可以
針對運算及其運作而發展出更佳的直覺。
在第 2 章,我們將探索各種不同的方式,並詳述其意義,來設計並實作一款玩具程式語
言。瞭解語言的意義,能讓我們將活力賦予沈悶的程式碼;每一項規格技術則提供我們
執行程式的特殊策略,而我們最終將以幾種不同的方式,實作相同的語言。
我們將會看到,程式設計就是將精確定義的結構加以組裝的藝術,而機器將能分解、分
析、最後解譯所組裝的結構,進而建立運算。更重要的是,我們會發現,實作程式語言
是一件容易又有趣的事情:雖然解析、解譯、編譯看似相當嚇人,但實際參與就會發現
它們其實相當簡單而且充滿樂趣。
18
|
1
沒有機器執行的程式並無太大的用處,所以我們將在第 3 章設計非常簡單的機器,來執
行基本且寫死的任務。從這個簡陋的基礎作為起點,我們將在第 ...
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