Live data from Hacker News

WordPress Playground: A WordPress that runs entirely in the browser

developer.wordpress.org

111–120 of 221 posts

Re: WordPress Playground: A WordPress that runs entirely in the browser

#112

Earlier quoted context omitted.

It makes complete sense. Php web stack is very light compared to Python/node, so it makes sense it can be embedded in the browser.

Except this is already running on a js environment in the browser (usually v8 if you use chrome, edge or any of their derivatives, the engine behind node). So you are running something to not run the thing you are already running.

[deleted]

Re: WordPress Playground: A WordPress that runs entirely in the browser

#113
post #100
post #84

Earlier quoted context omitted.

I've always found WordPress performance doesn't change much on lower vs higher end hardware. It seems to be limited by itself.

What's the answer to making WordPress sites faster? I too have tried better hardware, CDNs, plugins like WP Super Cache, and others means of optimizing. Very little impact. Is the problem PHP? I'm thinking of trying one of those plugins that convert the WordPress site to static web site. I'd imagine that'd have a big impact, at least for sites that don't need e.g. login, shopping carts, etc.

> Is the problem PHP?

PHP is fast for a dynamic language (compared to say Ruby/Python and even JS). It has the disadvantage that it gets slow by default the more code you have, because it has a static execution model.

WP is extremely bloated and slow though. You can only make it fast by telling Apache to not execute it and hitting your cache (or with a caching layer in front).

With heavy caching (flushed on data changes), hand written themes and plugins, modern build tools for frontend assets, image optimization etc. You can get get top metrics.

However, that's just frontend. The admin panel is always slow.

If your use-case allows it, you rather build one with something like hugo. Hugo and similar are very easy to use and net you much better results.

My general tip is to not build websites with WP if you have web development skills.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#114
post #31
post #29

No need to dunk on wordpress but it has a lot of history and issues. It would be great to have a modern alternative self-hosted solution that doesn't require static site generation or complex hosting.

There are many functionally perfect substitutes, unfortunately the WordPress value proposition is actually it's ecosystem of plugins, developers and advocacy of it's users. We've all met the client who wants WP and nothing else. And there are countless times we've rolled a clean new solution out, but the client goes back to WP. I have seen value in hybrid approaches, a custom app written in some other framework for c…

What are some of the best alternatives you know of? I know Statamic and Ghost both have their strong points.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#115
post #84

Earlier quoted context omitted.

I've always found WordPress performance doesn't change much on lower vs higher end hardware. It seems to be limited by itself.

Absolutely. The other day, I took my slow Wordpress server hosted at Vultr on bare metal (£200/pm) and put it on a server at £500 per month and even after doing all the performance tuning I could with MySQL and PHP I couldn’t notice a difference in speed when I was on the back-end where Cloudflare wasn’t caching it. I then tested on a lower performance server which costs £80 per month at Vultr and again couldn’t dete…

Just come to WP.com and we'll run it super-fast, auto-updated, and secure for $25/mo.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#116

Earlier quoted context omitted.

Absolutely. The other day, I took my slow Wordpress server hosted at Vultr on bare metal (£200/pm) and put it on a server at £500 per month and even after doing all the performance tuning I could with MySQL and PHP I couldn’t notice a difference in speed when I was on the back-end where Cloudflare wasn’t caching it. I then tested on a lower performance server which costs £80 per month at Vultr and again couldn’t dete…

Just come to WP.com and we'll run it super-fast, auto-updated, and secure for $25/mo.

Didn’t know you owned that domain. How/when did you get it?

Re: WordPress Playground: A WordPress that runs entirely in the browser

#117

WordPress exposes a huge divide in the HN crowd: - one group recognizes WordPress for what it is: a value-multiplier used by non-coders for websites so they don't have to deal with the coding and can focus on their core competencies - the other group hates WordPress because of the ugly codebase, and meanders off to work on their own perfectly formatted, ultra-scalable code that has no little to no value because it's…

I think the divide is more between the new generation of full-stack JS developers and those that cut their teeth on PHP + MySQL.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#118

Earlier quoted context omitted.

Just come to WP.com and we'll run it super-fast, auto-updated, and secure for $25/mo.

Didn’t know you owned that domain. How/when did you get it?

It's Matt. Automattic CEO.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#119

This playground, which is running PHP in WASM, is much snappier than 95% of garden variety websites.

I think the coolest thing about this is you avoid so many round trips to the server. Every single database call and asset request happens on the client! (After you accept the several seconds of loading time.) I think it's also hilarious, because WordPress is probably the most-used MPA solution out there, but this basically turns it into an SPA. And it performs even better than most SPAs, because it doesn't need to do API requests to a server constantly.

I also think the SPA parts of this (the post/page and site editors are very complex React applications) feel snappier in this demo than they do on my local dev environment. Really shows how good SPAs can be when you cut out server round trips.

Disclaimer: I work for Automattic, and this has been a super cool experiment to watch.

Re: WordPress Playground: A WordPress that runs entirely in the browser

#120

WordPress exposes a huge divide in the HN crowd: - one group recognizes WordPress for what it is: a value-multiplier used by non-coders for websites so they don't have to deal with the coding and can focus on their core competencies - the other group hates WordPress because of the ugly codebase, and meanders off to work on their own perfectly formatted, ultra-scalable code that has no little to no value because it's…

WP is fantastic for the first group you mentioned. I put it up there with Excel, Filemaker, Visual Basic and similar software that democratize software and make it accessible to everyone.

Naturally all of these things have limits and quality issues that some percentage of users eventually face. That is in of itself fine.

The problem arises when it is expected of a professional to integrate or build on top of these.

People come to web developers with quality expectations, unique problems and requirements. But the legacy that is WP puts so many stumbling blocks and gotchas in the way of these goals that it's not worth it to put a square peg into a round hole.

(Similar can be said about common CRM and ecommerce platforms and solutions.)

Post reply on HN