skysight-inc/HackerNews huggingface dataset:
Go's lack of type parametrisation makes many higher order functions really awkward. I'm no expert on Go, but below is my attempt at writing a generic Map function. As you can see, the code of the Map function itself isn't so bad (though there's a lot of noise in the declaration). Using that function however is really annoying, as you need to convert from the slice you have ([]string, []int, etc.) to an empty interface slice, and in the function you give to Map, you need to dispatch on the element's dynamic type. I think this is why Go people prefer to just use for loops and not do the whole higher-order combinators stuff.

package main

import (
"fmt"
)

func Map(fn func(interface{}) interface{}, xs []interface{}) []interface{} {
res := make([]interface{}, len(xs))
for i, x := range(xs) {
res[i] = fn(x)
}
return res
}

func main() {
words := []string{"foo", "bar", "baz"};

// First we need to create a version of words that has the []interface{} type.
interface_words := make([]interface{}, len(words))
for i, w := range(words) {
interface_words[i] = interface{}(w)
}

fmt.Printf("%v\n", Map(
func(x interface{}) interface{} {
switch s := x.(type) {
case string:
return s + "!!"
}
return interface{}(0) // Need to please the compiler.
}, interface_words))
}
Well from what I have seen, you buy that device and then you install an app on your phone. Surely you could use a firewall on your phone to block outside contact as the connection between the device and your phone is over a closed bluetooth network.

I'm just assuming here that the phone app doesn't self destruct when there is no internet connection.
So some good design problems to tackle.

1. Can we make cylinders with lightweight materials with sockets to join to the main plane. It doesn't have to be container boxed shape to be containerized.

2. Can we make Aeron style chairs withstand 16G. A kelvar mesh might be able to hold this G force. I'm not suggesting strapping actual Aeron chairs in there.

3. Good data. Looking forward to testing out the acoustic engineering on the 787
I don't but I don't use dropbox at work either... I don't think I understand your question.
Richardjordan, I'm posting this in response to your comment, way back: https://news.ycombinator.com/item?id=5144288

Would you be willing to email the list of links etc for learning Ruby that you mentioned in that comment? Please send to info(at)tximmigration.com ... thanks!
Members of Anonymous Protest Against U.S. Attorney in her Milton Neighborhood
You made a mistake. Now what?
Per your queueing, I'll toss in the Elixer chip- http://elixir-lang.org/ - it's a rather rote, boring, routine language that we all can be semi familiar with, with some aberrations carried over - pattern matched dispatch is still there, for example, making people wonder wtc. The web-page highlights it's advancements, it's "features," which is mildly amusing to me in that the biggest draw is that it's an Erlang that feels familiar to us Algol-derived unwashed/don't-know-anything-but hordes.

Kind of as a foil to that normality, it's similarly remarkable to me that the Prolog asserted-messages/facts & reactive processing cycle of Erlang isn't itself better captured and shown off. It's kind of a middle stage introductory tutorial, after you've made it threw guarded dispatches, yet by itself I think it'd make a great "start with the hard stuff" intro-tutorial to Erlang, and I haven't really seen it presented independently, firstly.
This is extremely impressive from a technical point of view, but I'm wondering if it's the wrong solution, given that arguments over a version control system are largely an organisational issue? Surely a better approach would be for everyone involved to negotiate and come to an agreement on the tool to be used, or have it mandated from on high.

(Please wait a couple of mins before replying while I don my flame-retardant suit ;)
Speaking from personal experience, a lot of academics see programming as a hurdle---an unpleasantry that must be overcome as quickly as possible before going back to the real interesting bits.

This tends to result in very poor code, since the people who write it do not practice their craft. And very poor code isn't usually released because people are embarrassed.

I'm certainly generalizing here, but this seems to be the trend as I see it. It is a sorry state of affairs, and I try to do my best to encourage publishing code with the people I work with. (Code reviews are great.)
> they simply translate the formulas to source workout any thought of it being maintainable or even understandable.

Or correctness, sadly.
Python and Go are my languages of choice. I have found both share a the philosophy of less typing is more and more standard library is more. For web apps I have found Python has everything I can think of and more as far as third party libraries. Go package management and deployment once I got it I wondered how I could ever live without it.
1 - SQL is supported by Go specifically MySQL has a couple of drivers to choose from. After using sqlalchemy [1] everything else I have ever used just seemed like the dark ages.
2 - Go logging is standard and has been a couple third party options depending on your tastes. Tracing I think you mean stack is pretty amazing when my app crashes it is as easy to debug as any VM (JVM, Python VM or Ruby VM).

Python gives me a lot of choices based on the type of application I am building monolithic (DJango) or light (Bottle) and many package management and environment setup tasks (as with Rails, Java nightmares ect). Go on the other hand takes care of all the package management and environment setup almost non existent. YMMV good luck.
[1] http://www.sqlalchemy.org/
I was going to read through the comments in my usual routine of gathering insights the original link missed. Then it struck me. I liked that t-shirt. It simply looked good.
What comment was I expecting? Some kind of logical reasoning about what's wrong with that t-shirt? Or a proof that the t-shirt is just fine?
As wise barber once said, "We think too much and feel too little."
Are you the same asshole making throwaways to shit on all of the Go postings or are there actually more than one of you going around making assumptions, accusations and spreading falsehoods about Go.

I can't get over how pathetic it is to make a throwaway for that comment, I'm more embarrassed five people validated your comment and attitude.
Apparently sometimes called conjuncts. http://pratyeka.org/sanskrit/conjuncts.html
Thanks for the links man.
> The problem is likely in engineering, like a database that isn't scaling.

If it were that simple, just cut the number of users per cluster and throw 10 more up.

> I think if they could cut a decent size check to fix the issues

Doubtful within the context of a quick fix, but it is likely the root issue. See above simple solution that takes 30 minutes to roll out. EA is not a company run by engineers, its not a company run by people that understand anything about engineering. What sounds like a simple solution to us that can easily be implemented by throwing money at it and reaping the customer goodwill is completely foreign to a company like that. You may as well be speaking Klingon when you make the recommendation to just throw new clusters at it.
Is this what web security is reduced to? On one hand, openssl not releasing TLS 1.2 support for over 3 years until a semi-panic over BEAST generated enough interest to get it done? On the other, major browser vendors not implementing TLS 1.2 (okay, MS did, but disabled by default) for even longer because lack of server support, compatibility issues, or fear of protocol downgrade attacks made it an uninteresting or risky proposition? Nobody was interested enough to say screw chicken-and-egg and simply get it done, on either side?

OS maintainers aren't helping either. RHEL/CentOS 6.4, just released, is still stuck with openssl 1.0.0, which doesn't support TLS 1.1 or 1.2, so there's another few years of webservers running an "enterprise" OS not having TLS 1.2 support. But hey, OpenSSL 1.0.0 is "stable"!

I guess there's not much hope of getting Salsa20 or ChaCha, and better curves like curve25519 (I see a draft proposing some Brainpool curves), into TLS 1.2? (with the intent of discouraging many of the less desirable ciphersuites after a few years... not adding more ciphersuites just to add more ciphersuites.)
PyVersion - Version Control System Written In Python
Even within languages, styles are not set in stone; e.g. are you the OO-style Scala programmer, or are you the FP-style Scala programmer?

Java has had channels for a while now at the library level, they just lack pretty syntax. But this just reinforces my point.
Ask HN: How did you find your early adopters?
What outreach resources did you go through and how did you target potential users once you had a prototype?

edit (from comment I posted):
Some friends and I had trouble getting leads on who to "sell" our prototype to, and we had the thought that this may be an even more legitimate problem than the one we were previously trying to solve.

Is this a problem that other startups have faced, trying to find specific (with contact information) customers to talk to and become the first users?
Rails is pretty crappy if you ask me. It's "omakase" which is Japanese for "acts according to what DHH wants despite what the community wants". And there's a lot of magic happening that isn't explained very well. There are better frameworks in Ruby. Ruby itself doesn't take all that long to be an expert at.
Seriously? Is this just a coincidence that another throwaway named "TakeTwo" and then "TresAmiga" are both making throw aways and dismissing all Go users? Jesus.

What he's describing is far more than possible using interfaces. I have plenty of code that does so.

How is that "wrong and he knows it". Your worse than any Go fan here. Where the hell does someone get off being vitriolic about a language or someone's preference for that language. Pathetic, at least have the balls to post under your real account.

That having been said, as an "incorrigible Go fan", I would love to see proper generics. It's something I'm enjoying in Rust. It's also something that everyone is open to adding in Go 2, so it doesn't necessarily have to be a permanent absence from Go.
Re-reporting Bob Woodward’s book on John Belushi
Go doesn't have any mocking framework like Mockito/Java or Rspec mock. You will end up writing a ton of code yourself if you want to mock something simple.
Which language has "natural syntax"? Answer: the one with the most similar syntax to the one you know best.
How hard would it be to stick a proxy between the game and the servers (on the players machine), capture some data, and configure the proxy to listen for message 'X' from the game and return response 'Y'.

If that could be done (by someone with far greater skills that myself, I can do it for Web dev but not this) fairly easily and the game play went on for several hours would that not put a very big hole in EA's argument?

I mean other than the one already sitting there...
I used Scrivener for a book recently. The basic format was short chapters within sections (non-fiction). Scrivener did a great job as it let me easily rearrange things, easily track the state of chapters, etc. As for formatting though, once I got to the 80 percent or so point, I dumped the entire thing to a conventional word processor and finished it up that way. I don't use it for shorter pieces but I really liked it for pulling a book together.
Leap Motion Lays Out Vision For Gesture-Based Computer Interaction
Many good ideas. They need to be hold against regulations, and maybe even regulations need to be hold against realities of today. Standardization is the principal idea, and I think definitely help cutting the cost for manufacturers and airlines and hopefully find its way into the ticket price.

A loaded cabin may also lead to better survival of passengers in case of a eminent fatal crash. It can be ejected, or like mars rover landing it could have inflated ballons and chute to reduce the impact.
Thanks! Yes, coming soon. I just deployed the backend needed to name Drafts, just have to add it to the UI.
Ask HN: Looking for Feedback HireHub
If you are a startup or individual who is looking for hiring technical talent. I have built a service HireHub Looking for some feedback.
Its online code checker, will be expanding to other functionality soon.

www.hirehub.me

Any feedback is appreciated fameoflight@gmail.com
>> Any serious programmer should be a polyglot by default.

I can pick up a new language very fast but won't consider myself a polyglot (know a handful of languages). I do still consider myself a serious programmer.
> So O(log n) then. We obey gravity around these parts.

Which is of no practical difference to O(1) if log n is always very small.

> I presume you are referring to HAMT-like structures... which are by no means unique to Clojure.

Of course they're not. My point was that it is not trivial to derive a efficient and useful data structure like a HAMT from Haskell's type system. The data structures in a library like unordered-containers are in practise just as opaque to the developer as the core data structures in Clojure.
Man, what is it about Go that just brings out the pricks of HN?

There are over three throwaway accounts created exclusively for this thread to shit-post about Go, to steal an old term I have never, ever used on HN before.
I'd still position it as a suggestion service, but partner with a music provider (or multiple) to deliver streaming and purchasing. They could also make money as a freemium API; all users get access to 100% of their own data, but bulk data and increased access to aggregate information would be a paid feature.

I was for a long time very frustrated with their movement after the CBS purchase, but they've been making headway recently. That's unusual, in my observations of other similar situations.
Thanks, I didn't know about that. But you'll probably agree that it's unimpressive: 270 publications (and that appears to be all-time, going back 10 years) for a team of 515 researchers. In academia, you'd expect several per year per researcher.
> That's how you gauge the experience of a programmer: how much of the field she/he's terrified by.

I'm terrified by what I don't know, especially by what I don't know that I think I should know, to be "in the know".
Thanks! I use Filepicker.io to handle imports/exports. Not sure yet if they support SkyDrive. Looking...
My changes are not live yet, but the advices make alot of sense. Sometimes we get caught up on some ideas and drift away from our main goal. I can say for sure that the feedback i got is bringing me back on the right path. I will post back the changes i made and whether it made a difference or not.
Is this going to be freeium? I really recommend putting a pricing page up even if you don't know what the pricing will be, just to make it clear... hard to even try something (and I want to b/c it looks very useful) without knowing that important detail.
Patiently waiting for the re-implemented game server and attendant crack that will let us point SimCity to our own networks.
Are they also in Haskell as in Erlang pre-emptable by the runtime?

There's certainly some cost in this design decision, more context that has to be swapped in and out and more state kept, but it's important capability to allow blind design & use- think Node, where everyone has to keep re-iterating how important it is to keep yielding to the event loop, to not do a lot of CPU work in a handler: irrelevant in Erlang world- in spite of the threading model not being OS threads, Erlang is happy to drop your lightweight thread on the fly when it sees fit.
and what precisely will force people like hinton, who can pretty much write their own tickets, to stay once google is ruled by a larry ellison clone?
Rise of the Software Craftsmen in Singapore
Oh my, the flame wars. Search for instances of the word "haskell" and "clojure" to see what I mean.
Clickable http://hirehub.me/
Uh what? No, that couldn't possibly be less true. Have you ever heard of "interfaces" in Go? They're kind of an important feature.
Presumably, it would be as hard as breaking the DRM scheme that they're using to prevent people from doing that to play illicitly shared copies in offline-only mode.
http://www.dartlang.org/support/faq.html

>> Q. How does Dart relate to Go?#
Dart and Go are both language projects started at Google, but they are independent and have different goals. As a result, they make different choices, and the languages have very different natures, even while we all try to learn from each others' work.

Hmm, don't think I want to bet the farm on that.
Name an alternative that can be cheaply bought on any stupid webhoster out there. It's either PHP or ASP.net, and I do not recommend Microsoft stuff to newbies. (Yes, I know about Mono)
Winning a War on Suicide in Japan - Tokyo Times
I wouldn't live in Silicon Valley I weren't tied to it because of my job and the industry in general. If I suddenly found myself in a situation where i'm nearly homeless, I would move out the the most expensive area in the west.
Mars Could Have Supported Life Long Ago, NASA Says
Article is from March 2011.

We still can't rely on SNI as Windows XP is still widespread.

If you are using a CDN then caching is not much of an issue. Modern browsers cache https assets when you set the headers properly.
I think Thomas Pornin's [reply](http://security.stackexchange.com/questions/20464/when-authe...) (and our subsequent back-and-forth) to a question of mine on the security StackExchange highlights exactly how hard it is to Encrypt-Then-MAC yourself properly.

You should use a separate key for the encrypt phase and MAC phase. You must MAC the ciphertext, the IV, the authenticated data, and possibly a specifier for the encryption algorithm. You must also construct the MAC'd string in a way that prevents tampering with field boundaries.
Yeah, right. Airline executives actually enjoy how much they suck at their jobs. This is an industry known for volatile, extremely high prices except on, perhaps, 3 routes and terrible service, and it still needs to be bailed out, like clockwork, every 5 years or so.

It's the worst in the U.S. We get the double joy of paying Virgin prices and getting RyanAir service.

As soon as they started charging for fucking checked baggage it was obvious that, yep, these assholes just like seeing how shitty a job they can get away with. Fuckers are trolling us, that's all. They're a real-world version of this, from Louis CK (http://www.youtube.com/watch?v=X_XiA4U_XsE#t=1m7s).

The only thing that will "reinvent" this crap-ass industry is outright obsolescence. I'd rather see work on maglev trains and in-ocean tunnels than any faith put in these assholes.
I believe it is C, unless I am thinking of something different.
I think $13 is right. Shipping makes the shirt ~$15, which is pretty standard if not above the market precedent for a shirt. (It's probably 10x the average price of my shirts.) Obviously, rates become really burdensome for international customers.
Honest Tea Creates a Business Guide as a Comic Book
Don't want to bet the farm on what, do you mean Dart or Go sticking around? Go is used extensively through Google. It powers a significant DB layer that powers YouTube. It serves up all of Google's static downloads and several employees hint at other significant projects they can't speak about.

I've only dabbled in Dart, I can't speak to how vital it is, currently it only seems viable when translated to JS or when using in a server-side VM, which is certainly an option if you want.

(sorry, I originally had written Google where I meant YouTube, see "Vitess" for more info)
For databases, you need a server side programming language. The choices available are basically: PHP (available just f*ing everywhere, starting at 3€/month!), ASP.net (Windows Server only, also AFAIK needs MS Visual Studio, not sure about that), Java (do not use, do not use, do not use), Python (sucks), Ruby (sucks even worse).

PHP has the widest adoption among hosters and user-bases, also there exist lots of proven OpenSource projects where you can borrow code from (e.g. Wordpress, MediaWiki). The lack of user-base is what discredits Python and Ruby for me, they're just too exotic.
Random note.

The "public domain dedication" is the wrong way to make code available for anyone to do what they want with it. The problem is that under US copyright law, you and your heirs actually own that copyright, whether you want to or not. Declaring otherwise has no legal force. Which means that if you change your mind, or if your heirs feel differently than you do, people can potentially be sued for copyright violations on that code. Unlikely, but possible.

By contrast releasing your code under an extremely permissive license has legal force, and neither you nor your heirs can unrelease it. (Assuming, that is, that you own copyright to your own work. Sometimes people do not, and do not realize this...)
Wikipedia has been working on a WYSIWYG editor for as long as I can remember, it's just that creating one for a markup syntax as convoluted as MediaWiki's (with templates, Turing-complete parser logic etc) has been near-impossible until recently.
Get over with this already. Everyone who's been paying attention to the company for the last, say, five years, knows that most of what they do doesn't in fact revolve around ads. Just because the company has a boatload of money and data doesn't make it inherently evil.
Though I could argue that all the languages pretty much take the same amount of time to become an expert. Just because some languages are supposedly higher-level than others doesn't mean that the complexity they allow you to tackle (and associated challenges as a programmer or "expert") is any less.

Especially since being a good programmer is more about design, choice of interfaces, reactivity to change, etc. which are by definition language agnostic.

I firmly disagree that Ruby requires any less effort than say C, C++, Java or LISP to become an expert.
With this, I mean the source code of the PHP interpreter itself. Large parts are written in C, but you do not really have to know C for helping out with the docs - a solid knowledge of PHP is more than enough. Many functions, especially PECL extensions and PEAR projects, need documentation, and the existing documentation in PHP badly requires assistance. Bonus points if you speak another language - the translations are in every state between not done, incomplete, outdated, usable and excellent.
"the truth will lie"

This is probably accurate.
I wouldn't say Go doesn't have a testing culture. On what basis do you make that assertion?

I write better tests for my Go code than for any code in other languages that I write. But maybe I just think in complementary ways to Go's testing philosophy.
Take the maximum-scale out of your meta viewport tag.

<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'/>
Chemical imbalance just means a chemical level associated with feeling bad. Which is also what psychological pain is. So you will you need to be more specific if you want to differentiate.
> As a consequence every known human society - both now and in the archeological record - has burial rituals of some sort. But no other form of hominid, including Neanderthals, has shown evidence of that.

The latter assertion is false:

http://en.wikipedia.org/wiki/Neanderthal_behavior#Burial_pra...

http://en.wikipedia.org/wiki/Shanidar_Cave

http://www.smithsonianmag.com/arts-culture/The-Skeletons-of-...
Gov’t won’t even give page counts of secret Patriot Act documents
There's some idiots who troll the #golang-nuts freenode channel occasionally with a bunch of spam saying 'node is way better!'.

I assume they're not gainfully employed, or else they would understand that the two languages/platforms have very different goals and principles.