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

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

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
程式的意義
|
51
相較之下,這種大步驟實作物使用了更多的堆疊,完全依賴它來記住我們位在整個運算
的位置,在執行運算時,以較小的運算構成大運算,並且持續記錄還有多少估算要執
行。看起來像是一次呼叫
#evaluate
實際轉換成一組遞迴呼叫,而且每個都在語法樹更
深處估算子程式。
這種差異凸顯了每種作法的目的。小步語意假設了能執行小操作的簡單抽象機,也因此
包括如何產生有用的中間結果的明確細節;大步語意將組裝整個運算的負荷放在執行它
的機器或人,要求他持續追蹤許多中間的子目標,因為他以單一操作就將整個程式轉換
成最終的結果。根據我們希望以語言使用的操作語意(或許建置了有效率的實作物),
某一種或另一種作法可能更為適合。
大步語意規範真實程式語言最具影響力的使用,是標準 ML 程式語言原始定義的第 6
章(
http://www.lfcs.inf.ed.ac.uk/reports/87/ECS-LFCS-87-36/
),這裡以大步驟的風格解釋
ML 所有的執行階段行為。依照這個範例,OCaml 的核心語言是以大步語意(
http://
caml.inria.fr/pub/docs/u3-ocaml/ocaml-ml.html#htoc7
)補足它更詳細的小步驟定義。
W3C 也使用大步驟操作語意:XQuery 1.0 XPath 2.0 的規格(
http://www.w3.org/TR/
xquery-semantics/
)使用數學推理規則描述應該如何估算它的語言,而且 XQuery
XPath Full ...
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