News for hackers. Stuff that matters.
Re:Is the madness ever going to end? by Waterluvian on Tuesday January 11, 2022 @06:07PM (#29899723)
I’m very critical when a company like Slack cannot find the time and resources to make native clients. I’m so #%^*ing tired of it taking three Mississippis to show a channel I click on.

But on the whole, I don’t think the armchair critics truly appreciate how Electron reduces the cost by at least an order of magnitude. It’s a brilliant tool for shipping early and fast. My only criticism with these start-up use cases is that these Electron apps can often just be websites.

Re:Is the madness ever going to end? by n8cpdx on Tuesday January 11, 2022 @06:21PM (#29899893)
I can’t think of any reason not to use Slack exclusively as a website. I’ve been doing it for years now, and it’s a better experience IMO. For Teams, the only disadvantage is you can’t share your screen and video simultaneously when running as a tab; but I find the screen sharing experience to be better otherwise when running as a browser tab.

Also: all of these “shitty” Electron apps work just as well on Linux as they do everywhere else. That is a huge advantage. I’ve got a significant amount of software that is realistically only on Linux because of electron.

Re:Is the madness ever going to end? by CitrusFruits on Tuesday January 11, 2022 @06:25PM (#29899943)
Ii run Slack outside of a tab and in its app format because it's easier to navigate to using keyboard shortcuts and OS level features. That may not be enough for you, but it's plenty reason for me, and I imagine many others.
Re:Is the madness ever going to end? by Stratoscope on Tuesday January 11, 2022 @09:44PM (#29901650)
With Chrome or Edge, you can take any web page and turn it into a standalone "app" that lives in the start menu and can be pinned to the taskbar and Alt-Tabbed to, etc.

In the Chrome menu, select More Tools / Create Shortcut... and edit the title and check the Open as Window box.

In Edge, select Apps / Install this site as an app. Edge has a lot more options here than Chrome. You can pin it to the Taskbar or Start, create a desktop shortcut, and set it to auto-start. (You can do those manually with a Chrome shortcut if you know your way around the Start menu and Startup folder, but it's easier in Edge.)

I don't see a similar option in Firefox. No idea about Safari. If anyone knows about those browsers, please comment.

And having posted this comment, I am now wondering why I am still running the Slack app. I think I will try making it an Edge app!

Re:Is the madness ever going to end? by emodendroket on Wednesday January 12, 2022 @01:17AM (#29902987)
I don't understand. What benefit does this have over running the app?
Re:Is the madness ever going to end? by Stratoscope on Wednesday January 12, 2022 @02:47AM (#29903539)
Some people in the thread said they preferred running Slack in a browser tab instead of the Electron app, perhaps to avoid the memory overhead of a separate browser instance.

The comment I replied to described a preference for the app because of OS navigation, e.g. Alt+Tab, a separate taskbar icon, etc.

This Chrome shortcut or Edge app trick lets you combine these approaches, running the website in your browser but giving the site its own main window that you can pin to the taskbar, set to auto-run, and navigate to like a native app.

Re:Is the madness ever going to end? by emodendroket on Wednesday January 12, 2022 @03:06AM (#29903674)
I would have guessed the memory consumption would be similar given the sandboxed tab model of Chrome. Anyway... even if not, do any of you guys really find that the memory consumption of Slack is a problem for you in practice?
Re:Is the madness ever going to end? by mrweasel on Wednesday January 12, 2022 @02:06AM (#29903273)
It ensures that when a website crash your browser or grinds everything to a halt, then it will take down the other “apps” as well.

That one of the reasons I don’t use the Google Chats PWA , when the browser misbehave, it will affact PWAs as well.

Re:Is the madness ever going to end? by ozfive on Tuesday January 11, 2022 @06:42PM (#29900095)
Slack in browser tab user here. Got sick of the app and how slow it was pretty fast. It's just not worth it.
Re:Is the madness ever going to end? by codefined on Tuesday January 11, 2022 @07:07PM (#29900365)
Not a Slack user here. Is the app version _slower_ than the website? I assumed that since Electron is only a little bit more than a Chromium wrapper that they would have identical performance.
Re:Is the madness ever going to end? by BeefWellington on Tuesday January 11, 2022 @07:31PM (#29900591)
It's not just the app being slower than the website, it's what it does to the rest of your machine.

Contained within a tab Slack can only use a set amount of resources allotted by the browser.

Whereas installing the app means it can go full hog.

Re:Is the madness ever going to end? by BHSPitMonkey on Tuesday January 11, 2022 @08:00PM (#29900919)
One Chromium runtime managing five tabs is more efficient than five Chromium runtimes running one site each (because those instances aren't able to share anything with one another).
Re:Is the madness ever going to end? by wowokay on Tuesday January 11, 2022 @07:31PM (#29900588)
Long time slack app user here, I don’t know how you guys organize your slack but performance has never been an issue for our organization, I don’t think it would run any better then it currently does if it were an os native app, of course my machine isn’t a toaster.
Re:Is the madness ever going to end? by TheOtherHobbes on Tuesday January 11, 2022 @08:16PM (#29901052)
Isn't the native app just the Electron code repackaged for native, and not a true ground-up native app at all?

If the code is based on HTML/js/CSS and not Swift/Obj-C/C++ (etc) then you're really creating a web app running in a native microbrowser.

Which is very much not the same thing as writing OS and system calls directly - not least because it will be much slower.

Re:Is the madness ever going to end? by nmstoker on Tuesday January 11, 2022 @08:14PM (#29901028)
Lots of tools are better as websites - however underhand motives often mean mobile apps get pushed more and have done for years. Inevitably someone pops up to say "but what about essential feature X that you can't do well on the web" even though it's rarely genuinely essential or it's a worthwhile trade-off.

My GP surgery uses a fantastic website for streamlining comms where you'd never want to install an app that would be rarely used. It's so well integrated that they could ping me the link during a call and I had details back to them seconds later so I got a decision there and then as we spoke rather than breaking flow state and delaying it by days as they used to.

Funnily enough my dentist has a similar kind of app relating to pre-appt preparation - perhaps there's a fight back for common sense in these slightly more serious fields?

Re:Is the madness ever going to end? by 2143 on Wednesday January 12, 2022 @11:53PM (#29917011)
Yes I have felt this before.

There are plenty of native mobile apps out there that are better off as web apps.

If it's a service that people use constantly, then there may be some merits in using an app.

But more often that not there are plenty of things people use once-in-a-long-while that should probably be just a website.

For instance I know a place (outside the US, not naming the place because that's not relevant) that has a mobile app just to highlight the local tourist spots. It just shows pictures and text description. There's no AR/VR stuff or anything. Neither can it reserve tickets for any of those places. In my opinion that should just have been a static website!

Re:Is the madness ever going to end? by emodendroket on Wednesday January 12, 2022 @01:17AM (#29902982)
I have to use it constantly and it's easy to lose a tab compared to a standalone app, plus notifications. Reason enough for me.
Re:Is the madness ever going to end? by gruez on Tuesday January 11, 2022 @07:40PM (#29900699)
>For Teams, the only disadvantage is you can’t share your screen and video simultaneously when running as a tab; but I find the screen sharing experience to be better otherwise when running as a browser tab.

did they fix multi-stream video yet? last time I checked in the browser version you could only see one video stream (ie. webcam), whereas on the desktop app you could see multiple.

Re:Is the madness ever going to end? by n8cpdx on Tuesday January 11, 2022 @08:58PM (#29901338)
Last I used it I could see multiple people simultaneously. I could even do Together Mode, but it seemed to be rendered on a server somewhere and streamed, rather than done locally. Maybe they were doing that with webcams and I just didn’t notice.

The main reason I was using the browser was so I could use Stylus to make it compact just like Slack. That’s another benefit of the browser approach, but ideally it would not be so obviously inferior to competitors.

Re:Is the madness ever going to end? by norman784 on Wednesday January 12, 2022 @07:40AM (#29905526)
I disagree, Teams in Linux (it might be on purpose) the app is way cut out, you can't request control (or was a few months ago), you can see less simultaneous videos at the same time (iirc was 2 or 4), so no, with the app you have almost zero advantages in Linux over the browser version.
Re:Is the madness ever going to end? by grishka on Wednesday January 12, 2022 @12:31AM (#29902706)
I use Discord in a browser tab. Much better than the app. Loads instantly and reuses the one instance of Chromium I'm always running anyway.
Re:Is the madness ever going to end? by pjmlp on Wednesday January 12, 2022 @01:44AM (#29903153)
Maybe desktop Linux should get its act together to make a target that everyone else actually feels like targeting instead of grasping to the relevance of someone dropping Electron bombs as the true path to happiness, or emulating Windows games for that matter.
Re:Is the madness ever going to end? by meetups323 on Tuesday January 11, 2022 @06:22PM (#29899910)
Usually they are websites. That's kinda the whole point... Spotify's desktop app is the same as open.spotify.com, Discord's is the same as discord.com, VS Code's is the same as vscode.dev, Slack is the same as.. something. But yeah, instead of those companies all needing 5 separate engineering teams (Web, Mac, Windows, iOS, Android, and you're joking if you think they'll make a Linux native app), they just make a website. You're welcome to use the websites instead of the desktop apps for any of those, though you'll lose some OS integration capability.
Re:Is the madness ever going to end? by petepete on Tuesday January 11, 2022 @06:41PM (#29900090)
I think it's a huge pity that we're so reliant on platforms instead of protocols - there would be native Slack clients for every platform. Few companies even allow proper API access.

Spotify buck the trend, Spot is a fantastic app

https://github.com/xou816/spot

Re:Is the madness ever going to end? by Jensson on Tuesday January 11, 2022 @06:57PM (#29900254)
Small companies loves protocols, but as they become big and dominant they start pivoting to platforms to exert control and extract more profits from the ecosystem.

We need regulations around platforms, protocols are inherently more powerful and from the perspective of humanity almost always preferable over platforms, so the incentives of companies should reflect that, but it isn't right now.

Stuff like email, http etc is what makes computers great. I doubt anything like that could get invented today, companies would just create their own proprietary protocols and there would be no web browsers. Imagine if we just continued along that route and made protocols for everything instead of having big companies lock down computing habits via platforms.

Re:Is the madness ever going to end? by kbenson on Tuesday January 11, 2022 @07:25PM (#29900541)
There are tradeoffs beyond just the company making more money, as Moxie's recent web3 assessment covered. Protocols take much longer to evolve, platforms are quick to evolve.

Allowing platforms to innovate but somehow incentivizingnor requiring opening up what they've built seems like it would be the best of both worlds, but I'm not sure how that could be done well.

If people actually paid for usage, that would be one thing, because then it would be all about getting people to use your platform so you made more money, and having others innovate on too of it that you could fold into it would be cost effective. In the world of free APIs and services, it's all about keeping control of every bit.

Maybe all it needs is a nudge to make the decision to hoard all data no longer worth while. Make companies liable for PII that's lost and make someone's PII their own property only to be used with their agreement and maybe the rest will start to fall out of it.

Re:Is the madness ever going to end? by pydry on Wednesday January 12, 2022 @06:39AM (#29905032)
The UK open banking regulations are a good model to follow.

The problem is the intersection of extreme profits at stake and the public's lack of understanding of the underlying causes. That's not a recipe for good political outcomes.

In the case of the UK open banking regulations I suspect tech lobbying (powerful) might have trumped high street bank lobbying (not as powerful).

Re:Is the madness ever going to end? by Shared404 on Tuesday January 11, 2022 @09:53PM (#29901712)
> Stuff like email, http etc is what makes computers great.

I concur with this. I've gotten into IRC recently, and have started reading RFC's/specs for various protocols instead of ducking "How to do X", and it's both greatly increased my enjoyment of computing, and my knowledge.

Re:Is the madness ever going to end? by systemvoltage on Tuesday January 11, 2022 @07:56PM (#29900867)
The last thing I want is gov regulations by even more out-of-touch regulators than the people they’re regulating.

Standards are good. IETF is the reason for some sanity in IT.

Re:Is the madness ever going to end? by jaybrendansmith on Tuesday January 11, 2022 @07:18PM (#29900464)
web 3.0, anyone?
Re:Is the madness ever going to end? by strken on Tuesday January 11, 2022 @06:54PM (#29900218)
Even Spotify don't make it easy. The librespot library is a rewrite of libspot, which Spotify deprecated.
Re:Is the madness ever going to end? by seanp2k2 on Tuesday January 11, 2022 @07:49PM (#29900787)
Crazy idea that I'm sure isn't an original thought: instead of adapting the languages to deal with abstracting the idiosyncrasies of each OS, change the OSes to expose a universal API to make everything else lighter.

I guess that's also kinda Docker or QEMU or V8, but also https://github.com/solo-io/unik if you think about it differently.

In other words: hey, Lisp Machines were an excellent idea back then, but they still are. Maybe someday we'll have a V8 co-processor. More fun reading: https://lobste.rs/s/2poahh/what_i_could_not_undiscover_about

Re:Is the madness ever going to end? by mjevans on Tuesday January 11, 2022 @07:58PM (#29900881)
Cross platform 'windowing toolkit' APIs are what's missing. At this point I'd be happy even if Microsoft, Apple, and UNIX likes (who would probably just implement any free open standard anyway) could agree on even ONE such interface.

Postscript as a UI language? Fine as long as they all do it.

HTML5+ as a UI language? (E.G. like the failed HP Fire or Firefox) Fine as long as they all do it.

Some new thing that isn't a complete dumpster-fire but is included everywhere and a free for anyone to implement interface? Fine as long as they all do it.

We have NO shortage of programming languages that can be cross compiled to different operating systems. Filesystem differences can be annoying but you can work around those. Entirely different user interaction paths? That's the sticking point.

Re:Is the madness ever going to end? by TheOtherHobbes on Tuesday January 11, 2022 @08:31PM (#29901169)
That would be ideal, but there are huge differences between the window implementations on different platforms.

One really obvious example (maybe no longer current - it's been a while since I spent any time on Windows) is that OS X windows are responsive even without focus. So you can scroll around background windows just by hovering without having to click first. Windows doesn't support this.

The bigger problem is that the data structures for menus, chrome, and the rest are completely different. An OS X menu is nothing like a Windows menu is nothing like a Linux menu.

There are systems like Tcl/Tk and Qt which act as middleware between GUI descriptions and specific OS bindings, and they kind of work. But they force devs to learn a separate intermediate language and (IMO) they look crude compared to real native apps.

Of course there are also business reasons why GUI convergence won't happen.

Re:Is the madness ever going to end? by Brybry on Tuesday January 11, 2022 @09:07PM (#29901401)
Just an FYI your scrolling example is indeed no longer current (or least not with Windows 10).

Scrolling non-focused windows works just fine (ex. can type text into notepad while simultaneously scrolling a browser window).

Re:Is the madness ever going to end? by emodendroket on Wednesday January 12, 2022 @01:18AM (#29902998)
If those don't go altogether stagnant then usually what happens is there are a bunch of features that only work in the "official" implementation so it's a degraded experience anyway.
Re:Is the madness ever going to end? by Pxtl on Tuesday January 11, 2022 @06:35PM (#29900047)
I'm kinda hopeful that Maui+Blazor will eventually let us have our cake and eat it too - instead of "everything is web", do "everything is a desktop-style gui framework" including the web. Although AFAIK they don't even have a web renderer on the horizon right now - purely desktop+mobile.

Of course, there will be angry PMs and designers that will be upset that their website looks like it was spat out of a desktop GUI framework instead of looking exactly how they want it to look. I remember people whining about how desktop-looking ExtJS was back in the day... this was for an inventory-management application, shouldn't it look like a desktop productivity app?

Re:Is the madness ever going to end? by slothtrop on Tuesday January 11, 2022 @06:56PM (#29900244)
Should it not be possible to style a native GUI application with the same framework language as for a website?
Re:Is the madness ever going to end? by dragonwriter on Tuesday January 11, 2022 @07:42PM (#29900714)
> Should it not be possible to style a native GUI application with the same framework language as for a website?

Not if the native controls are strongly opinionated as to style language, such that there is limited themability, unless you go to the level that your “native GUI” is doing the equivalent of drawing and reading mouse touches from a canvas to implement a custom UI rather than using more specific native controls.

Re:Is the madness ever going to end? by cercatrova on Tuesday January 11, 2022 @07:12PM (#29900407)
Isn't that basically what Flutter does? In my experience, it works well enough for mobile, although you still have people saying it's not "native enough." It's less stable on web and desktop though but it works.
Re:Is the madness ever going to end? by kevincox on Wednesday January 12, 2022 @07:07AM (#29905257)
Flutter on web is basically unusable for anything that involves text or links. The browser has so much native functionality here that trying to reimplement it is futile.
Re:Is the madness ever going to end? by paulcole on Tuesday January 11, 2022 @07:22PM (#29900504)
> You're welcome to use the websites instead of the desktop apps for any of those, though you'll lose some OS integration capability.

On the flip side, when you use them as websites, you gain the benefit of extending them through browser add-ons and extensions. An example where I work is that everyone uses Asana’s website because our Everhour extension works in Chrome but there’s no equivalent for Asana’s desktop app.

Re:Is the madness ever going to end? by meetups323 on Thursday January 13, 2022 @07:15PM (#29928886)
This gave me the idea to use uBlock Origin to hide Spotify's "Episodes for you" section... a simple `open.spotify.com##section[aria-label="Episodes for you"]` and I don't have to deal with their spam ever again!
Re:Is the madness ever going to end? by meetups323 on Saturday January 15, 2022 @05:13AM (#29945256)
Update: block list has since grown to:

    open.spotify.com##section[aria-label="Episodes for you"]
    open.spotify.com##section[aria-label="Shows you might like"]
    open.spotify.com##section[aria-label="Shows to try"]
    open.spotify.com##section[aria-label="Funny LGBTQ+ Podcasters"]
This may not end up being the cakewalk I was expecting.
Re:Is the madness ever going to end? by seanp2k2 on Tuesday January 11, 2022 @07:42PM (#29900709)
Spotify Desktop is kinda different from the website because of how it uses APIs locally to control things https://engineering.atspotify.com/2021/04/07/building-the-fu...

VSCode is also appreciably different both in capability and implementation, https://franz-ajit.medium.com/understanding-visual-studio-co... but interesting that V8 debug protocol is becoming more common, so maybe that will come to a browser some day :)

Re:Is the madness ever going to end? by deft on Tuesday January 11, 2022 @06:59PM (#29900274)
Slack isn't feature complete in their webapp if they even still have it. vscode.dev is new, the app existed for a long time. In practice, its the reverse; it allows you to turn an app into a website and add yet another supported platform.
Re:Is the madness ever going to end? by kelnos on Tuesday January 11, 2022 @11:37PM (#29902374)
> Slack isn't feature complete in their webapp if they even still have it.

It isn't? I use it daily and haven't noticed anything missing, except that voice calls don't work on Firefox, which is fine, because I never use them.

Re:Is the madness ever going to end? by kevincox on Wednesday January 12, 2022 @07:05AM (#29905239)
Actually the newest Firefox ships with a user-agent override for slack so that voice calls work now.

But same, I haven't noticed any missing features from the web version.

Re:Is the madness ever going to end? by meetups323 on Wednesday January 12, 2022 @01:00PM (#29910476)
This is something I think many HN'ers don't understand. For a good amount of modern web functionality, being supported in Firefox is less a matter of "do testing in firefox and make sure things work there" as much as it is "have a very popular product and good marketing team so that you can convince the firefox team to whitelist your domain in their internal maps of `what cool things should X domain be allowed to do`". People see that Slack works in Firefox, but Joe's Voice Calls.Com doesn't, and blame Joe for not supporting firefox. In reality it's firefox that doesn't support Joe.
Re:Is the madness ever going to end? by kevincox on Wednesday January 12, 2022 @01:11PM (#29910642)
You misunderstand, you have the situation exactly backwards. The problem isn't that Firefox doesn't support these APIs, it does support them and the problem isn't that they are limited to specific domains, they aren't. The problem is that the Slack code is `if isChrome() { enableCalls() }`. Mozilla has to spoof the user-agent to bypass this check. Joe's Voice Calls.com will just do no conditional or do feature-detection rather than user-agent checks and everything will work fine.

The exception is the list of domains that allow auto-play video with sound by default (like YouTube) but I think there are very few instances of this.

Re:Is the madness ever going to end? by meetups323 on Wednesday January 12, 2022 @01:52PM (#29911224)
Ah, indeed I misunderstood. Though to be fair, at $DAY_JOB we had to do exactly the process I described above to access some API (not auto-play) without a litany of obnoxious prompts. If anyone at a smaller company tried to do what we were doing, they'd be 100% unable to provide a usable experience for Firefox users.
Re:Is the madness ever going to end? by deft on Wednesday January 12, 2022 @12:49AM (#29902803)
It isn't, except it is. lol.
Re:Is the madness ever going to end? by seanp2k2 on Tuesday January 11, 2022 @07:37PM (#29900660)
Hey, look, it's simple: just spend $5k on a new top-of-the-line M1 Max MacBook, then it'll be as fast as IRC was on a 133Mhz MMX Pentium 1.

Slack is great; it's like "hey, we took IRC and added inline images, now it's three orders of magnitude slower". Google Sheets is great in the same way: "hey, we took Excel and removed half the features plus now it's a few orders of magnitude slower BUT EASIER TO SHARE THINGS". Spotify is similar: "Like WinAmp, but slow, but with a subscription you can listen to most of what you want immediately and share things easily." These are in ascending order of their actual value compared to their predecessors, I guess.

Distributing the load of webapps makes sense if you've ever had to run a few thousand web servers running PHP apps, but yeah, running a framework server-side to render the page again and calling it modern is just kinda...the same thing we had before with a fresh coat of paint and more levels of abstraction.

Back in the day, we had CPAN, PEAR, and PECL. Now we have NPM and approximately 18 trillion modules. You can get stuff that does all kinds of useful types of manipulation, but under the hood some of it is still just a wrapper around some combination of zlib, FFmpeg, OpenSSL, and maybe Boost, plus TensorFlow or OpenCV (which can use FFmpeg) these days.

The amount of truly novel problems we're solving still seems low. "what Andy giveth, Bill taketh away", or I guess these days, "What Lisa giveth, Sundar taketh away"?

Re:Is the madness ever going to end? by Waterluvian on Tuesday January 11, 2022 @07:43PM (#29900718)
IRC isn’t even remotely competitive vs Slack for 99% of its users. It’s the same ignorant take you hear from people who complain about Excel files. The overwhelming majority of users do not experience the cosmos at all like you do.
Re:Is the madness ever going to end? by somewhatBored on Tuesday January 11, 2022 @09:50PM (#29901686)
One thing about Sheets vs. Excel: Appscript for automation is a lot easier to get set up with than VBA ever was to the point where my org has a ton of things that we just throw a small amount of Appscript at (E.G. generating performance reports) because it just works and it doesn't require a lot of processing power (yay, cloud!)
Re:Is the madness ever going to end? by jonny_eh on Tuesday January 11, 2022 @07:40PM (#29900697)
Slack has way more killer features than inline images, such as easy to control authentication.
Re:Is the madness ever going to end? by mhitza on Tuesday January 11, 2022 @08:53PM (#29901304)
What do you mean by easy to control authentication?
Re:Is the madness ever going to end? by jonny_eh on Tuesday January 11, 2022 @09:49PM (#29901677)
I was thinking OAuth and SSO.
Re:Is the madness ever going to end? by mhitza on Wednesday January 12, 2022 @01:56AM (#29903213)
I don't think extending a server bot to support OAuth/SSO can be that hard.
Re:Is the madness ever going to end? by stnmtn on Wednesday January 12, 2022 @09:41AM (#29906861)
Are you suggesting that a massive company should run their own IRC server, complete with bots that handle OAuth and access control, history saving, document downloading?
Re:Is the madness ever going to end? by mhitza on Wednesday January 12, 2022 @10:11AM (#29907380)
I'm not suggesting anything really. If anything I'd be happier for even more asynchronous collaboration via email, and realtime chat available as an exception.

In the thread chain I was just curious why people think IRC could not be a Slack replacement.

Related to your question about these integration services.

Running an IRC server is definitely not complicated. Bots which implement authentication/authorization already exist (NickServ/ChanServ/X). History saving is also common, and for in-client message history a bouncer is a pretty good tool to have. Document downloading, you have DCC, or yet other bots you can query/download from (pretty common in the mp3 download era).

If there was incentive someone could create a bundled package that unifies all these different components + a more modern client interface and people would not have any issue using.

It's not in the problem space I'm interested to work on, but functionally even the more restricted existing IRC offering would be something I'd rather use than the gif meme filled, emoji overdosed chats I've had on Slack.

On the other hand, I've been an independent contractor for a couple of years now and I had the pleasure of not being part of large team slack channels anymore anyway.

Re:Is the madness ever going to end? by jonny_eh on Wednesday January 12, 2022 @04:30PM (#29912934)
> Running an IRC server is definitely not complicated

Humour on HN is generally frowned upon.

Re:Is the madness ever going to end? by CRConrad on Saturday January 15, 2022 @08:35AM (#29946214)
> Humour on HN is generally frowned upon.

Hahaha, bravo, that's a funny one!

Re:Is the madness ever going to end? by dragonwriter on Tuesday January 11, 2022 @07:38PM (#29900666)
> I’m very critical when a company like Slack cannot find the time and resources to make native clients.

It's not a matter of finding resources, it's a matter of finding that to be the best use of resources. Obviously they could have native apps for major desktop platforms with the energy put into the Electron app, and performance would probably be better, but would they have feature parity? And if you increase the resources, would the best use of that increase be into maintaining native apps for each platform of Electron?

Re:Is the madness ever going to end? by JetAlone on Tuesday January 11, 2022 @08:16PM (#29901053)
I agree with Waterluvian.

I believe feature parity is less important than the basic HCU of a responsive interface for the most basic features. Some of the most recent features they've added, like the "WYSIWYG"ification of the input box were arguably more disruptive to my use of Slack than any benefit it offered. If a good baseline performance for basic features like chat, image sharing and calls are achieved, then later into the lives of these clients the kinds of features that would lose out on parity ought to be more niche. Things like the presence of huddles (arguably just a different kind of call), bot command interface tooltips, and the ability to draw on shared screen.

Maintenance is a real challenge, but one that delivers the value of good HCU and performance on dev machines; a worthwhile operating cost to provide a product that is harder to unseat. Better performing programs also save memory for the rest of the user's programs like containers and IDEs, which can get pretty resource-hungry.

I think with the recent chip shortage, supply chain issues and potential catastrophes in the future with Taiwan, there's a pinch that will force us to be more resource efficient on a per-machine basis at least for a while. And we may find out that there are miraculous things we can do on the individual machines we have, with what felt like very little processing power, once we're forced to adapt away from overvirtualized, shallow quick-to-market apps.

EDIT: on further consideration, I'm wondering if it's not possible within things like electron, to have some kind of "just in time" style hybrid infrastructure where the most basic features are augmented to run native code quickly for the most heavily used parts on the most common platforms? I don't know enough to say.

Re:Is the madness ever going to end? by dachryn on Wednesday January 12, 2022 @03:56AM (#29903955)
I agree Electron is a great way to serve tons of end users. But lets not exaggerate, there are 4 main systems to target: iOS, Android, Windows and Mac. Its not that insane to have 4 well optimized applications, instead of 1 mediocre-fits-all approach.

The problem is more recruitment and internal mobility I guess. If you have 4 teams, experts in their domains, you will have 4 teams 'fighting' each other over the UI, working in their silo's, harder to maintain feature parity... But thats organisational.

Re:Is the madness ever going to end? by knubie on Wednesday January 12, 2022 @12:19AM (#29902630)
> I’m so #%^*ing tired of it taking three Mississippis to show a channel I click on.

I can guarantee you whatever is causing Slack to take 3 seconds to load a channel has nothing to do with it being built on Electron and, all else being equal, would probably have the same problem if it was built as a native app.

Re:Is the madness ever going to end? by kelnos on Tuesday January 11, 2022 @11:31PM (#29902332)
> I’m very critical when a company like Slack cannot find the time and resources to make native clients.

I think they could, but they've decided it wouldn't be a good use of that time and those resources. The Electron app was probably written when Slack was a much smaller company, with less time and fewer resources. Now that they have more time and resources, they can choose to spend that on adding features and acquiring more users, or they can spend it on rewriting their entire app three times (ok, two times; I assume if they decided to go native they wouldn't spend the time on a Linux app). And remember this entire app isn't the app they started with; it has a lot more features than that one did.

It frustrates me too; with the exception of Signal Desktop, I've banished Electron-based apps from my machine (if I had more time on my hands, I would write -- and then spend a ton of tedious, thankless time maintaining and updating -- a native Signal Linux app). I use the Slack webapp in my browser, and it works just fine. And that's also the weird thing: I don't get why so many people use the Electron-based desktop apps, when the webapp has all the same features.

Re:Is the madness ever going to end? by StillBored on Tuesday January 11, 2022 @11:42PM (#29902403)

  But on the whole, I don’t think the armchair critics truly appreciate how Electron reduces the cost by at least an order of magnitude. 
Compared to what? Java? Have you used c#.net, or for that matter Delphi or VB6 in their heydays?

To me, I look at electron and I would put it roughly on par with QT. Although, like the vb vs delphi argument, i think electron gives you a good initial boostrap and makes you feel productive, but then when you start to hit problems they are very difficult to solve. Vs QT which is harder to get started in, but once you have the core up an running its possible to bolt things on fairly rapidly.

I've not written anything in lazurus other than toys, but many of the problems I had with it just a couple years ago seems to be mostly fixed. AKA, its been quietly getting more robust everytime I install a new version..

So, I would be interested in a fair electron vs lazurus comparison from someone who has spent significant time in both.

Re:Is the madness ever going to end? by sofixa on Wednesday January 12, 2022 @12:03AM (#29902543)
There's still a huge advantage for Electron - it's still fundamentally the same tech underneath - HTML, CSS, JS. Any semi-competent web developer can use Electron and ship cross-platform apps with it, and heck, lots of code can be shared between Electron apps and the web "app". None of the other options provide these facilities.
Re:Is the madness ever going to end? by StillBored on Wednesday January 12, 2022 @10:16AM (#29907479)
But, you then have all the problems with JS/HTML/CSS that web developers have. Like for example being able to support scroll bars and the like in a reasonable way. We accept certain poor behaviors from web apps because they are bound by a technology stack that is in many way sub optimal for the needs of the user.

I was employed doing what we called client server development in the 1990's, where we wrote the frontends the users interacted with in vb and later delphi. I would put the visual and operational complexity of some of those applications far beyond any slack/etc type application (one actually had a chat function built in). They were also distributed, but instead used proprietary protocols over proprietary wireless networks (until later when we were some of the first customers for cellular data). And I say it not to brag, but there were two of us working on the front end, both part time over the span of maybe 5 years. And we could do large logs/chat histories where the scrollbar reflected where in the data set the user was viewing and they could smoothly scroll or jump to any arbitrary location. I can't remember the last web application that could do something even that basic. Slack definitely cant. I'm pretty sure there are more developers working more hours on the slack front-end than we worked on those applications. So, I'm not sure where the claims of developer efficiency comes from.

People make a lot of claims about developer efficiency, but just about none of them are backed up by more than their gut instincts, which I would claim from the end user/3rd party viewpoint seem to be completely invalid. The apps are overwhelmingly poor on any number of fronts, and apparently have a lot of man hours poured into them.

Re:Is the madness ever going to end? by anthk on Wednesday January 12, 2022 @06:06AM (#29904818)
QT is much faster than Electron.
Re:Is the madness ever going to end? by sofixa on Wednesday January 12, 2022 @06:59AM (#29905172)
Thanks for the information, however that isn't really relevant to the points I'm making.
Re:Is the madness ever going to end? by CRConrad on Saturday January 15, 2022 @08:39AM (#29946243)
> that isn't really relevant to the points I'm making.

But maybe it should be.

Re:Is the madness ever going to end? by efreak on Thursday January 13, 2022 @11:09AM (#29922298)
It's not that I don't appreciate it. It's that I _don't care_. I've only got 16gb of ram, and much of that is used by things I actually care about, like airsonic, a Linux VM, fb2k, etc (yes, my PC is my home sever). Even if I were to dump all this, there's a limited number of electron apps I'm willing to use, and none of them are things I leave open all the time. Authy particularly annoys me, since I have no choice if I wish to use their authenticator (humble bundle doesn't support totp, only Authy 2fa)
Re:Is the madness ever going to end? by ihateolives on Wednesday January 12, 2022 @05:29AM (#29904582)
Last time I looked at Lazarus its autocomplete/suggestion was not on par that I've become to expect from VSC/Intellij and modern languages. Also, who wants to write things in FP nowadays? I was toying with the idea, but I don't want to end up abandoning my project midway just because FP happens to miss an important library or db driver or something else.
Re:Is the madness ever going to end? by StillBored on Wednesday January 12, 2022 @10:44AM (#29907938)
The pascal thing has its own advantages/disadvantages. Finding people with pascal experience is going to be difficult, but i'm not sure this is really any worse than some of the web/framework wars. Pick a framework and likely in 5 years your going to have problems finding people who are experts in it because they have all moved to something else (although maybe that is settling down angular/react are still around). OTOH, Pascal is a far simpler language than JS, for sure it has fewer gochas than JS does at this point, and it supports proper threading if you happen to need that among other things. Its definitely stagnated, but that's probably a good thing if you plan on building a long term business around it. I'm not sure I would consider editor features like auto completion very high on my technology selection, particularly since you can 1. fix it, 2. use a different editor.

I would worry about hidpi support with Lazarus, and how well the android/ios/mac bindings actually work. Maybe a few other things too, basically things that are going to be so large a work item that fixing them is going to outweigh any advantages of picking the tool. I think electron has at least a dozen of these, and that would push me away from it. From where I stand, electron is closer to java in the long term results.

Re:Is the madness ever going to end? by ihateolives on Thursday January 13, 2022 @02:51AM (#29917943)
Autocomplete was one example, but I wouldn't underestimate the importance of tooling when you want to onboard people new to the language. Does fp even have package/dependency manager? How good are linters?

I wrote my first pieces of shitty Turbo C code before autocomplete was a thing, in a DOS editor. There was no discovery of language syntax or features, you had to have a paper manual open on your desk. So I got frustrated, didn't stick around (dumb decision in retrospective), turned to webdev, at least the turnaround from code to result was quicker. For some time I thought it couldn't get any better than syntax highlighting, but it did. And now I just don't want to work with languages that don't have good lsp support. Been there, done that, nope, not going back.

Re:Is the madness ever going to end? by CRConrad on Saturday January 15, 2022 @08:44AM (#29946287)
> Does fp even have package/dependency manager?

Sigh... "Does [Product X] even have [solution for Product Y problem]?"

A "package/dependency manager" is only necessary in languages based on using umpteen million unvetted modules downloaded from the net. Not all languages work like JavaScript in that respect.

Re:Is the madness ever going to end? by nooorofe on Saturday January 15, 2022 @05:20PM (#29950965)
What about running those apps on Android and iPhones?
Re:Is the madness ever going to end? by martinald on Tuesday January 11, 2022 @08:03PM (#29900937)
I'm actually surprised either Microsoft, Slack or a new startup in the space haven't made a native app yet. Wouldn't even need to be all of them; Teams could be a native Windows app and keep the electron one for mac/linux/mobile. Or Slack could make a native Mac one first.

Seems quite mad considering the use/value of the tools and the absolutely enormous user base they have.

Re:Is the madness ever going to end? by norman784 on Wednesday January 12, 2022 @08:04AM (#29905807)
Considering that in Mac you have universal app (so in theory your iOS app can easily become a Mac app), but they don't want, even they opt-out from the universal app program so you can't install the mobile app in the desktop.

But they didn't migrate because isn't critical for their business, Teams is just a bonus, but Outlook is 100% native app in Mac and works great, because they can't afford to lose customers with an electron version of Outlook.

Re:Is the madness ever going to end? by cheschire on Tuesday January 11, 2022 @08:41PM (#29901228)
Teams moved to Edge instead of Electron. Your point still stands though. Not sure why they decided this was the way.

https://techcommunity.microsoft.com/t5/microsoft-teams/teams...

Re:Is the madness ever going to end? by int_19h on Tuesday January 11, 2022 @10:28PM (#29901923)
Because they already have a codebase that uses HTML for UI, and a team that's proficient in it?

It's also worth remembering that HTML UI is technically "native" on Windows since Win8, where HTML/JS was one of the three stacks supported by all the new WinRT stuff - and, indeed, the one most heavily pushed.

Re:Is the madness ever going to end? by novok on Tuesday January 11, 2022 @11:57PM (#29902509)
IMO OS vendors could create an electron detection mechanism and start making electron instances use shared libraries and memory for their browser instances as part of a swap in the kernel. When you remove the "virtual OS container" that come with every electron app (their browser instance), you remove a significant amount of resource waste they have. Then they're pretty much QT apps written in python in the level of performance and memory they use.

It's kind of a shame that chrome apps didn't become a thing and electron app installers would detect if you have chrome and just install themselves as chrome apps vs an electron app. That would've been another legit alternatives.

Re:Is the madness ever going to end? by aembleton on Wednesday January 12, 2022 @09:51AM (#29907024)
If the OS doesn't get updated, then some of those electron apps might stop working properly as they are expecting to target a particular version of Chromium.
Re:Is the madness ever going to end? by novok on Thursday January 13, 2022 @05:58PM (#29928216)
It would be a bit smarter and generalized than that, it would detect new chromium 'version bases' and differentiate based on that. Eventually it will stop working, but if you don't update your OS after a certain point, new app versions wouldn't work anyway, or they would fall back into standard mode.
Re:Is the madness ever going to end? by andrei_says_ on Wednesday January 12, 2022 @02:35AM (#29903467)
I use both discord and slack in their website form. Am I missing anything by not downloading the electron apps?
Re:Is the madness ever going to end? by aembleton on Wednesday January 12, 2022 @09:26AM (#29906657)
I found I the needed Slack application for screen sharing; although might just be Firefox stopping it.