News for hackers. Stuff that matters.
Re:Apple's follow-up to M1 chip goes into mass production fo... by homarp on Tuesday April 27, 2021 @11:54AM (#26957643)
and this is now called Electron

trading speed of development with 'hardware optimization'.

Mac being a small market, some users are still opiniated/loud enough to reward nicer/native UI vs cross-ish platform lowest common denominator UI. Maybe there is hope Arm mac stays fast.

Re:Apple's follow-up to M1 chip goes into mass production fo... by whatever1 on Tuesday April 27, 2021 @01:11PM (#26958711)
I would say that 90% of my pc resources are consumed to execute JavaScript code. If we need dedicated hardware to execute this more efficiently so be it. We do it anyway for so many other domains. Video, graphics, encryption etc.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Jetrel on Tuesday April 27, 2021 @04:50PM (#26961345)
One of the big deals with electron-et-al is that we're not married to JavaScript, really; we're married to "the DOM and css" as our gui, and things like FF/Chrome/Safari devtools to develop that gui.

Most javascript developers are already using babel-et-al pipelines to build electron apps, which are already transpiling between major variants of javascript, and I wouldn't at all surprised to see a thing where it gets compiled into WebAssembly rather than interpreting javascript. I also think there's a thing, right now, where it's possible to build electron apps with Rust+WebASM; I'm not sure, but I think the main thrust here is it definitely would eliminate a huge chunk of the slowdown.

I guess the main takeaway is just that the development revolution that's happened recently is mainly about how insanely good browser dev tools have become, and not about javascript - javascript was just along for the ride. As an aside - I recently saw a video of someone demoing one of the old Symbolics LISP workstations, and I was shocked to realize how much they had in common with a modern browser console - specifically of being able to inspect all of your gui components, live, and look at all the properties set on them. It's provided a hell of a way for me to explain what the deal was with all the old gurus in the 80s "AI Winter" diaspora who were pretty butthurt about having to move from programming in that environment, to having to write C on DOS (or whatever else paid the bills at the time).

Re:Apple's follow-up to M1 chip goes into mass production fo... by xvilka on Tuesday April 27, 2021 @07:57PM (#26963692)
WebAssembly is just another JVM which is notoriously slow for GUI compared to the native alternatives like Qt.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Tuesday April 27, 2021 @06:29PM (#26962715)
There basically already is in the M1: https://www.anandtech.com/show/16226/apple-silicon-m1-a14-de...

tl;dr it has really sick floating point double performance which directly translates to JS performance

Re:Apple's follow-up to M1 chip goes into mass production fo... by saagarjha on Wednesday April 28, 2021 @02:23AM (#26966304)
Most JavaScript JITs do math on integers.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Thursday April 29, 2021 @01:29PM (#26983996)
Only if using the BigInt type: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

all other numbers are floats

Re:Apple's follow-up to M1 chip goes into mass production fo... by saagarjha on Thursday April 29, 2021 @04:11PM (#26986095)
No, this is independent of BigInt. JITs speculate that numbers are integers for performance.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Thursday May 06, 2021 @09:54AM (#27063212)
Hmmmm okay! I see what you're saying now.
Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @01:09PM (#26958674)
+ Mac OS checking every binary you run over the internet.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @03:47PM (#26960589)
It's slightly more nuanced than that - you can of course just block it from doing so, and there's certainly an argument for it being updated to not need a network call each time, but phrasing it like this makes it sound worse than it actually is.

I'll just quote Jeff Johnson, who's looked into this and written about it - his comment[1] on this is post is quite useful:

https://eclecticlight.co/2020/11/25/macos-has-checked-app-si...

>The request to http://crl.apple.com/root.crl is simply checking the revocation status of Apple’s own Developer ID Certification Authority intermediate signing certificate. If you examine the cert in the System Roots keychain, you can see that URL under CRL Distribution Points. This request contains no information specific to third-party developers or apps. In contrast, there’s no CRL for third-party Developer ID leaf certs signed by Apple’s intermediate cert. Their status is only available via OCSP.

Notably, this:

>This request contains no information specific to third-party developers or apps.

https://eclecticlight.co/2020/11/25/macos-has-checked-app-si...

Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @07:43PM (#26963553)
You added detail, yet didn't refute the statement. That it isn't easy to simply and specifically turn off is not acceptable.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @09:28PM (#26964290)
No, I'm fairly certain I refuted it.

The parent comment is incorrectly stating that each request to Apple is checking a binary, and it's not. This has been well documented both here on HN and across the web.

Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @10:15PM (#26964669)
That's not the definition of refute. The distinction between a lazy-implied always and merely often is pedantic. The point is that it happens enough to reduce performance, while doing something no end-user asked for and is difficult, if not impossible to disable without reducing other security protections.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Wednesday April 28, 2021 @03:01PM (#26972841)
There is no measurable performance loss from that one time check - it's not something happening constantly.
Re:Apple's follow-up to M1 chip goes into mass production fo... by walterbell on Tuesday April 27, 2021 @02:43PM (#26959807)
Pihole and others can block those Apple queries.
Re:Apple's follow-up to M1 chip goes into mass production fo... by bonestamp2 on Tuesday April 27, 2021 @05:30PM (#26961848)
What happens if you block them.. do they eventually stop working if they haven't been validated in a long time?
Re:Apple's follow-up to M1 chip goes into mass production fo... by imwillofficial on Tuesday April 27, 2021 @02:21PM (#26959516)
Yep, see the success of the Nova editor.
Re:Apple's follow-up to M1 chip goes into mass production fo... by realityking on Wednesday April 28, 2021 @02:28AM (#26966337)
Funnily enough, I dropped it after the trial expired because the plug-ins - which I belobe are written in JavaScript - were incredibly unstable.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Hamuko on Tuesday April 27, 2021 @02:24PM (#26959561)
It's a success?
Re:Apple's follow-up to M1 chip goes into mass production fo... by 1123581321 on Tuesday April 27, 2021 @07:02PM (#26963094)
I don't know what qualifies as a success, but I saw in Git Tower's developer survey that it has about 5% share. The share of the whole developer industry should be lower, because Tower's audience is interested in premium tools, but I expected it to be struggling to break 1%. https://www.git-tower.com/blog/mac-dev-survey-2021-results
Re:Apple's follow-up to M1 chip goes into mass production fo... by imwillofficial on Tuesday April 27, 2021 @05:57PM (#26962248)
Yes
Re:Apple's follow-up to M1 chip goes into mass production fo... by homarp on Tuesday April 27, 2021 @03:57PM (#26960717)