Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oguz-ismail
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
241.
▲
by
oguz-ismail
2y ago
0xB16B00B5
242.
▲
by
oguz-ismail
2y ago
Lowercase f and r are ugly.
243.
▲
by
oguz-ismail
2y ago
Thanks. That sucks
244.
▲
by
oguz-ismail
2y ago
I know this works on Macs with Intel chips. But the ones with ARM chips just won't execute fully static binaries, and I'm wondering if there's a workaround.
245.
▲
by
oguz-ismail
2y ago
>You're welcome to ignore it of course How do you mean? Like, is it possible to run such binaries on M1? If so I'd really like to know how
246.
▲
by
oguz-ismail
2y ago
I recall reading about new Macs with ARM chips not supporting static binaries. Is it not true?
247.
▲
by
oguz-ismail
2y ago
Does it parse commands and call exec*() or spawn a new shell for every run of every command?
248.
▲
by
oguz-ismail
2y ago
> Hrmmm. But why? because Bash goes brrrr
249.
▲
by
oguz-ismail
2y ago
head , read , and sed can be used for seeking forward according to POSIX (see the INPUT FILES section here < https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V... >). I doubt non-GNU impleme
250.
▲
by
oguz-ismail
2y ago
The README for this project still says "POSIX-approved" but there is nothing in POSIX that allows mixing commands and binary data in a shell script. It does allow appending binary data to the end of a shell script* as long as it i
251.
▲
by
oguz-ismail
2y ago
> If a certain piece of software is working well, what is the benefit of rewriting it in Rust? One benefit is it's easier to hide malicious code thanks to Rust's complicated syntax.
252.
▲
POSIX.1-2024 HTML Version Is Online
(pubs.opengroup.org)
5 points
by
oguz-ismail
2y ago
|
0 comments
253.
▲
by
oguz-ismail
2y ago
[T]he initial portion doesn't mean the first line, it means the script part of a file consisting of a shell script and a binary payload, separated by `exit', `exec whatever', etc. A good example is the Oracle Developer Stud
254.
▲
by
oguz-ismail
2y ago
See https://news.ycombinator.com/item?id=40775600 POSIX doesn't sanctify this use.
255.
▲
by
oguz-ismail
2y ago
POSIX now says: >The input file can be of any type, but the initial portion of the file intended to be parsed according to the shell grammar [...] shall not contain the NUL character. But the initial portion of, https://cosmo.
256.
▲
by
oguz-ismail
2y ago
`finally' is a word though, harder to forget than a single punctuation mark.
257.
▲
by
oguz-ismail
2y ago
Just curious, would writing it in a better language have prevented this?
258.
▲
by
oguz-ismail
2y ago
This. 1-3 character names should be reserved for user aliases/functions/scripts and standard utilities.
259.
▲
by
oguz-ismail
2y ago
Yes, it's an easy fix though: df -h | grep -Po "\d+(?=%\s+\Q$partition\E)"
260.
▲
by
oguz-ismail
2y ago
int main(void) { register const char *msg asm("x1") = "hello, world!\n"; asm ( "mov w0, #1\n" "mov w2, #14\n" "mov w16, #4\n"