
语言
rm -rf /*
我可真菜呀
展开
-
python GIL
文章目录定义定义GIL, Global Interpreter Lock, 全局解释器锁,是python的解释器CPython里的概念,官方解释:In CPython, the global interpreter lock, or GIL, is a mutex that prevents multiple native threads from executing Python bytecodes at once. This lock is necessary mainly because CPyt原创 2020-10-09 15:51:29 · 217 阅读 · 1 评论 -
golang环境配置
现在golang官方包管理模式引入了go mod,以前包管理依赖本地GOPATH,两种方式共存的时候有些问题,所以重装了本地go环境。下载最新go包,版本:1.14.4 (国内镜像例如:http://mirrors.ustc.edu.cn/golang/)安装新版本go,更新GOROOT GOPATH GOBIN更新所有go tool。以VSCODE为例,先配置本地GOPROXY环境,使用国内代理:https://goproxy.cn/ ,然后在VSCODE内,F1,输入GO: Install/Up原创 2020-07-03 17:53:46 · 183 阅读 · 0 评论 -
golang的linkname
为啥有这么个linkname著名哲学家黑格尔曾说过,存在即合理。虽然本义并不是“事务既然存在了那么他就是合理的”,um…所以我也不知道linkname为什么存在啥是linkname我们来看看官方对于linkname的定义://go:linkname localname importpath.nameThe //go:linkname directive instructs the com...原创 2020-04-17 17:32:46 · 1562 阅读 · 0 评论 -
golang file server
使用:http.ListenAndServe(portStr, http.FileServer(http.Dir(outputDir)))http.FileServer()源码:// FileServer returns a handler that serves HTTP requests// with the contents of the file system rooted at...原创 2020-03-26 21:22:26 · 217 阅读 · 0 评论 -
golang并发控制
wait groupcontext原创 2020-03-11 14:15:15 · 115 阅读 · 0 评论 -
move ing
概念Move是由Facebook公司开发设计的智能合约语言 。它提出的一套完整的面向数字资产的编程体系。与现有的区块链编程语言相比,Move着重强化了数字资产的地位。使用Move语言,开发者能够更灵活、安全地在链上定义和管理数字资产。...原创 2019-11-20 14:50:23 · 198 阅读 · 0 评论 -
golang pprof
golang pprof定义:proof,golang程序性能分析工具。使用:相关包:runtime/pprof:采集程序(非 Server)的运行数据进行分析net/http/pprof:采集 HTTP Server 的运行时数据进行分析一次使用过程:首先在api server中import pprof包并配置对外暴露的端口:然后server服务起来后,go ...原创 2019-09-16 17:33:39 · 286 阅读 · 0 评论