News for hackers. Stuff that matters.
Re:M1 Pro First Impressions: Core Management and CPU Perform... by PikachuEXE on Friday November 05, 2021 @02:16AM (#29116017)
> After upgrading our app's dependency chain to run native arm64 builds

Would you mind sharing your research results?

I am getting one soon and I am in progress of drafting notes for stuff like migration & setup.

Re:M1 Pro First Impressions: Core Management and CPU Perform... by yeldarb on Friday November 05, 2021 @08:17AM (#29118141)
It was mostly stuff specific to our specific situation.

We were still on node 12 because, until recently, Google Cloud Functions didn’t support anything newer. But when I installed it, I noticed it was running on x86 via Rosetta. So I upgraded to the latest node (17) which installed as native arm64.

Almost everything “just worked” but there were build errors with installing: webpack, node-sass, gprc, and node-canvas.

Webpack turned out to be an issue with node current (17) so downgrading to lts (which is currently 16) worked.

That seems to have magically fixed the gprc build too.

We weren't actually using node-sass anymore; so removed that dependency.

Upgrading node-canvas to 2.8.0 and building from source (after installing its dependencies via homebrew) seems to have worked.

All in all it took maybe 2 hours to follow all the rabbit holes. And our whole engineering team is going to move over to arm64 as soon as Apple can deliver their machines.

Re:M1 Pro First Impressions: Core Management and CPU Perform... by BigJ1211 on Friday November 05, 2021 @09:36AM (#29119005)
iirc node-sass was rewritten in dart and now you just need to use the package `sass` should work as a drop-in.
Re:M1 Pro First Impressions: Core Management and CPU Perform... by SkyMarshal on Friday November 05, 2021 @03:15AM (#29116272)
I would like to see this too, it's my only hesitancy in getting one.