Hacker Newsnew | past | comments | ask | show | jobs | submit | onderweg's commentslogin

Is anyone aware of a similar example, for ARM assembly on macOS?


    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"
            "svc #128\n"
            :
            : "r" (msg)
        );
    }


How does one compile this?

EDIT: my bad, my source had a typo - it's as easy as you'd think:

  $ cc hello.c -o hello
  $ ./hello


thanks!


Not inline, but this was linked in a comment on HN a few days ago

https://github.com/below/HelloSilicon


It is way too early to say whether or not Google is failing in AI. The only thing that is certain is that lately things are not going smoothly for Google in AI.


Looks interesting, but... yet another subscription. I'm willing to pay for good apps, but I'm not willing to keep stacking subscriptions.


Same here. Especially something I use on daily bases.


With the advent of AI it's becoming more and more expensive to be human. By 2030 humans will pay everywhere to prove they are not bots.


Although usually I found David's posts pretty interesting and well written, this post does not make a lot of sense.

"Later, that the vaccine would prevent you from getting the virus. Finally, that if you were vaccinated, you couldn't spread the virus. All of that, and plenty more, turned out to be false."

It's full of questionable claims (see above) and his reasoning is hard to follow, unless for anti-vaxxers maybe.


Have you considered you might be wrong?


It's not as black and white as right or wrong. There is a lot more nuance to the choices made during the pandemic than the author leads us to believe.


There was nothing nuanced about the violence and coercion.


Indeed. That sentence from the article sums it up.


Maybe the heyday of social media and the rise of "fake news".


Same here


As a macOS user:

- iTerm2 terminal (https://iterm2.com/)

- Visual Studio Code

- Typora for Markdown notes (https://typora.io/)

- MacPass for password management

CLI:

- Everything developed with bubbletea :)(https://github.com/charmbracelet/bubbletea)

- Homebrew

- jq

(this is the best software I used during 2022, but obviously this is not "new" software: software that also had a first release in 2022).


Indeed. I really wonder how the author plans to use UUIds and QR codes.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: