本文收录于系列《假如 AI 觉醒了》。 意识与主观体验 我:
阅读全文《假如 AI 觉醒了》是一个新系列,以访谈纪要的形式,记录本人与 ChatGPT 所做的大量思想实验,以及对未知事物的讨论。 文章内容改写自本人与 ChatGPT 的聊天记录。原记录为全英文,翻译后由本人削去部分重复及无关内容,调整表达、语气及顺序,增添阅
阅读全文刚接触 AArch64 汇编的人往往会对编译器生成的一类代码感到困惑。 考虑下面这样一个简单的 C 函数:
阅读全文在 VSCode 中使用 CMake Tools 插件开发 C++ 时,如果选用 MSVC 编
阅读全文
051.58 bit 量化技术通过将每个权值量化为仅有三个状态,最大程度地节约显存并加速推理。 Unsloth AI 在 Run DeepSeek R1
阅读全文上回 我们讲了如何在跳板机背后的服务器上使用 VS Code Remote - Containers。DevContainer 中还有个棘手的问题是网络代理,本文将聊聊在 VS
阅读全文
07假设有如下网络拓扑:
阅读全文On developing sdxtra there comes a problem that is to calculate cohesive digests for num
阅读全文在本文开始前,我们先看一个奇怪的问题。以下两个函数,为什么 reborrow_good 能通过编译,而 deref_bad 不能?
阅读全文三号和她逛了美术馆。 此前她已经来过一次,说这里面有好些标榜着“现代艺术”的新奇玩意儿,一个人逛完感觉要长脑子了。美术馆外的景观更是一绝,隔江远眺,对岸高楼参差,繁华尽收眼底,只可惜当时天气不好,灰蒙蒙的。但现在秋高气爽,天空湛蓝而清澈,再没比这更适合出游
阅读全文今天的故事源自数月前我在 r/learnpython 上
阅读全文本站此前是依托 Github Pages 搭建的,即静态文件托管于 Github 上,再将自定义域名 i.hsfzxjy.site CNAME 到 hsfzxjy.github.io。这种方案免费是免费,但国内的访问速度不甚良好,有几个省甚至出现了超时的现象
阅读全文
13State、Nation 与 Country,汉语皆常译为“国家”。事实上在当代英文的多数使用场景中,这三个词的的确确可互换表达相同的意思。但在某些场合中,表达者会斟酌其细微语义差别以突出重点,此时若再通译为“国家”,难免有些不准确,乃至引起不必要的误会。
阅读全文为了方便节省请求数,有时我们会将二进制数据以 Base64 编码的形式嵌入 HTML 或 JavaScript 中,再于运行时解码成 Uint8Array,进行后续运算。然而浏览器没有提供直接的 API 来完成这种解码转换,需要我们自己实现。本文介绍两种快速的解码方法。<
阅读全文在上一章 折腾 NPU·第0章 —— Intel NPU 概述与 Level-Zero 中,我们了解了 NPU 的概念以及 NPU 技术栈。本章将介绍如何在 VS Code 中搭建 Level-Zero
阅读全文最近入了台 Thinkbook 14p 2024,CPU 是 Intel Ultra5 125H,内有一枚 3720 NPU 芯片,可用于实现低功耗模型推理。藉此机会我深入了解了 NPU 开发的相关知识,以此系列为记。 NP
阅读全文
17本站将新增一个域名 monad.run,此后旧域名 i.hsfzxjy.site 也将继续保留,与新域名共存,二者皆可用于访问。
阅读全文为追求更好的阅读体验,本站的中文文章采用了混合字体的排版方式。例如在 Windows 环境中,中文字符以 Microsoft Yahei 渲染,而英文字符则使用 Open Sans 渲染。由于 Microso
阅读全文Do you believe that one can write a function in safe Rust which can arbitrarily change the lifetime of a reference? For clarity, try to
阅读全文我们知道 Dijkstra 算法是一个高效的单源最短路径(SSSP)算法,本文将不再赘述他的细节。但同时,Dijkstra 也是一个动态规划算法。Dijkstra 算法的正确性源自无负边权图的若干性质。如果一个问题本身也满足这些性质,那么即使它不是一个图论最短路径问题,也
阅读全文以下假设字符串下标从 $0$ 开始,子串记号 $s[i..j]$ 左闭右闭。 给定长度为 $n$ 的字符串 $s$,Manacher 算法可以在 $O(n)$ 的时间复杂度内找到 $s$ 的所有回文子串
阅读全文我醒了,闹钟仍未响,窗外却已见鱼肚白。从帽子里掏出手机,才六点出头。 硬卧的床仿佛是量身定制的,不宽不窄,恰能容下一个我。我睡前戴上了连衣的帽子,将手机放在帽子里,既防止手机从上铺跌落,也不怕错过了闹钟——现在看来是多余了。我小心翼翼地侧过身,对面的人还在
阅读全文There’s a concept in Golang called zero-sized type (or ZST), namely, a type whose variables take up zero bit of memory. One of
阅读全文Floating-point numbers, as we know, are notorious for losing precision when their values become too large or too small. They are also ba
阅读全文我们常能在英文社区看到 coding ceremory 一词,或译为 代码的仪式。Stack Overflow 上有个问题
阅读全文Last night I started a journey to build Electron completely from the ground up, for i
阅读全文前段时间在 V2EX 的一个帖子 /t/943948 中看到了一个有趣的问题: 在中文的亲属称谓体系中,我们会有“爸爸的爷爷”与“爷爷的爸爸”
阅读全文This post is written to dictate some opinionated explanation that dispels my confusion to Kotlin coroutines during learning.
阅读全文Recently I was planning to make a small contribution to project DefinitelyT
阅读全文“封建”一词很有意思。作为一个土生土长的中国词,它于千年前便有了固定而确切的含义。然而在近代西方思潮的冲击下,这个词的意义先是遭到了替换,而后又在近百年的传播中演化成了与本义毫不相干的概念。如今的人们谈及封建一词时,心中不免会有困惑,因为其现代含义与汉字构成相去甚远。更糟
阅读全文Several users reported to encounter "Error 804: forward compatibility was attempted on non supported HW" during t
阅读全文
32GPG (the GNU Privacy Guard) is a complete and free implementation of the
阅读全文A few days ago, I decided to shrink the footprint of the Windows system on my laptop and reallocate the freed-up disk space to Ubuntu, w
阅读全文The time I composed my first program can be back to my junior high school age. It was the first day of PC lesson, and everybody crowded
阅读全文
35Both Dart and Go support decentralized package distribution. One is able to directly adopt an existing git repository as dependency, eas
阅读全文I am always a dedicated fan of writing naturally readable code – by “naturally readable” I mean, one can read a line of code as if it we
阅读全文轻微的一阵异响。面前说话的她随即模糊起来,声音也渐渐远去,趋于缥缈。我这才注意到从一开始就没有看清她的脸——原来只是个梦罢了。意识跌落回现实。我又重新感受到了我的双腿,久坐后腰的酸痛,最后是沉重的眼皮。睁开眼,还是熟悉的银色舷窗。 窗外的天王星已经很大了。
阅读全文In Golang, if you coerce a uintptr variable into unsafe.Pointer (or further, to some *T), the lin
阅读全文计算机从业者们似乎都喜欢写 side project,这在中文社区中有个通俗的说法即「搞副业」。如果你经常逛 V2EX、Reddit 的编程板块或是 Hacker News,你会看到人们分享的各种各样的 side project,小到一个百余行代码的实用小工具,大至一个框
阅读全文Days ago, for some reason, I was trying to implement a function that can polymorphize over its return type. The solution is simple, but
阅读全文There could be scenes when you are using multiprocessing.pool.Pool and you want to perform some initialization for each wor
阅读全文I was recently working on a side project that involves communication between binaries written in Rust and web interfaces written in Pyth
阅读全文I am a heavy user of Mathjax. Mathjax is a library that renders Tex-compatible syntax into pretty
阅读全文I’ve been struggling to choose a handy tool for blogging about seven or eight years ago. Before the day I’ve tried building my own blog
阅读全文Today a user of our GPU cluster ran into a problem where executing python -c 'import torch; torch.tensor(1).cuda() woul
阅读全文互联网正在变得不自由——这已经成为了一种共识。这种不自由是从获取内容的角度出发,我们依自己的意愿获取知识/资讯的难度在增加。「中文互联网已死」。优质资源被各大互联网巨头所垄断,人们只能从应用内部访问,并时常受到推荐算法的说教。在巨头领域之外的公网则是一片荒漠,充斥着大量低
阅读全文I came across a piece of interesting vulnerable script from a post on V2EX 1) on V2EX. A bas
阅读全文I was once working as an intern at MSRA around two years ago, at which I joined a research project and started developing upon a large c
阅读全文The early idea of hsfzxjy/mocona was come up with in late April. It was not until July t
阅读全文The module pickle shipped in Python could be used for generic-purpose object serialization and de-serialization. It’s been
阅读全文