13 ms·
An internet points out that Hackernews' favorite text editor takes up more CPU than the average Hackernews would have had at their disposal 20 years ago just to
by bitwize 10y ago
An internet points out that Hackernews' favorite text editor takes up more CPU than the average Hackernews would have had at their disposal 20 years ago just to make the cursor blink on and off. Hackernews circles the wagons to justify the stupid engineering design decisions behind said editor based solely on the fact that embedding a complete Web browser just to draw buttons and text fields "won" over any sensible GUI implementation, and they can't live without the crutches VSCode provides when shitting out Go microservices.
Many of these same people will argue vehemently that X11, the shitty GUI layer for Linux that ran perfectly fine 20 years ago, is "slow" and "bloated" and needs to be replaced with Wayland, a new, completely different, shitty GUI layer.
- kchoudhu 10y agoIf you could n-gate every article as it's posted, that would be awesome.
- Eiriksmal 10y agoFor those who missed it, n-gate satirizes some HN posts, to the delight of all: http://n-gate.com/hackernews/ http://n-gate.com/hackernews/
- caoxuwen 10y agobummer n-gate didn't comment on its own hn post
- Eiriksmal 10y agoI was really looking forward to that write up, as well. Unfortunately, the author must have some rule about not breaking the fourth wall. Or they avoid softballed summaries?
- kchoudhu 10y agoI think a recursive n-gate situation would be delightful. Someone should make this happen.
- insulanus 10y agoOne Hackernews asks some Hackernews to ask the internet to make a satire about a satire of some Hackernews. Hackernews becomes Stackoverflow.
- bitwize 10y agoSome internets post weekly bitter satires of Hackernews to the internets. Hackernews finds it and misses the point entirely, of course: Hackernews is being laughed at, not with.
- tnone 10y agoAn internet finds a bitter satire of his industry and is endlessly amused at taking the piss out of sincere but naive youngsters who debate technical concerns without understanding the appropriate context and history. The mocker misses the point entirely: Hackernews didn't fail, the generation that came before did, in letting their culture die.
- KirinDave 10y agoI'm glad at least we made fun of both sides. I really wish there was a good option for GUI toolkits. Nearly all are either too primitive to make more than freshmen college (or tenured physics professor) level work or asymptotically approach web browsers without all that tedious attention to improvement and accessibility.
- problems 10y agoQt pretty much nails this balance, WPF isn't bad either. Both will run circles around browsers at rendering performance and are much less tedious to develop in unless you've only done web dev before.
- allover 10y agoIf you learn React, you can write for web, multi-platform desktop and (native) mobile, with React Native. Same can't be said for Qt or WPF. Also the Qt community is minute compared to the JS community, that is significant.
- simplyinfinity 10y agojs community is filled with 20-somethings with ADHD (i'm 26) that reinvent the wheel every 2 weeks instead of helping polish other projects.
- stock_toaster 10y ago"If you learn how to build doghouses, you can build skyscrapers, bridges, and nuclear power plants." Use the right tools for the job. Trying to shoehorn everything into "the web" makes everything just as shitty as the web.
- abiox 10y ago> Use the right tools for the job i wonder if this expression constitutes a thought-terminating cliché.
- vacri 10y agoYou're projecting quite a bit there. There's tons of comments lambasting what's going on in the article.
- allenz 10y agoI enjoyed your comment. The non-funny response is that all GUI layers suck, possibly because visual interfaces and abstract code are inherently incompatible. Since no one has managed to make the perfect GUI, we constantly look to improve on the tradeoffs we must make, which are different for different applications. 13% idle sounds egregious but higher battery usage isn't a problem for most if it excels in the areas that matter: responsiveness, design, power, completeness. In contrast, Wayland improves not just idle, but also overall performance, which is the main consideration for a low level API.
- chetanahuja 10y ago"3% idle sounds egregious but higher battery usage isn't a problem for most" Oh God this is why we can't have nice things. How the heck is someone actually justifying this stupid shit here?
- allenz 10y agoWhat do you find stupid? The way I see it, HTML/JS is a pretty good higher-level GUI language, and much effort has been spent making it work well. The overhead is worth it if it makes developers more productive.
- elsurudo 10y agoFair enough, but double-digit usage of an entire core... when the program is IDLE? how can you justify that? That's just broken.
- allenz 10y agoThey will indeed fix this. At minimum, they can freeze the editor when it's out of focus. So there is no need to justify--this is a minor oversight, as someone phrased it over at Slashdot.[1] I was responding to those who believe that this demonstrates a fundamental flaw in using Electron. My response emphasizes the tradeoffs involved. If they couldn't fix it, 13% background is undesirable, but it's not a dealbreaker for me if there are redeeming qualities. And it seems that VS Code certainly has some redeeming qualities. [1] https://developers.slashdot.org/comments.pl?sid=10406465&cid=54104019 https://developers.slashdot.org/comments.pl?sid=10406465&cid...
- jbtule 10y agoYou know what would be fast for display updating, ncurses. I wonder why they didn't use that? If only we had an ncurses based text editor.
- insulanus 10y agoSomeone should write a webkit based ncurses! Why haven't we seen the light before !? ;)
- sah2ed 10y agoThere is already an ncurses library for JavaScript [1] so one for WebKit shouldn't be far off ;) [1] https://github.com/chjj/blessed https://github.com/chjj/blessed
- 4c2383f5c88e911 10y agoNcurses is the worst gui toolkit there is (from a developer point of view), although it indeed is lighter on resource usage than most of the others if you do it right.
- zbuf 10y agoBest bit is that X11 runs really well these days -- responsive, fast, reliable. Emacs runs great, gitk, xterm, xosview, mplayer window manager, even Firefox is alright. Renoise, Maya, Blender too. Not to mention network transparency when I need it. It's a great environment to get my work done, and 3x hi res displays is the stuff I dreamt of 15 years ago. So it's a good job we're about to throw it all out and start again, eh folks?
- tetromino_ 10y agoIf by "responsive, fast, reliable" you mean awful screen tearing when you mix X11, OpenGL, and/or video playback. Fixing it on any given machine is often possible through some voodoo and a hand-rolled combination of driver and software settings, but that voodoo works only for one specific combination of hardware and driver version, and every update means more rounds of trial and error...
- ldev 10y ago> X11 runs really well these days -- responsive, fast, reliable Well, you haven't seen Windows then - the graphics stack is phenomenal and a marvel of engineering. nVidia drivers crash? I only get a second of black screen and then resume my work. Yep, that's right - no other GUI program crashed, I didn't had to do anything, literally just 1 second of black screen. Oh and you can have one window on two monitors and both parts of window will have full vsync - insane, huh? :) It's scary how good Windows is.
- dbbolton 10y agoDon't forget to install the plugin that actually allows you to run a web browser inside your web browser-based editor: https://atom.io/packages/browser-plus https://atom.io/packages/browser-plus
- andreasklinger 10y agoLove your meta comment Consider writing a douglas adams style book
- roryisok 10y agoI see this argument against electron again and again. Sure, sometimes its overkill - I've seen tray notification apps built with it - but sometimes, it's not. Sure it's not as efficient as something written in .Net, but its a great, hassle free way to go cross platform. People don't complain that web IDEs are bloated and slow because they need a web browser
- wldcordeiro 10y agoReally the argument gets less and less valid over time, for every one of these issues that get discovered, a patch gets made that solves the issue. The platform evolves and gets better until someone else finds an inefficiency, that seems like a pretty typical advancement to me.
- jodrellblank 10y agohttps://pavelfatin.com/images/typing/editor-latency-windows-text.png https://pavelfatin.com/images/typing/editor-latency-windows-...
- psyc 10y agoI mean, I couldn't agree with you more about the asininity of embedding a browser in a 'native' app (for anything other than web browsing). But I use VSCode all day, every day, and subjectively it feels zero-latency on my aging laptop.
- mvindahl 10y agoIt's kind of a crazy concept, especially if you are old enough to remember the days where RAM was counted in kilobytes and you would optimize assembler code to save clockcycles. On the other hand, this is 2017, and people apparently don't care much about the footprint of their software, as long as it's convenient and it solves their problem. And ultimately that's what counts I guess.
- psyc 10y agoSo today I noticed that when you try to select text in a tool window, it really does act like a browser. The window won't scroll. The selection spills into other windows. There's no way to select anything you'd have to scroll to.
- joelthelion 10y agoI was with you until the non-sequitur about Wayland. What exactly is shitty about Wayland? It is way less bloated than X11.
- mbel 10y agoThe design of Wayland might be (and I believe is) superior to X11. Although as every piece of software on this planet in first years of its existence it will be incomplete, buggy and not compatible with all the other things that already exist. For some people this might be shitty compared to mature software, that is buggy but at least most of it's bugs are already known and worked around.
- sho_hn 10y agoYou're wrong and don't know what you're talking about. I dislike the implementation of Atom and have been highly critical of it on HN, even crashing a release thread once by pointing out how harebrained it is to implement complex text layout on top of browser APIs when the browser has access to a much richer text shaper itself - we'd know because we wrote it for Qt originally. Because I've also worked on KDE for 12 years, wrote a big chunk of Plasma 5 and am one of the people porting it to Wayland. We want Wayland for many of the same reasons that make Atom bad, such as state synchronization problems and overhead with X11 (along with its very dire security story). The intersection you suggest isn't real or doesn't matter. No one working on Wayland uses Atom.
- btschaegg 10y agoI don't think one should take obvious satire to seriously. There's not enough time in the day to point out details in posts that are written just for laughs. However, just to be pedantic ( ;-) ), I'll have to point out that "a big part of the people defending VSCode in this post agree that X11 is slow" does not imply "a big part of the people agreeing that X11 is slow defend VSCode in this post". The two aren't commutative, since one set of people is quite likely much larger than the other. Edit: Oh, and since you mentioned working on Plasma for over a decade: Thank you for making awesome FOSS! :)
- sho_hn 10y ago:) Fair enough. I am a bit less cranky after my morning coffee now ;). Thanks for the warm words!
- deleted 10y ago[deleted]
- nonsince 10y agoI'd say you absolutely have to point out factual flaws in comedy. Comedy is truth, that's why you probably believe that David Cameron put his penis in a pig's mouth and Donald Trump was peed on by Russian prostitutes. There's no evidence, but it's funny so you believe it anyway.
- deleted 10y ago[deleted]
- norswap 10y agoYes, embedding a web browser is wasteful. But, it is EXTREMELY EASY. There's a reason why Github, Microsoft, Facebook, Adobe etc converged on this decision, and it's not the bandwagon effect. Faced with the same task recently, I did my research, and it is indeed easy. Since I work on the JVM, my alternative was JavaFX. That didn't seem so bad, but it was much more work. If you look at say IntelliJ IDEA on some platforms, you'll see the text rendering is much uglier than on Atom. Regrettably, if you want to acquire users, that matters more than conservation of resources. I'm curious: have you ever tried interfacing with X11?