Kem Chen
Kem Chen
I think there are several things we could do to reduce the generated code. For example, given a image called *avatar.png*, R will generate: ```swift /// Image `image_tags_text_author_zh-Hant`. public static...
One small problem is API discoverability, this method wil not display in code-completion list like before. Any thoughts? @mac-cain13
@manicmaniac The "weird encoding" diff file is actually fetched from GitHub. Here is the link to [an example pull request](https://github.com/kemchenj/GitPathEscapeBug/pull/1), and its [diff file](https://patch-diff.githubusercontent.com/raw/kemchenj/GitPathEscapeBug/pull/1.diff): ```diff diff --git "a/\346\226\207 \344\273\266 \345\244\271/\346\226\207\344\273\2662.md"...
在论坛看到有人也发布了一个 COW 的库,顺便贴上来 https://github.com/Swift-CowBox/Swift-CowBox
等等它后续几个 part,再一并推荐吧
补充一个这类知识非常受用的场景:https://github.com/apple/swift-package-manager/pull/7326
### [Comparing Swift Compiler Performance on Type Inference Part I Strings, Numbers, Arrays, Dictionaries and Constructables](https://lucasvandongen.dev/compiler_performance.php) [@kemchenj](https://kemchenj.github.io/):这篇文章比较了Swift编译器在进行类型推断时的性能,特别是在字符串、数字、数组、字典和可构建类型的初始化方面。作者通过基准测试发现,使用未类型化的字面量初始化通常最快,而使用.init()的方式最慢。特别是在复杂上下文中,例如计算属性,.init()的性能下降明显。文章还指出,不同版本的Xcode在编译性能上的差异,并提出了优化编译时间的具体建议。
After waking up, I realized there was a small issue with the conditions for loading comments. Previously it was `page.comments or theme.injects.comment.length > 0`, but checking `page.comments` was unnecessary and...
> Scripts like https://github.com/next-theme/hexo-theme-next/blob/master/source/js/third-party/analytics/google-analytics.js are loaded in `` and requires `CONFIG` variable Emm, didn't notice that, looks like it requires more changes than I thought before. For now I will...
First, I want to thank you for all the incredible work you have done on MLX. It has been an invaluable tool for my projects. I am currently working on...