or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
從原始碼看 Go 語言的併發與排程實現 - 李根逸
由於場地問題,第二天我們移動到另一棟大樓啦!議程教室變動請見網站上的議程表。
歡迎來到 https://hackmd.io/@coscup/2019 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。
投影片在這裡
帶您讀源碼
擔心連 golang 都沒用過,所以從 golang 開始看
執行流程
go routine
在函式前面加
go
不會等待函式回傳
使用 goroutine 時發生的非同步問題
離開 main 即結束程式
解法:讓子彈飛一會
time.sleep(1)
怎麼知道到底會發什麼事?
go 語言到底保證了什麼?
是不是每次結果都一樣?
回去看 spec 文件只有出現 15 次
goroutine
,有說等於沒說??為什麼不多說點Goolge 一番說法和細節也有點不同?
今天一般提到 Go 或 Golang
不單單只是指這個語言本身
甚至是指特定的「實作」和工具鏈
知道實作方式對我的人生有幫助嗎?
最佳化? 安全感? 出事時比較有靈感? 跟專家學習! 了解語言的靈魂?
時代會變,但是精神永存
語言規格文件:保證時間較長
標準庫文件:期待不會時常改版
實作(編譯器)
golang 專案目前大部分是是用 go 寫的
回到程式的進入點
src/runtime/rt0_darwin_amd64
https://feis.studio
tags:
COSCUP2019
Other OSS Topics
IB304