skysight-inc/HackerNews huggingface dataset:
I think a big part of the issue is that in Java and C++, you really need generics a lot more than in Go. Without templates, you would not have any easy way of doing maps and lists in C++. There are no builtin types for those like in Go. The way the type system works in those languages also makes things very difficult if you don't have generics.

Think about the sorting example I wrote earlier: https://news.ycombinator.com/item?id=7080562 If you were writing it in Java, is sort.Sort an interface or an abstract base class? Well, you can only "extend" one class (single inheritance only), so you would probably want Sort to be a Java interface. That means that you would always have to implement all three functions, not just one as I did, since Java interfaces cannot have default implementations. The comments indicate that most posters didn't even consider the idea that you could reuse the StringSlice functions. That method of easy composition simply doesn't exist in Java.

In general, generics get used a lot as a band-aid to avoid multiple inheritance in C++ and Java. You can't (or shouldn't, in C++) have your Foo inherit from both a (non-abstract) Bar and Baz. But you can certainly template on them. In C++, this kind of thing is called "traits" and Alexandrescu wrote a whole book about it. It's also why std::string is actually std::basic_string<char, std::char_traits<char>, std::allocator<char> >. In Go, you don't need all this... you just implement as many interfaces as you like and you're done.

So the Java and C++ programmers need time and an open mind to get up to speed. There's also another contingent of programmers that really just wants Go to be like their favorite strongly-typed functional programming language (Haskell, Scheme, SML, etc.) I like to think that these people will eventually give up. After all, nobody comes into every Lisp thread demanding that Lisp grow a type-checker. People have sort of accepted that that is not what Lisp is about and that there are other languages that will give you that if you want. Hopefully much the same will happen for Golang.
Could you give a concrete example? Why wouldn't you be able to use first-class functions when building something up from user input? How about giving us a code snippet? The consensus in the CS community is that the command pattern disappears (becomes overkill) for languages with first-class functions. This has been noted as early as 1998 by Norvig when comparing C++ to Lisp. It's one of my criticisms of Addy's JS Patterns book. He just blindly copies the GoF patterns and many of them are not needed in languages with modern features.
> An intelligent "layman" might watch the video and declare, "Math proves that 1 + 2 + … = -1/12"

Indeed, I have seen this exactly happen, with a secondary-school student. It took me some time to explain why it's rubbish-at-a-school-level.
I find holding down shift for large macro machinations to be a severe cause of pinky strain and awkward hand positioning. I don't do "perfect" home row style typing, but trying to hold left shift through that entire macro is borderline impossible for me to type -- I use my left pinkie for those As, and my left hand for reaching over to that B and that G, which is stressful holding left shift. For right shift, the underscore becomes especially problematic as well. On top of that, right shift (not left!) M has become muscle memory to the point where I reach for it even if I make the effort to hold down left shift for the entire identifier.

This results in, if optimized instead of tripping over my own fingers the entire time: ↓mboot↑↓-p↑↓age↑↓-↑↓align↑

My old iBook capslock key broke in half I hit it so often. I think my pinkies might break in half if I hit the shift keys at that rate!
Please help. My son was taken by government 4 months ago.
Java would be an example of a language with weaker OOP capabilities. Javascript can emulate classic OO inheritance and it also supports prototypical inheritance. Crockford covers this in his Good Parts book, and you can find stuff around the web.
We had this in the town I grew up in, only it was a house with the "mechanical room" for our water tower. People broke in all the time.
I've been using K64338B for a number of years. Had recently stockpiled another five of these, for the years to come ;)
So all your family's financial and personal docs are on Dropbox?

You'd better hope they are never hacked.
Carlsen wins Silicon Valley
There are other sites in the StackExchange network like Programmers and Code Review and some others for math and other things. But I'm not sure which site (SE or otherwise) would be the best for this particular topic.
Super cool!

One bug: Minesweeper is supposed to activate all non flagged tiles next to the mouse if you click with left and right mouse button at the same time. (see http://www.minesweeper.info/archive/MinesweeperStrategy/mine...)

(The problem is that this is so handy that once this reflex is wired in it's impossible to play Minesweeper without that feature)
> Unix as a design philosophy is dead, or it is in serious need of a revamp in order to cope with the realities of modern systems.

Oh, you young whippersnapper, there is still so much in the world for you to learn.

IT is the poster child of the NIH syndrome. No other knowledge area suffers from it as much as IT does. For a system design paradigm to have survived 50+ years in this environment, it must be quite good.

Settling on dbus for IPC is about as bad as settling with CORBA would have been ten years ago. Settling with a simp!e Unix socket following the everything-is-a-file paradigm is just as correct today as it was in the sixties.
wow - that is fast. wondering what this means for latency-mitigation in display devices?! waiting for carmack to chime in...
How much more expensive would it have been to build this underground (with an access door somewhere) and make the above area a park or open land?

Are underground structures partially avoided because of the potential for them to collapse if not properly maintained or if a large truck drives over them for whatever reason?

I've always had the desire to build a basement that I can slowly expand overtime and have a huge underground facility. I wonder if this is possible? Didn't they do it at the White House and Vice President's house?
Show HN: Test MDM - a simple way to test iOS 7 enterprise features
Hi everyone,

I'm delighted to share my latest little venture!

As part of my work on Roomr for Enterprise, I realised that testing Enterprise features in iOS 7 without an MDM is impossible. I've created a simple application that allows you to perform basic MDM activities without the need for a full blown MDM platform.

Please check it out and let me know your feedback. It needs a new name and a proper domain, but I'd appreciate your thoughts.

http://testmdm.cloudapp.net/
/dev/null is a nice implementation.
This has less bugs then original ^_^
Ads on desktop browsers are no longer the problem - between ABP and Ghostery one need never see another ad. The mobile device is the new battleground, but the prevalence of "dual-funded" apps (free, ad-supported and pay-for, ad-free) gives me some hope that a sane business model will emerge.

Meanwhile I reconfigured bind on my LAN to DNS-spoof roughly 3500 ad-serving domains and redirect them to a logging but otherwise content-free HTTP server (hey, it's OK when my ISP or my government do it to ME, right?). Very interesting just how bad the problem is. I recommend you try it to get a real feel for just how much crap the average page requests behind your back.
Facebook memes can evolve like genes
I'm not sure why you were downvoted.

Because smugness?
..............

locked by Robert Harvey♦ Mar 15 '12 at 18:42

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site

..............

Seriously, who's the responsible for putting this kind of guy in charge.
I'm the opposite, and I find this a fine example of 'doing things that don't scale'. It works, it shipped, in a weekend. The fancy stuff can wait.
Thanks for the tip. I am using Github to host my site, and it turns out that hosting both a static site and a dynamic blog on the same domain is not as simple as it seems.

Been going back and forth with Github support on this issue and keep getting different responses from different people - most of which don't help me fix the issue properly.

Alas...it's a work in progress and I wish I could just do a git push to resolve that issue, but that's not to be.

Thanks though.
Indirectly, yes. Lack of TCO is a byproduct of being on the JVM, but the JVM is the biggest reason why you can write production systems in Clojure today.
Yes, I'm much more for avoiding economic collapse than ideological purity. I like not starving to death, while the tea partying libercrazians would destroy the whole nation just to see out their distorted principles.
Intel confirms it will axe 5,400 workers in 2014
Firefox 26 with a shit-ton of privacy-related plugins on a budget $350 desktop, no slow-down at all.
"Many/most of us probably have some level of ADD/OCD."

That's a rather debatable point, I don't know anyone with any of these, frankly I think it's a U.S. thing. If it weren't for american movies I wouldn't even know it was a thing.
Better yet, send packages by drone and return them if the user hasn't purchased it yet. D:
Why Your Business Should Go Mobile in 2014
Not having a numeric keyboard is one of my major gripes with laptops.

Once you learn how to use them they're so much quicker than the numbers row if you have to do any number crunching.
Kind of reminds you of house in "Resident Evil". O_o
From a distance PHP is splitting cells. People added tools to its eco system, and practices based on pseudo-Java OOP. See PSR code style that basically forbids PHP to be PHP, no inline formatting, split lib as side-effect free and 'main' .. The people behind this movement will probably have integrated the new language construct very soon. So instead of Frankenstein I see a two-headed organism.
oh just fuck this entire idea
When I saw this article I thought of the X1 before reading it. The X1 looks decent, other than the wacky keyboard and the non-removable battery. A big part of the Thinkpad brand is the fact they have good keyboards.
Anyone can think. Few can do. Just because you can have an idea, don't mean you can have a business. But if you already have a business, maybe you can have couple good ideas. Try to start different next time: first, you create a business, then you try to have some ideas. It´s take much more than ideas to build even a small business. It´s a process, not a choice.

Took me 10 years to learn how to do that. Good Luck!
For me gamification works. I'm a sucker for the stats Github can display for a project. And keeping that streak going.

I've started to throw all my embarrasing, childish project onto github. If someone files a comment regarding how bad something is - great, then I have something concrete to fix.

And having a lot of projects open means there is always something easy to fix to keep the streak going. Suddenly projects move forward, albeit one small commit at a time.

This way I have actually completed more projects in years.
In fact at the kernel level there are plenty of mechanisms that are comparable to exceptions, e.g. longjmps, software interruptions, signals ...

Edit: clarity.
> Instead of parsing data, it might be better to store it as a blob of some sort with a binary index.

This is exactly something I did for JSON, I call it semi-indexing: instead of parsing it into a tree of pointers, I create a succinct representation of the parsing tree, which is orders of magnitude smaller than the original JSON. Construction is much faster than parsing because there are basically no memory allocations, and access is not that much slower.

About performance of succinct data structures in general, it is true that they have shown poor practical performance, but things are changing, both because we have better CPUs (while memory latency is pretty much unchanged), and better algorithms are being found. I did my Ph.D. on practical succinct data structures. We found that in some applications, the access times are competitive or faster than the non-succinct counterparts, while the space is much smaller. One example is tries: in my thesis [2] there are experiments for string dictionaries, and for query autocompletion (for example for search engines).

Another area where (quasi-)succinct data structures are having some success is inverted indexes: recently proposed posting lists based on Elias-Fano [3] have been shown to outperform standard delta-encoded posting lists for queries with sparse intersection, and are used in Facebook's graph search [4].

Finally, the biggest success story of SDS has historically been molecular biology, because the size of the DNA sequences processed is so large that non-succinct data structures are impractical. Many sequence assemblers/aligners use variants of FM-indexes and Compressed Suffix Arrays, that are self-indexes based on the Burrows-Wheeler Transform and Wavelet Trees.

[1] https://github.com/ot/semi_index

[2] http://www.di.unipi.it/~ottavian/files/phd_thesis.pdf

[3] http://vigna.di.unimi.it/ftp/papers/QuasiSuccinctIndices.pdf

[4] http://www.vldb.org/pvldb/vol6/p1150-curtiss.pdf
Bigfoot.
I opened Command Prompt and did DEL . in C:\WINDOWS and C:\WINDOWS\SYSTEM. The system is now corrupted from here.
Codeless testing
Most local shops around here don’t mind delivering the item you want to your home after a phone call, though likely at a heftier premium than ‘standard’ online merchants.
Common feature sets don't necessarily mean lack of innovation -- for a parallel I'd say kernels = web browsers and group APIs = html.
Security sensitive software written in js huh?
Does anyone know of an implementation of rope in golang? Something a little more feature complete than https://github.com/christianvozar/rope.
I agree. Buying the Kinesis Advantage [0] keyboard was the best investment I ever made. CTS was gone in about the time I needed to get back to the speed of typing I was before (2-3 weeks) and has never returned (4 years and counting). I would LOVE to have something similar on my laptop and would gladly pay the premium for it.

[0] http://www.kinesis-ergo.com/advantage.htm
Yes, I agree. It is a difficult topic to reason about, but I would say that freedom can only be reasoned about relatively, and only by exercising it can its limits be discussed. And then those limits themselves must be exercised for the notion of freedom to exist in the first place.

I wonder if there is some kind of idealized equilibrium, as both freedom and control try to fully realize themselves in society.
A Running List of What We Know the NSA Can Do. So Far.
great timely post! thank you !
[insert obligatory comment about Atwood's law here]
I like it when we dismiss papers without actually reading them. Makes it much more easier. Come on HN! Keep up with the pseudo-intellectual mid-brow dismissals.

> Penrose did important work on
the nature of black holes ~40 years ago. At one point in time he was a real physicist.

> why otherwise intelligent people would be drawn to what I consider to be obvious pseudoscience.

> I didn't read the whole thing,
Are you still looking for freelancers?

I am a .NET C# developer located in the Netherlands with 5 years of experience and a few diverse back end and front end projects. I am experienced with MS SQL server, ASP.NET, MVC, WPF, MVVM. While my strong side is back end work and enterprise solutions, I am also experienced with HTML, CSS, JavaScript, JQuery and KnockoutJS.

I would be happy to have a chat with you over your needs and requirements.
The pun on DPRK was hilarious.
> 1) I am filled with distaste when people treat quantum mechanics "like magic". In this case it's just taking an unexplained phenomenon (consciousness, or heck, even the weaker 'cognition') and pushing an explanation into a 'more obscure' corner, which I think is intellectually lazy.

That is a quite beautiful straw man.
Fun pop culture fact: 23/24 Leinster Gardens were just featured in the British Sherlock series: http://en.wikipedia.org/wiki/His_Last_Vow#Sources_and_allusi...
" You are only trying to put publishers out of business "

Uhm, not, we are not. That may be a consequence, but just check the comments to see what people is trying to accomplish.
> real physicist

When people can't debate on facts, they search for things like this. There is no use in continuing.
Securing API Keys in a Client Side JavaScript App
XOR linked list: http://en.wikipedia.org/wiki/XOR_linked_list

It's a double-linked list with just one link per node. However, to start traversing it you have to know at least two adjacent nodes.

PS. May not be useful per se, but interesting nonetheless.
the punch line is thee was no threat to economic collapse..

The FEd had full powers to ask that any bail out remove current bank leadership from power due to the threat of full Gov receivership of those banks by Fed..we were sold the idea of giving a free get out of jail card to banks based on lies
Which is why it doesn't do that for some services, for example sshd :P Each login session gets a separate cgroup, so the ssh daemon and all the users using it can be managed separately.
TeamStory launches beta (social network for Entrepreneurs)
Ask HN: How to pick your daily #1 priority?
Peter Thiel's advice is not to focus on anything else but your single highest priority each day.
(Here is why: http://www.quora.com/Management/Is-Peter-Thiels-one-thing-management-philosophy-a-good-model-for-startups)

But how to prioritize effectively (in a growth startup)?
Ok sorry about that - I saw one a few days ago in an electronics store but it was labeled as 'remainder'.

I wish Apple made a matte retina macbook - made discontinuing the old 15'' will put some pressure on them doing so.
Sadly I had to drop Rdio for Google Music as the PiMusicBox couldnt support their flash only API. They dont provide a stream via API.
This reminds me of the time I hacked an old hard drive to use it as a rotary encoder. Started with the idea in the morning, finished the idea the next morning: http://www.youtube.com/watch?v=i1U83BMi7vw

I've now extended the idea into a fully working DIY DJ Controller. My first big electronics project... I've been planning to open-source the build documents for quite a while now. : http://www.youtube.com/watch?v=BFhLQzisx90
Have a lightning fast blog and host it for free
ask HN: Is telegram a whatsapp alternative?
is telegram a whatsapp alternative?
> [simple shell scripts lead] you to build in things like monitoring, trending, alerting, quotas, resource limits, and generally design your system better to detect, withstand and prevent fault

Simple shell scripts might lead people in that direction, but in practise, few people actually go in that direction, and those that do don't go all the way. Systemd might not have all of those features, but it has most of them (which is a massive improvement for most services), and it doesn't stop you from adding the rest yourself (which is fine for services who care about going all the way).
As a reader/content ‘consumer’, that’s your problem, not mine.
The natural logarithm of 2 is only described so succinctly because that number (and related ones) were so common and useful that we introduced a shorthand to denote the limiting process which tends to it. I think you'd find that, were the definition expanded completely, that its description is not so succinct after all. :)
A solution, assholes :)
far to expensive for being really successful
If you don't punish the publishers how would the problem ever be solved?
Yeah, I held out for years, in part because I didn't want a different than "usual" experience. I figured I would deal with obnoxiously ad-infested websites by simply not visiting them. Whereas I was afraid that if I used an ad-blocker, nigh-unusable websites would actually look usable to me, and then I'd make the mistake of sharing links to them with others, not realizing how bad they were. Then I'd promote the propagation of such sites, not to mention annoy friends/family when I send them links to sites with all sorts of obnoxiousness I never saw myself. So I wanted the unvarnished "default" sites, the better to flee as quickly as possible.

But I finally gave in and installed a basic ad-blocker (though not with a default blocklist), because it's become futile to try to use the web without one. Unless I restrict myself to a tiny number of whitelisted sites (here, Wikipedia, some .edu sites, arxiv.org, etc.), the web has just become unusable without filtering. At least some very basic filtering like blocking autoplaying flash ads and blocking popups is needed to regain minimal functionality.
Traffic analysis is not a problem if we could ever gotten that far.

We can solve it by faking the signals and sending it every x timestamp. So they will think there is a traffic but there is not. This is the first came to my mind but i don't think it is a big issue at all.

Marketing of this, is a little bit different. Of course, you will not sell if you say you have the most secure phone. But if you polish it with some exciting features which does not exist yet? :)
Do what you love, love what you do: bad mantra for work and workers?
The Kitten of Hollywood Boulevard [Wolf of Wall Street Parody]
Hi, maybe it's a stupid question, but could you write a C application that makes use of these libraries? I mean, when you talk about integrating with the Chromium source code you mean cherry-picking some code and dropping it into your C++ code or you're talking about linking it at compile time?

Awesome post, though.
> Ubuntu LTS releases ... software doesn't get updated (except security patches) for five years

> more up-to-date packages ... no need to backport modern software

I get how Ubuntu gives you both of these features, but I don't get how it gives you both of them at once...
Hey, don't sell Python short!

vs.sort(key=len)
I'm trying to get my faculty to switch to SICP as the intro to programming course, instead of a planned migration to Python (I'm at the EE department, which is completely separate from CS). Can anyone think of good arguments in favor, which may convince the professors?

So far, my main "ammunition" is Dijkstra's argument that "it provides an environment that discourages operational reasoning":

http://chrisdone.com/posts/dijkstra-haskell-java
Show HN: Hubble Ultra Deep Field Viewer
Anyone interested in funding my Rust to Javascript project?
> The C++ culture at Google is amazing, and proof that large-scale C++ can actually be really nice if you stay within best practices.

It's real-world C++, not 'Modern' or Boost- or 0x-C++ (not even C++98). There is a huge gap between C++ development in the trenches and what is published on the internet about C++.
Such a nigger.

You are a psychologist. You should know you are a nigger, I would think! Do you actually not know you are a nigger?
Nokia Revamps Its Financial Reporting Structure In Advance Of Microsoft Deal
If you believe London's Evening Standard (not the most reliable of newspapers) in expensive areas of London it's common for people to buy 19th century mansions then build underground "mega-basements" [1,2,3,4] with features like pools, tennis courts and classic car museums.

So it's possible. It may be expensive.

[1] http://www.standard.co.uk/news/london/kensington-digs-in-wit...
[2] http://www.standard.co.uk/news/london/daimler-heir-wins-figh...
[3] http://www.standard.co.uk/news/london/billionaires-chelsea-b...
[4] http://www.standard.co.uk/news/london/tetra-pak-heir-hans-ra...
Cold, Cuddle And Coffee (Math) Calculation?
This is definitely not work. However, it's a great example of nerd sniping[1].

[1]: http://xkcd.com/356/
You should punish publishers who serve malware, popups, JS & other bad stuff BUT you don't punish ALL the publishers - many of them don't do that and are just fine.

In fact, instead of an AdBlocker, it is better off if there is a plugin which blocks such sites completely. Why use their content if you don't like them anyway.