tangmou's recent timeline updates
tangmou's repos on GitHub
4 watchers
playground
C · 2 watchers
nginx-flv-module
JavaScript · 2 watchers
ReadNow
C · 1 watchers
my-nginx-modules
0 watchers
ada
WHATWG-compliant and fast URL parser written in modern C++
C · 0 watchers
balus-nginx
0 watchers
balusch
0 watchers
beast
HTTP and WebSocket built on Boost.Asio in C++11
0 watchers
bun
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
C++ · 0 watchers
capnproto
Cap'n Proto serialization/RPC system - core tools and C++ library
0 watchers
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 watchers
ccls
C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
0 watchers
clice
A next-generation C++ language server for modern C++, focused on high performance and deep code intelligence
CSS · 0 watchers
cloudflare-docs
Cloudflare’s documentation
C · 0 watchers
collection
0 watchers
CppTemplateTutorial
中文的C++ Template的教学指南。与知名书籍C++ Templates不同,该系列教程将C++ Templates作为一门图灵完备的语言来讲授,以求帮助读者对Meta-Programming融会贯通。(正在施工中)
0 watchers
dpdk
Mirror of Data Plane Development Kit, git://dpdk.org/dpdk (http://dpdk.org)
C++ · 0 watchers
envoy
Cloud-native high-performance edge/middle/service proxy
0 watchers
FastChat
An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.
0 watchers
flash-attention
Fast and memory-efficient exact attention
0 watchers
gallery-dl
Command-line program to download image galleries and collections from several image hosting sites
0 watchers
hiactor
Hiactor is an open-source hierarchical actor framework for building high-performance, concurrent and scalable event-driven systems using C++.
Ruby · 0 watchers
homebrew-tap
Homebrew tap for logi-cli
0 watchers
json
A C++11 or library for parsing and serializing JSON to and from a DOM container in memory.
C · 0 watchers
json-tutorial
从零开始的 JSON 库教程
0 watchers
kcp
:zap: KCP - A Fast and Reliable ARQ Protocol
C++ · 0 watchers
leveldb
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
0 watchers
llama
Inference code for Llama models
0 watchers
llama.cpp
LLM inference in C/C++
0 watchers
llvm-project
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
Python · 0 watchers
logi-cli
0 watchers
LookaheadDecoding
[ICML 2024] Break the Sequential Dependency of LLM Inference Using Lookahead Decoding
0 watchers
loti-examples
Source code for example programs from Lord of the io_uring guide
C · 0 watchers
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 watchers
lua-nginx-module
Embed the Power of Lua into NGINX HTTP servers
Lua · 0 watchers
lua-resty-core
New FFI-based API for lua-nginx-module
0 watchers
Markdown_Photos
C · 0 watchers
My-APUE
0 watchers
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 watchers
node
Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:
0 watchers
OI-wiki
:star2: Wiki of OI / ICPC for everyone. (某大型游戏线上攻略,内含炫酷算术魔法)
Shell · 0 watchers
Oyster
C · 0 watchers
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 watchers
redpanda
Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
0 watchers
scylla
NoSQL data store using the seastar framework, compatible with Apache Cassandra
C++ · 0 watchers
seastar
High performance server-side application framework
0 watchers
shadowsocks-libev
Bug-fix-only libev port of shadowsocks. Future development moved to shadowsocks-rust
0 watchers
shadowsocks-rust
A Rust port of shadowsocks
C · 0 watchers
stream-lua-nginx-module
Embed the power of Lua into NGINX TCP/UDP servers
C++ · 0 watchers
url
Boost.URL is a library for manipulating Uniform Resource Identifiers (URIs) and Locators (URLs).
0 watchers
utterances-comment
C++ · 0 watchers
v8
The official mirror of the V8 Git repository
Lua · 0 watchers
vim-plugins
0 watchers
wireguard-go
Mirror only. Official repository is at https://git.zx2c4.com/wireguard-go
C++ · 0 watchers
workerd
tangmou

tangmou

V2EX member #351541, joined on 2018-09-22 21:00:37 +08:00
tangmou's recent replies
@likooo125802023 #52 steam 支持还不错的
@remrin https://chenjianyong.com/ 我就是用的这个主题, 小改了一下
又来了, 阿里造神运动...
May 26, 2024
Replied to a topic by houhaibushihai Python 《流畅的 Python 》 英文版有 2 本书?
@cloudyplain +1, 买了中文版然而被翻译和纸的质量劝退...
Jan 6, 2024
Replied to a topic by icoming JavaScript 为什么 Promise 会有这种表现?
@tangmou #16 为啥我的 markdown 没有渲染出来...
Jan 6, 2024
Replied to a topic by 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());
```
Jan 6, 2024
Replied to a topic by icoming JavaScript 为什么 Promise 会有这种表现?
@lisxour #5 即使 hasStock 里面进行了 `await` 也不影响, 因为对于 `hasStock` 本身没有进行 `await`; 这里 `startOrder` 这个函数不会卡顿 (使用 "错误的处理"), 可能的一个原因是, 通过 node.js 处理时, 它会把所有 pending 的 promise 都处理完, 所以是卡在其他地方了. 比如下面这个代码:

```javascript
```
Sep 11, 2023
Replied to a topic by iorilu 程序员 有多少人完全使用命令行管理 git 得
很舒服的文字, 感谢 OP !

看完之后我的感受和 OP 对象一样: "这些英国人知道他们这种习以为常的生活是一种特权吗".
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1208 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 23:14 · PVG 07:14 · LAX 16:14 · JFK 19:14
♥ Do have faith in what you're doing.