Skip to content

Instantly share code, notes, and snippets.

View lhmouse's full-sized avatar
🚀
Behold, the bringer of light.

LIU Hao lhmouse

🚀
Behold, the bringer of light.
View GitHub Profile
@lhmouse
lhmouse / golang.md
Last active March 9, 2023 08:46
golang

English

The grammar of Go is ugly. The semantics of Go is obscure. The implementation of Go is totally Utopian and paranoid.

Go is contaminating our world like fundamentalist terrorism such that if I had a nuclear missile that could be thrown onto Plan 9 dog's heads to stop them from barking FOR GOOD I would not ever hesitate to press the launch button immediately.

Chinese (Mandarin)

Go 的语法是丑陋的。Go 的语义是阴阳怪气的。整个 Go 的实现都充满了乌托邦式的被害妄想。

@lhmouse
lhmouse / inline.md
Last active June 27, 2018 06:35
inline
No. inline type Out-of-line definition disposition Out-of-line definition linkage
1.1 GNU plain inline [1] Not emitted N/A
1.2 GNU static inline [1] Emitted only when inlining fails internal
1.3 GNU extern inline [1] Not emitted N/A
2.1 C99 plain inline [1] Not emitted N/A
2.2 C99 static inline [1] Emitted only when inlining fails internal
2.3 C99 extern inline [1] Always emitted external, strong
3.1 C++ plain inline [1] Emitted only when inlining fails external, weak [2]
3.2 C++ static inline [1] Emitted only when inlining fails internal