8 ms·
Unreal Engine 5 is meant to ridicule web developers
- qubex 7y agoNever seen this parody site before. Droll.
- tomcooks 7y agoFell for it like a dumbass, mainly because I agree 101% to the complaints listed in the article.
- dwheeler 7y agoI laughed harder and harder as I kept reading. Fun!
- _bxg1 7y agoWhat a lazy, unfunny parody.
- runawaybottle 7y agoHow does Unreal Engine 5 handle global state management? It is the most complicated NP hard problem that ever graced web development and literally stifling our progress on building a drop down box that updates all to other drop down boxes on the page. Like, obviously your health bar is a separate component. But when your health bar updates, how does the other health bar over your characters head also reflect that change? Just drives me nuts, is there like a variable or something that they both subscribe to? And if UE5 did solve this, why didn’t they even mention this technical feat in their demo? Web developers have entire conferences when this problem was discovered, but for UE5 to not even bring up this accomplishment makes me wonder, #conspiracy.
- _bxg1 7y agoGenerally things like that in games re-render from scratch on every frame. Since it happens every frame, you don't need state management to push updates around. Everything just grabs the latest value anyway. The DOM on the other hand is stateful, and is very slow to mutate, which is the core problem of high-level web dev and really not something developers have any control over.
- runawaybottle 7y agoSo, our rendering engine basically sucks? I guess browsers would eat up tons of battery if it rendered any faster.
- _bxg1 7y agoOur rendering engine basically serves too many masters. It wasn't designed for what we're doing with it now, but it still has to support all the things people have done with it in the past. This is why systems like Flutter, despite all their downsides, can be really snappy. They skip the DOM and all its baggage and just use their own "app-first" layout system.
- ThrowawayR2 7y agoOr we could go back to resource-efficient and lightning-quick native apps, like the good old days.
- runawaybottle 7y agoIs it entirely out of the question for browser makers to maintain the DOM abstraction and upgrade the underlying engine to operate like an “app-first” layout system? Take css translate3d, it forces the browser to use gpu to handle those transitions. At the risk of sounding even more ignorant, but could the DOM be pushed onto the gpu layer, where things happen so fast it doesn’t matter at all how often relayouts/reflows happen? Obviously it’s using the gpu to render, no doubt, but what is about website rendering that’s just that much slower than a 2d video game? I guess I’m describing React’s circumvention of the browser to some degree. Ideally, we want something like React gone, and implemented at the browser level.
- _bxg1 7y ago> could the DOM be pushed onto the gpu layer Some of it already is. The actual drawing-to-an-image happens on the GPU, so maybe that was a bit of a misnomer for me to point out in my last comment, but that's not the expensive part. Reflow is the browser deciding "here's everything on the page, here's all their CSS styles, and this one CSS style changed, or this new element got added, how does that affect everything else?" Thing is, you're welcome to pull everything out of that reflow process! Through transforms and absolute-positioning, or the canvas, or WebGL, or whatever. And things will be a lot faster! But now you're taking on responsibility for a lot of stuff. Many of the benefits, in fact, that cause so many people to build on the web in the first place. The web has the most powerful and flexible and expansive UI layout system in the world. It's just that that comes with a cost. The ideal scenario would be to have a "slimmed down" reflow mode that only does "app things" and doesn't get tripped up on "document things". However, that would be fundamentally incompatible with some parts of the web as we know it, and would fragment the platform. Here's an example of one of those weird pieces of baggage: https://wilsonpage.co.uk/preventing-layout-thrashing/ https://wilsonpage.co.uk/preventing-layout-thrashing/. The browser doesn't know what you're going to do immediately after mutating the DOM, so it has to assume the worst in some cases.
- popotamonga 7y agoJust today i wanted to inspect a few MB json file to analyze some API data. I have a $7k custom made developer desktop with all at max. Tried to paste it to the regular web json inspectors like jsoneditoronline.org, basically just hanged all the browsers. Had to spend some time to search for a proper native tool that barely got the job done for what i needed. Is it so hard? what gives?
- apta 7y agoThat's why you use a binary transport like gRPC.
- ThrowawayR2 7y ago> "That's why you use a binary transport like gRPC." Unpopular option but it's true. Binary protocols are both bandwidth efficient and processor efficient. Back in the day, when a 25 MHz processor and 8 MB RAM was the spec for a powerful UNIX workstation with GUI, stuff like XML and JSON was simply not an option.
- wayneftw 7y agoWhat tool did you end up using?
- popotamonga 7y agohttps://github.com/WelliSolutions/HugeJsonViewer https://github.com/WelliSolutions/HugeJsonViewer
- wojtczyk 7y agovi can easily deal with hundreds of MB if not multiple GB on your custom made machine.
- williamdclt 7y agoThis is mildly funny but a bit of a cheap shot, I'd be more interested in "why is web dev so far behind videogames in terms of performances". Either the author doesn't know and is being cynical/sarcastic/devaluating to sound smart, either they do and could teach the rest of us a thing or two but chose to belittle webdev instead. Edit: I just realised this is a parody website. Fair enough then, this is their editorial line!
- _bxg1 7y agoI mean, I would still agree with what you said knowing it's a parody.
- bavell 7y agoHe got me for a sec there, I almost didn't notice how similar the name of this site (The Olongnion) is to The Onion...
- deleted 7y ago[deleted]
- tekkk 7y agoYes I know it's parody, but I don't really understand how it is web developers' fault that browsers aren't as powerful as native applications. Web is old, haphazardly planned standard for which nobody really had any idea where it was going. So there's a reason why it's all so cluttered and I still have to check my website in various devices and browsers before deploying it to my users. If using advanced tools like SPA frameworks is the only way to retain my sanity, I'm going to use them. (And yes the author also parodied the churn of web technologies, not going to deny that) Perhaps there should be a fast alternative to the current web, where the biggest goal is to serve pages with lighting speed. It could be architected from ground up to come with built-in SPA support, that would load the pages in chunks while offering a smooth browsing experience. It could automatically adjust to the device and the network speed of the user, and have all the legacy cruft of the old web removed. So basically like AMP, but without Google's greedy fingers. Yet the chances of that happening is probably zero, as where's the money in that. A secondary web just for power-users? Hmm, yeah let's see whose going to allocate resources maintaining that.
- pseudobry 7y agoWhy is this flagged? I'm a web developer and think this was hilarious!
- nojvek 7y agoHa! This was my first thought when I saw the demo. “Am I in the wrong industry? Why the hell does a megabyte of JavaScript take a second to startup? They’re doing millions of triangles and even a simple line chart hangs chrome if more than 1000 points. WTF!” Dom is too complicated. We really need a much simpler primitives pipeline optimized for performance. We need a binary JavaScript. Just parsing it takes a long time. The other demo that’s really impressive is Microsoft Flight Simulator 2020.