Forwarded from Hacker News (yahnc_bot)
Carbon Language: An experimental successor to C++ https://docs.carbon-lang.dev/
Carbon Language documentation
Home
An experimental successor to C++
Forwarded from Hacker News (yahnc_bot)
Why is GitHub UI getting slower? https://yoyo-code.com/why-is-github-ui-getting-so-much-slower/
Yoyo-Code
Why is GitHub UI getting so much slower?
Matyáš Racek's blog
Forwarded from Laoself
Web是個特別不適合做custom UI的平臺,因為web API暴露的底層渲染API遠遠不夠用來開發high performance custom UI。在web上要做高性能UI,你只有兩條路:一條用瀏覽器提供的能力,比如能用CSS就用CSS,能用native scrolling就不自己造。另一條路就是純用canvas+GL畫,但是text interaction基本上完蛋。
GitHub:我雖然重文本不能自己canvas,但是我可以儘可能多用DOM,儘可能自己override瀏覽器的特性,雖然我完全可以直接serve HTML但是我偏要做client side routing,偏要去自己實作DOM-based text file rendering。
GitHub:我雖然重文本不能自己canvas,但是我可以儘可能多用DOM,儘可能自己override瀏覽器的特性,雖然我完全可以直接serve HTML但是我偏要做client side routing,偏要去自己實作DOM-based text file rendering。
syncthing v2.0 🎉
https://github.com/syncthing/syncthing/releases/tag/v2.0.0
https://github.com/syncthing/syncthing/releases/tag/v2.0.0
GitHub
Release v2.0.0 · syncthing/syncthing
⚠️ First 2.0 release ⚠️
This is the first release of the new 2.0 series. Expect some rough edges and keep a sense of adventure! 🙏
Major changes in 2.0
Database backend switched from LevelDB to SQ...
This is the first release of the new 2.0 series. Expect some rough edges and keep a sense of adventure! 🙏
Major changes in 2.0
Database backend switched from LevelDB to SQ...
边界条件之场
小米 13 有官方 LineageOS 了!! https://wiki.lineageos.org/devices/fuxi/ #phone #xiaomi
这周收到了一台家人淘汰*下来的 iPhone, 使得我考虑了一下主力机转果的可能。鉴于小米的脑残系统我实在无法忍受,封闭但理智正常的 iOS 竟显得十分有吸引力。紧接着就发现 xiaomi 13 (fuxi) 有官方 lineage 了 😌
*: 故障紧急换机,后来旧机拿去修好了就给我了
*: 故障紧急换机,后来旧机拿去修好了就给我了
Silksong in 2 weeks?? WHAT!?!
https://www.youtube.com/watch?v=6XGeJwsUP9c
https://www.youtube.com/watch?v=6XGeJwsUP9c
YouTube
Hollow Knight: Silksong - Release Trailer
On September 4, ascend to the peak of a haunted kingdom in Hollow Knight: Silksong!
Play day one on Xbox Game Pass!
The game will be available for purchase on Steam, Nintendo Switch, Nintendo Switch 2, Xbox, Sony PlayStation 4, Sony PlayStation 5, and DRM…
Play day one on Xbox Game Pass!
The game will be available for purchase on Steam, Nintendo Switch, Nintendo Switch 2, Xbox, Sony PlayStation 4, Sony PlayStation 5, and DRM…
Android 手动指定 NTP 服务器: 在 shell (如 adb shell) 中执行
#tips #android
我的每一台 LineageOS 手机都无法自动同步时间,今天查了一下,AOSP 默认使用的 NTP 服务器是
网络上有人提到 "settings global ntp_server" 这个设置项,但无论是 google 官方文档[2]还是
[1]: https://source.android.com/docs/core/connect/time/network-time-detection#servers
[2]: https://developer.android.com/reference/android/provider/Settings.Global
[3]: https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/java/android/provider/Settings.java;l=14449
settings put global ntp_server <server name>
<server name> 可用 pool.ntp.org, 具体格式见下文。#tips #android
我的每一台 LineageOS 手机都无法自动同步时间,今天查了一下,AOSP 默认使用的 NTP 服务器是
time.android.com [1],而它在中国无法正常连接 (狗粪网? #trash #china #gfw)。网络上有人提到 "settings global ntp_server" 这个设置项,但无论是 google 官方文档[2]还是
settings list global 指令中都看不到这个 ntp_server 条目。于是去 cs.android.com 搜索 settings.global.ntp_server, 终于找到了具体定义[3]:/**
* SNTP client config: The preferred NTP server. This setting overrides the static
* config.xml configuration when present and valid.
*
* <p>The legacy form is the NTP server name as a string.
* <p>Newer code should use the form: ntp://{server name}[:port] (the standard NTP port,
* 123, is used if not specified).
*
* <p>The settings value can consist of a pipe ("|") delimited list of server names or
* ntp:// URIs. When present, all server name / ntp:// URIs must be valid or the entire
* setting value will be ignored and Android's xml config will be used.
*
* <p>For example, the following examples are valid:
* <ul>
* <li>"time.android.com"</li>
* <li>"ntp://time.android.com"</li>
* <li>"ntp://time.android.com:123"</li>
* <li>"time.android.com|time.other"</li>
* <li>"ntp://time.android.com:123|ntp://time.other:123"</li>
* <li>"time.android.com|ntp://time.other:123"</li>
* </ul>
*
* @hide
*/
@Readable
public static final String NTP_SERVER = "ntp_server";
[1]: https://source.android.com/docs/core/connect/time/network-time-detection#servers
[2]: https://developer.android.com/reference/android/provider/Settings.Global
[3]: https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/core/java/android/provider/Settings.java;l=14449
微软给 rust 做的 crate
声称
又由于微软没给这两个 crate 写任何文档,仍然得去看 c++ 的 win32 文档,而
这就导致
#microsoft #rust
windows 比 windows-sys 难用多了……声称
windows 更 rust idiomatic, 实际上 api 仍然是一坨屎,毕竟 win32 的基础摆在那里,除非重做抽象否则不可能好到哪里去。又由于微软没给这两个 crate 写任何文档,仍然得去看 c++ 的 win32 文档,而
windows 由于微软在 "idiomatic" 上的失败尝试, api 与 c++ 的有些许出入。这就导致
windows 极其难用,需要先看 c++ 那边的文档,然后摸索微软 "idiomatic" 改动后到底怎么用。还不如直接用从 c++ api 忠实翻译的 windows-sys#microsoft #rust
👍1
const trait 终于要来了 😌
https://github.com/rust-lang/rust-project-goals/issues/106
Re-constification of libstd has commenced
https://github.com/rust-lang/rust-project-goals/issues/106
GitHub
rust-lang/rust-project-goals
Rust Project Goals tracker. Contribute to rust-lang/rust-project-goals development by creating an account on GitHub.