Forwarded from Hacker News
Show HN: We are trying to (finally) get tail-calls into the WebAssembly standard (🔥 Score: 152+ in 3 hours)
Link: https://readhacker.news/c/5gCec
WebAssembly is a modern bytecode supported by all browsers and designed to be a compiler target for a wide variety of programming languages.
To effectively support some forms of Functional Programming support for tail-calls has been proposed as an extension to the WebAssembly standard.
This proposal has reached Phase3 of the standardization process years ago, but has since stalled.
Phase3 is known as "the implementation phase" and the prerequisite for advancing the proposal to Phase4 is to have support in two different browser engines. V8/Chrome support has been available for a long time, so another engine is required.
To unblock this situation we have contributed full support for WebAssembly Tail Calls to JavaScript/WebKit/Safari. The PR is available here:
https://github.com/WebKit/WebKit/pull/2065
An in-depth article about the challenges of implementing this feature is also available. This is intended both as documentation for our contribution, but also as a general explainer about how tails calls actually work, with a particular focus on stack space management.
https://leaningtech.com/fantastic-tail-calls-and-how-to-implement-them/
Link: https://readhacker.news/c/5gCec
WebAssembly is a modern bytecode supported by all browsers and designed to be a compiler target for a wide variety of programming languages.
To effectively support some forms of Functional Programming support for tail-calls has been proposed as an extension to the WebAssembly standard.
This proposal has reached Phase3 of the standardization process years ago, but has since stalled.
Phase3 is known as "the implementation phase" and the prerequisite for advancing the proposal to Phase4 is to have support in two different browser engines. V8/Chrome support has been available for a long time, so another engine is required.
To unblock this situation we have contributed full support for WebAssembly Tail Calls to JavaScript/WebKit/Safari. The PR is available here:
https://github.com/WebKit/WebKit/pull/2065
An in-depth article about the challenges of implementing this feature is also available. This is intended both as documentation for our contribution, but also as a general explainer about how tails calls actually work, with a particular focus on stack space management.
https://leaningtech.com/fantastic-tail-calls-and-how-to-implement-them/
Forwarded from Lancern's Treasure Chest
James Webb 空间望远镜使用的软件架构
James Webb 空间望远镜飞行软件和仪器控制程序采用 C++ 编写,并内嵌一个定制的 JavaScript 解释器用于运行 JS 脚本。JS 脚本负责发出指令和执行观测任务等。
JavaScript 上天了
https://www.stsci.edu/~idash/pub/dashevsky0607rcsgso.pdf
James Webb 空间望远镜飞行软件和仪器控制程序采用 C++ 编写,并内嵌一个定制的 JavaScript 解释器用于运行 JS 脚本。JS 脚本负责发出指令和执行观测任务等。
JavaScript 上天了
https://www.stsci.edu/~idash/pub/dashevsky0607rcsgso.pdf
💩11👍2
Forwarded from xkcd
'The best camera is the one at L2.'
Forwarded from 荔枝木
韦伯望远镜的造价,差不多够 14 亿人做 15 次核酸,美军在阿富汗待一个月。
那我看其实科学项目也没有那么贵(
建议少打仗,多搞科学(笑
那我看其实科学项目也没有那么贵(
建议少打仗,多搞科学(笑
Man, I’m devastated by the accuracy of edge-detection AI here.
It’s a OnePlus wallpaper, and iOS 16 Lock Screen algorithm is able to distinguish the glass edges of that object, resulting in 3 layers of transparency.
src
It’s a OnePlus wallpaper, and iOS 16 Lock Screen algorithm is able to distinguish the glass edges of that object, resulting in 3 layers of transparency.
src
👍4
微博
陈曦Stanley
iPhone13的拍照翻车能有多惨,看完这些照片我真是不忍笑出声。
其实从11代到12代就一直有这个问题,逆光拍人像只要人头在天地分界线附近,人像头部就会变成一团模糊的“佛光”。从现象看是AI的天空分割,人像语义分割存在选区重叠的时候,HDR的合成出了问题。
没想到13代上这个问题从头部蔓延到全身。手机在拍逆光人像时,人像部分需要用到亮的高曝帧,但是因为镜头雾化造成这一帧看起来更朦。所以合成了这些喜感照片。
有网友回说这些照片是用户自己P的,我只想说P成这样需要异于常人的想象力。
原本想说最近手机拍照领域技术进步和革新实在缓慢。
现在想说:行了,别开倒车就好,看看苹果。
要知道我如果能在社交平台看到这么多帖子,那就意味更多用户拍出了这样的照片。
(图片来自小红书用户的公开帖子)
陈曦Stanley
iPhone13的拍照翻车能有多惨,看完这些照片我真是不忍笑出声。
其实从11代到12代就一直有这个问题,逆光拍人像只要人头在天地分界线附近,人像头部就会变成一团模糊的“佛光”。从现象看是AI的天空分割,人像语义分割存在选区重叠的时候,HDR的合成出了问题。
没想到13代上这个问题从头部蔓延到全身。手机在拍逆光人像时,人像部分需要用到亮的高曝帧,但是因为镜头雾化造成这一帧看起来更朦。所以合成了这些喜感照片。
有网友回说这些照片是用户自己P的,我只想说P成这样需要异于常人的想象力。
原本想说最近手机拍照领域技术进步和革新实在缓慢。
现在想说:行了,别开倒车就好,看看苹果。
要知道我如果能在社交平台看到这么多帖子,那就意味更多用户拍出了这样的照片。
(图片来自小红书用户的公开帖子)
🤯18