skysight-inc/HackerNews huggingface dataset:
>> ... he's not doing the test that something is prime, and crossing out the multiples of composites as well.

> This doesn't change the outcome, since the multiples of composites are also multiples of primes and never primes.

It doesn't change the outcome (I said that somewhere else) but it changes the algorithm. The algorithm now produces primes, yes, but it's not the Sieve of Eratosthenes.

>> ... he adds one each time to p[j], but tests to see if it's ==1, so that won't work.

> You're wrong here -- testing equality to 1 for the number of times an entry in the array was hit is exactly testing of primality post-sieve. If it was only touched once, then it has nothing that divides it (since the only cycle it was incremented on is the one starting there).

You're right, so this is definitely a different algorithm. In this algorithm what he does is:

Initialise a vector V to 0
For every number n>=2:
For every multiple m>=n of n:
Add one to V[m]

The primes are those with V[n]==1. Yes, that works, I was mistaken because I was expecting the SoE. This is not that.

>> it's certainly not the actual Sieve of Eratosthenes for any one of several reasons

> If you initialized the array entries to 1 and started indexing your inner loop at j= i \* i, it's exactly the sieve (modulo multiple strikeouts of removed numbers).

... and conditioned on striking out multiples of primes you've already identified.

There are two key components to the Sieve of Eratosthenes. One is that you walk down the vector instead of doing divisions, the other is that you identify the primes so far and only strike out those multiples.

In particular, this code must have the outer loop run all the way to n whereas the SoE only runs to sqrt(n). That's a key part of being the Sieve.

As observed by stabbles[0], the time complexity of the code presented here is worse than the time complexity of the Sieve of Eratosthenes, therefore it's a different algorithm.

[0] https://news.ycombinator.com/item?id=15409394
I completely agree. But what do you think they would have done to him had he refused to go along with it?
I am where I am today because of Slashdot. All those early articles about Google running Linux...
I think the things you mention are actually great ideas. Outsiders may have very different perspectives. Their experience and advice may be helpful or they may miss lots of details and offer completely useless, naive advice. But maybe learn why through dialogue. People are still free to disagree or disregard any the advice.

We should equally welcome opinions from Chinese citizens. I would hope blind patriotism would not prevent us from considering viable solutions.

> Do you see people from UK offering to help solve gun problems in US?

Many people do because the way UK society handles guns is very different from the US. The UK has a lot less gun violence.

> Do you see people from US offering to help self-determination problem in Spain?

Lots! Many Americans love to share their opinions. Both struggle with balancing the rights of central and local governments.
> That just prevents it from being charged twice. It's the same thing as saying that the tenant doesn't have to pay the VAT that the landlord has already paid.

Well, no it's not. If you rent a room from Trump, it matters a lot whether you pay the VAT for the concrete or Trump does. And you're the one who ultimately pays. Trump pays and reclaims. You don't get to reclaim.

I get that you might not be concerned with who ultimately pays for this stuff, but it matters greatly if you're trying to design a progressive tax system.
I'd also love to hear some behind the scenes details if you're willing. I was on /. every day for years.
Zen and the Art of Managing Smartphone Photos (2016)
I can't understand why it is that expensive and limited xDSL technology as well as wireless has such a magnetic attraction for government bureaucrats.
That it’s common in the other peripherals really says something.
Plasma Convergence, technically
I guess he is referring to the this american life episode:
https://www.thisamericanlife.org/radio-archives/episode/513/...
Tech Scientists discovered sperm in Billions of Milk products affected
Took the plunge and deactivated my Facebook and Twitter accounts over a month ago.

I haven't missed them.
In my experience, the answer is nearly always "yes" for pure python code. Now that with the last few PyPy releases support the C API via emulation, the answer is probably still yes for any python package.

EDIT: apparently it does work [1] though not officially supported until/unless it can be tested on Travis CI.

[1] https://github.com/encode/apistar/issues/130#issuecomment-29...
For 1: The colony fixes the bug and creates a fork of the contract state (balances, etc) before the hack, so everyone has the same balance but there is no longer a bug. There should be consensus on using this fork going forward because everyone that has created value or invested is incentivized to do so.
Great question. This is the biggest opportunity for software, in my opinion. The boundaries between the firm and the market are, in part, governed by transaction costs. (There are more reasons. You mentioned you're interested in reading more, so I'd recommend this: https://www.amazon.com/Economic-Nature-Firm-Reader/dp/052114...)

Technology has the opportunity to decrease transaction costs amongst a group of participants. Consequently, this could then lead to lower trust amongst participants—one of blockchain's leading selling points.

It's all theory, so we'll see how this plays out, but it's the one thing I think is most exciting: can technology lower transaction costs and thus blur the lines between firm and market.
Scaling is a challenge definitely. Rendering image-heavy sites requires quite a lot of RAM. But as others have stated, the good news are you can quite easily scale this horizontally by adding more servers. There's no shared state between the server instances behind a load balancer.

There's also room for improvement in how efficiently a single server instance can render PDFs. The API doesn't yet support resource pooling, this would make reusing the same Chrome process (with e.g. 4 tabs) possible. The implementation requires careful consideration since in that model it's possible to accidentally share content from previous requests to the new requesters.
I'm surprised that despite talking about the push for scientific education that came out of the Sputnik event, the article doesn't quote the seminal manifesto that really galvanized the conversation: A Nation at Risk[0]

Is it as relevant today as it was back then? The rest of the BRIC nations hadn't yet reached their ascendancy, and outsourcing was in its infancy. AI automation was a fantasy.

[0] https://www2.ed.gov/pubs/NatAtRisk/risk.html
> Indeed, recently opened archives suggest that Eisenhower preferred to let the Soviets reach space first, so as to establish a precedent. The United States would then be free to launch reconnaissance satellites without incurring the wrath of its Cold War nemesis.

You hear things like this alot,

- The US knew about Pearl Harbor attacks and let them happen

- The US knew about 9/11 and let it happen.

- The US knew about soviet misses moving to Cuba and let them get there intentionally.

Most people dismiss this as tinfoil hat territory. I wonder how many of these "conspiracies" have any truth to them?

As to the US facing a "Sputnik Moment" now, I don't think the article lays out any valid reasons why now is their Sputnik moment. You could have written this article any year from 1969 to now and it would be equally true.
Agree with this, parents are from the mainland and they subscribe to this thought and look down upon Hong Kong for submitting to colonial rule.
The memory controller may be a more efficient place to do it, because the silicon process is better suited to logic. The challenge is agreeing on how to specify limits on access patterns. JEDEC would have to define a protocol for the memory chips to inform the controller of how many accesses per row are allowed between refreshes.
I fully support learning for learning’ sake. But you could also view the new features as solutions to problems. If you don’t feel you’re having problems then you’re probably not missing out. There is no inherent value in using the new functionality.

If you do have a specific problem then you could ask the community about that and they will help you determine whether there is new functionality that addresses it. Then go read about it in the manual, try it out, and see if it works for you. I find learning from solving my own problems easier than reading a manual cover to cover.
MacOS Vulnerability Exposes Passwords of Encrypted APFS Volumes in Plain Text
Cost Reduction Strategies on Java Cloud Hosting Services
Needs to be updated for Microsoft Edge:

"Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0"

Also, "And so Microsoft made their own web browser, which they called Internet Explorer..." is not quite right, they licensed Spyglass and named it IE, eventually freezing Spyglass out and taking full ownership.

Ref: https://en.wikipedia.org/wiki/Spyglass,_Inc.
This is just pedantic. Anything can be scalable using that definition. Heck, I could hire a 3rd world worker to manually draw the PDF's, scan them to PDF using a scanner, and put them on a server and it would "scale linearly with the amount of money I spend" on labor.
Programmer Interrupted

http://blog.ninlabs.com/2013/01/programmer-interrupted/
This is excellent. I've been meaning to do something similar for my five year old. As always the hard part is finding the time to get started. This will get us started.

(It was easier back when building this stuff was my day job! -- http://mw.concord.org/nextgen/)
Whether they know it or not Slashdot inspired a lot of Michigan startup founders. They proved that you didn't have to be in Silicon Valley to found a notable company.

I well remember after reading Slashdot for a few months
and then finding out that they were in West Michigan and being absolutely floored.

Fun fact one of Rob's friends who helped found the company is now a professor at Michigan State University:

https://msu.edu/~kdemaagd/bio.html
Set is awesome. And my 6 year old can crush me!
No, that's a misuse of the fallacy. To stretch it to breaking point, I am currently here with a 'true scotsman' of an actually working 'agile' process and it's all going well :)

All you're saying there is that people have started using the term 'agile' too much, and applying it to processes or methodologies that aren't agile in the sense it was originally defined. I can totally agree with that idea, but it's a different problem – not "agile doesn't work", more "people consistently lie about being agile".
Controversies in field of mathematics
If someone actually did this successfully, then GitHub is put in a very tough spot where they have to choose between potentially losing the Chinese market, or begin to censor their platform, which could be the beginning of the end for them (I imagine GitLab would certainly take advantage of the situation).

China would most definitely retaliate; first by threatening and attacking GitHub, and if that didn't work then block the site completely. This would result in the Chinese companies/government losing billions, their tech progress could be severely hurt, and they would risk enraging the Chinese dev community.

It's very naive to think that the people responsible for creating and spreading this repo wouldn't be attacked, and while you might succeed in maintaining anonymity of the GitHub account (risky assumption), you most certainly wouldn't be able to remain anonymous when spreading it on Chinese services like QQ/WeChat/Weibo/etc (at least if an individual were to attempt to do this).
Linux used to be able to run just as lean as the BSDs, and perhaps still can (see Slackware).

but i fear that as it has gotten more attention in the corporate world more and more complexity has crept in as said corporate world wants something akin to AD and group policy so that the compute resources can be matched more closely to the division flow charts.

This, in combo with a ongoing "users are sheep that need a shepherd" attitude from certain elements of the community leads to complexity piling on.
I like that it comes with NVidia graphics -- that doesn't look like something you can get on a T470. The price point, while expensive, is still much better than I thought it'd be (I was thinking well over $2000).
I don't get why this is such a big deal or "deep capitulation". Its a statement, seems more like net win for Norway, they got concrete economical benefits by trading in some (empty) words.

While the treatment of Dalai Lama was unfortunate, it also happened before this normalization, during a period of appeasement. Now that the relations are bit better again and an agreement has been reached, I would expect (somewhat paradoxically) Norways line against China to harden gradually again.
Never. In 32 years as a professional developer I have never pulled an all-nighter.

The closest I came was telling a co-worker "I won't leave until I get this done". I was there until 2 AM. At midnight, I was looking down at a printout (yes, I'm old enough to have worked with those), and my glasses slipped off and broke as they hit the edge of the table. I worked the last two hours leaving nose prints on the screen (not literally, but close).
I think the token allows for more market-based economies. Maybe that's a market economy within a firm, or a market economy within a coworking space amongst members, or in open source projects.

Sure, you could use fiat or a non-blockchain "token", but I believe this open market, with price discovery, adds more value then it detracts.
Lilly the Witch: Princess Lilly: E5: Animated Series for Girls
It is called thread migration (or, more abstractly, process migration) and high memory clock speeds favor environments where this is expected to occur frequently.

As such, there is significant performance degradation when high-powered CPUs are paired with low-powered RAM. Incidentally, most OEMs/ODMs are susceptible to this as they frequently use high-powered CPUs as advertisement anchors but cut costs with low-powered RAM.

It is the source of unpleasant lag spikes for end-users and, as mentioned elsewhere, they are difficult to work around.
A nice intro into Sputnik, but otherwise almost no substance.

How are crewed missions not in line with the Apollo missions praised earlier in the article? I am a huge supporter of basic research but NASA had plenty of success with research which was performed to support/enable a more applied purpose.
You're absolutely wrong. It's this attitude toward security that is a main factor toward most of the Ethereum hacks to date.

- brilliant exploit by a hacker who was both skilled enough to outsmart many, many world-class developers all working together.

- malicious enough to forgo the generous bounty awarded for disclosing the exploit to the Common Colony security domain.

- detestable enough to willingly crash an enormously successful DAO

If you think one or all of these attack vectors are not something to be concerned about (or worse, be sarcastically dismissive about) you have no business writing smart contracts or anything security related.
The primary objective of British colonization around the world has been without exception the subjugation of the native population in order to extract economic benefits.

The objective fact is that Hong Kong now enjoys greater electoral freedom after severance from British colonial rule and returning to Chinese sovereignty. Yet the cacophony coming out of western media are actively encouraging the repainting of an otherwise undeniable fact as somehow controversial.

And then you have these nativist protestors who knowingly break the laws of the jurisdiction in a "I dare you to arrest me" fashion. It hit the peak of hypocrisy when they went to Washington to implore Donald Trump to assist them in instilling democracy in Hong Kong.
Active fund management competes with clever marketing.

Most active fund management companies have several actively managed funds. They close or merge low performing ones or turn them into closet index funds (index hugging). They market those funds that happen to perform just now and show 1-3 year performance numbers. Newcomers can sell simulated profits without fees or trading costs.
Encrypt before sending it to QR code?
One reason the supreme court doesn't like to hear cases unless there is a split is they know they are the final word. If the supreme court takes a case they have to come up with the right answer for all cases because if they are wrong - even in one subtle non-obvious point - their wrong answer will be forced on all lower courts for that situation.

If a situation that all lower courts are getting "right", then there is no need for them to think about it, the lower courts are all getting the same answer, and the lower courts are all made up of smart people who have thought about it. If there is a situation where the lower courts do not agree - that means smart people have thought about the issue and do not agree, thus they need to think very hard about this situation to come up with a perfect answer. Perfection is hard of course, so they generally narrow the scope of what their decisions cover until only the minimum possible scope is covered thus ensuring there is less room for a subtle situation where they are wrong.
We run something called a "collaboration network" that is using our early beta product. The product isn't feature complete yet, just task management with a token incentive model. So we're doing early experiments but can't quite pull of more complex ones—yet.
Joke's on you mate, their market cap is $250M. And yours?
Interesting... just overloading their inbox with new gmail account requests / notifications ?
Excited for the release. Disappointed that EnterpriseDB is now making me sign up for an account to download (for Windows).
I agree. Callbacks makes sense in this context and is the idiomatic way to write the code given that's the approach used in the standard library. eg:

https://golang.org/pkg/path/filepath/#Walk

https://golang.org/pkg/net/http/#HandleFunc
I'm pretty irritated at the title. It seems to pose a question of whether we are having a watershed moment where an achievement by a competing nation will spur us to greater activity.

But all the article does is rehash history. A more accurate title would be, "It's the Sputnik anniversary, here are some thoughts".
very slightly relevant:

Upon a stack of bits, about so tall,
just think, O traveller, what we could do
if every other bit was set to false
beginning with (but not including) two?

Now take two lowly numbers, A and B
that equal three and two. What would happen
if they, by twos and ones respectively,
were incremented in a nested fashion,

And if we falsified, at every turn,
the value offset by A groups of Bs?
Then to the aether let those bits return,
to fly back home to Eratosthenes!

from www.ineptech.com (the "Langston" example)
if it is about budget, or performance per $, surely you'd be buying Xeon from ebay. you don't lose anything as the likelihood of having a dead processor 18 months from now is pretty much 0, no warranty required.

if it is about PCIE lanes, you should at least be buying dual socket systems, that gives you more PCIE lanes than 1950x.

if it is about memory, well, 1950x is limited to 8 DIMMs.
Vast animal-feed crops to satisfy our meat needs are destroying planet
We have a beta user who ran into this problem. He posted tasks, no one took them. He upped the price by 2x, and one task was taken. He upped the price again to 3x, and all tasks were taken.
I’m sorry, they had years to prepare this and couldn’t even align the ‘B’ properly.

51nb.com (chinese thinkpad forum) has been doing better work with less resources by putting updated motherboards into classic thinkpad chassis. (see X62 for example)
Building Efficient Talent Pipelines to Reduce Time-To-Hire
That's more on Commodore than Microsoft. They kept using the cheap bare-bones Microsoft BASIC license they got for the original PET on all their subsequent computers even though later versions were much better.
You need to have a current case in order to appeal it. (Indeed, you need to have had a sufficiently recent adverse decision of an appropriate kind in your case in order to appeal it.)
Is there a browser support matrix somewhere? This looks real promising but we need to support IE9. :(
My point is that

1 - Google has a history of living up to the absolute bare minimum promised. Apple does not. Per history, one can assume that when Google says they'll support for 3 years they mean 3 years and one day, and Apple means about 5.

2 - Google has a history of whining as if they are absolutely powerless, broke, and incapable of affecting what Qualcomm or others do. At least when it suits Google.
Seems to be useful, as https://github.com/arachnys/athenapdf done pretty similar thing.
Relative, yes, but not total. When the Dalai Lama met with Obama, it was a 'private' visit not an official one and they met in the Map room rather than the Oval Office, which apparently has different diplomatic implications.

Even with all its clout, the US still needs to dance around the issue.
Thanks cmdrtaco!

Throughout the years, I'd turn to /. to keep up to date on latest shakings and goings ons. I first heard about MythTV there back in the heady days before the home media landscape was bought up and "civilized". I got to see a constant reminders of the failings for the RIAA and so....many....patent troll cases. I remember the crap packt publishing reviews too - basically getting someone to pimp their book. Tons of discussions on cell phones and where the technology was going before Apple did put out the 3g phone and created the walled gardens we have today...then reading about the jailbreaking and what not that was created.

I owe a lot to /. for helping shape me into the slightly jaded but functional developer I am today.

One of my fondest memories was the time we did an Oktoberfest party on the 10th anniversary of /. We were the only party in the state I think.
CorelCAD 2017.5 v17.2.1.3045 Product Key Original
With a minute's searching, here's a webpage that's meaningless without JavaScript:

https://blogger.googleblog.com/

It's arguably a page of text not a web app that needs user interaction.

I'm not trying to start an argument about JS: the consensus on HN seems to be that if you don't execute JavaScript you don't deserve to read webpages. I'm just saying that your website's clients are more diverse than 'normal' well-sighted humans. There may be machines reading the site, for all kinds of reasons.

And regarding endpoints. One could make the argument that with AJAX we now have richer APIs. I disagree. We have a well-understood API for getting hypertext (HTTP) in a well-understood format (HTML) that works/worked across all websites. Replacing that with a custom-built API for every website isn't apples-for-apples.
Probably because smart cards as they exist today are intended as end-user credentials to be issued by an institution, not secure key storage for individuals. They’re meant to authenticate to enterprise managed endpoints. The vendors seem to treat HSMs for key management separately.
You can set an IRS PIN to prevent that.
I catch myself internally debating this from time to time.

On the one hand, we are encouraged to make decisions based on facts/data/evidence. Speculation is speculation. Anything goes.

On the other hand, if we only do this we are bound by the “reality” that has been provided to us. No evolution/revolution can occur.

History is filled with documented cases of these “conspiracies”.

I’d be really interested in hearing other peoples’ views on this.
A browser plugin that replaces click-bait article titles with your edited versions would be brilliant.
We have a beta product at the moment. We're doing closed testing as it's not feature complete: task management with a token-based incentive model.
GANs Are Broken in More Than One Way: The Numerics of GANs