HNHacker News
TopNewBestAskShowJobs

ash_gti

242 karma · joined July 24, 2013

John Harrison, iOS Dev at Google
submissionscomments
ash_gti··on iOS 12 introduces new features to reduce interruptions and manage Screen Time
This wouldn't be the first time Apple's had a perf/polish focused release. For example Snow Leopard had almost no major features and was mainly perf and polish over Leopard.
ash_gti··on When an implementation monoculture might be the right thing
I don't think they will stop using c++ anytime soon.
ash_gti··on Command-line Tools can be 235x Faster than a Hadoop Cluster (2014)
Shouldn't this be marked 2014? The articles date is January 18, 2014.
ash_gti··on Microplastics found in 93% of bottled water tested in global study
Citations? I don't know much about European handling of drinking water.
ash_gti··on Node.js v9.9.0
Doesn't java have like a 90 day release cycle now [0]?

Java 9 is EOL in March 2018, and Java 10 is EOL in Sept 2018 [0]

0: http://www.oracle.com/technetwork/java/eol-135779.html

ash_gti··on V8 JavaScript Engine Release v6.5
JavaScriptCore from WebKit does PTC, see https://webkit.org/blog/6240/ecmascript-6-proper-tail-calls-... for more info
ash_gti··on Apple previews iOS 11.3
It sounds like they’re going to be using the RCS standard for those communications.
ash_gti··on The End to Apple’s Cash Dilemma
I also think most companies usually invest their additional cash into things that they think will grow faster than their debt interest. Long term it makes more sense to grow a part of their company that will have a larger return investment than being debt free.
ash_gti··on What's New in Swift 4
I'm an iOS developer and I use it for writing iOS apps, testing, and managing my test environments. I have the luxury of assuming a macOS host though.

I think the reason you'd pick it for a server language is because the strengths of the language and ecosystem meet your server requirements.

ash_gti··on What's New in Swift 4
Its not terribly difficult to use swift on linux, theres a a working group trying make it easier for developers to use swift on the server [0]

[0] https://github.com/swift-server/work-group

ash_gti··on Typing with pleasure, and low latency
The article was published on Sunday, December 20th, 2015.

Although at the time this was published Atom 1.3 had been released, however I do not know when the author recorder their data. Atom 1.1 was from Oct 2015 so thats not to out of date.

ash_gti··on Typing with pleasure, and low latency
Hmm I tried using his tool on my Mac and it did not seem to work for any of the editors I tried (system vim in a terminal, TextEdit, MacVim).

Does anyone know if there is an existing tool for these kinds of measurements on a Mac?

Doing a few google searches mostly turns up this article. But maybe my googling skills are weak.

ash_gti··on Concurrency in Swift: One possible approach
One spec is about Async/Await and the other is a high level design approach for the language (which does include a reference to the async/await proposal, its under the section titled `Part 1: Async/await`).
ash_gti··on Let's Remove the Global Interpreter Lock
I was mostly just pointing out that perl6 might not be as slow as the comment you linked suggests. There seems to be something about using `perl6 -pe` that caused it to be slower than you’d expected. However, using a different approach its reasonably fast, or at least it appears reasonably comparable to the perl 5 example that was provided.

Hopefully more edge cases will be discovered and fixed as the implementation matures as well.

ash_gti··on A Review of Perl 6
So, a fairly simple change to this will bring down the time to a few ms (86 ms on my computer)

  time yes | head -n1000000 | perl6 -e 'for $*IN.readchars { .subst("y", "n").print }’
Its slightly more complicated because I’m having it read the input in a chunk instead of on a per-line basis and I’m using subst on a literal instead of a regex.
ash_gti··on Let's Remove the Global Interpreter Lock
So, doing another simple change to my code brought the runtime down to a few ms. Doing:

  time yes | head -n1000000 | perl6 --profile -e 'for $*IN.readchars { .subst("y", "n").print }’ > /dev/null
says it took 86 ms. Which is pretty decent I’d say.
ash_gti··on Let's Remove the Global Interpreter Lock
If you use master instead of the current release that example goes from about two mins to just under one minute for my machine.

Also, if you use .subst(‘y’, ’n’) instead of a regex it runs in under 9 seconds locally. Thats still much slower than perl 5 (which locally takes less than half a second) but they’re making great strides at improving performance.

ash_gti··on Safari Should Display Favicons in Its Tabs
They release every other week updates to Safari Technology Preview as well as daily builds of Webkit. Both include new features.

They have blog posts about feature development as well here: https://webkit.org/blog/

ash_gti··on Safari Should Display Favicons in Its Tabs
I think you only see fav icons in safari mobile in the bookmarks menu as well.
ash_gti··on Why I’m Learning Perl 6
Perl6 (with the MoarVM backend at least) should have proper async IO on both network and file IO.

jnthn (one of the primary contributors to MoarVM) has a write up about recent work done to improve the system here: https://6guts.wordpress.com/2017/06/08/sorting-out-synchrono...

ash_gti··on “We will stop updating and distributing the Flash Player at the end of 2020”
I wonder what the major use cases are for Flash Player these days?

I assume some of the 'Farm Ville' style web games are probably in Flash still these days.

ash_gti··on Inside Wade, a 1kb search library
It will likely have trouble with languages that don't include spaces around words. This will likely work for most latin based languages though.
ash_gti··on 60 FPS Animations with CSS3
I'm not an expert in this area, but doesn't setting these properties only take effect in the next layout/paint cycle?

I think you need to call getComputedStyle (https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...) to resolve the new style update outside of the layout/paint cycle.

But I'm not really sure to be honest

ash_gti··on 60 FPS Animations with CSS3
This appears to be browser specific.

I copied his code-pen and used his first example in Safari (just using the `left` css property) and it was still 60 FPS in Safari (per debugging tools). I wonder how much variance there is between browsers on this. (I'm on a Mac 10.12.5 using Safari 10.1.1 (12603.2.4))

ash_gti··on Amazon's Leadership Principles
I work at Amazon and that's the explanation for our table desks we all have at work (unless you request a custom desk).
ash_gti··on The future of iOS is 64-bit only: Apple to stop support of 32-bit apps
UIKit and AppKit are pretty different, I don't see them convereging anytime soon.
ash_gti··on Open-sourcing Chrome on iOS
Isn’t it still a working draft?
ash_gti··on Open-sourcing Chrome on iOS
Are you referring to the `-[WKWebView navigationDelegate]`?

Thats only used for user initiated navigation, not loading of assets.

You could still inject a JavaScript file or CSS file though to help hide pieces of the view. But that would be content blocking after the HTTP requests have been made.

I don’t know of a way to intercept the HTTP requests as they’re being made from a WKWebView like Safari does for content blocking.

ash_gti··on American chestnut trees are “technically extinct”
Salvage logging is to cut down trees damaged by something to protect the rest of the tree (fire damage, disease, etc.).
ash_gti··on Safari 10.1
The tocuh bars pretty accessible, you can use ^[ as well.

I've remapped my caps to escape since I never use capslock.

← PreviousPage 2 of 3Next →