Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

I'm part of the crowd that dislikes the trend to use electron for everything. I have 8gb of soldered Ram on my laptop, and will be forced to buy a new machine because I'm swapping like crazy now. My workflow hasn't changed. My activity hasn't. But 2 years ago, Firefox and Virtualbox were the only hogs, for reasons I could accept. Now, dynalist, stremio, discord, signal, pulsesms and vscode are added to the mix.

However, I understand that said apps may have not existed without Electron at all.

And especially, for jitsi, I think it makes perfect sense. If you are going to create an app that does video, audio and web rtc, it would be silly not to use a battle tested browser engine that does all this already.

Besides, having contemplated the state of UI in a world were you have a bazillions of combination of hardware type + screen format + OS kernel + OS version, I have to say Electron doesn't have much competition.

What are you going to do? QT? Phone support is abysmal and it's a pain to package. Kivy? Super slow, almost no widgets. Flutter ? Uses a niche language with a very small ecosystem and an unknown life expectancy.

I probably would go with the later, but I can't blame people for taking the easy road.


> If you are going to create an app that does video, audio and web rtc, it would be silly not to use a battle tested browser engine that does all this already.

I think you mean "create an app that does video, audio USING web rtc".

Plenty of native desktop/mobile apps do video/audio/text without embedding a browser.


> Plenty of native desktop/mobile apps do video/audio/text without embedding a browser.

Yes and it's a pain to do: format is limited, packaging is hard, ability to manipulate/embed the video is annoying. In fact, most apps doing that ship ffmpeg and/or vlc and call it a day. The browser gives so you much for free.


> The browser gives so you much for free.

including arguably the most attacked and compromised software surface in history.


Most attacked, I could believe. Most compromised, I'm not so sure. Browser teams ship out new versions very regularly, it's nothing compared to vulnerabilities contained within the first release of Windows XP, for example.


How many of those XP vulnerabilities were IE vulnerabilities?


Is it? ffmpeg as a library can decode about anything you want and put it in a buffer in less than 100 lines. Is that not for free? It's a self contained shared library.

Electron apps have the slowest interfaces on anything I've seen, lots of times each click of a button or menu has lag on a very solid computer. Who wants to have a program doing video embedded in a painfully slow interface?


This implies you dev in C or C++, and do all the controls, lifecycle and fallbacks yourself.

That a huge price.


What do you mean by lifecycle and fallbacks? Also you just said that building in multimedia was the problem and when I point out libraries are easy to use and modular you say that C++ is the problem.

I think you are giving too much credit to people using electron. It really seems to be mostly people who haven't really looked at their options avoiding native languages at the expense of the user. If all someone knows is javascript and they don't really care about their users' lag or resources, then electron is any easy choice.


When I buy a computer, the first thing I look for is extendable memory. If I can't easily plopp in at least double the RAM than it has, I'm not buying it. Got bitten already enough with the old 286+ era computers. Since then the memory consumption has been increasing the whole time until now you can't even start your editor without 1-2 GB disappearing. Want a browser too? That's another GB at least. A chat program? Another GB. The times where a chat client was 40 kb are long gone, now it has to have emotes and embeded movies at a minimum.


Funny thing is, 2 years ago I had a machine with 32gb, and I never passed 16 even while willingly opening everything just for fun.

I though it was too much, and downgraded for a small, cheaper and more portable machine.

Today, I think 32 would be just right.

2 years, lol.


I had the freakish opposite experience where I went from an 8gb linux machine that was scraping the top of that to a 16gb machine at the same time I switched from openSUSE's standard release to their rolling release (Tumbleweed). My memory usage immediately dropped by 30-40% and the bits that didn't were all Electron-based. Even Waterfox with 4K tabs dropped significantly. I have no idea how they managed it, but it was a pleasant surprise at the same time it highlighted that if you use a lot of Electron apps there are no good options.


Imagine when Windows 10 is "updated" to essentially be a chromium browser with typescript used for all UI and builtin utilities. In such a case only special windows store apps are able to be installed... this is the future Microsoft and Google want for us.

I would imagine such a monstrostiy would be so slow with even 32gb that we would have to pay for extra cloud-based services to do menial tasks like edit documents.

God help us all.


It's been envisioned already:

https://www.destroyallsoftware.com/talks/the-birth-and-death...

The talk is hilarious, and very much on point.


I bought a mac with 32gb in 2013, figuring this would be good for a long while... these days with mem usage constantly hanging around 28-30gb, I'm now choosing between 64 and 128 for the next machine (with 128+ only being available in apple's 'pro' line...).


Without Electron many of programs/apps would not be available on Linux. I'm happy Electron exist and we have overall more Linux desktop compatibility in an easy way. Electron fulfilled what Java has envisioned, it's only bad there is not an universal ONE runtime below that all (although there are Electron bugs on github where this is worked on).


Any previous solution to do UI: QT, GTK, WX, etc were cross plateforms.

I don't think that's it.

Electron make it easy, if you know front end dev, to do an app. It's easy to package as well.

I don't know if you tried to design a beautiful QT app, but it's hard. A beautiful QT app with medias capabilities ? Extra hard. Packaging that? A royal pain.


(minor side-note, since it's repeated: it's Qt. small "t".)


Yeah, because centring divs or making drop down menus out of unordered lists is so easy.


You don't, you have kits to do most things for you. That's the beauty of it: you can reuse the entire web community assets.

And when there are no existing widgets, crafting one is way, way easier than with QT. Especially with break points.


Yeah, right because component libraries aren't a thing in native UI since the early 90's.


Highly recommend Ripcord[1] to anyone who dreads opening Discord or Slack.

[1]https://cancel.fm/ripcord/


Now if only we didn't have to worry about Discord arbitrarily banning accounts for daring to use a third party client..


Agreed, although I've been using Ripcord for almost two years now, I typically use it for casual Discord use.


> My workflow hasn't changed. My activity hasn't.

> Now, dynalist, stremio, discord, signal, pulsesms and vscode are added to the mix.

So your workflow has changed. You added additional tools to it. These tools have always been electron. You don’t have to use them. There are alternatives.

The people behind these tools have decided that they target an audience you don’t belong to. You are of course free to ask them to change the audience, but you are not entitled to that


Sure, and you don't have to use a more modern car, you can always keep your old phones for 10 years.

But you would be very annoyed if when you upgrade, you'd notice the car actually eats more gas.

That's not what happens though. Modern cars are more ergonomics, and eat less gas.

It's not being entitled. It's just noting the drawbacks of some technological choices.


These are all just more recent variants of tools which we have always used, e.g. some chat apps, some editor, etc. In that way, not much has changed. It make sense though to move on to newer tools, which are basically the same tools though, just updated, maybe more modern features, not necessarily more features in total.


And maybe offering these modern features is so much easier using the electron platform that offering the features based in something else is not worth doing.

There must be a benefit for developers for them to chose electron. And that benefit for developers will have an effect for the users in either more features, quicker rollout or more supported platforms.


I have a suggestion for you that helped me. Try running Android OS like Prime OS (https://primeos.in) in virtual box and you can run those Android apps with low memory usage(I'm assuming that they offer the same experience in Mobile or that you are okay with limited functionality). I set this up for my wife as she kept complaining that her 8 Gb RAM was quickly consumed by Chrome, Slack, Spotify and other apps.

Now the virtual box memory limit is set at 3 GB and she has no complaints. Obviously this is not for power users but it helps a lot when there is a severe shortage in memory


I though about it, as a workaround. But realistically:

- my base ram consumption is 2Gb, so it would make 5gb with the VM, giving me 3gb for: firefox, and IDE, thunderbird, telegram, stremio, libreoffice, nautilus, veracrypt, liferea, gnome calendar, keypass, dev tools such as linter/dev servers/formatters, tilix, veracrypt, youtube-dl, jupyter, other VM I use for work... Even if I don't use them all at the same time, that's not a lot real estate. It used to be enough. When I used sublime instead of vscode, didn't have 4 communications apps and so on. You gotta hand it to the electron community: their software do bring good features.

- The ergonomics would be terrible for certain softwares. For chat, it would be alright (no notification is ok with me), but for stuff like dynalist, I need to be productive

- It's slow to use. You can feel the reaction time with every action. Android is slow in itself, but in an emulator, you want chain too many actions


That's a lot of functionality! How are you handling it? I expect it to get worse as more and more electron apps keep showing up.


Well, would a shared electron runtime make things better [0]?

[0] https://news.ycombinator.com/item?id=22774088


Yes and no.

Yes if people used it, but no because people would probably not.

One of the reason electron is so easy to package: it creates a big blog of statically linked everything. If you start having to play the packaging game correctly, you get back to the same problems other run time had.

So my guess would be most users would not do it.


> How are you handling it?

What do you mean?


So, how to improve Electron?

Does it use a new instance for every app, or it loads the engine once and reuses some of it for every instance? ie. can Electron be made to work like a system shared library, similar to GTK/Qt ?


The only improvement I see is to move away from electron. For alternatives everyone should take a look at Revery-ui written in Reasonml. Its starts in milliseconds, few megs of RAM usage, very low CPU usage and has most of the modern developer experience associated with Electron!!


MS probably knows. VSCode without any extension is pretty reactive and light. It becomes heavy when you have 20 tabs open with linters, languages servers, formatters and so on.

So maybe we CAN make electron lighter.


The real solution is of course to use the web browser as the "shared library", and develop a true PWA.

I know it's not always possible, but the web now offers a lot of powerful API's.


PWA are very limited:

- can't (realistically) use an alternative runtime. You are stuck with the JS ecosystem.

- can't start when the OS starts

- can't integrate with the UI (task bar, explorer menu, etc)

- can't run a server in the background for native perfs (like most electron apps actually do)

- can't open a server or a communication bus to allow apps cooperation, or playing well with the OS

- can't access the file system in any meaningful way to provide any kind of scanning ability

- can't store data reliably, or in any reasonable quantity

- can't call other local apps, run commands, etc

- can't access local libraries: so you do the crypto, hashing, dataprocessing in pure js

- can't access any non standard peripherics

- can't use the network, forget about avahi/bonjour, broacasting, capturing packets or doing CORS


Like I said, it has limitations.

But your comparison is also not really fair, since you assume everything runs and is stored on your local computer. This is not the case anymore at all.

Plus, the web browser is probably the first application that is started by a user.

Following applications all run in my browser: - email - video conferencing with screen sharing - (persistent) chatting - Office applications (word processor, spreadsheet, ...) - photo storage - games - development sandboxes - ...

In fact most Apps I have on my phone could just be PWA's.

I'm not saying we should all go web, but I'm saying that most things where you want to use electron, you could let it run on the web.


You listed a whole bunch of "downsides" but they look more like good security measures for running an app inside a browser.


Half of the softwares installed on my computer would not run because of those good security measures.

The browser let you do CRUD apps, with a hint of medias handling. That's it.

And not even good ones since your storage can be wiped out an any moment.


That makes sense!


< Does it use a new instance for every app >

Unfortunately, yes.



In principle, there is no reason why Electron must be so memory inefficient, right? We could optimize it in a way that it only loads resources it really needs. So in case of a video chat app, it would need video, audio, web RTC, a bit of HTML and JS. That should be possible to fit in a few MB of RAM. Only because Electron supports much more doesn't mean it must take so much memory.

Maybe it would make sense that we just focus on optimizing Electron for this case. That might take a bit of effort, but that effort might be worth it.


MS does that pretty well with VSCode I think. It doesn't seem to be the default experience though.


Another route is to share the same resources between apps, i.e. make a progressive web app. I haven't used the Jitsi desktop app so I can't speak to it, but I'd be curious to know what features are missing from PWAs that mean a native wrapped Electron app is necessary.


But being more specific here: What exactly are the shared resources? The binaries? That could maybe save a couple of hundred MB but this is maybe still not the biggest part. The remaining memory is probably sitting there in memory allocations of JS or so, and I don't think that can be shared.


> The remaining memory is probably sitting there in memory allocations of JS or so

I'm not so sure about that. 5 Electron apps takes up far more memory than 5 tabs open in your browser because there are 5 copies of all the other browser resources. I don't know exactly what they are but anecdotal observation of using Slack and similar apps as browser tabs shows much less memory use. It makes sense: the browser rendering engine and JavaScript engine are going to occupy memory themselves.


Yes, as evidence for this web browsers sitting at an empty new tab page are generally still using at least 100-200mb to do nothing. The likelihood that most of that is not the part that's most vital and feature rich is low.


I wonder if https://github.com/sentialx/electron-global could help with your issues


First time I hear about Dynalist. I'll add that to the ever growing note-taking apps I'm trying out.


It's a excellent software for managing things to do, and I pay monthly for it. It is very efficient to use, works offline and on mobile seamlessly, use a JSON format for storage, and can export in a standard format to avoid locking (even on the free plan).

I use it to manage things to do, listing, etc., but I would not use it for taking notes, IMO. The format doesn't look great for it.

Anyway, the free plan is good enough to try it on, and the customer support excellent.

I hope it will never be bought by some giant.


I quickly played with the demo. I'm more a note-taking kind of guy than a todoist. I love the UI but yeah, since everything is a list it's not for me. For my use, Google Tasks is enough for me.

I've tried Evernote, Boostnote, Simplenotes, Notion, even a bunch of markdown files inside a Github repo and so far nothing was 100% perfect for me. :)


I tried. So. Many. Apps.

Same. I always go back to using the file system:

- it has a hierarchy

- I can use whatever file format I want, mix in images, odt, pdf, md, etc

- I can backup and sync

VSCode is a pretty good editor to manage it all, and I played with the idea of creating an app with the new editor view feature of the last version just for that. Support some metadata, create an automatic encrypted sync server and that's it.

So ironically... An electron app.


Telegram is a QT app, btw. Still can take quite a bit of RAM, but much less than, say, Signal or Slack.


Most of the RAM usage when it comes to Telegram (and other IMs I guess) is media autodownload. Once you turn it off - the problem is solved (same for the battery life on mobile)


You shouldn't be using slack with 8gb of ram, use ripcord instead.


That's my point. Ripcord is not built using electron, yet provide the same features as the original slack app.


And it’s built by one developer, and supports Slack and Discord!

Imagine what these massive companies could do if they made their own native clients.


It wasn't anything like the original Slack app last I used it a few months back. Has this changed? It doesn't have a keyboard shortcut to jump between unread channels as a basic example. Or hiding read channels, so I've got a huuuge list.


>telegram

Doesn't Telegram use Qt?


Yup. Telegram Desktop[1] and the web client[2] are separate projects. The desktop client is still quite heavy on resources on Linux, and needs a restart every now and then.

[1] https://github.com/telegramdesktop/tdesktop

[2] https://github.com/zhukov/webogram



I have exactly one electron app (VSCode) that I need for my regular daily work. Everything else I shut down when I don't need it. Then I look at my coworkers who have dozens of apps running at the same time and complaining that their laptop is slow, and I only shake my head…


Yeah, why having a multitask OS when you can do the scheduler job manually?


They don't have an army, a passport, borders, a seat an the UN or any real diplomacy ties.

So unless you want to turn the state into a country, its power of negotiation is limited.


The thing is, we always knew this, but we did it anyway.

Like we know that destroying all insects and and global warning are not sustainable. We know we can't have 7 billion humans eating meat. We know we should let not power concentrate too much into some entities. But we keep it up.

Since we don't react unless something forces us to, I'm starting to believe we need some medium crisis to happen like the covid19 so that a bigger one won't wipe us out in the future.


Your final thought is exactly what I'm thinking. We should be all very happy that Covid-19 was the teacher, and not something much worse.


Did it really teach us anything for the long term? Or will we just forget everything we learned and resume life as usual in 2 years from now.


Sure it’s the teacher. South Korea and China only did as well as they did because H1N1 and SARS were more problematic in those counties. Haven been bitten twice, they revamped their health systems to be able to handle pandemics.


> they revamped their health systems to be able to handle pandemics.

Nurses in China was also wearing garbage bags in February. There's a PPE shortage for >2 months

https://i.imgur.com/PgDWgs5.jpg

The reason for this global shortage is China was celebrating Chinese New Year, when every production simply stopped. It happens every February. And Covid-19 kicks in and workers are effectively locked in their towns and can not travel. Local governments organized some emergency hires from local but still struggles to meet the demand.

If Covid-19 happened in other months it would be totally different.


China did well?


Given they didn't have the warning we had, and have a very dense population and hold the manufactures of the entire world, it could have been much worse.

I can't imagine what would have happened if patient zero had been in new york.

Now of course, they handled that the way a dictatorship handles it.


Have you paid any attention to the charts? Even if the numbers aren't truthful they can't be that far from the truth or the discrepancy would be much more obvious than it is. Just take a look at this [0]! And this despite being the first to be hit, and having hundreds of millions of people living in densely packed cities!

[0] https://www.worldometers.info/coronavirus/worldwide-graphs/#...


Checks back of napkin math;

Reported scandal is similar "confirmed" case testing as Italy and US. (only those showing severe symptoms).

20x population of Italy with ~1/2 the cases (so far)

4x population of US with ~1/5 the cases (so far)

Much more impoverished.

Virus originated there, so 2-3 months less warning.


From my limited observations, it seems like China (or any city/country/culture for that matter) did well in some ways, and poorly in others. This shouldn't be too surprising, because that's usually the case in any complex endeavor involving large groups of people. What is a bit surprising (well, unless you're a political news junkie), is that it seems like most individuals, or at least very, very many, are only able/willing to see one side or the other, as if they see the world in black and white (to test this theory, try disagreeing with such a person, and observe their reaction).

It seems to me that planet earth, and the various interconnected societies that live upon it, can be viewed as a system, like any other. Vastly more complex than any other system we deal with, but a system nonetheless.

Normally when an undesirable incident occurs in a system, we would get a group of people who have a good understanding of the system (or, systems in general at least) together to perform an appropriate post incident analysis, with a goal of identifying the various root causes, solutions to the causes, and an implementation plan. The space shuttle Challenger disaster [1] is a good example of such an analysis, in that it has many similarities (and at least two particularly noteworthy differences: number of deaths, quality of analysis) to the current pandemic.

It is fairly well known that when the people doing an analysis [2] of a system also happen to be participants within the system being analyzed [3], a number of unusual and undesirable behaviors can manifest (a very worst case example may be that, if the system is too complex, people may not only fail to realize that it is a system that can be analyzed, but may even be vehemently opposed to simple consideration of the notion. Rather, they may insist upon using a far simpler, non-technical (and therefore inaccurate) approach of casting blame according to a combination of personal heuristics[4] and in-group dynamics[5], at times going so far as ostracizing any person who may advocate for a standard engineering approach. For these reasons, outsiders (notable in this case, Richard Feynman) are often included in the analysis team.

I wonder if something useful could be learned from comparing and contrasting these two scenarios.

[1] https://en.wikipedia.org/wiki/Space_Shuttle_Challenger_disas...

Incident

The Space Shuttle Challenger disaster was a fatal incident in the United States space program that occurred on Tuesday, January 28, 1986, when the Space Shuttle Challenger (OV-099) broke apart 73 seconds into its flight, killing all seven crew members aboard. The crew consisted of five NASA astronauts, one payload specialist, and a civilian schoolteacher.

Investigation

In the aftermath of the accident, NASA was criticized for its lack of openness with the press. The New York Times noted on the day after the accident that "neither Jay Greene, flight director for the ascent, nor any other person in the control room, was made available to the press by the space agency." In the absence of reliable sources, the press turned to speculation; both The New York Times and United Press International ran stories suggesting that a fault with the space shuttle external tank had caused the accident, despite the fact that NASA's internal investigation had quickly focused in on the solid rocket boosters. "The space agency," wrote space reporter William Harwood, "stuck to its policy of strict secrecy about the details of the investigation, an uncharacteristic stance for an agency that long prided itself on openness."

The Presidential Commission on the Space Shuttle Challenger Accident, also known as the Rogers Commission after its chairman, was formed to investigate the disaster. The commission members were Chairman William P. Rogers, Vice Chairman Neil Armstrong, David Acheson, Eugene Covert, Richard Feynman, Robert Hotz, Donald Kutyna, Sally Ride, Robert Rummel, Joseph Sutter, Arthur Walker, Albert Wheelon, and Chuck Yeager. The commission worked for several months and published a report of its findings. It found that the Challenger accident was caused by a failure in the O-rings sealing a joint on the right solid rocket booster, which allowed pressurized hot gases and eventually flame to "blow by" the O-ring and make contact with the adjacent external tank, causing structural failure. The failure of the O-rings was attributed to a faulty design, whose performance could be too easily compromised by factors including the low ambient temperature on the day of launch. The O-rings would not work properly at ambient temperatures below 50 °F (10 °C)- and it was 36 °F (2 °C) on the morning of the launch.

More broadly, the report also considered the contributing causes of the accident. Most salient was the failure of both NASA and Morton-Thiokol to respond adequately to the danger posed by the deficient joint design. Rather than redesigning the joint, they came to define the problem as an acceptable flight risk. The report found that managers at Marshall had known about the flawed design since 1977, but never discussed the problem outside their reporting channels with Thiokol—a flagrant violation of NASA regulations. Even when it became more apparent how serious the flaw was, no one [citation needed] at Marshall considered grounding the shuttles until a fix could be implemented. On the contrary, Marshall managers went as far as to issue and waive six launch constraints related to the O-rings. The report also strongly criticized the decision-making process that led to the launch of Challenger, saying that it was seriously flawed: "failures in communication...resulted in a decision to launch 51-L based on incomplete and sometimes misleading information, a conflict between engineering data and management judgments, and a NASA management structure that permitted internal flight safety problems to bypass key Shuttle managers.

Richard Feynman

One of the commission's members was theoretical physicist Richard Feynman. Feynman, who was then seriously ill with cancer, was reluctant to undertake the job. He did so to find the root cause of the disaster and to speak plainly to the public about his findings. Before going to Washington, D.C., Feynman did his own investigation. He became suspicious about the O-rings. “O-rings show scorching in Clovis check,” he scribbled in his notes. "Once a small hole burns through generates a large hole very fast! Few seconds catastrophic failure."[70] At the start of investigation, fellow members Dr. Sally Ride and General Donald J. Kutyna told Feynman that the O-rings had not been tested at temperatures below 50 °F (10 °C).[71] During a televised hearing, Feynman demonstrated how the O-rings became less resilient and subject to seal failures at ice-cold temperatures by immersing a sample of the material in a glass of ice water. While other members of the Commission met with NASA and supplier top management, Feynman sought out the engineers and technicians for the answers. He was critical of flaws in NASA's "safety culture", so much so that he threatened to remove his name from the report unless it included his personal observations on the reliability of the shuttle, which appeared as Appendix F. In the appendix, he argued that the estimates of reliability offered by NASA management were wildly unrealistic, differing as much as a thousandfold from the estimates of working engineers.

"For a successful technology," he concluded, "reality must take precedence over public relations, for nature cannot be fooled."

U.S. House Committee hearings

The U.S. House Committee on Science and Technology also conducted hearings and, on October 29, 1986, released its own report on the Challenger accident.[75] The committee reviewed the findings of the Rogers Commission as part of its investigation and agreed with the Rogers Commission as to the technical causes of the accident. It differed from the committee in its assessment of the accident's contributing causes: "the Committee feels that the underlying problem which led to the Challenger accident was not poor communication or underlying procedures as implied by the Rogers Commission conclusion. Rather, the fundamental problem was poor technical decision-making over a period of several years by top NASA and contractor personnel, who failed to act decisively to solve the increasingly serious anomalies in the Solid Rocket Booster joints.

[2] https://www.merriam-webster.com/dictionary/reflection

- a thought, idea, or opinion formed or a remark made as a result of meditation

- consideration of some subject matter, idea, or purpose

[3] https://dictionary.cambridge.org/dictionary/english/self-ref...

- the activity of thinking about your own feelings and behavior, and the reasons that may lie behind them:

  - He seems to be *incapable of* self-reflection

  - It is only in *quiet moments of self-reflection* that we can *really address such problems*
[4] https://en.wikipedia.org/wiki/Heuristics_in_judgment_and_dec...

Heuristics are simple strategies or mental processes that humans, animals, organizations and even some machines use to quickly form judgments, make decisions, and find solutions to complex problems. Heuristic processes are used to find answers and solutions most likely to work or be correct. This does not mean however, that heuristics are always right. In situations of risk, heuristics face an accuracy-effort trade-off where their simplified decision process leads to reduced accuracy.

[5] https://en.wikipedia.org/wiki/Group_dynamics

Group dynamics is a system of behaviors and psychological processes occurring within a social group (intragroup dynamics), or between social groups (intergroup dynamics). The study of group dynamics can be useful in understanding decision-making behaviour, tracking the spread of diseases in society, creating effective therapy techniques, and following the emergence and popularity of new ideas and technologies. Group dynamics are at the core of understanding racism, sexism, and other forms of social prejudice and discrimination. These applications of the field are studied in psychology, sociology, anthropology, political science, epidemiology, education, social work, business, and communication studies.

The three main factors affecting a team's cohesion (working well together) are: environmental, personal and leadership.


I think there may be more reasons than that.

Human beings are complex, inconsistent, and many other things. Put them all into an interactive systems (cities, nations, global, cultures/ideologies) and the complexity increases.


It is easy to imagine this being an opening paragraph in the history books for the WWIII chapter. Large chunks of the world economy are currently on ice and we haven't even seen what horrible economic policies governments are going to use to respond to this in the medium term. I bet that when the dust settles it'll be just like every other crisis where the situation is decidedly different and substantially worse.

The economy is both critical and far too complicated for anyone to understand exactly what is going on at the moment. We could be looking at anything from a temporary wobble that disappears in 6 months to a long-rolling 20 year catastrophe.


There won't be history books. There is no world where WW3 happens and nukes just sit around gathering dust.

This is bad, but not bad enough to cause WW3


Probably we'll go backwards -- the end death count will be compared with normal death counts and be likened to a bad flu season. People are less likely to panic next time, but also less likely to pay attention to things like lockdowns.

I suspect one outcome will be a long term reduction in civil liberties


2 years? People here are planning to resume life as normal on May 1st.


Those people should reconsider their plans.


Exactly this. Covid19 is a godsend.

The US has a government agency called BARDA (Biomedical Advanced Research and Development Authority), that estimated at some point that there are 10000 gaps worldwide when it comes to pandemic prevention. And to close these gaps one would need a budget of $10BN/year. They didn't get that.

Now, after a few trillion down the drain, I think they'll get it.


We do things until we have a really compelling reason not to.


So, apple don't want web app to be first class citizens and then reinvent web apps?


The web is the biggest threat they face to their App Store.

They see the writing on the wall with technologies like wasm blossoming, and with web APIs beginning to open up possibilities for “native”-quality apps.

So they’re interested in anything that can reduce the friction necessary to get into native iOS apps.


It's quite amusing to look back to iPhoneOS 1, where they doubled down on web apps without an AppStore.


Is it me or are there a lot of articles indirectly promoting Microsoft on HN these days?

It's getting harder and harder to tell if those are genuine news or a PR firm at work, but "MS breaks a records in meeting minutes" feels even more like advertising than "Azur is getting 10 times more traffic".

If this is advertising, is there a way to prevent them from staying on the front page?


Some companies (like today’s Microsoft, apparently) have PR arms that are actually good at their jobs—writing articles that are, independent of their ability to advertise their company, actually intellectually gratifying in some way.

People who post things to HN, independent of being shills for any given company, like to post intellectually gratifying things. Sometimes those things happen to also be PR pieces. I don’t think the people who post these things really think about them as being PR pieces; or, if they do, they post them despite that, because in the balance, the piece still works out to be worth reading (in their opinion) even after giving it a demerit for being PR.

I’m not denying that there are shills on HN, mind you. I’m sure there are many of them. But I would say that even those shills probably have some sort of “standards”—only posting the PR pieces available to them if they think they’ll do well here (which means, only posting the pieces someone else who wasn’t a shill would have posted anyway.) To do otherwise might get them banned as spammers (which I do believe does happen—mods want to chime in on that?)

And then we still have the filter of some amount of upvoting being required to get things to the front page, plus (I assume) some sort of behind-the-scenes voting-ring detection. So the upvote signal is likely to express genuine community interest, and therefore to signal that the piece does have value independent of its PR-power.


Good PR is not doing the post yourself, but creating a post that is passable enough to be posted by a regular user on your behalf.

Just because it is well done does not mean it has good value as news.

Indeed, even if it's an ok read, it's giving a lot of attention to a company just because it has the money to attract said attention, no matter the quality of their service. Since the reader's time and energy is limited, it's taking the place of another possible read.

In the same way, by allowing this to happen, this lets a company create a fantastic image of itself, that is independent from it's real quality, just because it has the budget to do it. Cumulatively, this can, after years, end up rewriting history, and lead even educated people to make altered judgements and decisions in the future.

I'm not saying that as an anti-microsoft attack, I dislike the concept of such powerful PR in general, MS is just here a potential example for this.

As an HN reader, I wish there would be a policy about this. But I have no idea what it would look like, or how one could enforce it.

So maybe I'm just making a lot of noise for nothing.


It's not just Microsoft, I've seen similar articles from other telework apps (Zoom, Slack, etc) and from internet providers talking about the increased activity they are seeing. I think it just comes with out current situation.


I don't think Microsoft needs promotion currently, atleast during these times. Their main revenue is from Enterprise market and during such slow growth, no Enterprise shifts to newer platform over the night. I am just saying, we shouldn't be negative about everything, just because it's Microsoft.


Look for trends in the articles posted by the person who posted it. My guess is some people just post anything Apple/Microsoft/Amazon/Google/Facebook related.


This should probably be the HN link to the original source: https://www.microsoft.com/en-us/microsoft-365/blog/2020/04/0...

From the guidelines: "Please submit the original source. If a post reports on something found on another site, submit the latter."


My anecdote: I work for a F100 company that's in the midst of a (long) transition to Office 365. In a mid-level engineering staff meeting 2 days ago where we spent 20 minutes discussing the advantages of Teams over Skype for Business, and what could be done to accelerate our transition. All driven by WFH - Office 365 applications don't require a VPN connection in our org, while Outlook/Skype does.


HN has a demographic. If you're trying to influence the technocratic types you target this place, too.

Hell, HN is the organ of a startup incubator -- I'd argue that it exists to explicitly flog certain technical firms. That other companies are able to get their marketing teams on here too is may be a bug or a feature.


I doubt anyone's being paid by MS here, but MS puts out blog posts and will release numbers that news publications can write easy, free articles based on.


Are you asking if VentureBeat is genuine news or a PR firm?


I do wonder whether zoom wasn't target of competition in news


There are some things really neat in the switf example that they compare to python, like the literal range similar to ruby's, the fact that "+" is a function like in lisp, although I'm really not fan of the CFAbsoluteTimeGetCurrent().

But the python example doesn't make me trust the rest of the article. It is clearly a swift example, translated verbatim to python.

Idiomatic Python would be this:

    import time
    for it in range(15):           
        start = time.time()        
        total = sum((it,) * 3000)
        end = time.time()     
        print(end - start, total)  
Which is shorter, and way faster.

Now of course, Python is slower than swift (although a numpy version would not be, but I get it's not relevant in general purpose machine learning). But misrepresenting a language is not a good way to make a point.


Hi, author here, thanks for taking the time to read the article!

The objective of the demo was not to see which language could sum up a bunch of numbers the fastest. You could keep optimizing that until you are left with just `print(<the resulting number>)`. The objective was to have a simple example of looping over an array a bunch of times. The only reason I ended up summing the numbers in the array and printing them was so that LLVM wouldn't optimize it away and be unfair towards python. I actually wrote it first in Python tbh.


Make sense, thanks.


The `CFAbsoluteTimeGetCurrent()` is just a call to a system library. There are libraries which implement APIs like:

    let clock = Clock.system
    let now = clock.thisInstant()
there just isn't a nice core library interface yet.


Maybe versioning for models?


If you don't have typing, you'll have this problem too.


The title makes it look like the problem comes with the "~username" URLS naming scheme, while it really comes from any features that let the user host static files they upload AND link somewhere else on your website.

The site take the example of apache mod_sites, but alone it's not enough. You need apache mod_sites, and the ability inject a link served by it somewhere else.

Well, yes. If you let user input anything and then inject it anywhere in your website, it's a security whole. Not a surprised.

So if you let your users host entire application on your website, and let other users of your website visit those applications. Well, I mean, sure it's a problem.

The best sandbox is the one you don't need to use.


Yeah but then, do you want "whimsy" in sensible articles like political/religious/ethical related ones? Then would one expect wikipedia editors to enforce this policy on top of the work they already do? And using what criteria?


No, Wikipedia is not set up for whimsy. This kind of thing has to come from a single author with a point of view, not from a crowdsourced article with conflicting points of view.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: