Solidot
黑洞将其捕获的恒星扭曲成圆环形 2023-01-17 21:37:00 by 神秘世界的人 黑洞是守株待兔的采集者而不是猎人,它们会耐心等待倒霉的恒星路过。当恒星的距离足够近时,黑洞的巨大引力会将其撕碎然后吞噬,同时释放出强烈的辐射。这种现象被称为黑洞潮汐瓦解事件。天文学家正利用哈勃太空望远镜观测一颗恒星被黑洞吞噬的过程。这起事件被称为 AT2022dsb,被吞噬的恒星距离星系 ESO 583-G004 中央接近 3 亿光年。它是在 2022 年 3 月 1 日被 ASAS-SN(All-Sky Automated…
This media is not supported in your browser
VIEW IN TELEGRAM
喵喵小喵喵
https://smallcultfollowing.com/babysteps/blog/2019/10/26/async-fn-in-traits-are-hard/ https://blog.rust-lang.org/inside-rust/2022/11/17/async-fn-in-trait-nightly.html 旧闻两则 本质上的难点感觉还是在 impl Trait in dyn Trait
Related:
https://rust-lang.github.io/async-fundamentals-initiative/roadmap/dyn_async_trait.html
看上去如果对着 dyn Trait 调用返回值是 impl Trait 的方法,打算语言层面自动 Box?
再 Desugar 一层应该是 [G]AT,那以后 Associated Type 有没有可能搞类似的东西,变得 object safe 了
Box is special.jpg
https://rust-lang.github.io/async-fundamentals-initiative/roadmap/dyn_async_trait.html
看上去如果对着 dyn Trait 调用返回值是 impl Trait 的方法,打算语言层面自动 Box?
再 Desugar 一层应该是 [G]AT,那以后 Associated Type 有没有可能搞类似的东西,变得 object safe 了
Box is special.jpg
喵喵小喵喵
Related: https://rust-lang.github.io/async-fundamentals-initiative/roadmap/dyn_async_trait.html 看上去如果对着 dyn Trait 调用返回值是 impl Trait 的方法,打算语言层面自动 Box? 再 Desugar 一层应该是 [G]AT,那以后 Associated Type 有没有可能搞类似的东西,变得 object safe 了 Box is special.jpg
Also previously: https://without.boats/blog/async-methods-ii/
以及 RFC #1909 Unsized Rvalues
以及 RFC #1909 Unsized Rvalues
Forwarded from Hacker News (yahnc_bot)
Small VMs and Coroutines https://blog.dziban.net/coroutines/
blog.dziban.net
Small VMs & Coroutines
TL;MDWR In this post I’ll talk about the implementation of the coroutine system in x64 asm for a game I’m writing.
(Disclaimer: I’m very new at x64 assembly programming, so I may be doing some very stupid things)
Background I’ve had this idea for a while…
(Disclaimer: I’m very new at x64 assembly programming, so I may be doing some very stupid things)
Background I’ve had this idea for a while…
Forwarded from Hacker News (yahnc_bot)
A first person shooter in 571 lines of GNU Awk (2017) https://github.com/TheMozg/awk-raycaster
GitHub
GitHub - TheMozg/awk-raycaster: Pseudo-3D shooter written completely in gawk using raycasting technique
Pseudo-3D shooter written completely in gawk using raycasting technique - TheMozg/awk-raycaster
Forwarded from Solidot
美国国务院淘汰 Times New Roman 字体
2023-01-19 20:43:00 by 树上银花
美国国务院将淘汰 Times New Roman 字体改用 Calibri 字体。国务卿布林肯(Antony Blinken)给所有大使馆发电报要求不要再给他发送使用 Times New Roman 字体的文件。他的电报标题是“The Times (New Roman) are a-Changin”。Times New Roman 是诞生于 1930 年代的衬线字体,而 Calibri 是诞生于 2004 年的无衬线字体。国务卿下令改变字体不是出于美学而是出于可访问性的考虑,因为无衬线字体更容易阅读,尤其是在屏幕上。它对于使用光学字符识别和文本语音工具的人也更方便。布林肯是在本月指示员工寻找更容易使用的字体。自 2007 年以来 Calibri 就是微软办公软件的默认字体。不过微软在 2021 年表示在寻找 Calibri 的替代字体。
#互联网
2023-01-19 20:43:00 by 树上银花
美国国务院将淘汰 Times New Roman 字体改用 Calibri 字体。国务卿布林肯(Antony Blinken)给所有大使馆发电报要求不要再给他发送使用 Times New Roman 字体的文件。他的电报标题是“The Times (New Roman) are a-Changin”。Times New Roman 是诞生于 1930 年代的衬线字体,而 Calibri 是诞生于 2004 年的无衬线字体。国务卿下令改变字体不是出于美学而是出于可访问性的考虑,因为无衬线字体更容易阅读,尤其是在屏幕上。它对于使用光学字符识别和文本语音工具的人也更方便。布林肯是在本月指示员工寻找更容易使用的字体。自 2007 年以来 Calibri 就是微软办公软件的默认字体。不过微软在 2021 年表示在寻找 Calibri 的替代字体。
#互联网
Forwarded from Hacker News (yahnc_bot)
How to own an airline in 3 easy steps and grab the TSA nofly list along the way https://maia.crimew.gay/posts/how-to-hack-an-airline/
maia :3
how to completely own an airline in 3 easy steps
and grab the TSA nofly list along the way
Forwarded from Meow-meow 🍓 via @pixiv_net_bot