News for hackers. Stuff that matters.
Re:Ask HN: Have we reached a tipping point when web apps are... by schoubey on Monday September 19, 2022 @07:11PM (#32905406)
.NET isn't native, doesn't it use the CLR? Even Java apps shouldn't be considered native as they use JVM.

True native is apps written in C/C++ or Rust that are compiled to run without a virtual machine. I haven't seen any webapps faster than native apps.

Re:Ask HN: Have we reached a tipping point when web apps are... by metadat on Monday September 19, 2022 @07:20PM (#32905489)
My definition for "native apps" are platform-specific binaries which run locally outside of a web browser.

Otherwise.. where is the line? you could claim that it must be handcrafted assembly in order to be native.

Re:Ask HN: Have we reached a tipping point when web apps are... by _0ffh on Monday September 19, 2022 @07:36PM (#32905628)
Native, quite reasonably, means the application is compiled to the CPU's native machine code. Take as an example the distinction between Java and native apps on Android.
Re:Ask HN: Have we reached a tipping point when web apps are... by schoubey on Thursday September 29, 2022 @05:32PM (#33027504)
This is my understanding of native, thanks for putting out a better description.
Re:Ask HN: Have we reached a tipping point when web apps are... by wmf on Monday September 19, 2022 @07:40PM (#32905658)
Many people, quite reasonably, consider an app native if it uses the OS APIs without any intermediate portability layer.
Re:Ask HN: Have we reached a tipping point when web apps are... by _0ffh on Monday September 19, 2022 @07:46PM (#32905696)
What is a VM but an intermediate portability layer? That's what VMs are made for, to be able to run the same VM code on different machines or different OSs without having to recompile. You don't use the OS's APIs directly from Java or NET, that's the whole point of the exercise. And if you find a way to do it anyway, you have defeated the purpose of the VM and could as well have compiled to native code.
Re:Ask HN: Have we reached a tipping point when web apps are... by wmf on Monday September 19, 2022 @08:16PM (#32905949)
Weren't .NET and its APIs originally Windows-only and they only became portable later? And doesn't .NET have AOT support?
Re:Ask HN: Have we reached a tipping point when web apps are... by metadat on Monday September 19, 2022 @07:52PM (#32905764)
For Java, is the JVM apps run atop of compiled for the native CPU architecture? Does this matter?
Re:Ask HN: Have we reached a tipping point when web apps are... by schoubey on Thursday September 29, 2022 @05:31PM (#33027496)
JVM is a virtual machine with its own instruction set. Java code is compiled to this instruction set and not the actual's CPUs instruction set, hence not native.
Re:Ask HN: Have we reached a tipping point when web apps are... by schoubey on Thursday September 29, 2022 @05:34PM (#33027536)
No one is asking for hand crafting, we are merely arguing that the absence of runtime environment which abstracts away from CPU's native instruction set. Hence I mentioned C, C++, Rust. Even GO and Haskell qualify as they are compiled to native instruction set of the CPU on which they run.
Re:Ask HN: Have we reached a tipping point when web apps are... by jcusch on Monday September 19, 2022 @08:26PM (#32906037)
There are probably a few reasons it might seem like web apps are faster. A few that come to mind are perceived performance https://developer.mozilla.org/en-US/docs/Learn/Performance/P... and optimization/offloading work to servers (caching, server-side rendering, APIs etc.).
Re:Ask HN: Have we reached a tipping point when web apps are... by dekhn on Monday September 19, 2022 @08:28PM (#32906051)
It is not my impression. I write Qt apps and they are damn snappy compared to the web.
Re:Ask HN: Have we reached a tipping point when web apps are... by muzani on Monday September 19, 2022 @09:16PM (#32906438)
I don't think it's possible. Native cuts closer to the hardware and web browsers are built on so much stuff.

I have noticed that mobile apps are replicating things like SPA for absolutely no reason, which actually lowers responsiveness. So it might be that. Perhaps there's a shift to writing code faster over performance.

Re:Ask HN: Have we reached a tipping point when web apps are... by johntash on Tuesday September 20, 2022 @02:34AM (#32908444)
Anecdotal but I haven't noticed web apps to be faster than native apps.

However, I have noticed apps claiming to be "native" when in reality they are web browsers in disguise wrapped around some sort of web app.

Re:Ask HN: Have we reached a tipping point when web apps are... by devonnull on Monday September 19, 2022 @07:24PM (#32905525)
How many such apps have you noticed this with? And have you done any benchmarking or collection of data? Or is this all anecdotal?
Re:Ask HN: Have we reached a tipping point when web apps are... by julienreszka on Monday September 19, 2022 @07:30PM (#32905578)
Only anecdotal. I'm asking to see if other people noticed and maybe have more data.