skysight-inc/HackerNews huggingface dataset:
They're asynchronous tasks, there would be no point in using promises with synchronous tasks. So we're not talking about simultaneous execution of functions that are making use of the single thread, we're talking about serial execution of functions on a single thread which are basically doing nothing more than scheduling an asynchronous task and not bothering to wait for the result.

Think of it this way. I have 3 letters I need to send, and I'm expecting replies for each. A single threaded, synchronous language, would basically send the first letter, wait for the reply, send the second letter, wait for the reply, then send the third and wait for the reply. In JS, you're still single threaded, but you just recognize that there is no point in sitting around and waiting before moving onto the next item. So you send the first letter, and when it would be time to wait, you continue executing code, so you immediately send the next letter, and then finally send the 3rd.

How they're scheduled simultaneously on a single thread is exactly what makes JS so fast for IO. Once it starts making an http call, db call, disk read, etc, it will release the thread to begin execution of the next item in the event loop (which is the structure JS uses under the hood to schedule tasks).

So what really happens is when we call

asyncA();
asyncB();

JS will go into `asyncA`, run the code, and at some point it will get to a line that does something like "write this value to the database." This will be an asynchronous behavior, that it knows will be handled with a callback or a Promise, so it will immediately continue execution of the code. So now it pops out of executing `asyncA` and executes `asyncB`, meanwhile the call to the DB has gone out and we don't care if it has finished, we'll await both of these when we need them.
Hydrogen makes water when burned. Con-trails really need to be investigated for their effects on weather/climate. Coal fired plane might be better since CO2 is a much weaker greenhouse gas than water.
I love the outrage about $20/month. It's clear that social networks create almost no individual utility at all, and that the reason we have privacy violating ones in the first place is that people "really want it" but also really don't want to pay for it. Facebook will clearly win, based on the comments about pricing. People don't value privacy, they value free stuff.
I work remote for a company that is very intentional in not asking for any specific hours or amount of time worked—business value delivered is the only thing we care about. Yet, I still find myself feeling the need to warm a chair (in my home office!) for 40ish hours per week. Part of it is still external pressure (my wife would have a hard time understanding if I was working less than "full-time"), but I also have to fight this internal conflict of defining "work" as "butt in seat" vs. "delivering business value". This despite the fact that I've worked salaried positions for the majority of my career.
Sometimes those kids don't grow out of it, and they develop a "martial art" around it. Then they are genuinely surprised when it doesn't work on a practitioner of a real martial art designed around the reality of kicking ass in a competition arena, or even one that has preserved some real combat techniques in its cloud of tradition and ceremonial claptrap.

They train their acolytes to stagger or fall down when hit by an "energy ball". It's essentially a live-action role-playing game that cannot deal with people acting out of character.
Executors are not inherently single threaded. They can be, they can also not be.
Sure, as long as you don't confusing praying with being proactive.
It just interleaves execution. This really seems more similar to python's generator/yield semantics.
Field: software development

A technical debt is anything that slows down either performance and development.

It could be:

- memory leaks

- zombie routines

- variable/function/type/endpoints misnomer

- out of date comments

- unhandled errors

- technological goldplates

- readability-hindering and overly-strict conventions

- non-forward compatibility

- unnecessary side effects / mutability

- god objects

- improper architecture

- unclear separation of concern

- flow dead-ends

- non-scalable storage access strategy

- unused data created in memory (seriously, this is annoying. Imagine reading codes like these like this:

fn renderSomeHeavyStuff(errorKind: string) {

let renderables = {

"kindA": someHeavyProcedureA(),
"kindB": someHeavyProcedureB(),
"kindC": someHeavyProcedureC(),

}

return renderables[errorKind]

}

)

- structure written imperatively

- stories written declaratively

- premature abstraction

- leaky abstraction

- overprotective abstraction

- over-complex resource endpoint

- under-complex procedure endpoint
Do you believe the Universe is deterministic, or that all possible Universes are extent in some fashion? If so then you and the H atom were both created as a consequence of the same creative action (there are other possibilities that end with that conclusion too).

Whilst the universe looks probablistic, I think it's an open question as to whether it could yet turn out to be deterministic.

You could argue based on pattern too, that H atom is made in the same model as your own H atoms, that's a (indirect, non-physical) connection.

If gravity is not quantised, maybe you're experiencing one-another's gravity field too?
Ah great, thanks. It's actually very helpful. I was actually looking at the Passmark score a week ago, but couldn't tell if it's trustworthy. Nice to get an endorsement.
My company does some AR/VR development on behalf of customers along with more traditional web/mobile app development. We've done quite a few at this point and been successful from an internal point of view that we can concept, design and develop a high-quality product at a manageable cost. That being said, I see us struggling mightily to come up with an experience that's actually compelling in any way. We've got customers lining up asking us to help them get on this bandwagon and I see nothing but eye candy designed for a 30-second moment of joy and no real utility. I've seen some really cool experiences being built, but they're still mostly gimmicky and serving a tiny niche.

There's rampant speculation that Apple will deliver a glasses experience where Google already failed. I think this is possibly the last chance for AR to get traction before going back to the shelf for another 20 years.
Carmack's Eulogy For The Gear VR
https://www.youtube.com/watch?v=zfd2lNRjqH4
I'm afraid this reference went over my head. This Smash is an alias for Matt Swoboda.
More background information on the problem https://arstechnica.com/science/2019/09/physics-not-broken-a...
I can't speak for other legal systems, but in the United States, fraud is defined as intentional deception. You may view their actions as fraudulent, but without earnest intent to deceive, it doesn't qualify as the crime of fraud.
It's got nothing to do with how long they've been competing, it's got to do with dominance and quality. If AMD overtakes Intel in price/performance, capability, and market share in 10 years (and I think it's totally possible) then I would call Intel off-brand.

If I buy a CPU from company A for the purpose of running programs, but there are some useful programs it cannot run (like rr), not because of some anti-competitive proprietary nonsense by their rival B but rather because of some genuine capability that A lacks, then I call A off-brand.
gcc tends to compile quite a bit faster on the new Ryzens vs Intel due to the large l3 cache, so you may get quite an improvement.
"Third variable problem"

That is, the movement of the stars is predictable...as are a number of other things in life. That's not to say the stars are in control. This is classic correlation != causation.

For instance, we know that the amount of natural light a person has has a pronounced effect on how they feel. So it's fair to say that when (insert astrological statement here, somethingorother is ascendant, referencing winter, when there is less daylight), you will be prone to being more depressed.

This, obviously, has an effect, but to just shrug and say "it's the heavens!" is both unscientific, and unhelpful (since you can treat it by getting increased light of a given wavelength. You can't treat "state of the universe")
If there is going to be any system capable of supporting creating something like The Matrix, it’s going to be Postgres. Tries to eat all application logic by suggested move in database, use language extensions.

I’ve only ever found it to be a false promise. You get locked inside the db and can’t create application logic outside the db, and the internal language extensions are super poor solutions for this if you need multiple environments, multiple packages, different versions of the same extension-based app.

I love Postgres as a db, but I feel like all the viral marketing for moving to internal db app logic, especially with extensions, is a big trap, and the tutorials & blog posts give you some really superficial use cases to motivate it, and in reality you’re speeding toward a cliff.
What if we had a wealth tax on equity grants where you had to pay tax based on the value of your equity in a privately held company? Would you like to be forced to sell your equity to pay taxes?

Would you like to have to pay taxes on your equity after every series of funding raises the paper value of your equity?

Or if you hold stock and don’t sell it, would you like to have to pay tax every time the value of your stock increases or when you sell it?
What do you mean by “on the same memory” exactly?

If you want two threads running in parallel to concurrently access the same memory location you don't need synchronization if you only perform reads, and you need one if there is at least one write. Like in any other language (this comes directly from how CPU works).

The good thing with Rust is that you can't shoot yourself in the foot: if you can't accidentally have an unsynchronize mutable variable accessible from two threads: the compiler will show you an error (unless you explicitely opt out this security by using unsafe primitives, in which case the borrow checker will let you go).
If the other taxes do not decrease, then that means you get some other benefit where the money is democratically being allocated. Tax money generally does not just disappear in a modern relatively free society.

(Of course you can argue that western democracies are kleptocracies by default and all taxes just disappear to the pockets of the thieves and you get no benefit from them, but I personally do not consider that as a feasible starting point for a reasonable discussion)
> I feel 100% sure that the movement/patterns of the planets, the sun, moon and other celestial objects have a significant effect on who we are and how we feel.

100%? Why?
He explains it quite well further down in the thread:

As you said, from an educational standpoint, most students(some of my colleagues last year at least for example) were kind of missing that you are not "programming" an FPGA, but rather describing the circuit. Furthermore, when you add conditional statements(if, else if) , you completely lose track of how it's being implemented and therefore you are not really learning digital design(in my opinion).

Of course doing everything with discrete logic also has its disadvantages, like being time consuming and expensive, but when doing so, you really know how every digital block communicates with the other and learn true digital design.

Anyway, I think both discrete logic and FPGAs should be taught in college. The former as an introduction and the latter as the standard industrial way of doing things nowadays efficently.
> because the entities being examined were human, and thus, fallible.

That's the entire point of the scientific method, to account for this and prove while removing biases.

> trust me

No, the burden of proof is on you, the person making extraordinary claims. I won't trust you without evidence. So far, you have provided ZERO. You have not provided citations for the lab experiments you claimed verified it and you have not provided any peer reviewed publications or any experiments which I could try at home. You're basically just making shit up and telling me I should believe you.

> you would not give results 100% of the time

It doesn't have to be 100% of the time, it just has to be statistically significant.

You're making lofty claims and saying "well yes it won't work in tests because reasons" and saying I should trust your belief without any proof. That's basically quackery and the kind of bullshit we need to be rid of. There are lots of nice sounding ideas that won't work in tests and won't hold up under scrutiny. None of these things should be treated seriously and certainly not taken as fact.

If the quality of evidence required were really that weak, then I have an offer for you: I have a pill that I can sell you for $1000 dollars that will prevent you from ever getting sick. I don't have evidence, it doesn't work 100% of the time in test situations nor does it work consistently when tested, but TRUST ME, it works. If you truly believe what you say, then you should take me up on this offer.
Water, Water, Everywhere
> Friended wants to give users a deeper and more meaningful connection to one another, which the company believes they crave.

> The idea is to give people a chance to share how they really feel in a vulnerable, one-to-one setting. In playing around with the app, I had conversations with people about how to make friends in NYC and why it sometimes feel like others don’t care about us as much as we care about them.

I'm a moderator for a city-specific subreddit, and we get _a lot_ of posts by people bemoaning the lack of personal connections, and seeking _deep friendships_. And I always tell them the same thing: It. Takes. Time.

That's it. There's no shortcut. There is no short conversation you can have that'll turn a stranger into the kind of friend they're seeking. You can pay your five dollars a week to bare your soul to anonymous or pseudonymous users, but you need repeated human contact to form the basis for a friendship.

I'm glad they're trying to solve a real problem, but I don't think that "penpals - but with money" is it.
Yes, but the GP was asking to avoid linking LW altogether — not just when there’s a better original source —- which seems ... overbroad (and flamebait).

Full disclosure: I organize for LW Austin group.
EBPF Eats All the Software
Exotic Pets, Wild Blood, and the Search for Human-Animal Connection
You can always change the baseline. What percentage of the available solar energy falling on a territory is converted to electrical power, or otherwise used (for heating or farming)? In the US, near zero. What, of wind? Near zero. What, of geothermal? Near zero.
Live Stream of Tcl'2019 Conference (Day 2)
Living Off the Land with Windows Binaries – Practical Examples
People jaywalk often, I feel like this issue should have appeared before. Would it be possible Uber was using some of Otto's technology (self-driving trucks) then decided to replace it abruptly (because of the lawsuit with Google) and it caused this seemingly avoidable crash?

Context:
Uber acquired Otto, a company founded by Google Waymo's former CEO, Anthony Levandowski. It quickly got involved in a lawsuit where Google alleged that Lewandowski stole Waymo's self-driving intellectual property. Uber later agreed not to use any Waymo IP and give 0.34% of equity to Google.

https://www.buzzfeednews.com/article/priya/waymo-asks-judge-...

https://jalopnik.com/googles-waymo-and-uber-reach-settlement...
I was born in a Democracy. Democracy was forced upon me. I never gave my consent.

Note: I'm not talking about whether Democracy is good or bad, just about my "consent".

edit: fixed typo
> A micro-imposition, if you will.

No sir, I certainly will not.

> If you do not resist an imposition of will, you consent.

Thousands of victims of date-rape drugs say you're wrong.
Your situation seems so exceedingly rare that it is inapplicable for the vast majority.
Yet, enough light is enough light.
Show HN: Sufficiently Leveraged – Test Robinhoods Unlimited Leverage Bug
That’s possibly a trend from the places I’ve worked. The larger he organization the better the odds there are little niches of few users using specific software and website services. From around. 2x-5x GP’s size.
How to Build Your Own React Component Library
With the weight of batteries it would definitely be a challenge. Fuel is heavy too, but there is still a factor between their energy density that is close to 100.

Owners of electrical drones know that the fun often ends after around 20 minutes with the battery being the heaviest part by far. I remember there being a drone that could fly for 2 hours with the whole body basically being the battery.
Which executor do you use? Tokio is a bit heavy, no?
Apple doesn't rebuild apps that require massive features, but they do often build things into the OS or as base apps that negates the need for apps, some of them wildly popular.
> I also find if you write modern, idiomatic C++ code you rarely, if ever, have to worry about memory safety issues.

This is empirically not true. Tons of memory safety issues are found (and exploited) all the time in modern idiomatic C++ codebases.
Is there some reason you're not interested in building it yourself?

Though to answer your question, I don't think you can go wrong with https://system76.com/desktops
Do be careful. Becoming overly dependent on upstream "feeders" is what killed my company.

It is a balance. Turning down work is dangerous, and the generally opposite of why you're in business. But giving other firms too much leverage will kill you just as dead as insufficient work. I started getting nervous when one company was over 50% of our income, but there was disagreement about urgency and what exactly to do about it with my partners, and we dithered until the bomb went off.
Goldman Sachs Upped Paternity Leave to 20 Weeks
The article fails to mention American Express who has had the same 20 weeks off for both parents since 2017, but still newsworthy and in a positive direction promoting work-life balance.
> Just to send messages to people?

That's not what they're selling people. They're selling people a solution to loneliness.
Javascript has two differences that contribute here:

* First, it runs the callee synchronously until the first await, which can fire off network requests, etc.

* Second, continuations are pushed onto queues immediately- the microtask queue that runs when the current event handler returns, for example.

Rust does neither of these things:

* Calling an async function constructs its stack frame without running any of its body.

* Continuations are not managed individually; instead an entire stack of async function frames (aka Futures) is scheduled as a unit (aka a "task").

So if you just write async functions and await them, things behave much more like thread APIs- futures start running when you pass a top-level future to a "spawn" API, and futures run concurrently when you combine them with "join"/"select"/etc APIs.
I think you can separate their punishing https with their lack of privacy in their core products.
> it's always possible to construct a contrived case where Rust could potentially prevent a bug I could conceivably make, but the point is that everything I've seen leads me to conclude that any such benefit would be vastly outweighed by the time unnecessarily spent on working around non-issues

Yeah, I think at this point we're just agreeing very loudly :)

Rust absolutely has some objective advantages over C++, as does C++ over Rust. The choice of which set of (dis)advantages works best is very much something that can only be determined on a case-by-case basis.
Seems I need to sign in to find out what the product is. Great.
Yes, agree that visualizing algorithms with nice animations would help people understand them and be able to apply them!

Would definitely help people studying CS or preparing for interviews!
Only if you want mini-hydrogen bombs flying above your head every day with an order of magnitude bigger appeal to terrorists.
This is a wonderfully succinct way of expressing to my significant other what I've been trying to get across for years. I'm considering printing this out, laminating it, and presenting it to her. We aren't the same race or gender, and while I try incredibly hard to understand her experience, it's slow going, difficult, and emotional.

Truthfully, it would do everyone well to have such a card.
It’s fun, it’s a great hobby. Unfortunately it will probably result in a whole bunch of infectious diseases that run rampant
If you don't mind me asking what do you use your home server for?
> We may even, as humans, be hardwired to require religion in our lives.

I don't think that's exactly it, but this isn't the first time I've heard this.

Humans' (and other animals) brains are hardwired to find patterns in things. It's a survival instinct. Alice and Bob ate that mushroom and then died. That's a pattern, and I will now avoid that mushroom.

The bad part is this is so hardwired that we can see patterns in things that do not exist (animals in clouds, jesus in toast, etc) and this can occasionally be problematic for us. A few people got murdered on a full moon, and now everybody thinks that's a pattern. I think religion stems from the same thing. People really want to attribute things to patterns to make sense of the world, or otherwise explain that which is currently impossible for them to explain in an effort to feel safe.

At some level, yeah, it won't hurt much if it helps certain people get out of bed in the morning. And many religions do play a social role (which could easily be replaced, but nevermind that). However, that path leads to stagnation. If that's what they desire, then OK, but as a member of our race, I sure am glad some people don't settle for that and instead seek to know more about themselves and reality. That's when growth, both personal and for all humankind, can happen.
That's only internally though. When the "wrong" faction wins in south america, another "democracy" sends armed forces and supports a coup and a dictator to protect its financial interests.
> how we can stop AWS from reselling open source software

AWS has more than enough resources to re-implement (or fork/maintain) your software. So if you write a license that pisses off your own community and prevents AWS from using it, then that's probably what they're going to do, and now you have no users.

The answer to AWS running a hosted version of your software is, encourage it and ask for patches and contributions back.
This is empirically not true. A look through https://twitter.com/lazyfishbarrel confirms this.
It is interesting, but then you get into jobs where you cannot shorten the work week, such as Police or TSA workers or other such things. There are tons of thankless jobs that pretty much are built around having to work the 40(+) hours, some just require travel, some are hard to get people to apply for (honestly, when was the last time you thanked the TSA people at the airport for making you take your shoes off and scan you, or the cable guy who had to rerun the wire from the pole to your house in the dark at 8:30pm).

I would love to work only 5 hours a day, although i might get bored. I guess it might work better with salaried employees.
That market distortion is the whole idea. Similar to a carbon tax, it's intended to correct for the market distortion of externalities from pollution and carbon.

If we just left the market alone it would make inefficient decisions. It's not perfect but it's moving things in the right direction.
Is there anyone who has used rust instead of C++? What's your opinion on it?
SwiftUI Form Tutorial
TouchBar as a Soundboard (TaaS)
And yet somehow China is beating everyone else https://www.reuters.com/article/us-china-climatechange-carbo...

Funny how even a partially planned economy is more effective.