Forwarded from yihong0618 和朋友们的频道 (伊)
Forwarded from 及时吃药 (ζγαπιδε 🫠)
https://www.youtube.com/watch?v=nsj3gTGh9K0
想到了 https://en.wikipedia.org/wiki/Tupper%27s_self-referential_formula
#TIL 原来 https://learn.microsoft.com/en-us/typography/cleartype/ 还利用了 RGB sub-pixel,很有意思的知识
想到了 https://en.wikipedia.org/wiki/Tupper%27s_self-referential_formula
#TIL 原来 https://learn.microsoft.com/en-us/typography/cleartype/ 还利用了 RGB sub-pixel,很有意思的知识
YouTube
These pixels count themselves.
Go to https://surfshark.com/standupmaths or use code standupmaths at checkout to get 4 extra months of Surfshark VPN!
Try out Christian’s self-referential pixel generator here: https://matt-parker-count-black-pixels.think.somethingorotherwhatever.com/index.html…
Try out Christian’s self-referential pixel generator here: https://matt-parker-count-black-pixels.think.somethingorotherwhatever.com/index.html…
Forwarded from BennyThink's Blog (Benny 小可爱)
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from yihong0618 和朋友们的频道 (伊)
biboyqg.github.io
Let's build GPT from scratch with BPE!
1. Workshop Description Quick question: Have you ever thought about a string being transformed into a word vector so that it can be further fed into a machine learning algorithm?
In this workshop, we are going to dive into the fascinating world of Natural…
In this workshop, we are going to dive into the fascinating world of Natural…
Forwarded from Hacker News 摘要
Telegraph
GPT-5:过期、炒作且令人失望。这还不是最糟糕的
原标题:GPT-5: Overdue, overhyped and underwhelming. And that's not the worst of it 最近,关于GPT-5的评价相当负面,许多人认为它是“过期、炒作与令人失望”的。文章作者Gary Marcus极为批评这款产品的发布,指出这次亮相不仅晚到,而且实际表现远不如预期。 首先,Marcus提到,OpenAI在发布GPT-5时的信心满满与随后出现的失望形成鲜明对比。许多人对GPT-5期待已久,而Sam Altman甚至在直播前用《星球大战…
Forwarded from yihong0618 和朋友们的频道 (伊)
This media is not supported in your browser
VIEW IN TELEGRAM
running_page 更新,增加了几个小的 feature 增加了稳定性,既然你们可着一只羊薅,那我们就继续创造,希望大哥们下次借鉴的时候说句谢谢。
https://github.com/yihong0618/running_page
https://github.com/yihong0618/running_page
Forwarded from codedump的电报频道 (老C)
#Rust
Rust编译器贡献者 Nicholas Nethercote 在线找工作《I am a Rust compiler engineer looking for a new job》,连他也在抱怨“AI is sucking up a lot of money and attention in the tech world, leaving less for everything else.”。
Rust编译器贡献者 Nicholas Nethercote 在线找工作《I am a Rust compiler engineer looking for a new job》,连他也在抱怨“AI is sucking up a lot of money and attention in the tech world, leaving less for everything else.”。
Nicholas Nethercote
I am a Rust compiler engineer looking for a new job
UPDATE 2025-09-03: I have found a new job and will be starting next week. I will post more details soon. Many thanks to everyone who helped publicize this post and to everyone who contacted me about possible work. Rust is being used in many interesting places!
Forwarded from Frost's Notes
#share 头回见对这两个概念的清楚解释
https://discuss.python.org/t/should-it-be-possible-to-use-none-as-a-type-instead-of-nonetype/101862/2
https://discuss.python.org/t/should-it-be-possible-to-use-none-as-a-type-instead-of-nonetype/101862/2
Discussions on Python.org
Should it be possible to use None as a type (instead of NoneType)?
The type of None is NoneType [not a built-in, it’s type(None)], but in typing we use None as a type: my_var: None|int = 3 Besides of typing, Pyhon does not accept None as a type. Technically None is indeed not a type. OTOH None is quite special. I think…
❤1
Forwarded from QC 的小树林
发现 perf trace 比 strace 快巨多。已经把
strace -cf 换成 sudo perf trace -s --summary-mode=total 了❤2
Forwarded from QC 的小树林
因为现代 CPU 都是超标量的,有多个功能单元(比如两个算术逻辑单元 + 一个浮点运算单元 + 别的),可以一次性发射多条指令到不同的功能单元一起计算,因此一个 cycle 内实际上可以执行多条指令,称之为 instruction-level parallelism(ILP)。当然高并行的前提是有足够的功能单元以及指令之间没有依赖。有关内容可以阅读一下《现代处理器结构》。
我还在用 zen2 没有 TMA 可用。但对于这个场景有非常适合的工具:uiCA 和 llvm-mca。
举个例子,这里的无脑算法我们在 godbolt.org 用 gcc15.2 + O3 的到循环体部分的汇编如下:
把这串代码丢到 uiCA 模拟,可以得到结果是 4 cycles per iteration。而霍纳算法是 8 cycles per iteration。但是为什么呢?
在 HTML output 里面打开 Trace Table,里面有流水线的可视化模拟,包括指令使用了哪个端口、在第几个周期发射(I)、调度(D)、执行(E)、退役(R)等等。如果调度等了很久,那可能是端口不太够;如果退役等了很久,那可能是指令之间有依赖。在霍纳算法的图里,我们可以看到超长的 E->R 距离,所以降低 IPC 的主因就是指令间依赖了。更多有关 Trace Table 的信息,可以看《Visualizing Performance-Critical Dependency Chains》。
我还在用 zen2 没有 TMA 可用。但对于这个场景有非常适合的工具:uiCA 和 llvm-mca。
举个例子,这里的无脑算法我们在 godbolt.org 用 gcc15.2 + O3 的到循环体部分的汇编如下:
.L3:
movsd xmm2, QWORD PTR [rax]
add rax, 8
mulsd xmm2, xmm0
mulsd xmm0, xmm3
addsd xmm1, xmm2
cmp rdx, rax
jne .L3
把这串代码丢到 uiCA 模拟,可以得到结果是 4 cycles per iteration。而霍纳算法是 8 cycles per iteration。但是为什么呢?
在 HTML output 里面打开 Trace Table,里面有流水线的可视化模拟,包括指令使用了哪个端口、在第几个周期发射(I)、调度(D)、执行(E)、退役(R)等等。如果调度等了很久,那可能是端口不太够;如果退役等了很久,那可能是指令之间有依赖。在霍纳算法的图里,我们可以看到超长的 E->R 距离,所以降低 IPC 的主因就是指令间依赖了。更多有关 Trace Table 的信息,可以看《Visualizing Performance-Critical Dependency Chains》。
Forwarded from yihong0618 和朋友们的频道 (伊)
Bilibili
一镜到底!挑战良子同款16袋泡面,超多人要看能成功吗?最难的点竟然是……_哔哩哔哩_bilibili
大家点名想看的16袋泡面来了,另外37根油条,就别让我挑战了,我是一根都吃不下,我从小不爱吃油条,吃着就感觉特别恶心,油条油饼豆腐脑这些都不爱吃, 视频播放量 3685034、弹幕量 12514、点赞数 123883、投硬币枚数 22382、收藏人数 7331、转发人数 15214, 视频作者 橙飞一下, 作者简介 人二为仁,人仁忍韧。全马pb3:43:56,半马pb1:45:27。
美食区最能跑,跑步区最能吃,带你吃好吃又便宜的自助。曾经是小学老师。
,相关视频:良子十大战役速通,哪场才是你心中的第一…
美食区最能跑,跑步区最能吃,带你吃好吃又便宜的自助。曾经是小学老师。
,相关视频:良子十大战役速通,哪场才是你心中的第一…
Forwarded from yihong0618 和朋友们的频道 (伊)
Forwarded from Hacker News 摘要
Telegraph
我们重写了Ghostty GTK应用程序
原标题:We rewrote the Ghostty GTK application 这篇文章介绍了对Ghostty GTK应用程序的重写过程,作者是Mitchell Hashimoto。重写工作全面采用了Zig语言的GObject类型系统,并在每一步都使用Valgrind进行验证,以确保程序的稳定性和内存安全。 Ghostty是一个跨平台的终端模拟器,支持macOS、Linux和FreeBSD。与其他终端模拟器不同,Ghostty在各个平台上使用本地的应用程序和GUI框架。在macOS上,Ghostt…
Forwarded from Hacker News 摘要
Telegraph
链式思维人工智能推理是一种幻觉吗?
原标题:Is chain-of-thought AI reasoning a mirage? 这篇文章探讨了链式思维(chain-of-thought)人工智能推理是否只是一种幻觉。作者对相关研究感到沮丧,认为许多有趣的问题未被提出,反而人们却不断询问链式思维是否“真正”是推理。文中提到,亚利桑那州立大学有一篇引人注目的论文,质疑大语言模型(LLMs)中的链式思维推理是否只是幻觉,作者对此论文持有批评态度。 亚利桑那州立大学的论文认为,链式思维在接近训练数据时有效,但在数据分布有显著变化时就很脆弱,甚至…
Forwarded from 少数派sspai
一日一技 | 用 TLP 解锁 Linux 笔记本的长续航体验 [by 尤米的一招半式]
https://sspai.com/post/101744
https://sspai.com/post/101744
少数派 - 高品质数字消费指南
Archlinux 笔记本省电设置 - 少数派
在 Linux 上想要榨干笔记本的续航潜力,其实并不需要复杂的黑科技,只要合理 TLP 工具,就能大幅延长电池时间。
Forwarded from 少数派sspai
一日一技|一图两吃、加密通讯:如何将两种内塞进一张图片 [by 甜甜的泥土]
https://sspai.com/post/101521
https://sspai.com/post/101521
少数派 - 高品质数字消费指南
一张图片显示两种内容 - 少数派
……见人说人话,见鬼说鬼话?