Akasha Terminal: dev🍃
922 subscribers
1.59K photos
63 videos
42 files
795 links
图频: @NahidaGallery / @Nahida_AI(被拿下了, 正在转生

友链/关于/About Me/Friends
https://t.me/HyacineGallery/1

大概是一些碎碎念,吐槽和日常的乐子。
Download Telegram
Fast Allocations in Ruby 3.5
https://railsatscale.com/2025-05-21-fast-allocations-in-ruby-3-5/
https://news.ycombinator.com/item?id=44062160

Ruby 3.5 中的快速对象分配
Ruby 3.5 通过优化对象分配,显著提升了性能,尤其是在使用 YJIT 时,速度提升可达 6.5 倍。

Key Takeaways
- Ruby 3.5 的对象分配速度比 Ruby 3.4.2 快 1.8 倍(无 YJIT)和 2.3 倍(有 YJIT)。
- 关键字参数越多,速度提升越明显,使用 YJIT 时速度提升可达 6.5 倍。
- 通过内联 Class#new 方法,消除了参数复制和栈帧开销。
- 优化减少了对象分配次数,尤其是关键字参数传递时的哈希分配。
- 该优化导致 Class#new 调用栈帧的缺失,可能影响调试信息。
Akasha Terminal: dev🍃
https://blog.gitbutler.com/how-git-core-devs-configure-git/ AI 摘要 (By Moe Copy):本文分享了 Git 核心开发者常用的配置设置,并探讨了这些设置为何应成为默认值。文章分为三部分:明显改进 Git 的配置(如分支排序、标签排序、默认分支、差异算法等)、无害且可能有用的配置(如自动纠正提示、提交时显示差异等),以及个人偏好的配置(如合并冲突样式、拉取默认行为等)。作者通过实际示例和配置代码,详细解释了每个设置的作用和优势。 TLDR…
发一下我用得上的
git config --global init.defaultBranch main # 默认主分支命名为 main
git config --global tag.sort version:refname # 让 1.100 排在 1.99 后面
git config --global push.autoSetupRemote true # 自动发布远程新分支
git config --global push.followTags true # 自动推送本地 tags 到 remote
git config --global help.autocorrect prompt # 自动纠错并询问,prompt 改成 10 是自动等待 10 * 100ms 后执行,详见 https://blog.gitbutler.com/why-is-git-autocorrect-too-fast-for-formula-one-drivers/

有争议的:
# 自动删除远程删除的分支, Tags (e.g. origin/delete-branch)
git config --global fetch.prune true
git config --global fetch.pruneTags true
git config --global fetch.all true
# 拉取冲突默认 rebase
git config --global pull.rebase true
🥰3
Forwarded from aisuneko/channel::pathetic_fatigue
no
🎉9
群友锐评 Harmony Desktop:
拼好 OS
用的 Musl C,有 dt (里面有大量私有组件,有 ubsan 和 tsan 和 hwasan,分别来自 LLVM (Linux 内核也在用) 谷歌 和 安卓,终端是 Alacritty, 窗口 ID 是 window76_xcomponent0 (感觉像是给每个窗口分配了个 XServer,类似 XWayland, 用户没有 chown chmod 权限
😁5
🥰5🤣1
Forwarded from 浪人新闻 (冲浪投稿机器人Beta)
推特是真草台班子,登录接口挂了 40h 了
https://downdetector.com/status/twitter/
😁3
草,b站写文案的时候也不会想到发生这种事吧()