jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Some silly multi threaded questions incoming.

I ran a quick benchmark here is the code

require 'benchmark'
require 'prime'
Benchmark.bm do |x|

x.report('single'){
8.times do
10_000_000.times.each do |num|
num.prime?
end
end
}

x.report('thread'){
8.times.map do
Thread.new do
10_000_000.times.each do |num|
num.prime?
end
end
end.each(&:join)
}

x.report('parallel'){
8.times.map do
Ractor.new do
10_000_000.times.each do |num|
num.prime?
end
end
end.each(&:take)
}
end

results

single -> 121.66s

thread -> 122.14s

parallel -> 52.84s

The single and threaded version were the same and this is mostly expected since we don't have any I/O in the threads which would of given up the thread and scheduled another to be run.

For prime calculations, we are just bound by pure CPU and limited by ruby's global interpreter lock I assume this would be the same case in Python.

1) A silly question and more language irrelevant, when looking at my CPU logical core usage during the single and fake threaded version I could see tiny spikes in all the cores. [0] No one core dominated the task how does this work? Does the CPU know to workshare single threaded tasks and branch prediction etc comes into play here? How are modern CPU's achieving this at a lower level? In my head this task would just spike a single core to do all the work.

2) Running the 10_00_000 primes just once completes in 15.3s shouldn't this be the same amount of time for 80_00_000 if the Ractor implementation was optimized across my 8 logical cores? Not a punch or anything at guys working on lang its freaking awesome to see my CPU being maxed out with my 8 logical processors being used in Ruby! [1] but just want to double check my understanding.

[0] https://postimg.cc/rKjB9kQP
[1] https://postimg.cc/WtvpWswN
I’m going to lend your neighbours a huge sound system so they can use their free speech to play the darkest industrial techno outside your door at 4am.

I’m obviously joking, but would it be okay for me to use my platform this way? If not, why not?
Censorship - noun

the suppression or prohibition of any parts of books, films, news, etc. that are considered obscene, politically unacceptable, or a threat to security.

It is censorship. But not all censorship is bad.
>>* a claim that if a thief steals all of your stuff, you "starve" -- please give an example of one person who "starved" because BLM looters stole their stuff

You are 100% sure that nobody who lost a job because his place of work was destroyed in riots is not starving? Not everybody is so privileged to have enough savings to support himself after loosing a job.
Of course it’s censorship. Censorship has nothing to do with who is doing it.

Whether a private company suppresses communication or the government does it, it’s still censorship.
Cute disclaimers.

As the government is not involved at all, the overreach argument doesn't apply.

edit: okay. overreach/censorship in private sector doesn't bother me. thanks. make the antitrust case if it inconveniences you too much to make an alternative.
My wife had this experience a while back when interviewing at a mid-tier semiconductor company. She was asked to disclose her current salary and refused. They became very insistent that the process could not continue until she disclosed it, and that they had a company policy of not giving any new hire more than a 10% bump. They ended up wanting to make her an offer anyway (she turned them down), so it's certainly possible to refuse and not lose the opportunity in some cases, even when they are very insistent.

I'm with everyone else that you don't want to work at a place so unreasonable that they won't hire you for something like this. I assume that if you asked them for a salary histogram for the position you're applying for, you'd get laughed out of the building. Maybe it would be help to mention that.
Critically thinking people don't harp on word choice while ignoring the argument.
Not sure how you are measuring 'bigger uproar,' but I haven't seen Iraq War-sized protest marches over this.
Or a badge for having > 10 customers for your shipped product.
Stability and retirement are two very different things. :)
It will probably be the stuff "hidden" (it's really not, our eyes are just closed) behind many layers that will do us in on a major scale.

While worrying about nuclear weapons and weaponized viruses, we're strip mining the planet dry, creating extremely resource consuming stuff just to throw it in a landfill every year, while at the same time pumping the atmosphere and soil full of shit that kills plant life and other animals.

So, when this process inevitably leads to a catastrophic breakdown of the planet and human society, we'll be like "ah shit, all the signs were there, but we didn't do anything".

We should preemptively build a memorial for all the human lives that will be lost: https://www.youtube.com/watch?v=yjfrJzdx7DA
> BS nonsense

This sounds like the conclusion of someone who does not have kids. You're going to wear a shirt all the time? What does this even mean to avoid skin to skin contact?

It looks like your links are talking about the first few hours or days while still in the hospital. I'm talking about skin to skin over the next many months.
> Web development without garbage collector sounds like a bad idea.

Before rust, all the mainstream non-gc'ed languages (i.e C/C++) were not recommended mainly due to potential security issues.

The only options left were gc'ed languages (e.g Python, Java, Go).

Now Rust enters which addresses a lot C/C++ issues but the ergonomics, lack of tooling & learning curve is too much for lot of basic web services.

For large scale web services, investing in Rust makes sense to make it more performant & resource efficient, especially a lot of $$ is riding on it.
Or $5k/yr on Backblaze B2 with their free ingress/egress setup https://www.backblaze.com/b2/cloud-storage-pricing.html#calc...
> Just, for example, creating a closure that references a variable outside of its scope is not simple.

It's a lot simpler and more performant than in other languages. Rust will tell you if the closure might outlive the variable you're referencing, and it's easy to pick the best option for addressing the issue (move semantics, Rc<>/Arc<>, lifetime specifiers etc.) while keeping best-in-class performance. This is a big part of what Rust is best at, and it's hard to get these advantages any other way.
Thanks that made sense.
I'm not fond of the habit of glossing over the slowness of the Python interpreter by pointing out that you can use it as an FFI to fast code.

That's great if you're using Python for numerics, and color within the lines. But: a general purpose programming language is used for general purposes. Even for numerics, composability suffers if the language itself is slow, since crossing between FFI packages must be done very carefully to prevent paying the cost of the interpreter.

The fact is that Common Lisp, Julia, Swift, and LuaJIT (just to name a few), are substantially faster than Python, and it's not hard to come up with situations where this will matter. Worse, you might stumble into such a situation after committing to Python.

Python has much to recommend it. But its slowness has been mitigated, not addressed, in the years since Norvig wrote this article.
Thankfully, I was never able to find an easy way to short BTC. I would have done it >5 years ago and failed spectacularly. I'm still bearish, but wiser.
And people who blindly push systemd fail to realize that we've alreqady solved these problems. A more complex system doesn't solve it.

So instead of a 350 line Python script, you think systemd is better? I disagree.
I think Musk is smarter and Mars colony is just very good PR. Hey, I am going to Mars, I need rocket... and bunch of satellites... and maybe some rovers to explore it.... and perhaps some automated drilling operation on Mars to find water... and how about seizmic detonations... you know, cosmoboys must be safe :-)

Nobody is going to spend any serious money just on robots.
Because poor credit history is worse than no credit history when it comes to trying to get a bank account.
How is that possible given that my credit card gives 1% cash back?
What an amusingly incorrect display of pedantry. Check your convenient local dictionary and you'll find something like this:

1. to take (the property of another or others) without permission or right, especially secretly or by force:

(http://dictionary.reference.com/browse/steal)

Note that the definition does not take into consideration whether you think the victim should have done more to protect themselves, just as the fact that every year thousands of criminals are successfully prosecuted for stealing even in cases where homeowners did not have dogs, 24x7 security guards, etc.
Agreed. The Intel Compute Stick [1] does this well, and runs Windows or Linux. You can also buy a rebranded version called the MeeGoPad [2].

[1]: http://www.intel.com/content/www/us/en/compute-stick/intel-c...

[2]: https://www.chinavasion.com/china/wholesale/Android_Media_Pl...
The site reports that it charges wirelessly, but the video lists the battery as optional - does this mean that on the non-battery version if I move my Mouse Box off the mat it'll shut down? Both the USB ports shown are host ports, so it's not going to be receiving power that way.
> My ideal setup would be a hypervisor infrastructure with a bunch of VM's running only Docker applications.

You should take a look at https://github.com/docker/machine and https://github.com/docker/swarm , they were designed with exactly that goal in mind!
depression. fear. uncertainty. lack of time. stress.
i'm still surprised you haven't ceded admin rights to the HN facebook group to PG. have you asked him about it? how is your facebook group squatting any different than prateek's hackernews.in (now hackerstreet.in) debacle? you're leveraging someone elses brand for your own personal gain ("look at me, i'm the hackernews group facebook admin. i approve or reject members to my group at my discretion.")

..and i get downvoted for bringing this up (http://news.ycombinator.com/item?id=1766651)?
Overeager DRY-ing can also bind together unrelated code. Two areas might only overlap for a fleeting period before rightfully diverging.
> Well, you have to have multiple threads of control to run on multiple processors simultaneously. And if you're running on multiple processors simultaneously, you have multiple threads of control.

That depends on the semantics of your programming language. You may have a different perspective than the author, but I think his explanation is clear.

Edit, To add a concrete example: I am currently working on a concurrent Haskell program that simulates a system of communicating nodes. However I am running it on my single core netbook. So we have indeterminacy and concurrent semantics without parallelism.
Frankly, this isn't much of an explanation. I mean, what does it mean for one thing to be "near" to another, in this case? (Answer: nothing, which is why we don't use terms like "near" in computer science.)

By parallel programs I think he means that the multiple modules are never near the same thing and thus not ever near each other.

I think what you're saying here is that some problems are "embarassingly parallel," in the sense that the problem can be broken into many completely independent sequential computations.

But I don't think that's what the guy who wrote the article was talking about. If so, I think he would have said so.
I find it easier if I disassociate the English meanings of the words from really how the words are used to mean different things in computer science. To me, concurrency is only in the programmers mind. That is, a programmer writes concurrent programs with different threads of control, say, one to process the user input, one to process the network packets etc. In reality, the multiple threads of control could really be running SEQUENTIALLY. That was the case when there was only one core. Remember, pthreads predates multi-cores.

Parallelism is something more concrete, it REALLY exists in the real world. A programmer could just imagine and write a sequential loop, but if the compiler deemed it to be really parallel, it could really run parts of the loop in parallel. Of course, a programmer could write a concurrent program, as in, multiple threads of control, and the system could really run it in parallel, say on different cores of a multi-core processor. So remember, concurrency is abstract, parallelism is concrete.
I just don't think it's in their DNA to approach a small group of blackhats to do what they could contract a legitimate firm to do

I'm still amazed it's in their DNA to do this at all, but if they did, blackhats are the right people for the job. No point in hiring a legitimate firm to build an illegitimate weapon. Remember, Stuxnet infected thousands of other factories around the world. Whoever built it ain't legitimate anymore.
I think so to. In 1996, was "Programming for the Internet" (or the equivalent) actually taught in college?
Finish High School. Go to College. Major in Computer Science. Learn Natural Science. Read literature. Solve Math. Keep coding and dreaming.
This one is pretty good
Please make this in video form, i really enjoyed it
So instead of the parents seeing an itemized list of expenditures they see more broad categories, can tell if their kid is on budget, and get notified if the account is off budget.

Kids can hack this pretty easily. For example, Mint.com categorizes purchases made using the store name, but you can buy lots of things from different categories at a single store. So students would just buy gift cards at the grocery store and the parents would think they're eating healthy when they're really buying clothes at Gap or video games at Best Buy.
What I do is request a wildcard cert from Let's Encrypt on one of my public-facing servers, and then copy that to all my other machines.
I guess this is a good place to mention this in case anyone experiences the same thing. I naturally have terrible anxiety, but for a while I was having even more horrible anxiety attacks. I eventually figured out that taking probiotics made it happen. If you're using probiotics it might be worth a try stopping for a month and seeing what happens.
it's insane how slowly people realize that social medias are trash

I'd say that only small communities are worth something, especially forums.

only forum's format is good for discussion unlike fb groups or reddit/hn's format
http://archive.is/2hA1N
Of all the possible mediums to share this story, a thread of dozens of tweets really seemed like the best option? There has to be a better way -- someone who has this much to say should probably consider an actual, readable blog.
From the UK the IWW is seen not as a real union but as a "club" - the is a direct quote to me from a DGS (Senior Union Officer)

They do seem stuck cosplaying Edwardian trades union activists - instead of actually concentrating on the actual TU issues.
a printer manufacturer will tell you that ink cartridge DRM is not a defect, or some smart juice press manufacturer will tell you that its online-only requirement and juice pack DRM is also not a defect.

There's a phrase for this: "Defective by design." Meaning, what we the observer consider to be a harmful quality of the product is not an accident or oversight, but a deliberate choice.

I say similar things about Slack's iPad client. It's defective by design.

Likewise, web sites that choose not to be accessible are defective-by-design. If you ask their product manager, the response will be, "Accessibility is not a priority, and we can live with people who need accessible web sites doing business with someone else."

Of course, it's implicit in the phrase "defective by design" that this kind of defective is not exactly the same kind of "defective" as the product not doing the thing its creators designed it to do, or not doing the thing that their target market expect it to do.
There are many ways to use Twitter, the me of them isn’t to try to build followers, but to build a good follow list to learn from the best
If they wanted to use an honor system, they wouldn't have a paywall at all. The two are mutually exclusive.

They want to encourage people to pay without forcing them, because the latter would result in a significant decrease in their readership. They still want non-paying readers to help spread their articles, and they still get ad revenue from them.
Hah, mine was, "Unless this blows ClojureScript out of the water..."
I'll take the images to the priest of the catholic ukranian parish I attend...
They, clearly, do not have any type of smartphone.
I am glad you like the idea. I have a lot of work to do.

"- add a button next to the twitter username textbox so i can change names myself (if i have multiple accounts)"
Interesting that you thought that. Right now you can just press enter but I see how this can be confusing to people. I will add the "Go" button

"- try to get rid of reply tweets as I cant see the full conversation the little bits i can see are useless"
I think so too.. and so do some other members so will work on that

A lot of design input here. I lack the eye for it so this is extremely useful for me. Now, I just have to run through point by point. Thanks a lot
Measuring the psychology of the markets using web seems to be an interesting idea. This a better shot then most I have seen. Next step is to see if each stock's results are leading or lagging and over what time period.
China already has 2 indigenous Facebooks, Kaixin (targeted towards professional workers) and Renren (targeted towards college students). It also has QQ, which is more like MSN Messenger + MySpace + gaming.

Filtered or not, US web companies don't tend to do well in China. Amazon and eBay aren't filtered, for example, but they both completely flopped here. A lot of it has to do with US tech companies not understanding how (or being unwilling) to do business like Chinese.
I wonder what would a constitution written today say about the Internet.
To put this in terms of a system of economics I think works particularly well here: the owners paid the kids in Whuffie.
Fair enough. A simple search returned me this list

http://stackoverflow.com/questions/531329/best-c-book-for-an...

I personally recommend Pro C#, Pro WPF, Pro Silverlight from Apress and WPF 4 Unleashed from sams.
Harvard. I applied back when they had early action, got in, and then didn't apply anywhere else.

I went primarily for the name, which in retrospect was not a good reason, but I ended up learning a lot anyway.
> "the only reason you would now use yacc is parsing speed"

Wikipedia says another advantage of LR parsing over LL is the error messages are more localized, and therefore relevant. I wonder whether derivatives in an LL parser (e.g. combinators) would help with that disadvantage?

If not, and because derivatives run quickly in practice for correct grammars, but approach theoretical exponential speed for random inputs, perhaps the best use for derivative grammars is giving realtime feedback when typing code into an IDE which enforces correct input and editing (e.g. always producing a corresponding correctly-placed close bracket in the code somewhere when the programmer types in the open bracket), and only allows previously entered source code to be edited within the IDE. Such a use would give decent parsing speed and no need for error messages, the very function parsing derivatives are good at (assuming this research is correct).
Please note that the EU is the _only_ Western country that is currently exporting vaccines to the world. It is the US + UK that are blocking all exports. Even Canada gets its vaccines from the EU, since the US is not sending them any.

So yes, clearly the EU has made mistakes (fully agree with the 1st part of your post), but they had good intentions and it is not as bad as you make it sound.
It is a very real concern.

Most people know that taking an interest in children who are not in their care is frowned upon and will not watch other people's children unless there is very good reason to. As a result, someone watching children with unknown motivations is suspect. Should it be that way? Probably not, but it is given the social context.

This is even evident in public spaces. If an unknown person is watching children, someone will strike up a conversation with them. It isn't about being friendly. In fact, the person responsible for the safety of the children is probably quite annoyed. The point of that conversation to let the unknown person know that their presence is known and that they are being monitored. Why? A social norm is being violated so extra care must be taken. Is the concern excessive? Perhaps, but it is negligence if extra care is not taken and something happens.

That social expectation does not simply disappear when technology is involved. In some ways, the violation is worse since it is easier for that unknown person to conceal their presence.

(Source: I am involved with recreation programming.)
Noam Chomsky has an interesting section about sports in Understanding Power – he essentially asks: "what would society be like if all the attention given to sports was put towards politics?"

When I'm driving, I sometimes turn on the radio and I find very often that what I'm listening to is a discussion of sports. These are telephone conversations. People call in and have long and intricate discussions, and it's plain that quite a high degree of thought and analysis is going into that. People know a tremendous amount. They know all sorts of complicated details and enter into far-reaching discussion about whether the coach made the right decision yesterday and so on. These are ordinary people, not professionals, who are applying their intelligence and analytic skills in these areas and accumulating quite a lot of knowledge and, for all I know, understanding. On the other hand, when I hear people talk about, say, international affairs or domestic problems, it's at a level of superficiality that's beyond belief...

http://www.alternet.org/noam-chomsky-why-americans-know-so-m...
I have travelled throughout Africa and looked at malaria activities and based on my experience using malaria nets for fishing is purely anecdotal. It is obviously not a good thing, but it is not a pervasive thing.

Of interest, people also use malaria nets for gardening. They are used as a means to keeps bugs out of crops.

The more complicated issue is whether people are using the nets properly. It takes discipline to correctly put the net over your body the entire night and sleep under it.
There's a bug in the system somewhere breaking voice calls altogether on the Nexus 4 which is apparently triggered by a recent change to Google Play Services. Mostly the people affected are using third party ROMs (CyanogenMod et al), but I believe it's also affecting some stock devices. Might be the same problem?

Right now it's a choice between having a working phone with only partially functioning Google Apps or working Google Apps with the phone not being, well, a phone. Hopefully the CM crowd will be able to come up with a bugfix / workaround of some sort that doesn't involve stopping half the Google Apps from working properly.

(CM bug: https://jira.cyanogenmod.org/browse/CYAN-5728 )
The families of many of those students you refer to are just as shattered as their neighborhoods and that may be what makes it easy for them to be susceptible to influence from the neighborhoods. They wouldn't particularly care if boarding schools could help their kids or not, even if they could have access to boarding schools.

Following this thought, the importance of education(what life would be as compared to without) needs to be understood by that society, but the ones who need to listen probably wouldn't care to listen to preaching about education's merits.
I know plenty of self-centered people who ask for too much and people oblige them.

That brings on the next step: "rejecting therapy" - teaching accommodating people to say no.
If cost is no object, you should be looking at: http://www.ellingtoncms.com/