skysight-inc/HackerNews huggingface dataset:
Wow that makes me cringe. This specifically:

> The power of the map/filter abstraction starts becoming more apparent when you do things like

> Filter(someFunc, Map(funcWith3args, vecA, vecB, vecC))

> And you realize you should swap map and filter for your particular app for better performance.

met with this reply:

> vs
> [10 lines of code for two for loops doing the same thing]
> Using range makes it obvious that there is a performance hit in the first place.
Luckily the wonderfully rebellious and wild US non-union culture definitely doesn't encourage incompetence and fraud. That Color thing never happened.
Extracting timestamp and MAC address from UUIDs
Yeah but it's already namespaced differently so package name shouldn't conflict. But now that I think about it more, consistent versioning for the 3rd party dev across multiple OS versions is pretty important.
With Java 8 you can create anonymous functions, but they have to conform to a pre-existing interface. This is a huge collection of those interfaces.
I'm confused by your comment. Does it take extensive experience and multiple use cases to assess a language? Or a couple hours writing a small service?
Async/await makes a lot of asynchronous code easier to write, which is great, but it amplifies some of the mistakes people were already making. The two examples in the post are:

- Developers won't anticipate that accessing a task's Result property can introduce a deadlock.

- Developers won't anticipate race conditions due to a concurrent SynchronizationContext.

The problem from the first example actually does happen quite often. There are plenty of stackoverflow questions and blog posts about it. IMO there should be compiler warnings whenever you use Task.Result or Task.Wait. Actually I would prefer compile errors instead of just warnings, and for the implementations of Result and Wait to just be `throw new WHAT_IS_WRONG_WITH_YOU_DO_NOT_BLOCK_ON_TASKS_AAARGH_EXCEPTION()`, but that might be a bit harsh.

The problem from the second example is not really an issue with await/async as opposed to a deeper language issue. Any concurrency mechanism in C# will be vulnerable to the fact that you can define and access shared mutable variables (including the solution proposed in the post).
If you're booked fully at this rate you're raking in $1.5M before taxes annually which puts you in the top .1% or so of consultants. Not bad :)

I'll bet at that rate people will try hard not to waste your time too, that alone is worth it.
Best line in that story: "That's why it's essential to have founders that are truly passionate about the problem you're trying to solve and not just ambitious about its success."
Show HN: Never Write Boring Content Again
I guess I shouldn't but One thing that surprises me is the lack of developer friendly libraries like this coming out of major corporations that should know better.

Why, for example, is Stripe leading the charge on decent credit card front ends when Visa could spend a few million and produce the one and only Unicode, works everywhere, looks up addresses credit card entry form.

Why is an advertising company doing this when any of the major telcos have this internal knowledge lying around?

The blindness does seem almost wilful at times.
That sounds interesting, do you have any more information on this topic?
This isn't entirely propaganda, though. Sure, the government's version of events is, but it's also a newsworthy event that Wired's readership would be interested in. Why would they not cover it, or foster partnerships that make it easier to get access to stories like this? It is literally their job.
The article actually sounds a lot like my sleep schedule.

I retire quite early (9-10PM) compared to my roommates who will game, drink, and socialize into the wee hours of the night.

I have to be up around 6:30AM to do my morning routine. I often find myself waking up around 3:00 or 4:00 though.

I just can't bring myself to "run with my naturally wakeful energy," though.
Those next few hours until my alarm goes off are the most precious thing in the world. I bundle up, and try to get back to sleep.

Usually I'm in an odd state of creative reflection, an almost "wakeful dreaming."

It's more like wishful thinking, or a daydream, than an actual dream.

My mind is too busy to sleep, but I can't let it run wild, I have to work in two hours.

---

Then, just as I'm dozing off, my (sleep cycle aware) alarm clock goes off and tells me it's time to get up.

Then I feel lethargic all day; spending my entire day anxious to get home so I can do the same thing all over again.

---

My sleep cycle app tells me I'm a pretty decent sleeper (unless I've had a drink).

Perhaps I'm just naturally a segmented sleeper; but what's a part-time student/full-time employee to do?
Direct link to the Youtube video to give you a good idea why this is amazing research: https://www.youtube.com/watch?v=YWQnzylhgHc&feature=youtu.be

If you have interest in learning more or even contributing to this project, we're in need of Python, C++, Java, Javascript devs, as well as community support: http://www.openworm.org/
Hidden Markov Model – A Stochastic Process to Achieve Pattern Recognition [pdf]
> Option 1 is bad because: (a) it involves an unnecessary copy constructor invocation

Shouldn't rvalue move semantics kick in and prevent the copy?
Becoming a salaryman sounds about as appealing as doing time. On the plus side conjugal visits are a bit more frequent.
Ultimately isn't this what RSS and email were / are? Open methodologies that work across a wide array of technologies and are not owned by specific corporations?

I don't like my technologies (especially the ones I invest heavily in) to be owned by particular companies that need to please investors / shareholders. I know that my needs will always come second to their financial goals--this is particularly true for unpaid services (twitter, Google, Facebook, etc.).

I don't know why we were so quick to abandon "outdated" technologies in favor of corporate owned ones. It short of seems like we forfeited our data and collective ownership in open platforms / public utilities in favor of things that were easy and looked cool.
This submission is an alternate link to https://news.ycombinator.com/item?id=8315224
It's an extremely specific library and anyone who needs this sort of thing will easily find it in their search.
Rates are important, but what's even more important is that your rate is an instrument that allows you to slide without stops from 'unemployed' to 'full timer' (and beyond for the workaholics). You get to determine exactly how much you work and how much free time you have if you have a valuable marketable skill.

The most interesting bit is how fast his time has increased in value, four short years ago he was still employed at some reasonably (by SV standards) low monthly wage working insane hours and now he's making as much or more per week as most of his former colleagues make per year.

That's a pretty good raise. And it did not have the risks associated with doing an all-out start-up associated with it either he's applying the lessons he learned running his own smaller business to larger businesses that are prepared to pay for that knowledge.
http://www.nbclosangeles.com/news/local/ABM-Security-Service...

http://www.kirotv.com/news/news/global-cleaning-company-inve...

http://dockets.justia.com/docket/texas/txndce/3:2014cv03215/...
Not sure I'd call it a non-issue - having recently immigrated to the US from Canada, having "good health insurance" by American standards has still left me significantly worse off than I was when I had universal healthcare.
The only time I willingly do that is when I'm browsing the Web while drunk, and something about the page's behavior or design annoys me, so I'll casually open up the inspector and work out a fix.

This has happened several times and I usually end up with a nice snippet of code that's actually useful. Interestingly, I almost never do this while sober, or stoned. There's just something about drinking that makes me more eager to do stuff like that.

For any kind of work beyond that, though, I'm effectively useless when drunk.
Not a bad write-up. The Rust code snippets can be slimmed down very slightly though. Here's main():

fn main() {
let args = os::args();
let washed_args = args.iter().map(|arg| arg.as_slice()).collect::<Vec<_>>();
match washed_args.as_slice() {
[_, "review", opts..] => review(opts),
_ => usage()
}
}

although I might actually suggest the alternative approach:

fn main() {
let mut args = os::args().into_iter();
args.next(); // skip program name
match args.next().map(|s| s.as_slice()) {
Some("review") => review(args.collect::<Vec<_>>()),
_ => usage()
}
}

(this approach requires `review()` to take a `Vec<String>` instead of a `&[&str]`, but that's not a difficult change, and we could fix it using a second line of code if we wanted but at the cost of introducing a new allocation, like the original code does)

For review() I'd suggest changing the original code:

let cwd = os::getcwd();
let have_dot_git = have_dot_git(cwd.clone());

let dot_git_dir: &Path = match have_dot_git.as_ref() {
Some(path) => path,
None => { panic!("{} does not appear to have a controlling .git directory; you are not in a git repository!", cwd.display()) },
};

to the following:

let cwd = os::getcwd();
let dot_git_dir = have_dot_git(&cwd).expect(format!("{} does not appear to have a controlling .git directory; you are not in a git repository!", cwd.display()).as_slice());

This actually leaves `dot_git_dir` as a `Path` instead of a `&Path`, but I think that's better anyway. It also requires `have_dot_git()` to take a `&Path` instead of (what I assume it takes now,) a `Path`, which is an appropriate change as there's no need for cloning the path.
Dammit. Now I can feel the growing excitement of trying a twm again. And it's not even 2015 yet.
Agreed. I'll add a note. There's still the slicing though.
Google’s New Open Source Privacy Effort Looks Back to the 60s
Using IFTTT and Google Drive to Create a JSON API
Not really, the runtime system plays a huge role into what a language can conceivably do. Think Ruby and Python and their global interpreter lock or all languages with mandatory garbage collection and no pointer types.
I would be very surprised if it did. The problem has never been the number of people who can do the job, but who's willing to do the job.
Yes. Legacy ASP.Net webforms! the postback concept was alien to me, and the whole point of .NET trying to mimic javascript just felt strange.
When I explain the screening criteria to people, the anecdote I use is that we had to delete the clipart from MS Office because one of the images was a star-of-david, which apparently has some alternative applications such as communicating gang affiliation. (No, there is nothing stopping a user from exercising the symbol by way of unicode character.)
Google has many more colocation sites across the world. The closer their gear to you, both physically and logically (peering fabrics/agreements), the lower the latency between you and them.
It's also worth pointing out that if you enable the `slicing_syntax` feature gate then all the `.as_slice()` calls can turn into the suffix operator `[]`.
> You don't like the long hours of work with meager pay and high living costs? You don't like coming in on the weekend? You don't like leaving at 9+ pm?

Isn't that the games scene, not the Vancouver tech scene? I've worked in a Vancouver tech company that was happy with me working 11-7pm and paid enough to rent in the city (28 min commute) and save half of the salary...
This what a hacker be.
C# await is a low level level construct that you can use to efficiently implement coroutines. The opposite is not true. Anders&Co designed a tool that has some rough edges (compared to say F# async computation expressions), but compiles to a small amount of low overhead Task operations.
NPR did a good story on this:

http://www.npr.org/blogs/money/2012/06/21/154826233/why-its-...
How did you learn japanese? Any tips or recommendations?
The magnetron is a good point! But for RADAR applications you just need a big source of emissions that can be pulsed on and off. The magnetron does that well enough. I have never heard of anyone using a magnetron modulated in some scheme to transfer information at any some useful rate. It's definitely possible with gunnplexers. You could certainly do more code with a magnetron, but even that would be difficult given their unstable output frequency.
Ideally, when I wake up at 5am and my head is racing with ideas, I head to my whiteboard in my home office. I write and sketch it all down and three hours later I fall asleep again, waking up at 10 refreshed. Most of such work has really been my best, with proposals that were refined and made it straight to top-management.
In some interviews when the question came 'what do you need to work effectively' I have tentatively asked about this - no early meetings, etc... but there was always pushback. My last company, a standalone Vodafone Group R&D lab allowed all of us researchers these luxuries, but was later consolidated and streamlined.

Is there any company that allows people to work this way? What are the best flexibilities that people have encountered? I'd be curious to know....
Wow I had a completely incorrect understanding of what credit unions are and what you'd use them for...this looks like exactly the kind of alternative I'd like to explore. Thanks!
Maybe. I think people underestimate the importance of TCL, because it was (relatively) buried so shortly after (mostly for political reasons) - it had a lot of influence on Python in particular. But my perspective is of course coloured by my own experience.
That's been my defense of Erlang's syntax ever since I learned it. Having it be unlike anything I'd experienced before meant it was easy to learn, because I wasn't trying to shoehorn my own expectations upon it. And I'd wager it's why the if statement strikes so many people as being completely weird and 'broken' in Erlang.
How one extremely successful entrepreneur manages his time
One of the most frequent questions I get from journalists during interviews is “how do you have time to do everything you do? You run Fon, you are an active angel investor in so many companies, you teach at Columbia University, speak at conferences, run your foundation, and on top of that you have your family, your wife, 6 children, you cycle, sail, and so on. How do you do it?”
The FitBit of Food – BagIQ Tries Its Hand at Streamlining Food Tracking|Xconomy
What an infuriating thread. I guess I'm not the kind of person Go is made for, but the fact that everyone in the thread was so close-minded about what might be helpful about map, filter, and reduce was frankly absurd.

I especially enjoyed the demonstration of map would look in Go code, complete with a useless anonymous function:

> bar = map(foo, func(e T) { return f(e) })

And this guy who doesn't seem to understand the concept of function pointers:

> You seem to equate the function f with a single character, which it's not. The user must write it's implementation, which you have omitted for your own benefit.
How are these prices compare to what one gets from Facebook?

:-)
>Just make sure to move into a neighborhood with the same general level of education as yourself and your family (as that's the aspect on which most of the discrimination occurs) and you will be fine.

And never leave that neighborhood?
Ask HN: Why is HN down so frequently?
Apologies if this has been asked and answered before, but HN seems to be down quite frequently and I am curious as to why. For instance, I visited earlier today and it was down. However, I rarely see any other sites that I frequent offline, though I will admit I visit HN far more than any other so it could be my own observation bias. Any insight would be appreciated - thanks!
Most CS students at my universities were international students for the past 15 years. Even if all were to stay in the US, the immigration laws for foreign are designed to protect the US jobs. So unless the laws and demand for workers change, I doubt salaries would drop.
> A popup notification that runs without concern for what the user is doing is hostile behavior. Notice how there's no API in any OS for "is now a good time to interrupt the user?". Maybe there should be.

This isn’t correct, actually. There is the Do Not Disturb mode in OS X that disables any non-essential notifications and alerts. It can be toggled manually for one day, or according to user-set daily start and end times.

Of course, even though the API exists, apps use it differently and somewhat inconsistently: for example, Apple’s native FaceTime will not distract you in DND mode, but Skype will if someone calls you.

Point being, there is an example of such API that tells any app that asks whether is now a good time to interrupt the user. (Not to argue that actually inferring what you do and avoiding distracting and stealing focus in the middle of typing, as in your example, would take it to another level.)
I cleaned it a bit, and converted everything to USD

https://docs.google.com/spreadsheets/d/1nMraZeE33lnGNO8m0Bn0...
Because VAT is only "created" when a business sells you something, it's an archaic method that is collected by the government from the business only once. This is why VAT is usually about 10 times higher than sales tax.
VAT made sense when you could not collect tax from individual easily, today with PayPal, bank transfer, Payment Cards and heck even BitCoins it doesn't make sense any more. VAT means that the first consumer gets screwed the most this also means that consumers that buy mostly perishable goods or cannot afford to buy goods in a quick cycle get the highest tax burden.
If you are from a low income family which means that most of your expenses go on food means that you pay an unreasonably higher tax rate than people spend most of their money on buying new Ipads.
This also means that if you cannot buy an new Ipad every year and can only afford to buy one say every 3-4 years you get stuck with the entire burden from VAT vs some one who buys a new one and sells their old one every year rolls the VAT price on the person who bought the old one.
What sales tax is is a small tax added to each transaction doesn't matter if you are buying a new product or not, it also means that every time you sell the product to some one else it keeps generating capital to the state.

Also companies can't avoid paying sales TAX unlike VAT, and if your company owns a car and gives you it as a perk you have to pay value tax for it, basically it means that the taxable amount of your salary increases by a certain amount even tho you actual salary doesn't.

On the supply chain, well first long supply chains are not good for the end consumer while monopolies are not good either you should not pay for the middle man, especially not for 50 of them.
That said the sales tax is only paid for goods that are intend to be used. This means that if i buy nails from you as a vendor i do not pay sales tax because I'm not the end consumer, if i buy nails to make a furniture i pay it because I'm consuming it.
The fact that the EU still uses VAT while pretending to spearhead the evolution of human society is still mind boggling.
Any repercussions? I know in a lot of places having alcohol on the breath at work would be grounds for dismissal.
Yield, foreach, LINQ all have many similar problems, compared to a for loop, but nonetheless greatly increase productivity. Given a little time, the devs will learn to use async properly.
Math, Lies, and Engineering
Dan Kaminsky on How to Make the Internet of Things More Secure
It's bad enough that I’ve included a line on my OKCupid account:“NO:Brogrammers”
The original article didn't teach me anything new (perhaps because I've paid attention to color in the past... it's a minor interest of mine). But YOUR points here taught me several new things. Thanks!
Would you consider writing something in more detail on your programme, whether as a comment or as a post on your company/personal blog? I was talking to an App Academy graduate recently. She did it in New York about two years ago, and made the actual programme sound a disaster. She thought the success was more due to only letting good people in than teaching well. The mentor was never there and the two tutors who were had graduated from the previous cycle; some of the people doing App Academy had more experience.

How long does your apprenticeship last? How much does it pay? How is it structured? Bootcamp style or intern style? Applicant pool versus actual apprentices?
Tiny robotic scallops can swim through blood and eyeball fluid to fix you up
> Shouldn't we be aiming for "didn't get called 'nigger'"?

No. Getting insulted once in a while is the price we pay for living in an environment that allows freedom of expression. The alternative is very similar to what people in totalitarian countries do: use the newspeak in public, calling surveillance "the S-word", and speak their mind at home, after checking for listening devices.
Will the FCC ruin the Internet?
I've seen a lot of places where people might have a beer around 4 PM.
> No, the problem is that we don't have an electoral system

I'm not just talking about the presidency... or am I missing something?
Not a fair comparison to google which is a company Musk is a person and the story isn't framed as "Musk Company branching into xyz" but "Elon Musk" branching into different companies. Separately google is highly profitable and can afford to take fliers in many areas and needs to do so in order to diversify, different situation.

A "Musk Company" branching into different areas might be compared to GE having different divisions all managed in a way with the corporate structure centralized but in that case the head of GE isn't a tech visionary and isn't involved in anything within the particular company like it at least appears to be with Musk. Likewise with Berkshire Hathaway for that matter.

Gotta tell you that in a sense it's almost like, get this, a ponzi scheme you keep spinning up new hope and investor money to keep things going and think you'll figure it out later down the road.
I don't get the sense that they think it has no place in an imperative language. Like the OP calls out, Go is a very small language with few constructs. For a lot of tasks there are simply only one way to do things. Some would consider this a strength, others a weakness (kind of like Python vs. Perl).
Current or voltage is not relevant you want current and voltage. Just voltage without Ri doesn't mean anything, you could easily get any kind of voltage by using a simple transformer. That doesn't mean useful power is transferred for that you need to apply a load and measure current through the load and voltage across the load.

Also, AC voltage on an analogue meter is usually calibrated at 50 or 60 Hz, not at much higher frequencies.
This reminds me of a TED talk I watched last night
(http://www.ted.com/talks/simon_sinek_how_great_leaders_inspi...)

"People don't buy what you do, they buy why you do it".
You sell the bed not based on the quality of the materials so much as the improvement that it gives to their life.
HN is majority American. Republicans just won both houses. Coming to Europe soon.
Yes, and not necessarily.
tl;dr: Guy who knows Rust better than Go prefers Rust over Go.