skysight-inc/HackerNews huggingface dataset:
The interesting thing in this case is that Trump's tweet is a violation of the "Election Integrity" policy: https://help.twitter.com/en/rules-and-policies/twitter-rules
(see the "Authenticity" section) whereas his other tweets, while inflammatory, are not.
For JS, it's best to avoid class as possible, due to this and bind / apply shenanigans.

Closure and function return function can be used as substitute, and except for inheritance (which should be avoided too), I haven't found any use case for using class class. Example:

function MyList {
let data = [];
let add = (item) => data.push(item);
return { add };
}
Great reading! I am building a shareable journal/social network with a focus on privacy. It was very interesting, in particular the parts about CDN and IP anonymization.

I wrote some thoughts on the trade-offs of choosing privacy for a social network. It might help other people trying to make product/business decisions with a privacy-focused approach:

https://blog.quidsentio.com/posts/the-trade-offs-of-privacy/
It's so awesome, and the documentation and tooling suck so hard. Such a frustrating ecosystem...
I have an Android app on the Play Store which uses Python and can confirm that the startup time is slow because of the imports. I think one possible solution could be to invoke the start of the interpreter outside the UI thread, at least it could give the illusion of a faster app start. Unfortunatelly the app gives me ~5€/month so it is not profitable enough for me to care.

I opened source the idea at https://github.com/joaoventura/pybridge

The thing that makes this different from a pure android python project is that I only use Python as a kind of mobile RPC backend. The UI is completely native in Java/Kotlin.

As a side note, today I’ve open sourced the same technique, but for iOS (https://news.ycombinator.com/item?id=23335704). I’m able to share all the python code but adapt the UI using the native tools..
Some combination of Reddit, Facebook groups, etc. seems to have subsumed them.
Ask HN: Alternatives to Watchman ? (file/dir watching tool)
Can anyone suggest alternatives to Watchman (https://facebook.github.io/watchman/) for use on Linux ?

Watchman seems to be verging on abandonware. Last stable official release dated 2017, no real github pushes, just auto bot entries. Build issues etc.

What is everyone else using for this sort of thing ? (apart from those who know C and have hacked up their own).
Nevermind, it's deprecated. :(
> Now, you can either hire someone from San Francisco and subsidize their obscene rent, or you can hire someone from Omaha. You can get the same work done, but cheaper. What would you choose?

This depends on the assumption that there's a big supply of workers in Omaha that are able to step in and do the job. I'm an outsider, but I'd guess that the people worth $600,000 Facebook salaries are already living there and working for Facebook. And then there's the question of whether those jobs are the ones that can be done remote as well as in a specific location. You have to ask why, if there were such big savings on the table, these companies hadn't already moved in this direction. I don't think it's as clear-cut as many are making this out to be.
That depends on the language. Haskell provides some nice syntax here with monads.
Yeah, and the posters thinking that this will help wealth inequality (either among the general population or just among tech workers collectively as a whole) are hopelessly naive. It is practically guaranteed to make wealth inequality worse, and now tech workers will start to feel a lot of pain, more like the general US population has.

This is going to happen faster than other times when offshoring has occurred in various industries historically too. Just think about it. You can bet contract work is going to be commonplace, and you can kiss your benefits goodbye. If you do not think this will happen to you, well, you’re next on the chopping block.

Work will become hyper competitive for benefits and for full time status. A good employee will be someone who answers emails 24/7 and within minutes of it being sent, night or day. The work will never end. Surveillance technologies for remote work will remove any semblance of freedom when you work from home. This is all very unlikely to be made illegal in the US in the foreseeable future. Also. populism uprisings that occur in a respective country last on average for 30 years, so you better be thinking in the very long-term for how bad this could actually be.
He didn't say there wasn't talented people elsewhere. The title says anyone can take your job, and he drew a line between looking globally to save money and getting what you pay for. You seem to be bringing up counter points to something that wasn't said.
Yes, by journalists in the press, and perhaps by their opponents. But just because you sell billboard space, or ad space, doesn't mean you should be responsible for that fact checking.

There's a reason newspapers would separate out advertising and editorial content and identify them as such.

The counter argument typically is "but what if no one sees the countervailing message?!?" Shouldn't such a verdict be affixed to the message as a visual mark of sin or righteousness?

Counter ideas with ideas, not imprimaturs.

That said, I'd love to have a "No Tweet" litmus test for Presidential candidates. "I promise, when I'm President, that I will never personally tweet from my own account."
> But then you can't do anything with the changes, right?

You can screenshot it, and use it as "proof".

I've seen people get scammed in this fashion - "he showed me screenshot of his bank balance!"
No. Not even for a second.

Suppose you have two engineers, one in America, one in India. PRs cannot be merged without an approval. Suppose the average PR requires 3 back-and-forth comments before it gets merged.

In the same timezone this gets merged in an hour. In a different timezones its days.
What is your open source tool?
the closure version will be 1/10th the size and have 1/10th the semantic programming language elements

This seems pretty central to your point, but a factor of 10 is also a very strong claim. I'd like to see sources.

Passing around state via variables is no more tedious than the extra syntax for class definitions, constructors, member variable access, extra semantics related to objects, extra keywords related to visibility, etc.

So instead of doing objects, you're doing closures that act like objects?
I'm really not fond of much of this sort of design.
So many objects from the 60s and 70s were too focused on looking “cool”. The furniture strikes me as impractical and inhumane, and most of it was poor quality; I've seen a lot of it thrown out, and it just gets ratty and the laminates peel off if the climate control wasn't just right in whatever building it was in.

The organization of controls is alright, and the SCADA-style visual HMI definitely looks intriguing, but I wouldn't say it's “beautiful” in any way I would recognize; and it's not really any different from the design language of similar-period U.S. control rooms (see examples below).

You'll even note in my third example one of the images in the article isn't even of a soviet control room but rather a U.S. nuclear ship control room.

This error seems to stem from this article being from a family of slapdash articles based on a webpage with a collection of control room photos [0] claimed to be Soviet; though they they note several corrections, the U.S. ship control room is still there, right at the top, taunting you.

https://www.atomicheritage.org/sites/default/files/Three%20M...

https://hips.hearstapps.com/pop.h-cdn.co/assets/15/28/3200x2...

https://hips.hearstapps.com/pop.h-cdn.co/assets/15/28/3200x2...

[0]: http://blog.presentandcorrect.com/27986-2
There have been times I've wanted to reach out to someone about their open source repository or a question and I've always wondered why there wasn't a messaging feature. Interesting to learn it used to be there.
First few months is often the duration of a project, especially for those working on a contract basis.

Remote and in person can reach the same level of trust and productivity, but I do believe that people reach that level faster in person as opposed to oddly forced zoom happy hours.
In addition, there are a couple concerns when branching out to other countries:

Currency exchange means some can work at a discount compared to USD

Government subsidies hoping to diversify their economy may even pay partial salaries

Strong social safety net in other countries means companies may not need to pay for health benefits for remote workers
Math TA posts fake solutions online to catch students violating policy
politely asking for more formats too, it won't load my flacs
If you read the source of all the programs you run, more power to you. Most people don't.
I like the idea of contributing to DDG but that repo doesn't seem to be in active development.

If anyone knows of other ways to contribute code to DDG I (and probably others) would be interested.
Very interesting. I didn't know about `crossorigin=anonymous` and `referrerpolicy`. You wouldn't believe how many "privacy-focused", "E2E encrypted", etc. web apps are just blindly loading things from multiple CDNs with no SRI and no CSP (let alone anonymous CORS or no-referrer).

Speaking of CSP, should it be in this list? It allows you to whitelist scripts that run on your page, prevent 3rd-party scripts from loading media, and act as a kind of application firewall with `connect-src`.
Hey Hacker News! I’m a long-time user of Notion (an advanced note-taking app). Notion’s web app has been quite slow for me, so I decided to reverse-engineer it and see why. Here’s a case study with findings and recommendations!

TL;DR:

* Notion has a large startup time because they serve a lot of JavaScript. This JS has to be parsed, compiled, and executed – and this takes time. This is especially slow on Android phones [1].

* The obvious solution to this is code splitting. But in case of Notion, there’re a few other low-hanging fruits. For example, if you switch to CommonJS, you can (surprisingly) speed up the startup by deferring unnecessary modules [2]. Or, there’s a bunch of unnecessary libraries in the bundle (including 3 duplicates of CoreJS).

* Apart from JS execution, there’re also a few other issues. Analytics is loaded early – and it defers loading and execution of other, more important resources [3]. And page resources don’t have `Cache-Control` headers being set, which could lead to different caching behavior in different browsers.

Overall, based on my measurements and some guesses, I think Notion can cut around 30% off their initialization time – simply by tuning some configs and deferring some loading.

Would be happy to hear your feedback :)

[1] https://3perf.com/blog/notion/#cost-of-javascript

[2] https://3perf.com/blog/notion/#try-the-lazy-option-of-babels...

[3] https://3perf.com/blog/notion/#defer-third-parties
For all you high-salaried renters out there dishing out exorbitant rents to the administration.
You'd think a "long time regular visitor" of the site would notice that lately it's been indistinguishable from the Huffington Post.
Can a technological civilization, though?
I personally like using the "tldr" command line tool. It gives a short overview of the most common commands.

https://github.com/tldr-pages/tldr/
Interestingly the first person to talk about pole reversals was the American holistic healer Edgar Cayce. On the 11th day of August, 1936: Q What great change or the beginning of what change, if any, is to take place in the earth in the year 2,000 to 2,001 A.D.?
(A) When there is a shifting of the poles. Or a new cycle begins. Ref [826-8]

Geologist of the time did not believe a word of it. However, during WW2 the detecting instrumentation for submarine warfare detected on the sea floor alternating bands of magnetic polarization, which is now evidence for the reversal of the magnetic poles. Humans do have non-physical experiences, e.g. dreams, etc. but now most non-physical experience is discounted, ignored, except for thinking.
Bonus points if you make it a redirect loop so they get sucked into a never ending void.
Pi-hole 4.4.0 Remote Code Execution
NHS test and trace privacy doc throws doubt on app’s “anonymity” claims
For a trivial-ish command-line tool, I've enjoyed using pyinstaller with --onefile to put out a single file executable. Using GitHub Actions, it was also relatively easy to create cross-plaform releases.
Shell Shortcuts
Can't edit (ha) the original post, but it makes more sense after reading your comment that it would be editorializing and not editing.
> What is not solved, of course, is how a remote-only employee can build trust and relationships with peers.

You're saying that trust can't be built virtually? I think there are online communities whose members would say they trust each other, and can collaborate and work together just fine. A lot of open source communities certainly work on this basis.

Besides, working remote-only doesn't mean occasional meetups or virtual events (gaming, etc.) couldn't be held to bring the team more socially together, but I don't think this is a requirement.

Of course, trust is subjective, so others will feel differently about what it takes to establish it for all involved, but that applies for physical communication as well.
Virtualenv / virtualenv wrapper is what I've been using for years. I tried PyEnv at one point, didn't care for it. Sublime Text for editor, Sublime REPL plugin is nice.
It's a paradox, isn't it? What person in their right mind, who's perfectly balanced and stable, would willingly ingest powerful reality-altering substances?
We've been at the DRM game a long time, through games, music, videos, etc. They all work about as well as they've worked before.

If you want to control your hardware, do what you will. But I'm not happy if you need controls in all my hardware.

There's an argument to be made that the encumbrances you hope for are largely controlled by global corporations who yield to governments, and aren't aligned with the rights of individuals and culture at large (extended copyright, CPU backdoors, carrier backdoors, etc).

Loss is built into every business model. Loss prevention is a reasonable response. But this cycle of "more controls, more DRM, more backdoors" returns again and again, and is worth resisting.
I don't like Emojis in my documents. I think they are distracting. Tools like Notion is actively promoting it like this new Github profile docs. Does anyone else feel the same? :-)
This reminds of content on the site OObject. It has lists of interesting images of real-world things like control rooms, neutrino detectors, etc: like these 12 space inflatables: http://www.oobject.com/category/12-space-inflatables/, or these 12 mobile bridges.
I once threw a relatively complex Python application with background server/client processes at Cython and the generated .exe literally just worked without any special effort. I don't know how transferable that is, but N=1 it's not always as hard as what you're thinking.
Pi-Hole 3.3 Command Execution
my account is a year older than yours and I've never been asked by shadowy interest groups to astroturf, do you have any tips to improve my account's brand appeal?
> After the CIA-backed military coup on September 11, 1973, Cybersyn was abandoned and the operations room was destroyed.

I do wish we'd had a chance to see how well it worked.
> A one-time, permanent cure is clearly superior.

No research points to psychedelics being a one-time, permanent cure. That's an extreme misrepresentation of the science.

In fact, the current psychedelic research revolves around a series of intense therapy sessions, a small number of which involve psychedelics. They aren't just giving people psychedelics to take at home and hoping for the best.

And again, no serious researchers are suggesting that depression is cured permanently, let alone with a single ad-hoc dose. This should be common sense, as many people who used psychedelics recreationally still suffer from depression. Indeed, psychedelics can worsen depression for some people.

Properly replicating these psychedelic-assisted therapy sequences is going to be expensive. I'm sure the vast majority of people would prefer a daily pill that has no cognitive distortions.
You're talking yourself in circles. Your final sentence contradicts the remainder of your point.

Testing is limited when you do not have the ability to fully control state, and understanding can be limited when information is hidden. The impacts of this are determined by the information being hidden, its relationship to the function's behavior, and the documentation of that behavior relative to the calling context.

Limitations on the ability to fully control state are orthogonal to the method of information hiding (opaque function parameters, internal object state, etc).

This is not an OOP/functional discussion, this is a discussion about the tradeoffs inherent in information hiding. And let's be perfectly clear here: These are tradeoffs, not black and white clear wins in either direction.
> Binaries produced with PyOxidizer are highly portable and can work on nearly every system without any special requirements like containers, FUSE filesystems, or even temporary directory access. On Linux, PyOxidizer can produce executables that are fully statically linked and don’t even support dynamic loading.

https://pyoxidizer.readthedocs.io/en/stable/overview.html
3 max-expensive "analytics" servers were how my company discovered a breach. "Why is our cost projected to go up so significantly?"

They were of course mining on GPUs.
If it would too dangerous, it would not be officially used for over 70 years, and be the official recommendation for over a billion people. You are mixing up it up.
> someone has to be the "top dog" attracting the top talent

As I said in my comment, this is the big shift I would be looking for. The shift in the top dogs. The top dog could become a Chinese company snagging US expertise rather than the other way around. That could then create effects where US workers are applying to jobs abroad.

The real competition might not be positioning yourself as the talent. The real competition of the future might be attracting the talent. Once you get _that_ shift, then this conversation takes a totally different turn.
Interesting, what are they?
A blogging style guide, vol. 2
I don't know that it was ego death, precisely. I just inferred that from comparing the impact on me with what others reported experiencing. I've heard it also called 'epiphany'.

I was just reading books and pondering. Sci fi, Sagan, Fritjof Capra, Taoism, Zen, some Buddhism. I didn't know any one who knew anything about this stuff.

I started meditating because I was struggling, had a lot time, nothing to do, and was trying to psyche myself up to start working again. I hadn't been diagnosed yet, so didn't know my failings were health related. I thought I just had a bad attitude, was being lazy.

I got pretty good at reaching a trance state. I was stuck on the notion of "no thought". Best I could do was let thoughts float away. So I started my notions of mental exercises. Visualize a sphere. Think of a color and try to see it with my mindseye. Imagine the center of my ego was my sternum and not my head, imagine the world from that perspective. Float above my own body.

So I was just doing my thing, pretending to have an out of body experience, and I slipped into a different state. The idea was really simple. It was like being able to actually internalize a trillion. Or like Fritjof's epiphany of seeing all the grains of sand on the beach.

I had the full impact of how big the universe is and how small I am, the briefness of my lifespan.

It terrified me. I reflexively pulled back, popped out of trance. And then I laid on the bed for a long while, trying to figure if I was back in my room, if I was dreaming, what's real or not.

I came out of it very different worldview. That whole ecological, holistic awareness, everything is connected, and other woo-woo descriptions. Popping that ego-centric bubble for just a moment.

Again, I'm just using other people's words for what best matches my experience. "If you meet Buddha on the road, kill him." and all that.
I think the opposite argument works as well. There is so much obviously fake crap floating around the web that, apparently, people believe that I don't think good photoshop and deepfakes actually add anything to the mix.
The point is that the problem isn't that Republicans want something that is good for civil liberties -- bipartisan support for civil liberties is a good thing. The problem is if "civil rights organizations" care more about party loyalty than civil rights. So the solution is to get those organizations to stop being partisan, not to get Republicans to stop doing something good in this case.
>though it does seem to cause joint pain

Wait, you get this, too? I have searched for answers to this and gotten nothing. I have long suspected that my coffee habits correspond to my joint pain, but I have associated it with many other things in a search for truth. Can you elaborate?
> I'm an outsider, but I'd guess that the people worth $600,000 Facebook salaries are already living there.

Myopic
There's no right to a platform for free speech. Maybe there should be, but what that should mean is very difficult to assess. Taking a stab at platforms just because they're popular, isn't necessarily fair game.

Twitter and other social media are moderated in several ways. If your opinion is unpopular, it'll likely not be retweeted much, it may be moderated down by users and moderators, your account might even be banned. Private platforms are private, and regulating them would hinder freedoms to create and maintain diversity of such platforms in the future, ie. hinder competing platforms and innovation.

If such platforms become detrimental to society, that of course need to be addressed in some way. Right to be forgotten is a good example trying to balance out some of the imbalances.
All the security features added in the Windows 10 May 2020 update
The short answer is that selling developer tools is hard. Software engineers especially do not like to pay for stuff. We used to be in the DevOps space [0] and it is something that requires heavy enterprise sales to monetise well. There are few companies that truly took off in selling digital shovels, one example is probably Jetbrains. Most developer tooling/platform companies either died or got acquihired once they run out of funding. Flynn and Deis were both acquired and I suspect even the new generation of PaaS like Vercel
would have to look for alternate sources of revenue once the VC funding dries up and if they do not achieve profitability. The container space is extremely challenging if you are competing directly with companies like Google with tremendous amount of cash and a willingness to buy developer mindshare. Docker may have popularised containers and singlehandedly brought the ideas of BSD jails mainstream but profiting from it is another thing entirely (you can do pretty well consulting on Kubernetes etc. but that would hardly give unicorn levels of return).

[0] https://news.ycombinator.com/item?id=23254394
I would argue that it is actually waaay more awkward to use objects for this. See my example code here:

https://news.ycombinator.com/item?id=23338700

You will see that it is far more concise and intuitive to do it with a function.
… and you can take anyone's job.
> NYC is more of a real place and is probably less inflated, alot of the premium there is really about domain expertise.

We'll see. I'm betting you're wrong - NYC has nothing on SF in tech expertise and the rest of the country (especially outside of the West coast) doesn't have much on it either.