香港二樓書店 > 今日好書推介
|
|
|
|
- 定價64.00元
-
8
折優惠:HK$51.2
|
|
| |
|
深度探索Go語言:物件模型與runtime的原理特性及應用(好評熱銷版)
|
|
沒有庫存 訂購需時10-14天
|
|
|
|
 |
|
9786267757833 |
|
|
 |
|
封幼林 |
|
|
 |
|
深智數位
|
|
|
 |
|
2026年2月19日 |
|
|
 |
|
293.00 元 |
|
|
 |
|
HK$ 249.05
|
|
|
|
|
|
|
|
|
|
|
|
|
詳 細 資 料 |
ISBN:9786267757833</li><li>規格:平裝 / 528頁 / 23 x 17 x 2.59 cm / 普通級 / 單色印刷 / 初版</li><li>出版地:台灣 |
|
分 類 |
電腦資訊 > 程式設計 > 其他 |
|
內 容 簡 介 |
<div class="bd">
<div class="content" style="height:auto;">
<p remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}" style="text-align: center;"><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<strong><span style="color:#ff0000;">☆★☆ 好評熱銷再上市 ☆★☆</span></strong><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
</br></br>?</p>
<p remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}"><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>【書籍特點】</strong></span><br>
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● x86組合語言基礎知識,通用暫存器、常用指令,記憶體分頁<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 指標的實現原理,指標組成、相關操作,以及Go語言的unsafe套件等。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 函數、堆疊框佈局、呼叫約定、變數逃逸、Function Value、閉包、defer和panic<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 方法,實現原理,接收者類型、Method Value和組合式繼承<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 介面,Go語言動態特性,括裝箱、方法集、動態派發、類型斷言、類型系統和反射<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● goroutine實現,GMP模型、goroutine的建立與退出、排程迴圈、先佔式排程、timer、netpoller和監控執行緒<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 同步,記憶體亂數、原子指令、自旋鎖、runtime互斥鎖和訊號量、ync.Mutex、hannel<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 堆積記憶體管理,heapArena、mspan,mallocgc函數、C的三色抽象、寫入屏障<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
● 堆疊記憶體管理,goroutine堆疊的分配、增長、收縮和釋放<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>【內容簡介】</strong></span><br>
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
想要有C語言的高速和Python的便利性嗎?Go是最棒的選擇,Go語言在語言層面上支援程式碼協同(goroutine)和通道(channel),這使得併發程式設計變得非常簡單和高效。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
在多核CPU時代,高效的併發程式設計已經成為軟體開發的必備技能之一。此外Go語言的語法設計簡單清晰,注重可讀性和簡潔性,使得初學者能夠快速入門。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
Go語言的標準函數庫提供了豐富的功能,可以直接使用,避免了一些繁瑣的工作。另外在跨平臺支援方面,Go語言的編譯器可以將程式編譯成機器碼,支援跨平臺編譯,可以在不同的作業系統和硬體平臺上運行,這對於開發跨平臺應用程式非常有幫助。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
Go最有名的就是其高性能。Go語言的編譯速度非常快,生成的二進位檔案也很小,運行速度也非常快。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
Go語言在一些性能要求較高的應用領域,如Web服務、巨量資料處理、容器等方面表現出色。另外其開發效率高,Go語言在一些方面與Python、Ruby等動態語言相似,但又具有靜態語言的優點。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
Go語言的編譯器能夠在編譯期間捕捉一些錯誤,這使得程式的穩固性更高。同時,Go語言的工具鏈非常完善,如go fmt、go vet等工具可以幫助開發者規範程式,提高開發效率。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
</br></br></br></br>?</p>
</div><div class="type02_gradient" style="display:none;"></div>
</div></div><div class="mod_b type02_m057 clearfix">
<a name="AuthorP00a400020009"> </a>
|
|
目 錄 |
<div class="bd">
<div class="content more_off" id="M201105_0_getProdTextInfo_P00a400020009_h2">
<p remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}"><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第1章 組合語言基礎</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
1.1 x86通用暫存器<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
1.2 常用組合語言指令<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
1.3 記憶體分頁機制<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
1.4 組合語言程式碼風格<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
1.5 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第2章 指標</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
2.1 指標組成<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
2.2 相關操作<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
2.3 unsafe套件<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
2.4 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第3章 函數</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.1 堆疊幀<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.2 逃逸分析<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.3 Function Value<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.4 defer<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.5 panic<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
3.6 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第4章 方法</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
4.1 接收者類型<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
4.2 Method Value<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
4.3 組合式繼承<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
4.4 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第5章 介面</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
5.1 空介面<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
5.2 不可為空介面<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
5.3 類型斷言<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
5.4 反射<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
5.5 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第6章 goroutine</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.1 處理程序、執行緒與程式碼協同<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.2 IO多工<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.3 巧妙結合<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.4 GMP模型<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.5 GMP主要資料結構<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.6 排程器初始化<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.7 G的建立與退出<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.8 排程迴圈<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.9 先佔式排程<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.10 timer<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.11 netpoller<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.12 監控執行緒<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
6.13 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第7章 同步</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
7.1 Happens Before<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
7.2 記憶體亂數<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
7.3 常見的鎖<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
7.4 Go語言的同步<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
7.5 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第8章 堆積</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
8.1 記憶體分配<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
8.2 垃圾回收<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
8.3 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<span style="color:#0000ff;"><strong>第9章 堆疊</strong></span><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
9.1 堆疊分配<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
9.2 堆疊增長<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
9.3 堆疊收縮<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
9.4 堆疊釋放<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
9.5 本章小結<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
</br></br></br></br>?</p>
</div> |
|
| 序 |
<div class="bd">
<div class="content more_off" id="M201105_0_getProdTextInfo_P00a400020009_h3">
<p remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}"><br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
近幾年來,Go 語言作為一門伺服器端開發語言越來越受歡迎,簡潔易學的語法加上天生的高併發支持,還有日益完整的社區,讓很多網際網路公司開始轉向Go 語言。隨著Go 語言生態日趨成熟,各種元件框架如雨後春筍般湧現,市面上相關的書籍也多了起來,但是其中大部分是以應用為主,對於語言特性本身探索一般不太深入。筆者希望能夠有一本講解語言特性及實現原理的書,這也是寫作本書的動機。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
?<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
筆者當年剛工作的時候,使用的第一門開發語言是C++。雖然之前在學校用過C 語言和組合語言,但在接觸到C++ 的一些物件導向特性時還是困惑了很久。直到有一天發現了《深度探索C++ 對象模型》,作者Stanley Lippman 當年在貝爾實驗室工作,是世界上第1 個C++ 編譯器——cfront 的實現者,他從一個語言實現者的高度,對一些關鍵特性的實現原理及其背後的思考進行了詳細闡述,使筆者受益匪淺。後來因為工作的原因,筆者開始使用Go 語言,因為有了C/C++ 相關的基礎,所以學習起來更加高效。尤其是當年學習C++ 物件模型,讓筆者意識到語言特性也是透過資料結構和程式實現的,所以就按照自己的方式一邊學習一邊探索。第一次萌生要寫點東西的念頭是在替從PHP 轉Go 語言的妻子講完介面動態派發的實現原理後,用她的話來講就是有種豁然開朗的感覺,並鼓勵筆者把這些東西整理一下。後來我們就在微信公眾號上以幼麟實驗室的名義發佈了一系列視訊和文章,主要分析語言特性的底層實現。在一年多的時間裡,幼麟實驗室受到了廣大網友的好評與支持,清華大學出版社的趙佳霓編輯也是在此期間聯繫了筆者,希望筆者能夠把自己的探索研究整理成書。因為寫作本書的關係,讓筆者能夠更系統地思考,收穫頗多。希望本書能夠幫助各位讀者,解決大家學習Go 語言中遇到的一些困惑。<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
<br remove="function(b){var a=this.indexOf(b);if(a!=-1){this.splice(a,1)}return this}">
</br></br></br></br>?</p>
</div> |
|
|
書 評 |
|
|
|
|