skysight-inc/HackerNews huggingface dataset:
Ask HN: As a Python developer are you interested in learning Go?
Hey,

May I ask you to help me in my research with some information? I'm trying to find out which groups of software engineers are interested in the Go programming language. I've been using it for a few years now and heard that mainly Python devs were moving towards it. Is this true in your opinion?

I've been thinking about putting a book together about Go which would follow the philosophy of "Learn Code The Hard Way". Readers would be required to actively participate in creating a fully fledged RESTful back-end application by the end of the book. I wouldn't like people to just type pieces of code, but I would rather ask them to work simple problems out with a test case provided. What do you think about this approach?

I'd really appreciate if you gave me some feedback.

If you have a minute to fill a formal survey out, that would help me most to have an accurate picture what you guys need and interested in to learn.
Please submit your answer here: http://bit.ly/1sGWBs9

Many thanks!

Cheers,
László
https://news.ycombinator.com/item?id=11796501
i write pre-minified js, all in one line.
> The point you're missing is that the "vague free-range schooling" promotes self-reliance, which is exactly what you need to escape a toxic background.

Self-reliance does not make a person civilized. Self-reliance does not make a person fit to coexist peacefully and productively with persons outside of their own familial or tribal group.

> I understand the lack of standardised testing is scary to those who want to measure everything...

I have no beef with the academic angle. From a cost-benefit perspective, it would be hard to do any worse than we already do. My beef is that we have a lot of people who need to be civilized, and that walks in the forest are not up to the task.
the show is only getting better ;)
Does any of the advanced machine learning and information retrieval gets implemented in tools useful for searching API's and source code ? or is Google keeping all the cool tech to itself ?
It makes sense when you don't read everything, when you're reading a newspaper or a magazine for example and only read the articles that catch your attention.

I really don't see how it makes sense in the context of a single article though. If I'm already clearly reading an article, a pull quote is only going to distract me.
The Middle East gets the headlines on this topic. But it's happening other places, too. https://news.ycombinator.com/item?id=11801325
That's only partially related to topic at hand. Even in cases where copy elision takes place, and object is still constructed.

However, as was said before, any performant iterators ought to be header-only implementations, and if they have no side effects, I don't see why a compiler might not do away with the copy altogether.

Personally I always use the prefix increment (unless the other behaviour is needed).
INSIDE SILICON VALLEY'S SPACES AND TABS DEBATE
Bangladesh panel finds possible insider role in central bank cyber theft
Because it's baby formula, produced here, and rather vital. Government is _not_ going to stand idly by if it disappears from stores because some other country bids more.
Install a GPS tracker in the shirt and put a huge QR code in the back allowing you to verify the shirts current location on the official website.
I am not a climate scientist, but I believe that the connection is a bit more subtle. As I understand it the global circulation models predict that average temperatures will rise but in particular that temperatures at latitudes further from the equator will rise more than those closer to the equator. In other words the temperature differences across the planet will diminish and thus provide less available thermodynamic free energy available to drive weather. This would suggest that extreme weather would decrease.

Naturally, things in the real world are much more complex. The oceans are a huge thermal mass and will have temperatures changes that lag the atmospheric changes. Will the atmospheric to ocean temperature differences increase with global warming? I don't know but it sounds plausible. That would mean more energy to drive hurricanes. Yet, there doesn't currently seem to be any increase in the frequency of large hurricanes, see [1] for example amongst many references.

I recall incidents of extreme weather from my childhood (over half a century ago) and don't notice any increase in them today, but I simply don't trust myself to be a good judge of the significance of personal experiences and what that says about weather across the globe. (Here in the US, I remember walking to school at -13 F; a few years later I visited my girlfriend's family in Texas and it was more than 125 degrees hotter that that day I walked to school in Detroit. Pretty extreme difference before global warming would have had an effect on weather. If I was younger it might have been easy to attribute this to global warming, but these were cases from over 50 years ago.) I wish I understood climate as well as I understand computer science.

[1] http://www.gfdl.noaa.gov/global-warming-and-hurricanes.
This is so annoying - I keep finding reasons to go on IRC, but am still stuck on what IRC client to use. ("No, my web browser feels weird." "irssi doesn't have a multiline text box." "weechat isn't configurable like irssi is." "I don't want to use GTK or Qt." Lost cause: check. Protip, don't drown yourself in chat client ideas for 4 years, you'll poison yourself to everything out there :X) - but the mention of IRC is duly noted. :D

I had a major derp, however: I forgot durdan and arcan aren't, err, the same thing... let's just say I just installed durdan, and successfully played around for a bit. It's a bit slow on my frankensystem (GPU is older than motherboard+CPU... don't ask >.>) but still very cool.

And wow, that's a pretty awesome usage of the SHMIF, cool. I wonder if porting Arcan to Vulkan would produce interesting results...

And I meant https://youtu.be/3O40cPUqLbU?t=279 - in particular the part I seeked to, where you play and record video and blit it onto a 3D surface so on and so forth - the VU is noticeably slower than everything else. I just thought it would be cool if the video was like "look: EVERYTHING is updating at 60fps!" - but it's cool. :P

About the video you linked, that's pretty incredible too... wow.
> SQL seems like a terrible language.

The reason you give is too trivial to justify calling it "a terrible language"
Programmer / drummer / dreamer
Thanks. There's more material out there, indeed, so I had to make a choice of what to post.
I'd agree that Haskell/OCaml/... will get rid of some unit tests that are to be written in other languages, but you still need to test if the logic and semantics of your code are correct.
The war was not just going on in Europe. North Africa was also heavily involved in skirmishes between Allies and the Axis.

As for the connection there was only one country that was fighting on two fronts at the same time: the US. Limiting the WW2 definition to when the US started to enter the War is reductive, I think.
Last-khajiit/vkb: Java bot for vk.com competitions
Please kill the loud auto-playing music.
I don't live in U.S but I assume you have families over there. Grandparents, cousins etc. It's healthy to be close to your family. If you're young and free, of course. Would you just separate your kids from their childhood friends, school etc? There are millions of reasons.
Wow.

> That means that tests have to be at least as computationally complex as code.

My BS sense is tingling. No matter how complex the code, in the end it comes down to comparing the output of a function (or state after execution) against what you expected.

Granted, OO regularly leads to design where unit testing goes straight to hell and after way to many lines of test-setup you essentially only test that your mocking framework works. But spare me these incorrect blanket statements – they don't help – thank you.
Pros:

- no JavaScript (so no Node.js)

- plenty of good documentation about make

- much simpler task definition for most tasks

- interface to external commands that is natural and obvious

Cons:

- not a modern hype

- some people dislike make's syntax

- tasks that don't produce actual files force to use artificial stamp files,
so the data model is not always the best fit
Pneumatic Passive-based biped (Denise 2)
Yeah, Mr. Ilves is even doing DJ-gigs:
http://metropolitan.fi/entry/president-of-estonia-to-throw-a...
Industrial wearable startup ProGlove secures $2.2M
C++ Performance: Common Wisdoms and Common “Wisdoms”
> just that choosing ++it is +EV

Sounds like pascal's wager
I remember seeing games doing actor-like things with message passing on a single thread way back in '02. You could "broadcast" a "damage" message and all the actors that were in the hit region would handle it in however they saw fit. Great way to force decoupling.

Concurrency is somewhat orthogonal(although a nice-to-have), it's more about not doing things that run counter to your hardware.

Over in the games space we don't have the advantage of scaling wide on multiple machines so a couple things that sound heretical are there for good reason.
I have heard of the cultural difference you refer to--my son worked in the Netherlands for some months. Yet I don't think that is all of it. Is it simple frankness to say that the use of Fortran damages the brain?

I do think that a good deal of the internet--the great unwashed both correspondents refer to--remember Dijkstra the insult comic better than Dijkstra the pioneer of computing. It doesn't improve discourse on the internet, I guess, or worsen it much either. I don't think it just to Dijkstra's reputation, though that is no responsibility of mine.

In his biography of Alexander the Great, Peter Green quotes the Athenian Demades's reproach to Philip:"King Philip," he said, "Fortune has cast you as Agamemnon; but you seem determined to act the part of Thersites."
> cognitive decline is inevitable in 70 year olds

This was not the claim, you added "inevitable", thereby diverging from a statistical claim to an absolute strawman.
Last khajiit greets me (a stranger) and lets me wondering what happened to the first one.

Is this supposed to be interacted with, somehow?
How is Pepper, SoftBank’s emotional robot, doing?
The tricky thing about Google compensation is they tend to weight total comp toward RSUs. So it's totally conceivable that woman may only be making $90-110k per year in hard salary. I lived in MV for a year and the rental prices are high enough (2.3k for a two bed in the burbs) that living in shared housing might be advisable at that salary level.
#ICRA2016 photo essay and video
Ask HN: How many of you non-tech people wanted to learn to code and gave up
I'm wondering what makes people give up on learning to code even when they know the value in it. Why did you give up on learning to code even after you started highly motivated.
Brain-Computer Interface (BCI) livestream today
What if those generations are not "lost" but are spent?

We took humans, we extracted every bit of work from them, we got a lot of work done and a lot of empty shells for people.

What if with each generation it's an downward spiral? Because it certainly looks so.
I've been using flow type which has made the transition from F# tolerable, so none of my assertions are type checks but still a lot of null checks because of no language support of option types.
When will Linux get a decent speech-to-text input device?
But does insurance, banking(mortgage, payday loans), transportation laws really need 50 different laws? even contract law could be ubiquitous and where lawyers can practice in all fifty states.
You absolutely can handle runtime errors via the type system just using a Maybe.
Apple iPhone 7 and iPhone 7 Plus Specification, Features and Price
> How would you if you can't deternmine type in advance, check for the type it will be ? I don't understand.

Compilers do this all the time. Just consider all those programs that dynamically generate code based on objects that they haven't seen in advance, like object-relational mappers. Those can all be statically typed and ensure that they generate correct code [1].

> Absolutly not. Those are not linked to typing in any way, and any decent Python editor catch them.

It's all part of compilation, and furthermore, we can type check code generation so that names errors don't even occur in runtime generated code. Sorry, but all of these errors are related to type checking.

> AssertionError ? Serioulsy ? Do you even know what it does in Python ?

http://research.microsoft.com/apps/pubs/default.aspx?id=1386...

Just google "static contract checking" to find plenty of work, including compilers already available for Haskell. Heck, code contracts have been widely deployed on .NET for years now.

> And LookupError, unless you got constant sized containers, which has nothing to do with types, you can't check that.

Please read the lightweight static capabilities paper I already provided. It demonstrates using the Haskell and OCaml type systems to statically assure that all array bounds are in range, even for dynamically sized structures. So yes, you can check that, which doesn't even go into dependent typing where checking such dynamic properties is the whole point.

> ArithmeticError ? Come on ! Are you numbers constants ? You need to check the inputs so that they belong to the domain of your problem, at that's it. Nothing to do with types.

You don't seem to realize that types are simply logical propositions about a program. They can be ANY proposition about a program, including that indexing is within bounds, that a concurrent program has no race conditions or deadlocks [2], that programs terminate, that HTML forms correctly serialize/deserialize values from/to structures [1], and more.

Like most dynamic typing enthusiasts, you don't have a proper appreciation for the true scope of static typing. You are correct that typing has its costs that aren't always warranted, but you are incorrect about where you draw that line because I don't think you fully understand how powerful static typing truly is.

[1] http://www.impredicative.com/ur/
[2] http://www.kb.ecei.tohoku.ac.jp/~koba/typical/
That was a great course by the way.
You can make decisions in the face of uncertainty based on an assessment of the risk and the probabilities of the possible outcomes. If you get in your car you put your seatbelt on without knowing whether you're going to need it for that particular ride. There's no need to "pick a side" on the question of whether you're going to have an accident on that ride. Being uncertain about something is almost the opposite of cognitive dissonance, which comes from being quite certain about contradictory propositions.
and a mind of its own.
I was truly convinced of the power of 3D printing a similar way a couple years back.. My 80+yo neighbor lost the back cover of her feature phone. I looked for a replacement but it's an old phone. She told someone at her church, who noted the model number.

The following week, he brought her a 3D printed cover that fit perfectly. Over a month later and she was still talking about it.

When you build a product that appeals to 20yo hackers and 80yo grandmas, you're onto something.
ASUS just unveiled a robot and they've named him Zenbo
> The results show that our approach generates largely accurate API sequences

OK then, humans still needed. Best case, it seems AI will take up what one would consider interesting work (algorithms, thinking) and humans will end up doing grunt work -- testing out bugs, cleaning up data, formatting data, explaining to other humans etc.

Realistically though, this just creates two API's (instead of one) for humans to master, the original API and the 99% accurate machine API and knowing where the gap/bugs are.
Test Startup Urges as an Intrapreneur, with Caution
But the biggest problem is that iTunes itself is badly developed? Apple way is that each user has a Macbook which has an iTunes to which user can sync her/his iPhone. Syncing many mobile devices into one machine with one iTunes gets messy.
It's a Lulzbot Taz 5 (they announced the Taz 6 the day after it shipped :(

From what I've read, it's a decent quality printer. I've kept the software in beginner mode so far, so there's probably some settings I'm overlooking.
Good luck with Thailand. The military junta is close to instituting MITM on all internet communications.[1] They don't even care that it will break online banking and every other business that relies on secure communication. I guess digital nomads will be fine as long as they don't mind that they won't be able to connect securely to their bank, server, AWS, etc.

[1] http://www.bangkokpost.com/opinion/opinion/993937/internet-l...
Massachusetts cannot build/maintain bridges or roads period. One example, within 3 to 4 months New Hampshire build a large bridge over the Merrimack to their airport. About 30 miles down river there is a 'temporary' bridge over the river erected around 1986, that was suppose to be replaced by a permanent bridge in 5 years, it is still there and causing massive traffic jams. There are many examples of this, another good one, a 20 foot bridge in Westford MA took 1 year to build. Mass. is the last place to base theories about Government keeping up infrastructure. Anyone remember how "successful" the big dig is :)
I just tried that. It works quite nicely, very cool.

And NetSurf is designed to be able to output to a framebuffer (with a rudimentary builtin toolkit), yep. (AFAIK you can get it to build the framebuffer mode on top of straight Xlib, for testing that mode on Linux.) NetSurf doesn't do audio yet (no <video> or <audio> tag support for starters) but yeah, an arcan/durdan-based UI would be pretty cool! :P

WebGL wasn't a complete failure, it gave us http://acko.net/. WebRTC is fun though - I remember someone mentioning (it might've been on here) how they asked a WebRTC implementer why they specified arbitrary TCP/IP communication channels, and the person responded that you might want to use it to talk to your toaster. That functionality lets us have https://webtorrent.io/ though, so...

The potential worst of WebUSB: cloud-based hardware capture devices, where all your oscilloscope's processing happens in the cloud, and you'd better pay your subscription on time.

The potential best of WebUSB: crowdfunded/distributed USB protocol debugging and live sharing - plug in your device (possibly inline with a software-controllable on/off switch, for cold resets), point a webcam at said device, maybe attach probes to some test points, walk away, and it's been reverse-engineered by tomorrow morning, possibly for a fee, possibly for free. This would cover at least 50% of reverse-engineering. I'm not sure how viable it would be through the browser, though...

I say let the slightly clinically insane specifications guys go on reinventing all the wheels. They leave a wake of things that open and shut in their path that are just capable enough to actually be useful. \o/
Too hard to use. Poor UX. Something like chat has to work instantly or its broken.
Someone tried to Social engineer me on Quora
No, I'm radically against significant whitespaces.
Disney Vows Action as Snow White Appears at Wanda Park
The 3 P's mentioned by the author are some of the most classic human pit falls into mental paralysis.

>1. Personalization – the believe that we are at fault. This is the lesson that not everything that happens to us happens because of us.

"Small-minded people blame others. Average people blame themselves. The wise see all blame as foolishness."

-Epictetus

>2. Pervasiveness – the belief that an event will affect all areas of your life

"Be careful what you water your dreams with. Water them with worry and fear and you will produce weeds that choke the life from your dream. Water them with optimism and solutions and you will cultivate success. Always be on the lookout for ways to turn a problem into an opportunity for success. Always be on the lookout for ways to nurture your dream."

-Lao Tzu

>3. Permanence – the belief that the sorrow will last forever

"A student went to his meditation teacher and said, “My meditation is horrible! I feel so distracted, or my legs ache, or I’m constantly falling asleep. It’s just horrible!”

“It will pass,” the teacher said matter-of-factly.

A week later, the student came back to his teacher. “My meditation is wonderful! I feel so aware, so peaceful, so alive! It’s just wonderful!”

“It will pass,” the teacher replied matter-of-factly."

-old Zen tale
I guess it counts as dereferencing. Here is what standard says

"A reference shall be initialized to refer to a valid object or function. Note: in particular, a null reference cannot exist in a well-defined program, because the only way to create such a reference would be to bind it to the “object” obtained by dereferencing a null pointer, which causes undefined behavior"
You can also validate actions anonymously, by obscuring the user name at the point of validation. We do that on our site.
Sure. I don't mean simple local pre-conditions like arg validation but more system level issues that are inappropriate for asserts e.g. maybe you need to hook an output sink to an event trigger before you invoke a function to see any results. Not having done this or doing it in the wrong order is not strictly a mistake from the system's perspective but would you leave you stuck as a coder.
> Unit tests of complex code is often more complex and obfuscated than the code itself, hence its usefulness as documentation is very limited.

I've found that expressing unit tests in the language of the problem domain and never stressing implementation details wherever possible is the ONLY way to prevent this from happening. Avoid mocking and test doubles where possible, but sometimes they're the right tool. The tests should be treated as production code that gets boyscout rule'd as people go into it for whatever reason.
No, it's just that things like actors and STM, and yes, even LMAX are completely overkill for many of the projects out there. Go read up on what LMAX was designed to solve, millions of messages a second. I've worked on several very large projects for huge corporations, where their message load was 1 thousand messages a second peak.

So yea, I don't use STM much, and I never use actors, I use queues quite a bit, but I benchmark them first and use the one that fits best with existing infrastructure and causes the least amount of friction with my client while still getting the job done. It has nothing to do with "actually working on hardware" or "science". Except perhaps that I apply the scientific method in choosing my tech, and that never ends up being LMAX for the jobs I work on.
Tor Browser Fingerprint Demo Page – Triop AB
The backwards history of attitudes toward public breastfeeding
Is there some way for me to contact you?

Thanks. I might get the book.
I have a question about null being able to subvert types, using Java an example, if I write foo.upperCase() and foo is a string, the type check succeeds but will produce an NPE at runtime. Why doesn't javac catch that foo is not set i.e is "null." Why is null above type checks?
China's Veiled Loans May Prove Lethal
But then the haters would be wrong and systemd would be right. Opposite of the current situation.
What the purpose of the backspace key?