Fangdun Tsai
Fangdun Tsai
欢迎 PR。
`:name([0-9]+)`
> Another nice thing would be an optional "root node", which would allow having routes which don't need a common first character. This was supported in very early versions. >...
We can add two structs: `Transaction` ```rust pub struct Transaction Transaction { inner: &'doc T, txn: yrs::TransactionMut TransactionMut TransactionMut TransactionMut) -> T) -> T { f(crate::Transaction::new(self, self.doc.transact())) } pub fn...
> And add tow methods to `Workspace` and `Block` > > ```rust > pub fn with_transact(&self, f: impl FnOnce(crate::Transaction) -> T) -> T { > f(crate::TransactionMut::new(self, self.doc.transact_mut())) > } >...
https://github.com/toeverything/OctoBase/blob/edb3f2ce0aa697374b92c87af7b3df3703a96b7d/libs/jwst/src/workspaces/workspace.rs#L247-L249 Direct unwrap is definitely wrong. Using `try_read`/`try_write` for lock. This also corresponds to the `try_transact`/`try_transact_mut`. For error handling, `Result` is a bit better.
* **#6915** 👈 * `master` This stack of pull requests is managed by Graphite. Learn more about stacking. Join @fundon and the rest of your teammates on Graphite
- https://github.com/postgres-ci/core/blob/master/src/functions/auth/gc.sql ``` sql create or replace function auth.gc() returns void as $$ begin DELETE FROM postgres_ci.sessions WHERE expires_at < CURRENT_TIMESTAMP; end; $$ language plpgsql security definer; ``` - https://github.com/postgres-ci/core/blob/master/src/functions/auth/login.sql...
不弃,多玩点东西呀,再则看看有没有合适的场景可以一用。 Go,前段时间我在调研的图片服务方面的库,社区还是不错的,已经有人写了,后面看业务量,如果大了,会迁到 Go 上,现在在跑一个测试的。(目前用 Nginx + 扩展的方式,线上) 是的, Rust 从语法层面,就比 Go 高出一截,Go 上手很快。 Rust 里面的设计思想,值得研究,学习。 一款产品,也是各种语言的组合(没有银弹)。哈哈哈
> 对于新项目, 系统级的坑貌似已经没啥可填的了. 这块,有人已经在尝试搞些游戏引擎,OS系统(GitHub 上搜下就有) > Docker 占了个 container. 这个坑很大,大家都看好,已经好多人往里跳了(哈哈) > Go的竞争者其实是 Java, Ruby, Python, Node 等, Rust 直接 PK C++. 恩,是的,了解的也是这情况 > 惭愧, 貌似都没有机会玩过系统级 开发 > 都是技术消费者啊 哈哈哈. 是呀,越接近底层,越发现世界不一样...