fakeshadow's recent timeline updates
fakeshadow's repos on GitHub
JavaScript · 34 watchers
pxs-psn-api
a psn api wrapper
Rust · 7 watchers
shin-hentai
a comic viewer
Rust · 7 watchers
tang_rs
A light weight connection pool written in Rust
JavaScript · 5 watchers
psn_agent
A simple PSN web login tool
Rust · 3 watchers
dns-proxy
JavaScript · 3 watchers
pixel-psn
A Simple PSN API for PixelShare blockchain.
Dart · 3 watchers
psn_api_service
https://psn.blackheart.top
Rust · 1 watchers
busy
Rust · 1 watchers
channel-latency
Rust · 1 watchers
psn_api_rs
Rust · 1 watchers
ptr_array
Rust · 1 watchers
xitca-postgres-diesel
async ORM for postgresql
Rust · 1 watchers
xitca-web-wasm
Rust · 1 watchers
xitca-web-worker
0 watchers
async-channel
Async multi-producer multi-consumer channel
Rust · 0 watchers
bpaf
Command line parser with applicative interface
0 watchers
BWO
An infinity procedural online game using Flutter with NodeJS and flames
0 watchers
bytes
Utilities for working with bytes
0 watchers
ctpbee
专注于量化领域技术解决方案
Java · 0 watchers
DeepLearning
Deep Learning (Python, C, C++, Java, Scala, Go)
Rust · 0 watchers
diesel
A safe, extensible ORM and Query Builder for Rust
Rust · 0 watchers
diesel_async
Diesel async connection implementation
0 watchers
dnsproxy
Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
0 watchers
egui
egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
JavaScript · 0 watchers
electronic-QQ
the electionic-QQ based on smart-qq & electronic-wechat written in Nodejs
JavaScript · 0 watchers
fakeshadow.github.io
a comic viewer.
JavaScript · 0 watchers
fastify-example-twitter
Fastify example - clone twitter
0 watchers
firefly
High performance concurrent channels.
JavaScript · 0 watchers
form-data
A module to create readable `"multipart/form-data"` streams. Can be used to submit forms and file uploads to other web applications.
C++ · 0 watchers
FrameworkBenchmarks
Source for the TechEmpower Framework Benchmarks project
Rust · 0 watchers
geocoding
Geocoding library for Rust.
Go · 0 watchers
go-common
哔哩哔哩 bilibili 网站后台工程 源码
0 watchers
governor
A rate-limiting library for Rust (f.k.a. ratelimit_meter)
Rust · 0 watchers
h2
HTTP 2.0 client & server implementation for Rust.
Rust · 0 watchers
h3
Rust · 0 watchers
heng_rs
A schedule task runner in Rust
0 watchers
http
Rust HTTP types
Rust · 0 watchers
hyper
An HTTP library for Rust
0 watchers
io-uring
The `io_uring` library for Rust
Rust · 0 watchers
jian_rs
dynimc scale thread pool written in Rust
Rust · 0 watchers
matchit
A radix tree based URL path (route) matcher
Rust · 0 watchers
mio
Metal IO library for Rust
TypeScript · 0 watchers
mytoken-zhai
JavaScript · 0 watchers
naivecoin-cqg
Fork from the naivecoin/conradoqg project
JavaScript · 0 watchers
NodeBB
Node.js based forum software built for the modern web
JavaScript · 0 watchers
nodebb-plugin-composer-default
Default Composer for NodeBB
JavaScript · 0 watchers
nodebb-plugin-write-api
A RESTful JSON-speaking API allowing you to write things to NodeBB
Rust · 0 watchers
ntex
framework for composable networking services
Rust · 0 watchers
ntex_ratelimiter
JavaScript · 0 watchers
nxtjs
Small collection of JavaScript functions for Nxt
Java · 0 watchers
Pixel
JavaScript · 0 watchers
proxy
A simple API cache for https://psprices.com
PHP · 0 watchers
psn-php
A PHP wrapper for the PSN API
0 watchers
redis-rs
Redis library for rust
Rust · 0 watchers
rust-headless-chrome
A high-level API to control headless Chrome or Chromium over the DevTools Protocol. It is the Rust equivalent of Puppeteer, a Node library maintained by the Chrome DevTools team.
Rust · 0 watchers
rust-postgres
Native PostgreSQL driver for the Rust programming language
Vue · 0 watchers
ruster
Online community in Rust for community.
0 watchers
rustrict
rustrict is a profanity filter for Rust
Rust · 0 watchers
sailfish
Simple, small, and extremely fast template engine for Rust
Rust · 0 watchers
shadowsocks-rust
A Rust port of shadowsocks
Shell · 0 watchers
ssr-client
none
C++ · 0 watchers
tinyfecVPN
A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
Shell · 0 watchers
tiny_bash
Rust · 0 watchers
toasty
An async ORM for Rust (incubating)
0 watchers
tokio
A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
0 watchers
tokio-openssl
OpenSSL bindings for Tokio
0 watchers
tokio-tun
Asynchronous allocation of TUN/TAP devices in Rust using tokio
0 watchers
tokio-uring
An io_uring backed runtime for Rust
Rust · 0 watchers
tower-governor
Rate Limiting middleware for Tower/Axum/Tonic/Hyper utilizing the governor crate
PHP · 0 watchers
VitaTricks
Src code for http://vitatricks.tk
0 watchers
xilem
An experimental Rust native UI framework
Rust · 0 watchers
xitca-postgres-toasty
Rust · 0 watchers
xitca-web
Rust · 0 watchers
xitca-web-compile-time
Python · 0 watchers
ZeroNet
ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
fakeshadow

fakeshadow

V2EX member #104875, joined on 2015-03-16 13:57:36 +08:00
Per fakeshadow's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
fakeshadow's recent replies
@w568w 你想说的应该是 ntex ,它是 actix 原作者写的新框架。写 xitca-web 的另有其人。
Sep 27, 2024
Replied to a topic by bli22ard Rust rust TcpStream 为什么设计读写一体
@bli22ard Rust 是系统级的语言,除了你说的应用场景还有其他的情况,例如:
1.没有原子变量的平台,例如某些嵌入式,他们没法使用 Arc
2.没有堆分配器的平台,这些平台和 1 类有些重合,他们不仅没法使用 Arc ,还无法使用任何依赖堆分配的智能指针。
3.不希望支付 Arc 开销的应用场景,比如单线程并发读写

如果标准库只是简单的套 Arc ,那么其 split API 对上面两个应用场景就是毫无价值的,他们还是要自己实现其常见的 split 方法,例如:
```
fn split(stream: &TcpStream) -> (ReadHalf<'_>, WriteHalf<'_> {
// 常用于栈上协程
}

fn split(stream: &Rc<TcpStream>) -> (ReadHalf, WriteHalf) {
// 常用于单线程
}
```

你说的应用场景是重要的,但 Rust 标准库的设计不能仅仅关注在某些重要领域而忽视其他的需求。这时候你反观标注库的实现,就会发现对内部可变的文件实现 Read, Write 是一个折中的方案,以上情况都可以简单的利用其满足自己的需求。你说它完美吗?那肯定不是,我相信也会有更好的实现方式。但在更好的设计被提出之前,我觉得标准库的实现是正确的。
Sep 26, 2024
Replied to a topic by bli22ard Rust rust TcpStream 为什么设计读写一体
讨论设计问题不要从你当前的需求出发,而是要把其他需求也考虑进去。比如你认为标准库应该提供 split ,那么它应该如何实现呢?
```
let (app_type , user_info) = {
let queries = Queries::from_uri(request.uri()).unwrap_or_default();
(AppTypeExt::get_from(&queries)?, UserInfo::get_from(&queries)?)
};

if let Some(app_type) = app_type {
request.extensions_mut().insert(app_type);
}

if let Some(user_info) = user_info {
request.extensions_mut().insert(user_info);
}
```
我觉得无所谓,我关注的是交流的对象,内容和目的。
酗酒的人没有生下来就如此的。所谓防微杜渐,一旦产生酒精依赖就需要认真对待。
Oct 9, 2023
Replied to a topic by ohayoo 问与答 由于秃头被大学室友抓着嘲讽
你没错
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5713 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 07:32 · PVG 15:32 · LAX 00:32 · JFK 03:32
♥ Do have faith in what you're doing.