skysight-inc/HackerNews huggingface dataset:
This article is wonderful and I hope as a setup for second article, "How to Rewrite it in Rust"!

> However at best, the temptation to RiiR is unproductive

> A much better alternative is to reuse the original library and just publish a safe interface to it.

Just as models are a lower dimensional representation of a more complex problem, [1] I have to re-iterate that there are no truth(ism)s in software and as in all engineering, there are trade offs. RiiR can and often is a valid choice. The author talks about "introducing bugs", under an engineering approach to a rewrite, more like a language-port, rewrites can _find_ a lot of bugs. One such way is as follows.

1. keep the same interface in the new system, client code should work against either system.

2. have a body of integration tests, capture these from the field OR write a small collection of orthogonal tests, somewhere between unit and integration.

3. use the tooling, bindgen, etc and generate as much of the interface programmatically as possible.

4. iterate on the port, doing differential testing against both systems.

Doing a language port is comparable in work to long term maintenance and refactoring of an existing codebase. As the tooling gets better, RiiR will be more of a smooth oxidization.

If you own the C/C++ that could possibly get rewritten, I'd think one needs to rationalize NOT RiiR. Better tooling (IDE, build), perf tooling is improving, low bug count, increased team velocity, build is improved, etc.

But the biggest reason to RiiR is safety. Integrating a body of C/C++ code into your rust codebase introduces a huge amount of unsafe code, much worse than surrounding your entire rust program with unsafe { }.

At least do what is outlined in the article but ALSO compile the native code into Wasm and run it from within a sandbox.

edit, something like a library for reading (parsing) a file format, should absolutely be RiiR or run from a sandbox. Data parsing and memory corruption vulnerabilities are excellent dance partners.

[1] see PCA https://en.wikipedia.org/wiki/Principal_component_analysis
Sorry I can’t share the url.
Yeah but phone calls and music always did work in the background.
I have to be on mainstream social networks to interact with people I know who are. That's the fundamental problem with these networks.

"Under the bill the companies would be required to maintain an interface to facilitate interoperability. Or users would be allowed to choose another company to manage a user’s account settings, content, and online interactions, the statement said."

Think of this requirement less like a "Facebook export" and more like what AOL Instant Messenger was once forced to do: They were legally required to allow other messengers to communicate with AIM users.

Imagine me being able to be on Mastodon, but follow my Facebook friends and tag them and be tagged by them.
Show HN: Talktech.io – a search engine for tech talks
The obvious issue is that these contracts are already in place. It will be very difficult, if not impossible, for the eu to add such a contractual provision (especially of this significance) arbitrarily; they may have to wait until the contracts are re-negotiated.
Google's new congestion control algorithm does not treat data fairly
I was replying to a comment saying:

> it takes around 2,000 gallons of water to make a typical pair of jeans.

This sounds like a lot until you consider how much water goes into literally everything else people do without thinking.

Let me know if you need more clarity.
I run a company that integrates data from hundreds of sources, including Shopify. There are only about 5 simple mistakes that most data extraction APIs mess up, and this is one of them.

Very few APIs that implement pagination work optimally. If I query for all orders whose updated_at is greater than 2019-10-23 07:00:00, and paginate through the results, there's a good chance that any record updated before my pagination completes will be missed by the paginated queries. If I "checkpoint" the greatest updated_at retrieved in the most recent query, I will likely miss the records updated after my query started but before my query completed. Leaving me to use the start time that I began retrieving data as my new checkpoint.

With a cursor based pagination system, there is at least a chance the service that I'm calling to is dynamically adjusting their underlying query to account for this scenario.

Out of curiosity, what are the scenarios when you want to jump between pages (e.g. not iterate over the pages in a serial fashion)?
Silicon Valley’s Useful Idiots Tech elites paid for the rope that may hang them
Three years of investigation and nothing. Yet you insist we're willfully blind? Are you privy to information the rest of us aren't?
My understanding is that the calibration could only be feasibly carried out for smaller circuits where simulating the circuit classically was possible. At issue is whether the calibration is generalizable; whether the calibration carried out for a particular small circuit C was reused to simulate another circuit C', or whether fresh calibrations were carried out.

Page 17 of the supplemental data [1] shows the calibration process in schematic, and appears to indicate that the calibration was necessary for each input circuit C, since the graph showing the fidelity improving with iterations of the calibration is labelled "b, Data from a two-qubit XEB experiment." The water is admittedly muddy, and hopefully clarification will be forthcoming from some quarter to determine whether Kalai's particular critique has substance.

[1] https://static-content.springer.com/esm/art%3A10.1038%2Fs415...
Make Money Online Freelancing with These 5 Websites
> so this sounds like it's describing a bad way to rewrite something in Rust, which is not the case.

I think this kind of title is trying to do exactly that, or at least, that's how I took it.

> It also isn't the wording used in the original article title.

This is a good reason to switch it, for sure. I didn't realize this, if you had led with that, I wouldn't have said anything :)
That's not true. If you build from a dist tarball, you do not need auto tools installed. You usually do if you build from a git repo, however.
> If your software relies on information in the registry to make decisions, it'll often make decisions based on outdated information a long uninstalled (or upgraded) program left there.

Why is your software looking at registry entries that it didn't create?
Yeah I would like to have a tool to purge a lot of messages from history. I don't want people in the future to sift thru my messages and wonder why I and my friends were so weird in Facebook chats.
All those things were cool about it, but those phones were going to remain business-y devices for a loooong time if someone hadn't come along and replaced resistive touch and add a decent UI.
Is beam search a good idea? Whenever anyone tries beam search on a neural language model like a char-RNN or GPT-2, it seems to generally either do little or make it much worse (by exacerbating the repetition problem), and get worse the more beams/computation you do: eg https://github.com/karpathy/char-rnn/issues/138 or https://arxiv.org/abs/1904.09751
I'm curious, what is used, hardware-wise, for Network MIDI? Does network MIDI use a separate physical layer, separate from other network traffic? Or is layer-2 or -3 QoS used?

At work, our largest cluster uses Ethernet for front-end traffic, but uses Infiniband for back-end storage traffic (Lustre).

I wonder if studios etc. have looked at Infiniband for Network MIDI traffic. The low latency of Infiniband might be helpful! And (as I understand it) since MIDI is fairly low-bandwidth, older Infiniband technologies (like DDR) could be used, to save money.
Don't be paranoid. It's because Siri desires your ex.
See the comments on Kalai's post from Peter Shor, where Kalai attempts to address this, and my reply to mantap on this thread where I try to give my poor understanding of the critique.
interoperability and distributed federation would be much more powerful than export. Maybe they dont know facebook already has an export button? And if that export is in a non-standard-structured format, its not even useful to import into another network.
>>Be careful, because his podcast is a bit of an echo chamber.

Counterpoint:

Be brave about hearing stupid arguments. They are a whetting stone for your own thoughts.

It is not smart, courageous, healthy or prudent to prevent yourself from being exposed to bad ideas.
I think you may have a typo in your title.
Sorry–organic farming is worse for climate change
Yes. This is what struck me. If we fail, then I'm not confident that another capable species could rise in time to try again.
Someone provided confidential information to an external party. Trades for large gains were made before the information was made public through appropriate channels.

There is enough for an investigation. Whether it leads to criminal charges is a very different thing.
Sure but that's a different problem than "it’ll require all users of our chmlib crate (and their users) to have Autotools installed."

I'm just being pedantic. It's a problem...
Snowden's book really speaks to me on so many levels. As a hacker, as a boy growing up in the new age of the Internet. As a person who experienced 9/11 and never aligned with the direction it took the USA. As a person who questions my identity and the messages I get about identity on a daily basis.

He will be remembered for a long time because of the actions he took, but if he had not done anything else, his book would be remembered on its own as a discourse on what being human means in these times. But, it will never be viewed on its own, and that is a tragedy.

Pardon Snowden.
Must be a mistake to say 400 in the conclusion. I see 40 thrown around, but 400 twice.
Online, no one knows you're poor
Sure, but I’m not going to let perfect be the enemy of good. Could the review process be improved? Absolutely! But I’ll take some review over no review any day of the week.
Xbox One connects to MS server only once, on initial setup and then it can run disc games offline. Not sure about digital downloads.
The EU has also a similar right [1].

[1] https://ec.europa.eu/info/law/law-topic/data-protection/refo...
Bicycles are not motorcycles, the risk for injury is not so much with speed but instead with collisions between other (primarily motor) vehicles and the types of surfaces cycled on i.e., pavement. There's also a significant socio-economic influence on injury rates, cycling in a city like Delphi with poor road infrastructure and worse general road safety is significantly more dangerous than cycling in any Dutch city with world class cycling infrastructure.

Helmets are obviously essential for reducing serious head injuries (although they're less effective than generally advertised[0]) and parents/individuals should strongly consider using them, but legislation should be focused on improving road safety through education, community outreach, and infrastructure design long before it starts to seriously restrict personal liberty and hampering adoption of better modes of transport. The Netherlands, Denmark, Sweden, France, Germany, etc, have all showed that you can have world class cycling cities without requiring helmet use.

>Seatbelts do not protect anyone other than the person wearing it but societies have deemed making them mandatory is a that good idea.

This is a dangerous misconception, unbelted rear passengers seriously increase the risk of fatal injuries for the driver and front passengers[1] and in general increase the overall amount of injuries, which should be obvious when you consider that unrestrained passengers essentially become ragdoll missiles in the event of a crash.

[0] https://sciencenordic.com/cars-and-traffic-cycling-denmark/b...

[1] https://www.telegraph.co.uk/news/worldnews/asia/japan/138037...
It is unethical, whether they find it that way or not. Nearly $1MM/year in revenue and they feel the need to email multiple times from different fake emails? Pathetic.
Has anyone done back of the envelope calculations into how much it costs Apple in bandwidth to push an update?

I wonder if that is a reason there isn’t a stream of x.1 updates every few weeks as things are fixed?
Previously I was under a certain revenue per year that allowed me to pay almost no taxes, but now I have to put the regular 21% tax on
I actually do have a Patreon account. I have no plans whatsoever to describe it as being about posting on HN, but you wouldn't be the first. I already have a Patreon supporter who made it clear they were kicking in money because of my comments on HN, not because of any of my blog writing per se.

I suppose I should say "Thank you." I'm actually quite uncomfortable with public praise. I have moderating experience and my observation is that trying to be well-mannered and say "Thank you" or otherwise acknowledge such praise tends to cause a rebound reaction where someone feels a need to counter it with some kind of personal attack (something that's already happened here in fact). It also seems to do bad things to the group dynamic.

So I've long had a policy of studiously ignoring public praise as the least worst thing I can do. But that seems to make me standoffish, which causes other problems.

Some things seem to have no actually good answer, especially in public spaces. Anything you post publicly will be interpreted differently by different people. When the group is large enough, that easily turns into a push-pull dynamic as the group tries to sort out which side "wins" the argument.

I thoroughly hate that to the depths of my soul.

My background is participating in online support groups. My belief is that if ten people reply to a question, you should have ten different answers that add information, not one that is "For X" and nine more that vehemently argue about being for or against X. X should have little or nothing to do with the other nine answers.

So my writing style is based on shooting for statements that stand on their own and actively seek to avoid that nonsense. No one has to agree with me. I'm not trying to win an argument. I'm just trying to explain a point of view as clearly as possible and put out a piece of information as best I understand it.

Overall, I'm mostly happy with my writing style, though I continue to try to find ways to improve it. "There's always room at the top." You can always find ways to make it better rather than resting on your laurels and stroking your ego.
It's a matter of risk assessment. The chance of a healthy adult cycling in the Netherlands getting a head injury that would have been prevent by a helmet are so incredibly low, that making it a requirement would have a detrimental effect on the collective health of Dutch society due to slightly lower uptake in cycling.

For elderly and young children a helmet may make sense, due to the significantly higher risk of such injuries (due to reduced physical responses and inexperience). And for racing bicycles wearing a helmet is the norm.

A helmet can significantly reduce the impact of a fall, but the risk of that fall is so low that the measure becomes statistically meaningless. It is akin to always wearing a hard hat when you leave your home, because it would save you from serious brain injury if a brick fell on your head. Of course, bricks don't generally fall out of the sky, but you can never be too sure…

This doesn't mean that all safety measures are nonsense — having working lights and functioning brakes do reduce the chances of accidents. It is also tempting to compare the helmet to seatbelts in a car, but there the chance of needing them is simply much higher.

One well-researched source on the negative effects of bicycle helmets if made mandatory in the Netherlands (in Dutch): https://www.fietsersbond.nl/nieuws/fietshelmen-en-veiligheid...
Nice idea, would like simple filters for level and language tho.
You're selectively choosing where you get your information which is the real crux of the problem; there is no "news" anymore, only opinions and narratives put forth for political and financial gain. The comment elsewhere in this thread about the failure of the 4th estate is the relevant one.
You'll want to provide a citation here as the claim you are making is likely false, or perhaps you've just mis-remembered.
Shift + ctrl + V strips the formating
Oh you picked two phrases you could disagree with in isolation with reductio ad absurdum? Bravo.

Yes, some people abuse children and go to jail. No, that doesn't mean that no other parent should have the ability to monitor their child. Blanket government surveillance is bad, and I said the same thing about parents spying. But I have no problem with specific cases of specific individuals judged as needing closer monitoring, like ankle monitors for flight risks.
I believe the contacts list you’re referring to is generated by AirDrop based on nearby contacts. You can’t reorder it or edit the list but you can turn it off using Settings for AirDrop.
Unheard of might be overstating it, but in Rust you can do things like pass references to other threads and aggressively parallelise things (without lots of defensive copies) without worrying about it causing bugginess later.
You can use iptables to limit metadata access to certain users but that takes effort so no-one does it.

I guess a machine-local service that takes ownership of the metadata service and implements additional restrictions (such as limiting access keys to privileged users) might be doable.
Ghost 3.0, an Interview with Ghost CEO John O’Nolan
To me that sound a little bit complicate. How can you handle all the information "mess" with that?
won't big players like FB benefit from this? It seems more likely that people would port data from smaller networks to bigger ones than the other way around.
> It's all fun and games until communists confiscate your iPhone and laptop.

Could be worse, they could starve you to death or send you to Gulag, because The Great Leader wants to spread the "world revolution". Or he just wants gold-plated iPhone.
I understand the possible use-case. My skepticism (or cynicism, maybe) comes from the fact that the CBP under this same government has taken to forcing people to provide their social media history when entering the country. So there might be a less than altruistic reason that the government would like to ensure people's social media history lingers forever, rather than being deleted when the user tires of Facebook.
Passing around pointers to objects on the stack.

In another language you'd risk having a pointer to invalid memory when the function returns if the pointer escapes the function, and so it is advised to use pointers to objects on the stack sparingly if at all.

In rust, the compiler will statically determine if a pointer to an object on the stack could escape the function, and if so will fail to compile.
If you have a good, repeatable, accurate, cheapish way to measure team output you should start a consultancy.
Examples of partisan politics by IC?
Even if the calibration process "cheats", why should we care? It's not like being practical is the goal. After the calibration is done, you still have a device that can do something believed intractable on classical computers. If it is possible for a classical computer to get comparable results just from a long calibration process, then that means the cross entropy test is flawed/limited, which is a separate argument.
Exactly, PIA did that twice and I know quite a few people who use them because they've proven they don't keep logs in court.
Rising California Gasoline Prices Highlight Growing Divide in U.S.
Can you unpack this statement?
Do you mind me asking how you got your first clients?

P.S. I clicked on the link, the website doesn't load, at least for me.
> Science is all about gathering data.

isn't it about the replication of experiments?

you can gather all the data you want, but if you can't repeat an experiment to get the same data, then I don't think all your data qualifies as science.
Everytime I see these threads I end up feeling inadequate. For the rest of the folks like me, I will share a small tidbit of wisdom:

Starting a business is really hard and it's totally OK to just go work for Salesforce. You do you.
Enriching CloudTrail Logs
Sounds like your only objection is over how scary-looking the prompt is?

Running a downloaded executable is already "one click away", and connecting a website to a Bluetooth device isn't nearly as dangerous as running an executable. The difference in levels of access and size of the exposed attack surface is huge.
No...the US wants him dead. There is no chance in hell he gets a fair trial.

The instant he would step into the US he would be arrested and sentenced for life.

Very naive to think the government will let this one go
Unfortunately, this kind of question just gives very biased answers. Respondents will only state what they know will enhance their own position. In fact, the marketplace has already answered this question, we just need to collate the data. Interestingly, if you use a search engine,

https://lmgtfy.com/?q=what%27s+a+promising+area+to+work+on%3...

the top three hits are a list of people asking the same thing; not the actual answers.Perhaps if we could find out where the most money is being spent, then then 'promising' in a capitalistic sense would be answered. And unfortunately, this kind of information gradient just propagates the bad decisions we are used to making since the capitalist model neglects human value that is not fungible - like Fairness, moral behavior, and social utility - these are not well captured/rewarded in the capitalist system because there is no way to accurately model them ( and therefore value them). Currently, the only way these factors affect business judgement is to have an intelligent employee make good decisions based on common sense. But these qualities are the foundation of any civilization. I would argue that the collapse of ALL civilizations (Greek, Roman,etc) as well as governments (monarchies, dictatorships,republics,etc) is due to the neglect of these important human values.

So 'my' interpretation of promising is a way to integrate these previously non-monetizable qualities into our decisions. Efforts so far have been buggy - reputation systems, karma, kudos, social influencers, etc.
Slightly off-topic, but a while ago Google changed the YouTube app's sharing menu to show Google contacts first... ah yeah, just because they probably wanted to make YouTube the next social gathering space. Hit Like and Subscribe and Share! (I never do).

God damned growth hackers. Imagine driving out of the highway to the exit you regularly take to get home, but wait, it now leads straight into a shopping mall, because hey, look at this new shopping mall, please spend your money here! Want to go home? Make a 3 point turn and drive that way instead!
I would guess that people in general are fearful of reprecussions when the antagonists are 'better connected', 'higher ranked' or 'richer'. Often the scariest threats are those implied.