Live data from Hacker News

αcτµαlly pδrταblε εxεcµταblε

justine.storage.googleapis.com

41–50 of 309 posts

Re: αcτµαlly pδrταblε εxεcµταblε

#41

Earlier quoted context omitted.

He talks about it a bit as the "magic numbers". You can see the big table: https://github.com/jart/cosmopolitan/blob/c91b3c50068224929c... I guess there's also syscall emulation stubs for Windows but since he only supports "stdio and sockets" maybe not.

The author is a "she": https://en.wikipedia.org/wiki/Justine_Tunney

Reading that page, and this HN article, reminds me of a classic phrase: "There is a fine line between genius and insanity."

Re: αcτµαlly pδrταblε εxεcµταblε

#42
post #18

Why does the title font look pseudo Greek?

I hate it when people do that. It looks tacky and it's super annoying when they (mis)use a script you can read.

It's especially annoying if you took two quarters of Greek like 35 years ago and recognize it just well enough to have trouble seeing it as weird English lettering.

Re: αcτµαlly pδrταblε εxεcµταblε

#43

I believe that scripts without a shebang line cannot be executed by execve. They will only run if the shell sees them before the kernel does. It's an annoying limitation of this approach and it wasn't clear to me whether this technique includes a workaround for this. Also the push for code signing everywhere is going to make this harder in the future as well. (I heard a rumor that the workaround to run unsigned execu…

> I believe that scripts without a shebang line cannot be executed by execve.

This was once true on old systems, but current ones (including Linux) have native support for scripts starting with #!. See fs/binfmt_script.c in Linux, which has existed for several decades.

Re: αcτµαlly pδrταblε εxεcµταblε

#45
post #29

Finally, you can produce a single cross-platform executable in C. > we've basically reconfigured the stock compiler on Linux so it outputs binaries that'll run on MacOS, Windows, FreeBSD, OpenBSD too. They also boot on bare metal

But it doesn't work on Linux?

It does for me. Make sure to execute via/prefix with sh, you can’t invoke it directly even after chmod +x

Re: αcτµαlly pδrταblε εxεcµταblε

#46

I believe that scripts without a shebang line cannot be executed by execve. They will only run if the shell sees them before the kernel does. It's an annoying limitation of this approach and it wasn't clear to me whether this technique includes a workaround for this. Also the push for code signing everywhere is going to make this harder in the future as well. (I heard a rumor that the workaround to run unsigned execu…

> I believe that scripts without a shebang line cannot be executed by execve. This was once true on old systems, but current ones (including Linux) have native support for scripts starting with #!. See fs/binfmt_script.c in Linux, which has existed for several decades.

I'm talking about scripts without the shebang (#!) line.

Re: αcτµαlly pδrταblε εxεcµταblε

#47

I believe that scripts without a shebang line cannot be executed by execve. They will only run if the shell sees them before the kernel does. It's an annoying limitation of this approach and it wasn't clear to me whether this technique includes a workaround for this. Also the push for code signing everywhere is going to make this harder in the future as well. (I heard a rumor that the workaround to run unsigned execu…

> I believe that scripts without a shebang line cannot be executed by execve. This was once true on old systems, but current ones (including Linux) have native support for scripts starting with #!. See fs/binfmt_script.c in Linux, which has existed for several decades.

Yes, that is the aforementioned shebang line.

Re: αcτµαlly pδrταblε εxεcµταblε

#48
post #40

I believe that scripts without a shebang line cannot be executed by execve. They will only run if the shell sees them before the kernel does. It's an annoying limitation of this approach and it wasn't clear to me whether this technique includes a workaround for this. Also the push for code signing everywhere is going to make this harder in the future as well. (I heard a rumor that the workaround to run unsigned execu…

> C compiler is installed It's a great idea but that part is a big ask for any Windows user who doesn't develop desktop applications.

True. I'm imagining this as useful mostly for build scripts or other developer tools. To the extent that it's useful at all.

Re: αcτµαlly pδrταblε εxεcµταblε

#49
post #35

> I believe the best chance we have of doing that, is by gluing together the binary interfaces that've already achieved a decades-long consensus, and ignoring the APIs. Yeah, this isn't going to fly for OpenBSD, which doesn't have ABI stability, programs are expected to use libc. Program for the API, not the ABI. The author is clever, but misguided.

I believe the claim is that there exists a stable subset: > Bell System Five is the umbrella term we use to describe Linux, FreeBSD, OpenBSD, and Mac OS X which all have nearly-identical application binary interfaces that stood the test of time, having definitions nearly the same as those of AT&T back in the 1980's. However, only Linux guarantees stability at this level so I too am very sceptical that this will "stan…

Isn't Windows also known for being committed to both API and ABI stability?

Re: αcτµαlly pδrταblε εxεcµταblε

#50
post #2

The source code equivalent of this is a polyglot program: https://en.wikipedia.org/wiki/Polyglot_(computing) Apparently people on Stack Exchange have been working together on a single polyglot program for four years and have gotten a single codebase up to validity in nearly 300 languages. https://codegolf.stackexchange.com/questions/102370/add-a-la... Edit: also, Yusuke Endoh is a master at this art form https://gith…

>Apparently people on Stack Exchange have been working together on a single polyglot program for four years and have gotten a single codebase up to validity in nearly 300 languages.

Wow, what a link. I submitted it just now as a separate HN post using your phrasing:

https://news.ycombinator.com/item?id=24257630

Post reply on HN