skysight-inc/HackerNews huggingface dataset:
In the implicit await example, how does the compiler know which sections can be run in parallel and which require the results of previous computation.

async fn my_fn_one() -> uint32 {
println!("two");
5
}

async fn my_fn_two() {
println!("two");
}

async fn my_fn_three(x: uint32) {…}

async fn mixup() {
let one = my_fn_one();
my_fn_two();
my_fn_three(one)
}

Does this mean then that one, two, three all have their execution scheduled synchronously with no way to express parallelism? Or is the compiler figuring out the dependencies and generating a magic state machine where non-dependencies are spawned in parallel and joined before returning? Cause if it’s the latter that’s really interesting and exciting although I wonder if it’s known to be solvable in all use cases or there are use cases where the compiler can’t figure it out (but then also what if the programmer wants finer-grained control of the execution?)
SELinux coloring book!
As a former HBO dev, can confirm that the majority of test cases or random debugging messages are Game of Thrones quotes.
New Singapore telco pays you blockchain tokens for unused data
My email sending bug: I work at a large email sending company. You’ve heard of us. One of my first days on the job (years ago now), my task was to set a cron to send out emails to folks to say “hey you’re almost out of credits you should upgrade your plan.” Well there was a bug caused by a couple different problems in the system. And it turns out that the utility got stuck on a tight loop on one poor individual’s inbox. this poor yahoo recipient received over 400,000 emails from me in a matter of seconds. Yeah, i felt pretty bad there.
My experiences with Amazon in the last five years have taken such a sharp turn downward I take every reasonable opportunity I can to shop / do business elsewhere.

A huge fear of mine is in 20 years the competitive landscape is so homogeneous that I won’t even have that luxury.
Got one, too
I am not using much of my imagination to guess how your interactions with Google customer support went. These days companies have access to a customer rating services. And you experienced 404, number not in service, and connection to the Philippines where there are call centers for hire dedicated to “the most demanding” customers.

Hopefully you are billing time and materials.
After the Cola move he endorsed water.
My idea is to essentially be the glue and build the interface.
Certain most students would benefit. That much is obvious. But would the institution and the country benefit? Would the other students going there benefit? All of the smartest people I know went to prestigious institutions. The learning taking place there has never been the big draw; it's the student body and associated ecosystem of alumni, corporations, faculty, etc. You can learn anything by yourself off YouTube but you can't meet a large body of very intelligent people anywhere other than a prestigious college. The level of ambition, drive, and intelligence is incomparable to any corporation short of probably DeepMind or an early stage startup.
I generally save comments for WTF code, or to put links that document what's going on. I try to abstract things as a lot of folks are mentioning here, but that just pushes things to another place. Eventually someone is going to need to debug that code. Here's a Puppeteer example, where text is being split into nodes to extract based on line breaks:

/* https://medium.com/@roxeteer/javascript-one-liner-to-get-elements-text-content-without-its-child-nodes-8e59269d1e71 */
return await this.page.$eval(selector, e => {
const s = [].reduce.call(e.childNodes, function(a, b) { return a + (b.nodeType === 3 ? b.textContent : ''); }, '');
return s.replace(/\s+/g,' ').trim();
});
Someone could certainly be a billionaire and also have ADHD.

The criteria is more like “but for this tendency, the patient would be/feel better, all else being equal.” A software engineer making $$$ could meet the criteria if their inability to focus keeps costing them promotions, launch their own company, or whatever their goal might be. A neurotypical buggy whip maker who can’t find or hold a job doesn’t qualify, even if he is obviously worse off overall.
> Also, documents for everything?

I worked for a smaller company with this extremist philosophy, to the point that they forbade voice or text chat outside of scheduled meetings; all discussion had to be written in public Teams threads. The CEO also had a habit of dropping into random threads and micromanaging. I think it was bad for everyone, but for me it was completely paralyzing.
Modern C++ is actually quite readable now imo - fairly close to C#. Has come a long way in the last 20 years.

That being said most code out there is legacy of course...
I've been intending to try process-to-process message passing using a lock-free data structure very much like io_uring where the processes share pages (one page read-write, the other page readonly, and inverse for the other process) on hardware with L2 tightly-integrated memory (SiFive FU740). The result being zero-copy message passing at L2 cache speeds. [for an embedded realtime custom OS, not for linux]
Absolutely. This is probably the best and only way to start.
Yes, dumb contract indeed. I think a good term is "fire-and-forget", as once it's live there's no going back so you'd better make sure it does exactly what you want.
At that point can they really be considered purely code contracts anymore? If their execution requires a trusted third party some of the rhetoric goes out the window.
I was wanting to start a pool to see how how the Test Email # got. Test #1 seems successful. I wonder what Test Email #2 will be. I know a lot can be learned in a single test, but surely, there's more to test yet.
Typically projects like this start with "training wheels" like this at launch, and gradually increase the timelock delay and / or move the control over to a dao to control.
Thanks for this reply!! :)

I don't think my analogy was very effective, but I'm not sure the minor/major league baseball player analogy is much better. This one might just not be fit for analogies and the truth might be best.

John Coltrane and Kenny G are extremely good at what they do. They do dramatically different things and that's okay.

If you're right about Kenny G being able to play at a Coltrane-esque level, I'd argue that he's even better at marketing than music. It would mean that he could easily prove everyone wrong but he'd rather have the free press (and boatloads of cash) of infamy than bragging rights.
Ditto McGritto
HBO: “This template is used by integration tests only.”
Ditto Mcgritto
When you have many servers who all need to see the same chronological data stream (including messages they might miss during network downtime), and see new events in real time.

If you set "log.retention.hours = -1" and "log.retention.bytes = -1" in kafka config, kafka stores messages forever.

In a game for example, user-inputs and other events can be produced in Kafka, then reconstruct the entire game-state by reading and processing the kafka-stream from start to finish. It has an advantage over most DBs because it's real-time.

You can use also chronological data streams to represent data structures more complicated than a simple array. For example, a tree can be represented while preserving chronology. This is far from the ideal use case however.
When you've interrupted the process partway through as they did, figuring out which part of the list you need to apologize to may well be significantly more effort.
I'm glad I dont want kids.
New research shows Google serves almost half of all ads on fake news sites
You're right, it is odd.

I didn't actually read the link that the commenter had posted before writing the explanation (under the ironic assumption that you hadn't read the article, or skipped over that bit).

I would say though, as a founder myself, I'm not sure how much of it is narcissism how much of it is the fact that we are excited by our success (and therefore want to share it with others), but tend to measure success quantitatively.

In many cultures, quantitative statements about success come across as arrogant and narcissistic in a way that, say, buying an LV belt doesn't.
The more I see people opine on commenting style, the more I want to just spam the "you do you" button and get on with my life.

I have a way that I like to do it. Other people on my team have their own ways. My way is not hurting them. Their way is not hurting me. Either of us trying to impose our way on the other would hurt both of us.
If you call a library function, not written by you, where you don't know whether it's going to return in a few nanoseconds or might take a long time, you the caller can't do the right thing yourself.

A thread is too inefficient for the fast calls, but no thread is disastrous for the rest of the program's concurrency for the slow calls.

So you're reliant on the library, not written by you, to always choose an efficient behaviour for each call. In other words, to decide dynamically when to use a thread, and when not to use a thread. And that library is reliant on all of its transitive dependencies in the same way.

It's a nice ideal, but it's not realistic.

And it still doesn't work all that efficiently anyway. If you call a library function many times, or just many functions, and any of those calls (outside your knowledge) has some long-running part where a thread ought to be used, to do it efficiently a single thread would span your code's multiple calls, and not just last for one library call.

Essentially, to know whether to make a library call in a thread or not, and at what level to use a thread, you need to know what the behaviour of that call is going to be in advance. In practice, even when carefully optimising programs, we almost always assume one behaviour or another. Maybe measure, and assume the measured behaviour will remain similar. This doesn't have good adaptive behaviour when the assumption is wrong or out of date, so it doesn't work well for calls to things whose duration varies a lot, and especially not for large systems of calls between different modules, each of which has unpredictable timing.

I first encounted this issue in a video games engine, long before Go or Rust existed (and before async-await). NPCs usually did a tiny amount of calculation, and there where tens of thousands, called every display frame, so this had to be fast. But some of them, known only to themselves, occasionally decided to make network calls, read cached data (which might need network calls or not), or call the filesystem, or do intensive "AI" planning using a burst of CPU. To maintain the frame rate while efficiently processing all NPCs, it was necessary to detect when some deep library call from an NPC had used the NPC's "short call" time budget, and switch it over to a thread.

In that video games environment, the Go model worked. No matter how each NPC was coded and by whomever did it, an NPC might slow down if it called something slow but the game would stay smooth, and all other NPCs would continue to update at the full frame rate. The Rust model would result in the whole game frame rate stalling, which is much less acceptable. The threads-when-anything-could-be-slow model was too slow, and the use-threads-when-you-will-be-slow model gave NPC code too much power to affect the system outside the NPC.
Yep. Looks like somebody in the QA deparment has some explaining to do.
Sure. Agreed. But I still docblock every function I write so this wouldn’t change much with respect to usefulness of the documentation.
I just got it. Wtf is it? Layman's terms plz
> I read somewhere that 40% of restaurants started by people with no previous industry experience go belly up within 5 years?

Experience doesn't guarantee success either. I had a neighbor who was running one of the most successful restaurants at the Mall of America who decided he wanted to do his own thing. He bought a local restaurant and completely remodeled it, and it was great. But it never did the kind of business he expected and he had to close it after 6 months and declare bankruptcy. He told me that he put his house up as collateral for a business loan, and the bank told him he'd need to come up with $700K just to be able to continue making mortgage payments - he was forced to move too.
It can reference separate files and repackage existing files into new directories. For some kinds of usage, that's a massive benefit.
I agree with the talents bit. This article somehow reminded me of Richard Feynman saying that scientists are "just people" who really likes thinking and looking into stuff. Ultimately, I tend to think that one's talent is really an obsession with something. If you can turn your obsession to be something marketable, you'd be successful.
Is this retaliation for US and EU putting trade disputes aside?
It seems like the benefits of cloud infrastructure have normalized vendor lock-in.

I’ve never used Aurora because I don’t want to code anything to the idiosyncrasies of AWS (or any other cloud provider).
Address not found
Your message wasn't delivered to HBOMax@mail.hbomax.com because the domain mail.hbomax.com couldn't be found. Check for typos or unnecessary spaces and try again.
I just got it wtf does it mean? Layman's terms plz and should I be worried
Yep I got one too, hence why I'm here lol. I was wondering if they got their live code mixed up.
Offline and Online Advertising for Startups at a 90% Discount
I guess I can see your point, but I think the usage of "smart" to describe consumer electronics with computational capabilities is a very different usage. Contracts are not "dumb" technologies that are being "enhanced" with computation; contracts and software code are already the same kind of thing. The difference is that contracts-as-code can actually execute contractual obligations rather than just describing them. I wouldn't describe this enhancement as "smart"... perhaps a better term would be "automatic" or "autonomous".
? Red herring.

- Tiny houses are personal choices of minimalism.

- Is someone forcing "insects" down your throat?

- Beef bans? No such thing. Animal meat agriculture does need to be banned because of the pandemic, antibiotic resistance, and climate change existential risks.. risks to our continued survival. It will never happen because most people are too dumb, ignorant, and/or lack the self-control to do what's necessary for the long-term survival of the species.

- What the hell is a "climate lockdown?"

A conspiracy theory is a wild, unfounded, imaginary claim. It looks to me you appear to be espousing such nonsense and want it normalized, which is why you don't like the term "conspiracy theory."
How many "come prepared" meetings have you had where everyone in attendance had prepared? This format gives the space to read and discuss. Everyone has the same opportunity (often, the people with the least time to prepare in advance would be the people you most want feedback from).

The other interesting dynamic is that in many cases the eventual audience for the doc under review is an executive, and the discussion has the goal of refining it for that audience.
I wonder how many people won't work for Amazon [ever] because of privacy re: “Amazon knows everything I've ever bought or thought about buying. Zero chance I’m applying.” That's why I won't apply to Amazon. My shopping carts repeatedly make me look like a terrorist. I wonder if a significant number of people don't apply for similar reasons. If so, I wonder if Amazon has taken this into account. They may have even less people to employ than they think.
General, not sure about the field.

I also don't think field matters until one gets to PhD levels, which I did not.
I feel like we've probably all made this kind of mistake at some point in our careers, so I do feel for the dev(s) that made the mistake. Ideally though, when your subscriber count is in the millions, you have policies/processes in place to prevent this kind of thing.

Anyways, I sure hope no one loses their job over it; it's a good learning experience & a great (even if embarrassing) way to improve overall process. :)
Multiple examples of a publication's analysis being found lacking and a reaction of no longer consuming it as a result is not "pretty petty". I'm reading them for their non-US coverage, and if I find their US coverage to be lacking(which it was despite your attempts at gaslighting otherwise) than it is reasonable to question their non-US reporting and not waste time on it.

No, they were proven to have been wrong. I provided a specific example of their analysis being wrong, one which you did not address. The ACA passed along party lines after almost a year of deliberation. The GOP spent the subsequent decade running on "repeal and replace" only to get seriously close once. There are multiple other examples (McConnell declaring the goal of making Obama a one term president, refusing to conduct hearings to confirm Garland to the SC after recommending him, etc.) of where the GOP was acting in bad faith, which is also what you are doing here.
On one hand, there’s a scope difference. Directors will be leading managers rather than individual contributors, but senior managers could also be doing that as well.

Much more defining in my mind is the higher expectations on understanding and directly managing the economics of the business. Managers would ideally be aware of the fundamental economics, of course.
Uh, no thanks. Please don't recommend snake oil supplements here.
I did that to myself via gmail. Gmail has some kind of weird quota. It got to the point where it would only let like 100 emails per hour through. So that 5 minutes of email blast turned into one big blast, and then 100 emails per hour, for like 14 days straight. Thanks filters at least to send them to the trash..
I'd recommend Kafka for any case where you need to act on data that changes over time - almost any software system. In almost every system you want to be able to reliably record events, and you want to be able to partially replay your state in a deterministic way (e.g. after you fix a bug); both those things should be table stakes for a serious datastore, but AFAIK Kafka is practically the only one that offers them.

Kafka itself kind of only solves half the problem, because it doesn't offer indexes as a builtin, so you have to build your indexed state yourself, or maybe even use a "traditional" datastore as a de facto cache. But since you've moved all the hard distributed part of the problem into kafka, that part is not so bad.
Honestly no, other than conversations I've had in various places with people who ran some eating establishments. It may be more of a police department policy, as the other commenter mentioned.
Got one as well. Googled and this is the first post I saw. At least it isn't just me.

Crazy af though.
This looks great. Ever since maps -the Android app quit working.
Meanwhile has anyone tried:
Mapy.cz
It's a great free app too. I'm pretty sure based on the same open source maps.
Works great offline too.
Any free open source marine chart mapping programs?
Nice! It's been a few years but what I remember is that if I ever had a chance to ask, I was going to ask this: What was the problem that calling what laymen call attributes/properties Predicates solved, are they just attributes, and is there some other mathematical property of DGraph predicates that makes them different from normal attributes that a user should know?

Literally every dgraph user must necessarily know the answer to that already, or maybe they just mentally black box it and work around it, but at the time, my impression was non-users don't know this, and if I'm adopting a whole new taxonomy I need extra incentives to know it's worth while. It's probably an excellent and even superior technology, but what read as auteurism in the product at the time made me reconsider how much time I wanted to invest before encountering another one.

Anyway, coming from being a Cypher user, the learning curve for the use case of "I want to create nodes of different types with attributes, with relationships of types with attrbites, then CRUD them and verticies with a Flask app" felt a bit steep after that.

SQLite would do the trick, but I wanted consistency from my business logic to a grammar, to a data model. It's very easy to encounter graphs and just think we're not smart enough for them or our problem isn't graphy enough, but given the ease with which I could encode a grammer into cypher, I reluctantly gave up on dgraph. That said, I'm not a gremlin/tinkerpop fan either, as from a top-down user use case, it wasn't satisfying either.

DGraph has a lot of users and customers who love your product and the smartest people I knew recommended it to me, so my issues might not register, but there were a few experiences going through the tutorials that made me wary I was sinking costs into it relative to my use case, e.g. I have 1 week to build a PoC Flask app with a graph on the back end, and then scale it if the customer cares. That's what I used Neo for, and didn't use dgraph for, even though I figured I'd hire developers to rewrite it for dgraph if it got off the ground.

Anyway, long way round, but I'm a long time believer and user of graph techs and want everyone in that market to succeed.
It is still their fault -- they did something they shouldn't have done. But the mistake exposes a bigger problem in the underlying infra, which is a good thing.
This is another nail in the coffin of the Hong Kong we knew and loved…

I was a resident for many years, I witnessed the peaceful protests of 2014, I witnessed horrifying wanton violence in 2019, I witnessed the rapid destruction of the freest laissez faire city state in the world. Above all I feel great sadness for the people of Hong Kong.

The CCP cannot tolerate any dissenting voices as a matter of preserving their total grip on power. It was an inevitability Hong Kong would be crushed and silenced although the world and Hong Kong was caught off guard by the speed at which this has occurred. I take some consolation with the G7's recent communique.
In a way it’s better to completely obliterate one persons inbox than sent one email by accident to 400k people.

The first you could apologize in many ways including financial, the second you really can only apologize by doing it again.
"Self-executing contracts" removes pretty much all of the confusion
They technically still offer for generic Android, but for the most part it is for Fire devices.
It would have been a brilliant marketing move to announce another season of Silicon Valley.
Google takes the cloud seriously. But at the scale of Google and with its history in regard to ordinary users, it is not really culturally structured to provide small scale B2B or retail B2C customer service for anything it offers.

In contrast Amazon has a B2C culture and Microsoft a B2B one. Amazon has scaled its up to B2B and Microsoft’s success has been in large part from providing a B2B approach to B2C customers.

Google default is users are product. Customers are people signing multi year contracts for millions per year.
I guess HBO devs are too young to be able to quote The Wire.
Ah, sorry -- is a dupe of:
https://news.ycombinator.com/item?id=27546017
As I stated above, I have a unique email for direcTV (now closed). It is DirecTV that shared our email with HBO. Likely to market to us. I will disable that email as I no longer have DirecTV. The email they sent this to was only used for my DirecTV account and for nothing else. This is why I am confident that DirecTV (AT&T) shared this...
I tried to push a "if there's no agenda, we cancel the meeting" at a prior job. It didn't really work that well. They had a lot of standing "status update" and "one-on-one" types of meetings that were just on the calendar without any specific goals or decisions to be made at any particular meeting.