profile
viewpoint
chai2010 chai2010 Wuhan, China, 中国光谷 https://xiaozhuanlan.com/chai2010 《Go语言高级编程》《WebAssembly标准入门》均已上架,欢迎购买

chai2010/advanced-go-programming-book 12138

:books: 《Go语言高级编程》开源图书,涵盖CGO、Go汇编语言、RPC实现、Protobuf插件实现、Web框架实现、分布式系统等高阶主题(完稿)

3dgen/cppwasm-book 773

:books: WebAssembly friendly programming with C/C++ -- Emscripten practice

chai2010/awesome-go-zh 755

:books: Go资源精选中文版(含中文图书大全)

chai2010/awesome-wasm-zh 733

WebAssembly(wasm)资源精选(拒绝大杂烩)

chai2010/awesome-dart-zh 286

Dart/Flutter资料精选中文版

chai2010/base60 28

base60: 天干地支编码: 乙丑癸巳甲寅己亥丁卯甲申丁未甲午己巳

chai2010/cgo 23

golang cgo helper

chai2010/bpg 19

BPG decoder for Go (Zero Dependencies).

chai2010/cache 11

LevelDB style LRU cache for Go, support non GC object.

chai2010/calculator 11

基于flex&goyacc实现的计算器

PR opened handshake-org/hs-miner

fix todo cudaFree
+2 -3

0 comment

1 changed file

pr created time in 5 days

push eventchai2010/hs-miner

chai2010

commit sha 04d31182f3a157fd4788ad9f1a40eed70cbf12f9

fix todo cudaFree

view details

push time in 5 days

fork chai2010/hs-miner

Mining infrastructure for handshake

fork in 5 days

startedhandshake-org/hs-miner

started time in 5 days

startedhandshake-org/hs-airdrop

started time in 6 days

startedhandshake-org/hs-tree-data

started time in 7 days

startedrxi/log.c

started time in 10 days

startedxmrMiner/xmrMiner

started time in 11 days

push eventchai2010/xmc-builder

chai2010

commit sha 24d4bcc23830b8f02ffa5967ca6d6f16e405a787

cuda base 10.2-devel-ubuntu16.04

view details

push time in 12 days

push eventchai2010/xmc-builder

chai2010

commit sha 7a1075fe751712374ed550bf251b1faf27fac254

基于cuda

view details

push time in 12 days

startedcinemast/libjson-rpc-cpp

started time in 14 days

pull request commentchai2010/advanced-go-programming-book

Update ch4-05-grpc-hack.md

thx

crcms

comment created time in 14 days

push eventchai2010/advanced-go-programming-book

simon

commit sha 5ef2ab0139ffeba43cb3195393cc9e1a3af6fe79

Update ch4-05-grpc-hack.md Word modification

view details

simon

commit sha b396f5bc463b47dc5f504d50348c5721eacd7074

Update ch4-05-grpc-hack.md Append word modification

view details

chai2010

commit sha 73da73e5851b22b50540b59631570b65043b552d

Merge pull request #493 from crcms/master Update ch4-05-grpc-hack.md

view details

push time in 14 days

issue commentchai2010/advanced-go-programming-book

图 3-13 函数调用参数布局

local0和local1是什么顺序,其实和语言实现有关,怎么排列甚至优化成常量都可以。文中的类比是让大家更好理解,展示的是一种和参数布局一样规则的可能的实现。因为参数先出现的是小地址,而参数也是类似局部变量的,可以类比出局部变量先出现的也是小地址(当然,这个结论不成立)。

读者能发现这个问题,说明在思考底层实现的细节,这是很赞的。我只给一个建议,在通过看汇编理解了实现的细节后,需要反思为何要这样实现,是否可以不这样实现,实现和设计有何关系等问题。

感谢指出,这个本来就不是严格的结论,因此书中说的比较模糊,这是刻意的。 我们要以一种最低的规则,拟合出一种可能的并易于理解的实现原理。

Mutated1994

comment created time in 17 days

PR opened wasmerio/go-ext-wasm

fix build for go1.14beta1 on macOS
+1 -1

0 comment

1 changed file

pr created time in a month

push eventchai2010/go-ext-wasm

chai2010

commit sha b9a68ea8ddd190a2ba8f28635daf11d155a5feb2

fix build for go1.14beta1 on macOS

view details

push time in a month

startedelementary/terminal

started time in a month

fork chai2010/CLI11

CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.

https://cliutils.github.io/CLI11/book/

fork in a month

startedCLIUtils/CLI11

started time in a month

fork chai2010/fmt

A modern formatting library

https://fmt.dev

fork in a month

startedfmtlib/fmt

started time in a month

startedmicrosoft/verona

started time in a month

issue openedchai2010/advanced-go-programming-book

ch3: cpu特性探测

https://godoc.org/golang.org/x/sys/cpu

created time in a month

startedWebAssembly/WASI

started time in 2 months

push eventchai2010/hello-rust-wasm

chai2010

commit sha 0922ffab21ae82a8a60fc6bb46a5ea579aa32127

zz

view details

push time in 2 months

push eventchai2010/hello-rust-wasm

chai2010

commit sha e4d1e083f5a57ecfe993e0174cdf8a9a3a8f2bdd

zz

view details

push time in 2 months

create barnchchai2010/hello-rust-wasm

branch : master

created branch time in 2 months

created repositorychai2010/hello-rust-wasm

hello-rust-wasm

created time in 2 months

startedalexcrichton/rust-ffi-examples

started time in 2 months

issue commentchai2010/advanced-go-programming-book

1.5.3 关于 Goroutine内语句的执行顺序

A这个人计划完成a和b两个任务,A也作为明年的工作计划报告给领导B了。 但是人算不如天算,中间A虽然先完成a再完成b,但是提交任的时候b先提交成功了(因为网络和各种狗血的因素),因此领导看到的是b先完成了。 当然,在明年年终总结时,A会说按照计划完成了a和b任务。

但是,没有到明年年终之前,领导B偷偷发现A的b已经完成,就私下推导A的a任务状态已经完结。 肯定是不合适的。

PS:改卷的时候,老师会根据学生的答题顺序给分吗?

chenjinya

comment created time in 2 months

issue commentchai2010/advanced-go-programming-book

1.4.2 方法 加入关于结构体继承顺位的说明

本书的定位是Go圣经的补充,而且也不可能覆盖全部的细节(那种属于参考手册),本书也不希望重复很多雷同话题。 鱼和熊掌不可兼得,语言的设计是特性的取舍和平衡,写书也一样

chenjinya

comment created time in 2 months

issue commentchai2010/advanced-go-programming-book

ch 1.1 在Go语言中,函数参数都是以复制的方式(不支持以引用的方式)传递

调用haha的参数是&s&s作为调用参数是无法在haha函数内部被修改的。或者说函数内部的对c本身的修改不会返回到调用者的&s.

chenjinya

comment created time in 2 months

issue closedchai2010/advanced-go-programming-book

1.4.3 接口

1.4.3 最后一句话,”Go语言通过几种简单特性的组合,就轻易就实现了鸭子面向对象和虚拟继承等高级特性,真的是不可思议。“

”鸭子“在这里出现是什么意思?!要么删除这个词也是合理的。

closed time in 2 months

anxinyf

push eventchai2010/xmc-builder

chai2010

commit sha e0adfc24be6a154f167d3175c563d0ec06409258

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha a56855f4986857fa32150e7fa678e899404db8aa

apt-get install ocl-icd-opencl-dev

view details

push time in 2 months

startedEquim-chan/cryptonight

started time in 2 months

issue openedgolang/go

cmd/go: how to use the git tag for the mod version?

$ go version
go version go1.14beta1 darwin/amd64

$ git clone https://github.com/chai2010/fuckgomod.git
$ cd fuckgomod
$ git checkout v0.0.3

$ go build
$ go version -m ./fuckgomod 
./fuckgomod: go1.14beta1
	path	github.com/chai2010/fuckgomod
	mod	github.com/chai2010/fuckgomod	(devel)	
	dep	github.com/golang/glog	v0.0.0-20160126235308-23def4e6c14b	h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
$ 

mod version is (devel):

	mod	github.com/chai2010/fuckgomod	(devel)	

https://github.com/chai2010/fuckgomod

created time in 2 months

issue commentchai2010/gopherchina2018-cgo-talk

windows下使用报错

之前是在 mingw(tdm-gcc)环境测试的。Cygwin64环境需要换成相应的函数名字

wangyiran125

comment created time in 2 months

issue commentchai2010/advanced-go-programming-book

1.4.3 接口

鸭子类型是一个技术术语,代表了和class不同的面向对象的设计哲学。 鸭子类型完整的说法是:走起来、叫起来都像鸭子,那么这个家伙就是鸭子。 特别的,在鸭子类型中,一个对象即可以是鸭子,又可以是地鼠或其它很多它可以魔法的对象;但是在class模式中一个对象就只能是一种class。

PS: 鸭子类型和画画思路很像,画的像鸭子就是鸭子。但是class思维的人会觉得画出来的鸭子不是真鸭子(因为不是从鸭蛋孵化来的)。

anxinyf

comment created time in 2 months

starteduraimo/buildSwiftOnARM

started time in 2 months

startedapple/swift-corelibs-libdispatch

started time in 2 months

push eventchai2010/gettext-go

chai2010

commit sha 6b9f4b1008e1c41455d40558ca5dade14f360ab8

add go.mod and fix test

view details

push time in 2 months

startedbalena-io/etcher

started time in 2 months

push eventchai2010/ethutil

chai2010

commit sha ec6efecf3857e8c2b07bc2ded1b9eec9d80d865e

比特币荣耀地址生成器

view details

push time in 2 months

push eventchai2010/ethutil

chai2010

commit sha 39005785d77bed5df30e9ab9b928971f2e7773dd

增加key到地址的命令行工具

view details

chai2010

commit sha de9152e84d4f24a89c9c521e80282b3d7c1ec5b7

增加KeyStore文件查看工具

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha b91fe5cf658c2fcf7335afc845acfb429a4b22b0

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha b921dc2b21b954814a65903e91a6ceb54c928f29

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha 68212cb33bf6ee7b5769af968ea137cccf9bb09a

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha d081dc1ceba589b739b37708b53cceec72bbb5a2

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha 11e2265f1dfd9fab2cee3071ee6a9851b547e36a

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha 63afda19bccf3fa52ba83eda0d2da0fc76e319c7

Update Dockerfile

view details

push time in 2 months

push eventchai2010/xmc-builder

chai2010

commit sha f30897f3f529c884b2804cf46ceb4badf2c9abe8

Update Dockerfile

view details

push time in 2 months

startedsammy007/open-ethereum-pool

started time in 3 months

push eventchai2010/xmc-builder

chai2010

commit sha 3fcb67386a7ae5f6ff8d864a3de8b37cd8e20746

Create Dockerfile

view details

push time in 3 months

push eventchai2010/xmc-builder

chai2010

commit sha 59195657da227d5d242fc3db35019646f68a9702

Update README.md

view details

push time in 3 months

push eventchai2010/xmc-builder

chai2010

commit sha 3de832eb33e7ec97f5371ec331721d330f8c412b

Create Dockerfile

view details

push time in 3 months

create barnchchai2010/xmc-builder

branch : master

created branch time in 3 months

created repositorychai2010/xmc-builder

xmc-builder

created time in 3 months

startedpyqt/examples

started time in 3 months

startedonqtam/awesome-cmake

started time in 3 months

startedabseil/abseil-cpp

started time in 3 months

push eventchai2010/ethutil

chai2010

commit sha a1bc36ac14cc6c212faa95563e0da27cc48eaf80

添加base58

view details

push time in 3 months

startedmonerobook/monerobook

started time in 3 months

startedMetaMask/metamask-extension

started time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5dad69baaa554b1bc2d6c5ede2177d15e8e66582

完善TxData

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0b078a94fe7313a91a5f9f077b2901b049428c30

完善TxData

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0a220bbd6b4c0a51577edb234f8b4d1735820533

完善签名

view details

push time in 3 months

push eventchai2010/ethrpc

chai2010

commit sha f8906c0a54eff88b280fb157ed821aa8ca1eadac

存档

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5be0b6859d80ca59a85266073463a5608d015cb9

晚上Hex

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0d4cc0dc78db5ef437f79eb0893967308d8fed6c

改进Hex

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0ed33d398a4e630742c12459618368d1a0845ed9

删除无关文件

view details

push time in 3 months

created tagchai2010/ethrpc

tagv0.0.1

♦Ξ♦ 以太坊轻量级RPC客户端(开发中) ♦Ξ♦

created time in 3 months

push eventchai2010/ethrpc

chai2010

commit sha 7dbcf01cf808f6993de167d68ea4656baf6def0e

完善部分交易函数, 删除废弃的函数

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 8227f88a7b227c244bd1a3add4d4836498f01b41

完善地址工具

view details

chai2010

commit sha 7c685f40b7d942bd1253585667efb9685819da6e

存档

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 3723df4b8a5ed68a526dceb3cec79f46b53d1e78

完善地址生成工具

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 3d4993d9bf2a1b8b6d2cb3154a2e936e4f8aa4ea

完善地址生成工具

view details

push time in 3 months

created tagchai2010/ethutil

tagv0.0.1

♦Ξ♦ 以太坊工具箱(零第三方库依赖) ♦Ξ♦

created time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 73ad79229f8384e540dd92ad92b8b6c9091dc86a

调整工具名字

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5998da2952b57dfc48271be2f678bc2f24b12673

增加荣耀地址生成工具

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 4fbd63caa0ba4ea145873d11055f7a20c802424f

克隆btcec签名

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha ad5ebfa8992541c32979c87e039001bc7d4cd36b

克隆btcec子包

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5339edfb87c157ba4f11ad0e772d42b42e933f2e

实现签名函数(未测试)

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha e136f0512da51b2adf9af3a09d7f8d5e4f966a92

恢复number转换函数

view details

chai2010

commit sha 561903733b44d1d342acf34b9a76d50471c6300e

Hex增加IsZero函数

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5da3a4b65a762b8df4b0014e08c2599b945bf6a0

实现交易Hash计算

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 188116e055a231b30a2d39a2f4ddf3eea092092e

改名MustBytes

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0669204fb165678fcb84c4192fd3883c4b5bd6b1

存档

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha c9e62afe799a6fcf3fc37ce722ab010167dbba33

增加签名相关API(未实现)

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 0d75ef924e15690a6e7248676d8fd497946d546c

更新图标

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha e28a01f69cafd6d59bd98c05ef52a3b0acabd7f0

改善KeyStoreEncryptKey, 输出格式JSON, 增加测试

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 4c0f38e35386c9fa99abf1b4711489660d42ec24

secp256k1增加包注释

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 45b6ae18b28d6db99cea0d0e9edd52026c709d40

精简API

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha f5ce6a455df74d7bbc7784da590e8a28defd5870

删除字符串和整数的转换函数

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha b0862e3f69e86ade457be712c05f77d0f31613e1

改进HexString

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5e90e40faf335fd40930dcfebd38b33ee081e2db

改进HexString

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 5df402c1d686e31a2d8bca525273591f7851612b

增加HexString

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 2a7fbe3157b281eac7212a748fa80e8932f1338c

KeyStoreDecryptKey支持V1和V3

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha afc335a87efeb5d89d65ae2fcc552a80ac6b854a

添加KeyStoreDecryptKey例子

view details

push time in 3 months

push eventchai2010/ethutil

chai2010

commit sha 00a1e645cf3dc8433f108e14a921fd8d9aff40bc

fix KeyStoreDecryptKey

view details

push time in 3 months

more