V2EX tangmou
 tangmou 最近的时间轴更新
tangmou's repos on GitHub
C 2 人关注
nginx-flv-module
Javascript 2 人关注
ReadNow
C 1 人关注
my-nginx-modules
0 人关注
ada
WHATWG-compliant and fast URL parser written in modern C++
C 0 人关注
balus-nginx
0 人关注
balusch
0 人关注
beast
HTTP and WebSocket built on Boost.Asio in C++11
0 人关注
bun
Incredibly fast Javascript runtime, bundler, test runner, and package manager all in one
C++ 0 人关注
capnproto
Cap'n Proto serialization/RPC system - core tools and C++ library
0 人关注
Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
0 人关注
ccls
C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
CSS 0 人关注
cloudflare-docs
Cloudflare’s documentation
C 0 人关注
collection
0 人关注
CppTemplateTutorial
中文的C++ Template的教学指南。与知名书籍C++ Templates不同,该系列教程将C++ Templates作为一门图灵完备的语言来讲授,以求帮助读者对Meta-Programming融会贯通。(正在施工中)
0 人关注
dpdk
Mirror of Data Plane Development Kit, git://dpdk.org/dpdk (http://dpdk.org)
C++ 0 人关注
envoy
Cloud-native high-performance edge/middle/service proxy
0 人关注
FastChat
An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.
0 人关注
flash-attention
Fast and memory-efficient exact attention
0 人关注
gallery-dl
Command-line program to download image galleries and collections from several image hosting sites
0 人关注
hiactor
Hiactor is an open-source hierarchical actor framework for building high-performance, concurrent and scalable event-driven systems using C++.
0 人关注
json
A C++11 or library for parsing and serializing JSON to and from a DOM container in memory.
C 0 人关注
json-tutorial
从零开始的 JSON 库教程
0 人关注
kcp
:zap: KCP - A Fast and Reliable ARQ Protocol
C++ 0 人关注
leveldb
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
0 人关注
llama
Inference code for Llama models
0 人关注
llama.cpp
LLM inference in C/C++
0 人关注
llvm-project
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
0 人关注
LookaheadDecoding
[ICML 2024] Break the Sequential Dependency of LLM Inference Using Lookahead Decoding
0 人关注
loti-examples
Source code for example programs from Lord of the io_uring guide
C 0 人关注
lua
The Lua development repository, as seen by the Lua team. Mirrored irregularly. Please DO NOT send pull requests. Report issues in the Lua mailing list https://www.lua.org/lua-l.html
C 0 人关注
lua-nginx-module
Embed the Power of Lua into NGINX HTTP severs
Lua 0 人关注
lua-resty-core
New FFI-based API for lua-nginx-module
0 人关注
Markdown_Photos
C 0 人关注
My-APUE
0 人关注
nginx
An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html
0 人关注
node
Node.js Javascript runtime :sparkles::turtle::rocket::sparkles:
0 人关注
OI-wiki
:star2: Wiki of OI / ICPC for everyone. (某大型游戏线上攻略,内含炫酷算术魔法)
Shell 0 人关注
Oyster
0 人关注
playground
C 0 人关注
redis
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps.
C++ 0 人关注
redpanda
Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
0 人关注
scylla
NoSQL data store using the seastar framework, compatible with Apache Cassandra
C++ 0 人关注
seastar
High performance server-side application framework
0 人关注
shadowsocks-libev
Bug-fix-only libev port of shadowsocks. Future development moved to shadowsocks-rust
0 人关注
shadowsocks-rust
A Rust port of shadowsocks
C 0 人关注
stream-lua-nginx-module
Embed the power of Lua into NGINX TCP/UDP servers
C++ 0 人关注
url
Boost.URL is a library for manipulating Uniform Resource Identifiers (URIs) and Locators (URLs).
0 人关注
utterances-comment
C++ 0 人关注
v8
The official mirror of the V8 Git repository
Lua 0 人关注
vim-plugins
0 人关注
wireguard-go
Mirror only. Official repository is at https://git.zx2c4.com/wireguard-go
C++ 0 人关注
workerd
tangmou

tangmou

V2EX 第 351541 号会员,加入于 2018-09-22 21:00:37 +08:00
tangmou 最近回复了
2025 年 10 月 19 日
回复了 wuruxu 创建的主题 Linux Linux 桌面没调好的,别怀疑,一定是技术没学到位
@likooo125802023 #52 steam 支持还不错的
2025 年 9 月 4 日
回复了 xd666888 创建的主题 程序员 真的很讨厌博客网站用大量的 css 去美化
@remrin https://chenjianyong.com/ 我就是用的这个主题, 小改了一下
又来了, 阿里造神运动...
2024 年 5 月 26 日
回复了 houhaibushihai 创建的主题 Python 《流畅的 Python 》 英文版有 2 本书?
@cloudyplain +1, 买了中文版然而被翻译和纸的质量劝退...
2024 年 1 月 6 日
回复了 icoming 创建的主题 Javascript 为什么 Promise 会有这种表现?
@tangmou #16 为啥我的 markdown 没有渲染出来...
2024 年 1 月 6 日
回复了 icoming 创建的主题 Javascript 为什么 Promise 会有这种表现?
@lisxour #5
@tangmou 代码忘了贴了:

```javascriipt
// 需要订购的产品链接
const productList = [
"https://xxx",
"https://xxx",
"https://xxx"
]

async function asyncSleep(duration) {
await new Promise(r => setTimeout(r, duration));
}

// 是否有货
async function hasStock(url) {
await asyncSleep(2000);
return false
}

// 开始订购
const startOrder = async () => {
const promises = productList.map(u => ({tag: u, promise: hasStock(u)}))
const results = await Promise.allSettled(promises)
for (const [i, result] of results.entries()) {
// 是否有货,有就订购
if (!result.value) {
console.log("无货", promises[i].tag)
continue
}
}
}

function exitHandler(options, exitCode) {
console.log("process exit:", performance.now());
}

process.on('exit', exitHandler.bind(null,{cleanup:true}));

console.log("before:", performance.now());
startOrder();
console.log("after:", performance.now());
```
2024 年 1 月 6 日
回复了 icoming 创建的主题 Javascript 为什么 Promise 会有这种表现?
@lisxour #5 即使 hasStock 里面进行了 `await` 也不影响, 因为对于 `hasStock` 本身没有进行 `await`; 这里 `startOrder` 这个函数不会卡顿 (使用 "错误的处理"), 可能的一个原因是, 通过 node.js 处理时, 它会把所有 pending 的 promise 都处理完, 所以是卡在其他地方了. 比如下面这个代码:

```Javascript
```
2023 年 9 月 11 日
回复了 iorilu 创建的主题 程序员 有多少人完全使用命令行管理 git 得
2023 年 8 月 29 日
回复了 leeolsen 创建的主题 分享发现 30 岁从大厂裸辞全家搬往英国的故事(结)
很舒服的文字, 感谢 OP !

看完之后我的感受和 OP 对象一样: "这些英国人知道他们这种习以为常的生活是一种特权吗".
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2603 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 22ms UTC 06:36 PVG 14:36 LAX 22:36 JFK 01:36
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86