Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    15comments
  2. I Vibed a Proof of Conway's Conjecture(overreacted.io ↗)
    26comments
  3. AI Protest in Montreal(montrealgazette.com ↗)
    5comments
  4. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    7comments
  5. Cloudflare Quick Tunnels(cloudflare.com ↗)
    7comments
  6. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    178comments
  7. OpenJev(openjev.com ↗)
    185comments
  8. North Korean nuclear test sets off years of earthquakes – Science – AAAS(science.org ↗)
    3comments
  9. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    5comments
  10. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    38comments
  11. I don't like passkeys(hawksley.dev ↗)
    331comments
  12. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    113comments
  13. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  14. Jemalloc 5.4.0(github.com/jemalloc ↗)
    62comments
  15. The scourge of x86 emulation(fex-emu.com ↗)
    57comments
  16. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    4comments
  17. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    492comments
  18. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    discuss
  19. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    170comments
  20. Astra for Law(openai.com ↗)
    645comments
  21. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    49comments
  22. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    12comments
  23. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    276comments
  24. BeanShell3 in Development(beanshell.github.io ↗)
    1comments
  25. Qwen 3.8 Omni Flash(qwen.ai ↗)
    102comments
  26. When the fractional part of a float fixes your shader(crocidb.com ↗)
    13comments
  27. Replacing Pull Requests with Delta(zed.dev ↗)
    51comments
  28. NATS Major Incident Preliminary Investigation Report [pdf](nats.aero ↗)
    1comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    57comments
  30. How to Write with an LLM(sockpuppet.org ↗)
    171comments

Are mobile web apps slow?

38 pointsby 13y agoblogs.adobe.com
48 comments
13y agoHN ↗

Q: "Are mobile web apps slow?"

A: "A web app's CPU budget is spent in three different buckets"

Q: "That... doesn't answer my question."

A: "Javascript is the puppet master of the browser engine."

Q: "That doesn't either."

A: "I'm the director of engineering for the Web Platform team at Adobe. I sort of have to write blog posts like this."

Q: "Ah, ok. No hard feelings then. You're in a tough spot."

A: "Yes. Yes, I am."

13y agoHN ↗

Are mobile web apps slow?

A meaningless question. Slow relative to what? Slow for whom? What sort of app are we talking about?

13y agoHN ↗

You're able to infer the answer to all those questions.

13y agoHN ↗

Relative to native. Slow for users. A typical non-super-dynamic app. Use common sense.

13y agoHN ↗

No, it doesn't answer the question, it suggests more questions to ask to make an informed answer. It's just a short cautionary tale to make the user consider what type of app he/she is building, and to consider if significant activity within the app is, or not, likely part of the GC/JavaScript (or HTML/CSS) that would suffer in some cases vs local, native, code.

Personally, I tend to agree with the original article that GC is an expensive thing to put in most apps. BUT, you need to be pragmatic about determining if the additional margin of execution speed from not having a GC justifies the coding effort.

13y agoHN ↗

Having said that... you're right in that mostly this posting is to fulfill somebody's job requirements, rather than a substantial amount of content :-)

13y agoHN ↗

I also felt like he evaded the question he posed to himself.

13y agoHN ↗

Hacker news webapp for mobile - http://hn.premii.com

I wrote this client. It is as fast as most other native HN mobile apps, but mine works on iOS, Android browser, and windows phone 8. It also works on regular browsers.

I have wrapped this in hybrid app using phonegap, but only submitted to Google play. One day I will submit it to Apple too. https://play.google.com/store/apps/details?id=com.premii.hn

But it is not a simple task to make fast performing HTML5 app that works on all mobile browsers.

13y agoHN ↗

great app. Did you use any framework to build the app (I mean frameworks like sencha, enyos, etc)?

13y agoHN ↗

No, I didn't use any framework, but I am using Zepto library. I may remove zepto in the future as all these libraries are very slow on mobile. When I replaced $.html() with dom .innerHTML, rendering time improved by 50% in some cases.

13y agoHN ↗

this is an awesome insight. any chance you could share more of these lessons?

13y agoHN ↗

Awesome work! Thanks for creating such a great site, I've added it to my iphone home screen. The performance is great even on an older iphone4 which is quite the achievement.

This will definitely be the way I consume HN on the go from now on.

13y agoHN ↗

By far the best web app I have ever used. Period. How did you manage to make it so fast? Also most web apps I pin to my home screen (not many) open in safari. how did you manage to get this to open it is own 'app'. It's not a part of safari, it has it owns icon in the app switcher.

+1000 KUDOS

I WILL be using this app a lot.

edit: More kudos for being a Wolverine like myself. Go Blue!

13y agoHN ↗

Thanks,

I am not using any framework, and using vanilla JS as much as possible.

If you add these meta tags, it will open as app.

    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-touch-fullscreen" content="YES"/>

And this for icon <link rel="apple-touch-icon-precomposed" sizes="144x144" href="a/icon/ios/Icon-72@2x.png"/>

13y agoHN ↗

After adding the site to the home screen there doesn't seem to be any way to get back to your site after following a link to the full version of an article. Known issue?

Other than that issue, I'm very impressed with the site. The design and performance are excellent.

13y agoHN ↗

Yes that is a know issue and I don't know the best way to solve that.

13y agoHN ↗

Hands down, the best HN browsing app I've ever used. I really don't see the need to go native either. Its pretty responsive on iOS when I add it to the home screen. Great work!

13y agoHN ↗

Wow, I'm even tempted to use it on my desktop.

13y agoHN ↗

Impressive. I am going to use it even on my desktop. I think it you should make it a reader app (Replacement to Google Reader etc).

13y agoHN ↗

Ok, this is awesome. I can't believe no one else (including you) submitted this yet. Bookmarked. Love it.

13y agoHN ↗

Wow, good job!

But as you said, given that you didn't use any frameworks the productivity couldn't have been that great... Not to mention that it probably doesn't blend in with the native apps? (don't have a mobile with me right now, so can't test it)

13y agoHN ↗

You should try it on mobile.

Well, I am not a designer so it took me while to get right colors, background, text sizes, layout etc. You can see my profile here. (http://premii.com).

Initial app took one Sunday. It worked on android browser and iOS. If I only had to make it work for iOS, it would ve been easy, but chrome on android took as much time as the whole app. Later found that there was a bug in chrome. They just fixed it like 2-3 weeks before.

It worked on WP8-IE10 without any special code. I didn't had WP, so I asked reddit/r/windowsphone guys and they told me it works great. Couple of redditors reported minor issues which I fixed.

I am not saying this is easy to do, and I will never advise anyone to user HTML5 if they have CPU intensive task and super complex animation/interaction. However HTML5 is the only platform that can help you develop simple app that works on all 4 mobile platforms (iOS, Android, WP8 and mobile browsers).

13y agoHN ↗

Hah! I recently switched to your app in Google Play. I thought it was native. That's how fast it is!

13y agoHN ↗

That thing is astonishing. The world needs more code by people like you :)

13y agoHN ↗

It's a cool app but it's hung up my iPhone in a very strange way.

I installed the app by saving to the home screen. Then I opened it and was browsing around, but all of a sudden, all my buttons got disabled and so now I'm stuck inside the app looking at an HN thread. There's no back button once you click through to an external url. So I can't even get back to the app's UI.

So now I just have to wait for my phone battery to die.

http://i.imgur.com/Q1p1FVb.png

13y agoHN ↗

Do a hard reset (on iPads this requires holding power + home for 10 seconds, don't know about iPhones, but there definitely is a way; pretty much any normal computer/phone/tablet can be powercycled by holding power button for ~10 seconds).

13y agoHN ↗

Why thank you! I totally forgot hard reset is power+home and was trying each of them individually instead :-p

13y agoHN ↗

Or you could close the app. Double-click the home button and hit the red badge.

13y agoHN ↗

I couldn't close the app because my home button was disabled. So was my power button and I couldn't even slide down the notifications panel to try and jump to another app.

But the hard reset suggested by TeMPOraL worked.

13y agoHN ↗

Works super fast on Firefox OS, too! Good job.

On Opera Mobile or Nokia Xpress it's unusable though, as expected; luckily the HN site works just fine in these browsers.

13y agoHN ↗

I've just installed it on my ol' Nexus S, it seems to work well, but I'm missing (or I haven't found it?) the native possibility to share articles/HN comments on Android.

13y agoHN ↗

I am working on share and save it for later. Not sure when it will be ready.

13y agoHN ↗

IMHO share >> save it for later (because many people use other "read it later" apps i.e. Pocket and you can send links to it via share too)

13y agoHN ↗

I did started working on it, but found so many issues and gave it.

13y agoHN ↗

ah, that's a shame. well if you're ever up to give it another go i'd recommend reaching out to r/windowsphone again, there are a lot of devs there that i'm sure would be willing to lend some support.

13y agoHN ↗

Great job! You just got real-estate on my Windows mobile phone. Once quick suggestion. I noticed you have the precomposed Apple touch icons, can you also support Windows?

Here is the format[1]:

    <meta name="msapplication-TileImage" content="/metro-tile.png"/>  
    <meta name="msapplication-TileColor" content="#015565"/>

[1] - http://blogs.msdn.com/b/ie/archive/2012/06/08/high-quality-v...

Edit: N/M It's in there.

13y agoHN ↗

In fairness, the word should be "slower". Performance is always relative and/or subjective.

13y agoHN ↗

Drew's post was very well explained, and relied heavily on concrete examples. This rebuttal was very much the opposite.

13y agoHN ↗

This article written to advocate current direction of Adobe, but fails on everywhere by evading single question on title.

13y agoHN ↗

IMO it's not so much a question of performance, but of shaky browser support (especially on mobile) for things like real-time audio, video, vector graphics, and socket communication. Thankfully Adobe Flash / AIR really shine in these areas. It's sad that Adobe doesn't seem to realize it.

13y agoHN ↗

I (strongly dis)like how the article's titular question actually goes almost completely unanswered throughout the article. The article seems like a round defense of Javascript's productivity and interoperability benefits, but the original article (Why mobile apps are slow) had almost nothing to do with those issues. If you are going to respond to someone else's essay, please at least address the prompt!

13y agoHN ↗

Yes, for the most part (relative to native apps).