News for hackers. Stuff that matters.
Re:Cosmopolitan Third Edition by AYoung010 on Wednesday November 01, 2023 @02:44PM (#38102945)
That was the most interesting part of the article for me. I don't understand how it can be faster, given that there's syscall translation going on. Is this more of a commentary on the quality of the `libc` available on Windows? Or on the quality of the GNU Emacs Windows port?
Re:Cosmopolitan Third Edition by PrivateButts on Wednesday November 01, 2023 @03:19PM (#38103479)
Could be like the improvements seen when running applications using DXVK. My understanding is that sometimes these translation layers can use newer and more efficient methods than the path that a native implement for the time would use. I'm not a subject matter expert though, and could be completely off base.
Re:Cosmopolitan Third Edition by vitiral on Wednesday November 01, 2023 @04:30PM (#38104654)
IIUC there is no syscall translation, it's more like there are separate libc implementations and the correct one gets selected at program start based on the OS.
Re:Cosmopolitan Third Edition by ReactiveJelly on Wednesday November 01, 2023 @09:52PM (#38107999)
So like in-process WINE?
Re:Cosmopolitan Third Edition by kevincox on Thursday November 02, 2023 @09:40AM (#38113373)
Yes, this seems fairly accurate. In fact I think Wine supports this mode where you link Wine into a "windows program" at build time to produce a "native" Linux executable. So basically the difference is that you target a POSIX API rather than Win32 and the backend implementation is selected at runtime rather than build time. But both projects have the same idea that they will implement a particular API on multiple platforms.