skysight-inc/HackerNews huggingface dataset:
I'm also annoyed by the overly eager closing, but in this case I think it's justified: it's a relatively argumentative question with no real answer. The goal behind StackOverflow is to be something vaguely like interactive documentation for all of programming, so something like this doesn't really fit in. I imagine it might fit better with a site like programmers.stackexchange.com.
> JavaScript doesn't have to go anywhere, it can run on a shared VM like any other language.

True, but the JS VMs we have today have been refined over 15+ years and switching to another risks breaking the web in profound ways. Even Google would be against dropping V8 for JS use.

>There is literally zero investment in moving such an idea forward on the part of Mozilla and WebKit (sans Google). In fact, there's active resistance, while at the same time strongly favoring JavaScript as the one option.

>The position more seems to be "we might chip in if someone else comes up with the perfect answer" rather than "yes, this is a problem that needs to be solved to improve developer productivity, application quality, and help the web compete with other platforms".

I read the mailing list and that's not the impression I get at all. The impression I get is:

1) JavaScript still has a lot of room for improvement. Putting resources in an alternative (whatever shape that might take) distracts from improving JavaScript.

2) Most of the problems people have with JavaScript are being addressed by EmcaScript.next.

3) For those who have a general syntax/style problem, there are numerous alternatives that compile to JS to choose from, and more are likely to become popular in future as programmers from different backgrounds are compelled to write for the browser.
This essay admits the fact that there will always be someone willing to "come out of the woodwork" to implement the SOPA. However, the reason this idea could work is that the programmers you have building the law will never be as smart as the hackers not. Or even actively working against it.
Just hosts, actually.

It's: C:\windows\system32\drivers\etc\hosts

not C:\windows\system32\drivers\etc\hosts.txt
I don't mean that I should have a right to other users videos what I mean is what if I upload a video to my "paid" account that UMG takes offense too.
Which platform, may I ask?
The article didn't explain the genetic difference very well... can you provide an explanation?
"good people" is a relative term. If we're talking the kind of ultra a level hackers you deal with at Y Combinator, even as it stands, would any of them work for a big slow company like Cisco now? It already to some extent has that problem just by not being a small sexy startup.

I'm not willing to flat out say all the best hackers only want to do startups, but even assuming so, there are still lots of really good career engineers who also probably have no interest in working in a small sexy start up who Cisco can hire. Convincing them all that a nice company job is bad is going to be very hard.

And then there's the fact it's too late and this tech's already been built in america with american talent. They already found the people.

And often these big company products aren't built by the best people. Big government contracts like this have so much bureaucracy to choke the love out of many people. They aren't well written, they are slowly and expensively and they are ugly and horrible but they work. Does this sound like the working conditions that anyone we know would want to work in? Probably not.

Big government projects don't need A* hackers to get out the door sadly and never have.
Right because enforcement never overreaches and never abuses any weapon they are given.

i didn't say that, and i realize why the bill is dangerous. but to fear that it's suddenly going to shut down a bunch of popular sites overnight and we have to scramble to revert back to an /etc/hosts-over-ftp distribution of addressing is silly.

we should be focusing on stopping the bill from passing first, rather than worry about how we'll get to the pirate bay in a few months.
Publishing News: "Hating Amazon is not a strategy"
This is what I was going for. Everyone claims you get what you pay for but it is important to remember that some users do pay for Google services. What is worrisome is how Goggles actions in this case would apply to those users.
These are excellent points. I was amazed at the behavior of the dual input sticks; in what world would this be a useful feature of the airplane (other than, perhaps, a training scenario?) How is the switch to alternate mode not made painfully obvious to the pilots?
I was ready to listen to your argument, except that (A) you haven't provided any concrete examples of this pettiness, and (B) your "just because" comment shows me that your mind isn't open to the possibility that there could be rational policy objections that really need to be debated.
Exactly. Those sites (the big ones, at least) will not go down without a fight. They have too much to lose.
I'm not sure it works even if it's moveable because there's no guarantee it will make copy elision everywhere it's needed.

One way I was thinking about it was std::vector<std::shared_ptr<std::thread>>

Additionally, this sucks:

#define NUM_THREADS 10

In C++03 you can write

static const int num_threads = 10;

Which is much better.

And instead of:

for(int i=0;i<NUM_THREADS;i++){
t[i] = thread(call_from_thread,i);
}

Better use std::generate.

I may look like I'm nitpicking but I think it's paramount in a tutorial to have all details really, really right so that it may trigger other questions and go in depth about why things are better a way or the other.
It is probably easier to just run your own DNS caching server on your machine.

No need for a browser extension.
Well, that's a nice thought. But there's a depression on and people need money, so someone will do it. The US government will find a way, I'm sure.
The international Galaxy S was actually the first non-Google phone to receive 2.3. It seems that the carriers are more at fault in the SGS's case.
Not quite what you suggested, but achieves some of the same things https://addons.mozilla.org/en-US/firefox/addon/mafiaafire-re...
There's no need to ask permission from Google. You can already search the web using fully decentralized search engines like grub.org and yacy.net.
Very interesting. Are you into chaos theory? Some day I would like to investigate if behavior on HN, say average score on the front page over time, lies on a strange attractor or not.
I'm not calling you a liar, but I'm skeptical about stories like this. I can't even fathom any scenario in which someone more intelligent than a cucumber could behave in this manner. How does this PM manage to get and maintain any job at all, let alone one that requires the ability to understand software development process and constraints?
SOPA Vote Delayed
On a surface level, most of the items on this list are pretty absurd. Sites like Facebook, Amazon, and Youtube aren't immediately going down as soon as SOPA passes, except the torrent sites. There's a good chance they won't be affected at all by SOPA.

However, this list is interesting because it draws attention to the fact that these huge sites COULD legally vanish without a trace. Although I doubt anyone's going to seriously try to take down Facebook or Amazon using SOPA, it's still scary to imagine.
Surprising, given the amount of time it's taken to get to this point.

As a New Yorker myself, I'm not sure what I should think of it. Someone is going to make a campus, be it Cornell or NYU.
Really happy that they are working out for you!

PHP has been my world for many years and recently I've begun branching out. After playing around with the likes of Python, Ruby, and NodeJS; they are all just tools that you can use to get the job done.

That said, there are much better tools than others for specific tasks. And I were to suggest a language that you should start learning in regards to web development, I would probably not recommend PHP. The language has hit a bit of a slow trough as they (the PHP gods) decide on an appropriate roadmap going forward. PHP will be around for a long, long time so there's not much worry of it becoming legacy too quickly.

But other languages are much better maintained and have more activity in the community. (My current favorite being Python.)

Regarding your problem at hand, PHP can do this quite simply and the only resource you'll need would be http://php.net/mail/. That said, I wouldn't use this for high volume traffic as the mail implementation in PHP is not efficient. (Read the notes on that link.)

Email on the internet is a bit tricky, especially when ensuring your message is delivered appropriately, well-formatted, readable in both text and HTML, etc. And as soon as you start hitting these problem, it's a much more efficient use of your time to go with these services over rolling your own.

This is just one person's opinion who ended up using a perl script to handle mailing functionality instead of PHP's native function in a PHP app he wrote. blush
True, the way it was worded not involve surprises. Instead, the ambiguity is shifted to the meaning of what consitute knowing, which is pretty much equivalent and causes the same confusion. My aim was to try to put aside such semantic argumentation.

My main point was that future events can't be held as facts.

I used the death of all students as an example. I'm not sure why this would be a tenuous point: it's my central thesis.

Re-reading the paradox as worded, I conclude that the teacher is right: the students won't know exactly which day because they cannot know the future as a fact. They might die, the teacher might die, the sun may explode. I don't consider these as tenuous arguments. They are concrete counter-example that any reasoning involving future events is flawed.
You're conflating two issues. Conspiracy to fix prices is generally illegal; robbing users of the right to use their own hardware is not.

And Amazon isn't dictating terms on ebooks. You can install .mobi books you didn't get from them. You can even sideload apps onto the Kindle Fire.
> and porn sites? really?

I don't understand this visceral hatred of pornography. Like it or not, it's an indisposable part of modern Western culture. It fulfills a need that is as old as mankind itself. Why can't we just acknowledge it for what it is instead of sweeping it under the rug?
SOPA Hearings Delayed, 140,000 Americans watched the hearings
Rep. Zoe Lofgren doing a SOPA-related AMA on Reddit
While fib is a good example of concisely illustrating the control flow of a multimethod, it is a bad example of where it makes sense to use a multimethod. What is interesting about a multimethod is you can change your dispatch logic and bind new cases well after your multimethod function is constructed. In situations like fib where you know every case you need to handle up front you should certainly use 'switch'.

To illustrate this flexibility in the context of fib, multimethod.js, and CoffeeScript:

> fib = multimethod()
.when(0, 0)
.when(1, 1)
.default (n) -> fib(n)
> fib 20
6765

> fib.dispatch (n) -> n.numberVal or n
> fib 20
6765

> fib { numberVal: 20 }
6765

> fib.when 2, 1
> fib.when 3, 2
> fib 20
6765 (now "optimized" with fewer recursive calls than before)
Your post reminds me very strongly of this aphorism: http://www.despair.com/worth.html "Just because you're necessary, doesn't mean you're important."
Unique Design
Many of employees have mouths to feed, and they might become unemployable if the company they're applying needs references and comes to know of this. Not to mention guest workers on H1 visas who have to pack up and leave the country along with children the day after they quit the job.
> Why can't we have a standardized generic bytecode and VMs to run it?

And why stop there! There are plenty of "languages" that currently compile into HTML and CSS (like HAML and SASS for example). If we have a common VM for scripting then why not a common VM for HTML and CSS as well. Heck, we could do this all with a single VM and a common API. For backwards compatibility, we could use a new HTML tag to enable this VM. Furthermore, as a proof of concept, you could design a plugin for all the major browsers that implements this.
SOPA Markup Runs Out Of Time; Likely Delayed Until 2012
Too bad. I thought the Roosevelt Island renderings looked pretty cool.
I would recommend against using these IP addresses for large sites. Most of them (Facebook, Google, Amazon, etc) use geographic load balancing to redirect users to servers as logically close to them as possible. Using this list could result in accessing much slower services via server clusters on the other side of the world.
Interesting that many people here think that software engineers, as a population sample, have a 'moral disposition' spread fundamentally different from any other profession. I think we all know that is not the case. Some would even go as far to say that tend to be more morally ambiguous relative to everyone else, purely as a function of the type of personality the profession attracts (although it might just be a matter of perspective or priority). There's a more than enough engineers in the long tail of people financially desperate, intellectually interested or simply pro-SOPA to build it.

And then let's not forget the miserably misguided geniuses who created a airborne H1N5 virus in the name of research. Evil comes in many forms.
3) Why use CoffeeScript in this instance? I don't see this being a valid criticism of any JavaScript project, let alone one so trivial. Comma prefixing on the other hand...
Redis server built in Erlang
The lack of keyword default arguments drives me nuts, python just does it so well. Not to mention ===, etc, etc.

None of these things are a showstoppers, but rather amount to "death by paper cut" that in my mind that make the language unsatisfying to use.
He's paid his debt to society. It seems rather unfair to hold what he was doing nearly a decade ago against him now.

Megaupload abides by the DMCA by taking things down when asked. Just because they don't apparently have an under the table deal with media companies like youtube does isn't a reason to say they're "a bit shady".
Please, adopt Namecoin. There are already open source DNS servers available I believe. :) Using google document or hosts file do not scale at all, while namecoin now have all hashing power of bitcoin thanks to merged mining.
Servers could serve compiled byte code.

Someody else already mentioned that compiling python or ruby to JavaScript could be an option. We already have clojurescript which does this.
Intentional misrepresentation for the purpose of gaining some advantage or harming the other party is fraud, and is illegal. If lying about the copyright can be shown to have hurt YT or helped UMG then there may well be a legitimate case there. Not that I'd ever expect to see it prosecuted.
Boss: We have too many customer support calls. Can you work on fixing the open tickets so that these issues go away.

Me: Sure thing.

Boss (2 hrs later): Why aren't you answering the phone for our customer support calls!?
This is an idiotic post. I run OpenDNS. If SOPA passes and I don't implement it, I will be sued out of existence.

The 60 jobs I provide now, and the 60 jobs I'm hiring for, will vaporize.

And there will be programmers who will do the work required to implement it.

This is not the right way to fight laws. In fact, this is one of the Brocard's -- Dura lex, sed lex -- "The law is harsh, but it is the law." In other words, you must obey the law, even if it is wrong. You must work to change the laws if they are unjust.
Not even. You misunderstood what I was referring to: http://goo.gl/6iXui
Spot on, but a minor correction. The 70% (or 60% for print-on-demand) revenue split advertised isn't what it seems. This is how it breaks down in reality:

Paperback retail price: $15
Amazon takes 40% of retail: -$6
Amazon charges you full cost of printing: -$2.72
Your cut: $6.28, or 42%.

Ebook retail price: $5
Amazon takes 30% of retail: -$1.50
Amazon charges you a "digital delivery fee": -$0.35
Your cut: $3.15, or 63%.

This method of calculation, if not the specific values, are standard. Note that this is a MUCH better per-unit that you'd get from a traditional publisher. Often they will take 15% of retail for their margin, but they have to sell copies to bookstores at 60% off retail. So a $15 book might net you a buck, while they take home three.

It's justifiable because they take the risk on printing large numbers of books, distribution, contacts, marketing, etc. But a justifiable deal and a good deal are not always the same thing.

A publisher would have to sell 6-8X more books than you can by yourself before you'd make the same revenue. Meanwhile they would own your copyright and other things like the right to publish a sequel.
dura lex, sed lex.
Good. Convince all your peers to do the same.
Ask HN: What's that first software you made that just hooked you with coding?
For me it was that snake game i made in C when i got my first computer. It was one pixel headless never ending snake with speed adjustment, made it with GD library. Probably the worst logic ever to make a snake game. But boy i was amazed that really I MADE A WORKING GAME !
My little bro played it, friends played it and absolutely loved it. After that i never thought i could be anything but a programmer.

So what was your first software that just got you ?

Shally
Graphiti: An Alternate Frontend for Graphite
Maybe now Stanford and MIT can consider a merger ^_~ j/k
No SOPA vote until 2012
Subvert the system from within? Now that's a plan. Volunteer for the project, form a consortium to bid on the project at cost, etc. Do a thoroughly average job with lots of backdoors and subtle exploits, anonymously drip feed to the community.

Now that has a chance of working =D
> Why can't we have a standardized generic bytecode and VMs to run it? Why should the web be locked to a single language forever?

In the beginning, this was the intended design. Which is why you still specify the language when injecting code into the page.

That original design is flawed and does not work well on the web. Adding other languages is a horrible idea.

> Can you imagine if we had locked desktops and mobile only a single implementation language?

Apples and oranges. On both platforms, programs rarely interact with each other and when they do, it's through the OS using a standardized API.

The web is different. One piece of code is always interacting with another piece of code, that is interacting with a third and so on. There is no standardized API. You just call the appropriate function, if available.

To implement other languages, not only would you need to compile to bytecode, add VMs, etc. you would also need to add APIs that would allow communication between different pieces of code, written by different people, in different languages. Even if implemented, which would be a nightmare, it would still stifle the very nature of the web, the very dynamism that makes web apps different.

I don't want the web to become like the desktop or mobile space. I want to pull in code from twitter, facebook, my code, etc. and have it all work together, communicate with each other, and create a dynamic environment, all on one page, client-side. This is only coming into reality now.
Why not Columbia?
<2012>
Hm, that Reddit thread and the corresponding Google Doc both link to sites with illegal and pirated content on them.

Call your local representative and get them to shut down Reddit and Google Docs via SOPA!
</2012>
There is nothing preventing a cracker from getting a list of IP addresses. There are a number of ways to get an IP address of a specific server: whois on the domain, even pinging the domain on a *nix OS kicks back an IP address. Doing a trace route same thing.

That's not what I'm talking about though. If google released a list of all crawled websites and their IP addresses, if I was inclined I could then take those IP's and scan them for known vulnerabilities. Essentially what you're giving an attacker is a prequalified list of IP addresses to attack instead of attacking a specific range.
Yeah, I agree. It's frustrating that you can get hundreds of upvotes by summarizing an article from last week's HN and adding nothing but a trivial, trite suggestion.
Sad. It would be refreshing to get some west-coast culture to NYC.
>I've always assumed that e-books are expensive because their buyers are known to be affluent.

That's probably part of it, yeah. Maybe we'll see that eroding with the spread of smartphones.

The problem there is that generating multiple versions of the ebook throws away some of the economic appeal. The segmentation between hardcovers and paperbacks is natural in the format: once the hardcovers sell out, and nobody's willing to pay hardcover prices any more, you need to make a cheaper edition, so you make paperbacks, which require you to spend effort on laying out the book again. With ebooks, once you generate the initial edition, there's no inherent need to invest in the book ever again. Once it stops selling at $20, you just cut the price.

To yield segmentation like this, there'd have to be a strong economic incentive, or else a cheap way of generating the multiple editions. Maybe if the high-end version had pictures, and the low-end version didn't; then you could build them both from the same source file.
Why arent browser UI's created using HTML, CSS and JS ?
i was actually saying that because everything loaded from a porn site comes from other servers, so just listing its main hostname will not show anything at all.
I missed that, so thanks for highlighting that one. And that's pretty interesting, because I'd imagine that pornography producers are amongst those whose IP is most often stolen. But you're right: according to Forbes, "The [Porn / Adult Entertainment] industry is tiny next to broadcast television ($32.3 billion in 1999 revenue, according to Veronis Suhler), cable television ($45.5 billion), the newspaper business ($27.5 billion), Hollywood ($31 billion), even to professional and educational publishing ($14.8 billion)." http://www.forbes.com/2001/05/25/0524porn.html
Dear Congress, Please Don’t Break The Internet. Love, The People That Made It
"and porn sites? really?"

I don't understand this comment. Can you explain it?
Just out of curiosity, how was CTR mode broken? Were you using the JCE provider or "direct" API?
Whenever people ask me questions I will throw back the "I don't understand", and mean it. Sometimes their questions are inane and I really don't have an answer for it, but many other times the biggest issue is that people aren't giving me a clear view of what they want when they are asking me.

"What is it you are trying to accomplish?" is usually my second question after "I don't understand". Hopefully I can find out what exactly they are trying to accomplish and what they have now to help them.
About (1), your uuid is random with a good math.random() and a sufficiently long string with high probability (using that as a technical term from theoretical cs). So I assume that your gripe is that math.random() has bad implementations.

Recall the article recently on how a deck of shuffled cards is unique in human history? Apply same logic.
Useful - I found that mapping keys to actual verbs in my head as I'm using vim really helps the memorization process.

This doesn't exactly work for everything though... I'm still having trouble remembering movement keys (still using the arrow keys instead of hjkl...).
If it's just in one city (e.g., SF), I wonder why people don't find a good private car service and save the X% Uber overhead.

I'm as far from SFO as you can get in SF and my Mercedes car service to the airport is $45, and $20 for anywhere within the city.
What countries take the most hands-off approach to Internet regulation?
Goodbye, Heather
jes5199's wiktionary link says that "Strictly correct usage is to reserve electrocute and electrocution for fatal electric shocks". Do you have a source?