skysight-inc/HackerNews huggingface dataset:
I wasn't attempting to defend JavaScript design choices. I'm just stating that working with blocking vs non-blocking code is now MUCH easier (and less error prone) since we have async/await.

Callback-hell and Promise-hell were real issues that plagued any project of significant size.
It’s not really idealism.

It isn’t easy to make major life decisions like where to live or which job to take or buying used instead of new... etc... but so many people keep acting like they were forced into this kind of slavery when they really weren’t... they just chose X instead of financial freedom and flexibility.
Heavy on "we looked at and we found x." Light on reasoning on why the conclusions are drawn and from what evidence.
Curious. When will JS tooling ecosystem support executing typescript by stripping the type information? Are there any plans to add generic soft type annotations to the spec? It’d be great to write these in TS without changing the runtime tooling.
> The author is right though, this climate is the norm. A better way to put it is that California has always been in drought.

I lost a lot of respect for anxiety over drought in California when my university set out little fact cards ("Please save water!") on all the dining tables with the following information handily presented:

Rainfall last year: 210% of annual average rainfall

Rainfall this year: 20% of annual average rainfall.

That's not a drought. We're significantly above average over just the last two years. (As of years ago.) How can ABOVE-average water supply be an emergency?
Excellent remark. In other words, college is a tournament.

Peter Thiel was very accurate with his remarks about this: https://www.youtube.com/watch?v=Yb28ZSvuKEw
I don't have the faintest idea, but the notion of having my session cookies and credentials stored in a VM somewhere makes me very nervous and I am not even half paranoid.

So they need to figure it out otherwise it's only valid for personal use, which is not exactly the money is, imho.

Maybe some self hosted solution for corporate departments? Or waiting for an acquision from Citrix or VMWare...
Terry Pratchett plays a lot with language, and it is funny

> “Mr Vimes," said Mrs Winkings, "ve cannot help but notice that you still haf not employed any of our members in the Vatch..."

> Say 'Watch', why don't you? Vimes thought. I know you can. Let the twenty-third letter of the alphabet enter your life.”

I am not a native English speaker, yet I decifer everyone execept gargoyles:

— e cuns uk ere um-imes an awks oo ugg
i was being a bit facetious. "Real-life" code is usually more complex and nesting is needed when you have conditional logic (call doC or doD depending on the return value of the previous call etc..)
Get a lot of books that will lead you to success
Tcl has strong opinions about Pontem Network: You be the Judge
Pontem network is a fake defi project who makes the rich richer be very careful of this one! Pontem network will be using facebook's DIEM or Move code to launch their project on the polkadot network. But do not be fooled by the "DEFI" aspect of this fake project who is using that term for marketing reasons.
But then it happened. Don't hate. I was upvoter no. 2 and I just knew this thing was gonna be on PAGE1. I know it's an "non substantial comment", but still! :P ;) xx
Believe it or not, slavery is alive and thriving in today's world.

You'll see most of it in developing nations where enforcement is non-existent. Rich nations still occasionally have trafficking busts, but nowhere compared to the scale and industry of some more equatorial countries. It's estimated that there are 38-46 million slaves worldwide.

In absolute numbers there are more enslaved people now than there ever has been in the past.
What about using ts-node? You can run typescript files directly with that. I use it for my scripting purposes.
> You're completely correct! The Linux kernel maintainers should stop bugfixing. It will be faster to rewrite it in a safer language than to add a one-line bugfix :-/

Linux actually doesn't bother fixing a lot of the kind of bugs I'm talking about (thus their use of e.g. -fno-delete-null-pointer-checks) and doesn't bother being portable between different compilers.

> Oracle should also throw away their database code. As you say, it's faster to rewrite their 30m LoC database than to add a few lines of bugfixes.

Oracle only stays alive because of aggressive sales and legal teams. H2 is both more standards-compliant and better-performing (why do you think Oracle's license doesn't let you benchmark it?).

> Wait, hang on ... what about my volvo s/wagen? The various ECUs in it are all written in C! Certainly I don't want them to fix problems and roll out a patch next week. I'll wait the 5 years it takes for them to rewrite the entire system.

> Then, of course, there's airliners. You're completely correct that we should not fix the problems in their code; we can shutdown air travel for the 8 years or so it takes to rewrite the system.

Safety-critical software is not written in C in the sense of everyday C codebases. It might be written using C syntax, but that code will not be treated as normal C: specific (often non-optimizing) compilers will be used, analysis tools will be applied, particular coding policies will be applied, using arbitrary C libraries is right out...
I have been programming professionally for over 20 years in languages ranging from assembly to Lisp and everything inbetween and applications from embedded to Linux kernel, to OS, to backend systems to algorithmic trading.

That I don't touch C++ is my choice because after years of development I decided that most of all I value simple and readable code, working with people who like to write simple and readable code or helping projects write simple and readable code. And C++ and community is, in my opinion, anything but about simplicity and readability.

For some reason I do not fully understand, C++ projects I have participated are a contest of who can think of more convoluted C++ construct that nobody ever will be able to understand and C++ seem to be absolutely perfect platform for it.

Even if I am able to understand it (which I frequently do not), I just can't rationalize putting crap like that in a project that is expected to then be grokked and modified by new developers.

I have tried restricting the types of constructs and C++ syntax used in projects in the past but this inevitably causes flamewars and lots of discussions about why these rules were instituted and whether they are necessary. I am sick and tired of explaining the value that exists in moderation and restriction.
It makes sense when you consider that all the successful services they are copying (Instagram, Snapchat, Clubhouse) are app-only.
Unfortunately the restrictions added in C++20 make designated initialization quite pointless for any structs or classes with more than a handful items. Having to remember the order of initialization is too much hassle in this case.
He's asking for Google to go into the censorship area of proactively not allowing to publish content. Google will fight nail and tooth against it.

This is the opposite what US gov is calling for - to provide more transparency in the existing takedown practices.

It seems that content platforms are cought between a rock and hard place here. And the innovation needed is not a technical one - we have implemented the current laws to their full extent and they don't seem to fix the problem. We need to move the law forward now.
I prefer Python for this because more OSes ship with it, it has a fairly rich standard library, and SREs are more comfortable with it, so you're more likely to find others using it as glue.
Yes! I wish more people realized all of this is unnecessary. Sit down to your keyboard and start typing! You will fail, that's correct - learn from that failure, don't take it personally and never stop!

So many people around me (friends of my university-going girlfriend) say "no, I can't do that, that's done after doctorate and years of working for others" when I suggest starting a business. They usually don't believe when I tell them I started my first business in high school, these thoughts are too alien for them. School has ingrained in them that they have to be perfect on the first try and that any mistake is fatal.
It has zero to do with kids being told that this or that is unfair, that racism or sexism exists. The article blames lack of emotional support from parents. That sentence is literally tl;dr for the following:

> So when a child is very young, and care is uncertain, perhaps the caregiver, or the male figures in the child’s life, don’t act consistently, sometimes they may act very aggressively without warning, or they don’t notice that the child needs care. That’s when the anxious attachment style or ambivalent attachment style is created.

and followed by the following:

> Yes, normally children internalize the empathetic and soothing reactions of their parents, they learn not to need others from outside to soothe themselves. But people with high TIV cannot soothe themselves.

It is quite odd to take that quote out of context and make it argument about something completely different, as if surrounding context in article supported the other claim.
I do that too, but the code I work with is objectively shit - I can provide the daily WTF with months of wtfs. Maybe I should, but if the previous guy finds it I may be in trouble (I think he's still a shareholder?).

The first thing my colleagues did after he left was replace all the code he wrote in the C codebase (I work on the front-end, there's a few years worth of work yet to rebuild it).

I'm talking stuff like 15K LOC files with 4-5 times nested switch/case/if/else blocks; string concatenating XML to a global variable, then at the end converting it to JSON; string concatenating HTML with embedded JS and CSS in a JS function inside of a PHP file; using a semicolon-separated value in a database column instead of a simple foreign key (more fun when there's an extra value attached to it, separated with a colon).

It's already not an easy domain or a simple application (thousands of fields across dozens of models), but the lack of coding practices only made it worse.
> Countries with more equal societies, like the Nordics, and Canada, do not have strong populist movements like those in the US and the UK.

University elitism and general egalitarianism are easily separable. Germany quite deliberately got rid of its elite universities after 1968, leveling former pinnacles of research excellence like Göttingen, Heidelberg and Tübingen so that which university you go to now has basically no social cachet. Every US Supreme Court justice went to Harvard or Yale. The website for the German Supreme Court mostly doesn’t list where they got their degrees, so little do people care. Germany is not an egalitarian society. It is class and title obsessed. Sweden may have an egalitarian affect but it likewise has large and enduring fortunes. The wealth inequality is there even if income inequality is more modest.
Tldr pages – Simplified and community-driven man pages
Ask HN: What software do I use to create a commercial desktop GUI?
I come from an academic context and am deeply confused as to whether there is any free software available for making a GUI front-end to deliver my application. My desires are as follows:

1) I would rather work with something free. For the simple reason that I'd rather this little project didn't cost me hundreds/thousands of dollars per month up front. I just wanted to sell a little application for a few bucks for lolz.

2) I would rather work with something that doesn't force me to disclose all back-end code.

3) I would rather work with something fast/non-bloated, cross-platform (Windows and MacOS will do), and not obviously ugly to the average consumer (since I want them to buy it). In fact, prettiness is really quite high on my list of priorities because, well, why not?

I couldn't quite understand what exactly my obligations were when using, say, the open source license of QT. I'm happy for customers to see, say, the source code for my GUI logic. I'm not happy for them to see my back-end data logic.

Happy to learn Java or Python or C++ or whatever language is best suited to this task. Just don't want to accidentally get myself entangled with strange license obligations.
> Why is Javascript a « perfect choose » for shell scripts?

It isn't, that project looks like perl re-invented but worse, since it mixes Javascript via nodejs and shell script syntax.

Shell scripts already support loops, functions, conditions, variables, ... it makes more sense to write a nodejs script that works as a regular shell process and include it in a shell script than the other way around...
There is value in just the truth being known, even if nothing comes of it.

The Truth and Reconciliation tribunals the UN puts on (e.g. South African apartheid) are a good example. Just achieving a common understanding of what happened has value all by itself.
My memory is a bit hazy, but I remember dd not working for Windows images. Did you test that recently?
I didn't say it was, but in the example given basically everything was, hence the complaint the parent made was that in JS we are often writing a lot of await, or promises or what have you because we have a lot of things that need to be done sequentially in a particular part of the program, or, in a small script, where everything needs to be sequential.
Apparently the array initialization clashes with lambda syntax.

Regarding all the restrictions added in C++20:

Clang supported the full C99 designated intiialization feature set in C++ without any issues long before C++20, so the decision by the C++ Committee to add those restrictions is quite baffling, considering that there is a solid implementation in the wild that has been working just fine for many years.
Not exactly, if you want to narrow it down to North American history, compared to some other countries, NA was rather slow at coming to terms with these issues, and compromises were made over the decades which propped and continued institutionalized racism, bigotry, and misogyny, which have had lasting effects to this day.

Also saying it's a universal humanitarian problem doesn't make it "not a problem" or victimless.
Scott Adams talks about this in one of his books (How To Fail At Everything). Generally, one's dress, tone, vocabulary choice, and grammar are indications of status that others read. The good news is once one is aware of it, one can fake that.

"I'm reasonably sure that my fake voice, with its low notes
and artificial confidence, made me appear more capable than I was, and that wasn't difficult because I was largely incompetent at every corporate job I held. Despite my obvious lack of ability, nearly every boss I had—and there were many—identified me as a future corporate executive."
> the educational pyramid is even more skewed

TBF, this might be a more accurate representation of what the education pyramid was always supposed to be.

The biggest problem that I see in the west was the rise of the belief that anyone can simply go through a curriculum and now be upper middle class too.

It's ruining potential, drive, competition, etc. It's super quasi-Marxist as well. Anytime someone proposes a simple solution that will somehow magically guarantee your life to be better is selling snake oil.

> Countries with more equal societies, like the Nordics, and Canada, do not have strong populist movements

Perhaps not as strong, but I am not sure this is actually true. There are growing populist movements in France and Spain for sure. And you could be correct in establishing a pattern between slower economies, higher-inequality and unrest.

> This winner take all economy is stupid

Yes i.e. crony capitalism.

> this competition is the result

Of course, everyone doing the exact same thing and expecting to be the exception to the rule is not actually competition.

Why are you not asking the more critical questions like: why is there yet no competition to Universities themselves?
You can already do that with deno.
It would be a (flimsy) excuse for you to pay them, when in fact you are paying them for drugs.
Right, but I don't think anyone in this thread is arguing that Beyond Burgers don't scale better – people are merely pushing back against the idea that we should eliminate all consumption of meat and that all methods of raising such are objectively worse than such alternatives.
Cool story, but why end it gloating over someone else's misery?
Sure but it's better to be aware before this nothing has a chance becoming forced standard
One thing to note is technology companies are far more progressive than almost all other companies! Your workplaces are the exception right now.

Also it’s a false equivalence to compare not believing in Christianity and discouraging diversity and inclusion programs.

It’s the same mistake people make in comparing the protective use of force with the oppressive use of force, or comparing being racist with calling out racism.

If Christians were in the minority, and were disadvantaged as a result, and there was a program to promote a higher level of Christian employment, and you said “I don’t think Christianity is even a religion why do we have this stupid program” then you might find you get the same sort of response as claiming there’s no white privilege now.
Yes we are better than that, and you are better than this at reading comprehension. Please re-read my post and recognize that my point is to avoid killing animals. Your analogy is absurd and the opposite of what I am saying.
This puts a lot of importance on a hybrid non-profit/for profit structure, yet many universities have this already. I agree there is a gap in innovation to be filled but I'm guessing this org would do well to study why university hybrid structures don't deliver that already.
By college exclusivity yes, you are substantially more equal. Your good universities expand, theirs stay about the same size and become even more exclusive. No one goes Ooooh! if they hear someone went to McGill or Waterloo, excellent as they are. They’re just universities.
Indeed. As many seek out this opportunity and as they all ramp up their efforts, the participants of the tournament will all look similar in skill and aptitude. Thus, the determining factors will increasingly become luck-based. Everyone that wishes to participate should be made aware that they are signing up for a stress-inducing rat race, and that they better double their effort because, at each step, their competitors get more and more capable.

Or, alternatively, seek other options? Maybe try to avoid the race somehow. Since most will be losers, it's probably best to consider alternatives anyway and ask if the prize is even worth winning.
isn’t this the definition of toxic masculinity?
This is a wildly oversimplistic way of viewing the situation.

The most obvious confounding factor is that California relies heavily on Sierra snowpack to provide water throughout the year. Snow that melted last year and ran out to sea is simply no longer available to us this year, no matter how much of it there was. There is no economically plausible way to capture enough of the excess in one year to last us through extended dry periods.

Further, we need the vast majority of this moisture to come as snowpack in the year it does fall, so it can be naturally distribute throughout the warmer months. When most of that water arrives in the spring and summer, it quickly runs off. As things get drier, this problem worsens since the ground becomes less able to absorb moisture in the short term.
well, almost?
> for a sufficiently skilled Rust or Haskell dev, I doubt most compiler errors feel like a "fight".

That's certainly true of my experience. I prefer to have the compiler there guiding me (My reference points are poorly-typed languages like C, Java and C++, and the dynamically-typed language Python. I've never used Clojure.).
Earlier in my career: Some dude got up, smashed his keyboard on the side of his desktop causing a spray of key caps across the open plan office. Picked up his stuff and left. He was back the next day like nothing had happened.
Very cool but why do we have to use GUI "prototyping" (mockups) nowadays, why we can't compile a prototype straight into release code anymore like we did during the Delphi and WinForms days?
Define "will not infect bats".

Bats have a very unusual immune system in that they can harbor viruses without the virus killing the bat or the bat killing the virus.

It's one of the things that makes them ferociously good incubators for a cross-species mammalian plague. The other things are that they fly (so can cover larger distances than most mammals) and have communal living (so can transmit to each other very readily).
"The author does not seem to understand that these are not mutually exclusive."

Given that he teaches at Yale, he probably understands more than any of us in this comment thread.
If you like shelljs, then check out https://bashojs.org (mine).

# Example, list all dev dependencies:
cat package.json | basho --json 'Object.keys(x.devDependencies)'
Back in the 70s my father hosted a few Americans in Poland and at a point the conversation shifted to the possibility of communism establishing itself in the US. It went somewhat like this:

"Aren't you guys afraid that communism will eventually get a foothold in the US?"

"Nah, if it ever does we'll just start selling hammer and sickle t-shirts."

I guess that's what eventually happened.
hit space, hold right, tap up arrow to drop minos outside of well
have a look at perl :)
You are talking about the man himself and not the policies that he was promoting.

While both are reasonable things to discuss, you did not actually negate the comment you were responding to.
I took my watch off some 30 years ago. I wonder if my phone accelerometer is sending data to some company. I'm pretty careful about which apps I install and I logout from everything (not Google Play of course) and yet I don't trust every single app on my phone (banks, there is little I can do) or Google.
Instagram stories (and IG in general) has been functional on the mobile web for more than 3 years: https://www.pcmag.com/news/post-instagram-stories-from-the-m....
This seems universally hated. I am usually pretty privacy concious and do a lot of stuff that I don't want to be seen by the authorities / competitors / my family / whoever depending on context. But honestly I don't really understand the issue with telemetry. What is your concrete worry, or your threat model?

A) I can imagine somebody you know works at Google, and tries to stalk you. But they'd need to know your IP address, and I assume Google has protections in place against accessing consumer data, and it would leave an audit trail. And in the end, they would only be able to see when you edit audio files and whether you use the toolbar or keyboard shortcuts.

B) Or maybe they feed that data into a super scary tracking algorithm and use it to better target ads? But I don't know how that would even work, as they would have to understand what Audacity's tracking categories mean.

I know it is a controversal opinion, but I think telemetry is usually a net win. Especially if you want to improve the UX of your open source app, you need actual usage data. And unfortunately, opt-in doesn't work, because you get skewed data. Why would anybody opt in? There's no benefit to me to take part, but there is benefit to all if everybody takes part.
Show HN: Codesearch – quickly search for code snippets from wherever you are
> I prefer Python for this because more OSes ship with it, it has a fairly rich standard library,

I mean nodejs =/= javascript, the problem is nodejs and some of the people who designed it who basically made it so that it would rely heavily on NPM, a commercial solution, thanks to the virtually non existing standard library. Now Microsoft virtually owns Nodejs since it owns NPM. Nodejs creator himself regretted this decision, publicly.