skysight-inc/HackerNews huggingface dataset:
You certainly don't need promises for generators to act like coroutines. Take a look at how Python 2.5 handles generators; yield is an expression, and then the external interface to a generator is a stream with a send() method you can use to resume the generator. (As another poster pointed out, a stream is a much more precise description of the abstraction than an array - arrays support constant-time random access, while streams are just ordered collections of elements.)

I do think that combining futures/promises with generators gives a much cleaner programming model. Take a look at how Python 3.4 handles generators & async programming; here a generator is implicitly a Future, and 'yield from' runs a future to completion, letting you compose coroutines regardless of how many yield points they have.

But my point is that these are all programming models, different ways to present the underlying abstraction to programmers. It's silly to talk about "the fact that coroutines require..." or "generators need promises" or "pretending that...", as if there were only one way to do async programming - these are not universal abstractions, they are models to present the underlying scheduler to programmers, and we choose between them based on how convenient they are to programmers.
Extensive discussion from a couple of days ago:

https://news.ycombinator.com/item?id=8693767
I just started monitoring my electricity but I believe any two of these would do it: AC (electric), Dryer, Dishwasher
Grunt configuration tutorial. Easy steps to front-end developer happiness
Is that a language feature or a runtime/library feature though?
"I would point out that most ROI models for solar look so good because of very generous subsidies. If subsidies aren't counted, the ROI time is not nearly so good."

True, without the 11k rebate, my break-even point would have been 7 years instead of 5. I'd still have done it...
He says he has a pool and if he lives in california then that pump is probably running all year, probably adds a few hundred a month to his bill.
Air conditioning is my guess. Ours burns about 4kW by itself.
> 80% of inmates at one Colorado county jail are either mentally ill or have serious medical issues that are diagnosed on arrival

The creation of the mental health system in the UK in the first place was a direct result of the observation that a large percentage of people incarcerated were mentally ill.
I've been interested in the viability of those wind towers. The ground is blanketed with plastic tarp about 10ft above ground. It slowly tapers to vertical (approximates y=10^x curve). In the vertical section, there is a scaffolding with wind turbines.

The idea is that the sun heats up the ground. When the wind starts moving, it goes up the chute, spinning the blades.

It was theorized that a 1mile diameter ground cover + tower would give 500 MW of power.
You should admit defeat and buy her dancing lessons so she's prepared for her onstage career.
In a single building DC could work. Thick wires are expensive (and always will be), so in a neighborhood it's probably best to just go ahead and hire an electrician if you need one. EDIT: actually I believe the cutoff at 50V isn't because it's safe to be shocked by current below that, but because phone line voltage is 48V and the NEC doesn't want to step on the phone company's toes.

I've done a fair amount of line-voltage house/business wiring myself, and I've never taken any electrician's tests, but then again this hasn't been in highly unionized/severe inspection locations.
@Mikeal has a couple of posts on the subject:

- https://medium.com/@mikeal/on-corporate-ownership-of-open-so...
- https://medium.com/node-js-javascript/fragmentation-7e87d28f...
It seemed to me that Iron Man (comic) was an inspiration for Elon Musk's persona.
How to Made Application Framework Using AngularJS and Django
"Note: Pluto is also the only planet discovered and undiscovered by the Americans."

As an aside, the way that's put is just...sad.
2020 is the "when" according to Elon Musk, so it's a good idea to begin before 2020 as it takes a few years to build up a car company.
I feel like most good Software Engineers realize this, sooner or later. I honestly don't know what the answer is.
Some move into management, others just leave the field for something else.

But I do know that this itself probably justifies the salaries that they're paid.
Yep, and we inherited them from the flashlight enthusiasts.
3 Benefits of a Co-Founder Road Trip
Another reason: consumers subsidize industry.

Look up your local utility rates for high demand users. (These usually include things like factories or data centers.)

They pay a lot less for energy than you do at home -- even though the power plant doesn't care if the electricity is used for your hair dryer or smelting aluminum.

If the consumer goes solar, industry will suddenly have to pay their fair share of the bill.
Sorta. What you say it true, but it is also true that Node isn't multi-threaded because the user does not have access to that thread pool. The user cannot create their own threads to do CPU work unless they go into C/C++ land. In other words, only I/O is multi-threaded so if you need to do expensive CPU work then you need to spawn a process which can be cumbersome.
If you have a single-threaded runtime then reference counts are cheap and easy. Once you need to support multithreading you need to use CPU atomic instructions to maintain the reference count safely. As the number of CPU cores increases the relative cost of this operation goes up.

COW strings were a very common optimization when 1-2 CPUs were standard. That's why it's there in GNU's libstdc++ for example. On a modern server with 24 cores it's pretty dubious. It'd only make sense if you were copying (and then not mutating) a lot of your strings.
I still wonder why hasn't anyone sued Apple for anti-competitive behavior...
Hmm, as a touch user my view is very different. Chrome's support for touchscreens is almost non-existant, while IE's touch version works even better than mobile safari on the ipad. I guess it's in the eye of the beholder. To be fair, I do use chrome on my non-touch laptops.
There's also issues with building out the grid.

Last time I checked, California electric companies were concerned that a neighborhood that got more than 1 electric car needed a new transformer, since they're sized to cool down during the night when they're normally under a minuscule load.
Linux will never even be anything close to Plan 9 for the simple reason that the Research Unix model is incompatible with that of Plan 9. It's become fashionable among certain segments of Linux userspace developers to deny the fundamental grounding Linux has in Unix and try to go "beyond the antiquated Unix model"... into OS X, another Unix. There's no other way it could be, really.

That said, the Linux kernel developers have had some ideas trickle down. They use virtual file systems quite extensively for both internal and external interfaces. Without per-process namespaces, their take on procfs simply isn't the same, but it is an approximation. A proper mechanism for union mounts called overlayfs was merged recently, after a rather protracted ordeal.

The kernel has also had a 9P client called v9fs for a while now, but I'm not sure how much it's maintained these days.

On the other hand, there's nothing like an auth server similar to Factotum (which deprecates superuser) because it contradicts the Unix permission model, there is nothing like plumber(4) inter-application communication system (D-Bus is a completely different thing altogether), the Plan 9 approach to cross-compilation isn't present (though this is not specifically a Linux issue at all), it's still conventional to use POSIX shells instead of cleaner designs like rc(1) and so forth.

The Fossil file system and Venti archival file server are also pretty unique to Plan 9, though their general functions have been emulated in more complicated manners by the myriad of Linux file systems.
Does each thread get a separate V8 interpreter? I was pretty sure that V8 has a GIL (at least at the Isolate level), just like Python and (Matz) Ruby, and so how do they handle lock contention between multiple threads?
It is certainly possible. The challenge when doing this is that the solar installation that you put in to be able to generate during the winter months ends up being MUCH bigger, and more costly. Most of the ROI models on solar assume that when you do this, you'll be able to "sell" your excess capacity back to the grid.

Many/Most systems I have seen in southern California contribute energy to the grid directly, and power is still purchased through the grid like normal. When your panel is generating, the power you generate and consume balance out and your power is "free", but you don't consume power straight from your panel (a flawed representation of how electric flows, I know).

The challenge with these implementations are that the grid itself handles the power generated by panels, and can't turn them off. The reason they do the installations this way is so homeowners stay connected to the grid to even out their energy spikes, but also to save the homeowner the cost of battery storage systems. In this case, the grid acts as "storage" by accounting, rather than by real storage of energy.
I'm in NJ and my numbers are the same. I think it's because we use gas for heating/cooking/hot water. If everything was electric, I can imagine things costing almost twice as much, if not more.
(disclaimer: I'm one of the Docker maintainers)

We hear you and we already started working on addressing just that. The goal is to define a networking interface (a set of functions) that networking plugins would satisfy. Again: "batteries included but removable". There's a lot of work to be done and details to be figured out, but I can assure you that networking is not left out, and is going in the right direction as well.

We will send out a proposal on Github as soon as we can. Stay tuned!
5kW at 48V is over 100 amperes - absolutely no offence to you personally, but anyone handling this without training and precautions is absolutely stupid, no matter how thick the cables are.
NASA’s Orion Spacecraft Splashes Down in Pacific After Test Flight
NB (and not to distract from your otherwise excellent point): it's "loose", not "lose".
How much power do you consume a month? Pool heaters can really kill your electric bill.
Thousands of Einstein Documents Are Now a Click Away
I am a front-end developer, so my history grows a lot every single day. After a few weeks, my history is a culmination of documentation links, testing links, StackOverflow posts and more. I actually did some testing a little while ago and could see the bottleneck taking place. My CPU usage would spike up to 100% whenever I would type something into the Omnibox when I had a few weeks worth of history. I spotted this on a clean install of Chrome, I signed into my Google account, but disabled all plugins and it still occurred. Weirdly enough, not everyone seems to experience this issue.
It seems good to note that neighborhood power co-ops would smooth out demand fluctuations, but not necessarily supply fluctuations.
It doesn't take much. A fan heater in a bedroom 2kW, a small heat pump / reverse cycle AC in another room 1kW, a couple of computers 0.5kW - 1kW, the fridge-freezer 0.5kW, hot water system 3kW - 6kW. A large AC could be 3 - 5 kW alone, not at all uncommon in Australia. Houses here are notoriously poorly insulated.

I'm in a rental sharehouse, there's a 6kW electric heater fixed to the wall in the kitchen / dinning room / lounge area. I suggested to my housemates perhaps we don't want to pay to run that thing, followed by $1200 winter power bill. Maybe next winter they'll think twice about running it so much.
That is the kind of magic thinking of C++ programmers sometimes exhibit that drives me insane.

I dunno. I've run into too many programmers on the other end of the spectrum. They're reluctant to take advantage of the genuinely zero-cost abstractions that today's excellent optimizing compilers for C++ enable.

I can't find the reference now, but I thought I had seen some discussions at one of the ISO C++ meetings (from Google?) about potential standards changes to allow allocations to be elided when they're limited to some known scope.
It seems like the obvious solution is to make transmission and distribution a flat amount rather than trying to amortize it per KWh.
So if the power companies are worried about people buying less electricity, why do they constantly send out power saving tips, and push things like CF and LED bulbs, etc? Is that only because they are required to by law?
"If Snowden simply stuck to the NSA's overreach in domestic spying"

On behalf of the other 6.7 billion people on this spinning green ball, thankfully he didn't. We have rights too.
Using IE 11 out of the box on a newly purchased windows 8 machine crashed on me. Continuously. It was the first application I had to start for windows authentication. I had to download the full chrome installer to get through the registration process that the vendor of the os and their browser couldn't. IE 11 is pretty bad.
Thank you for what you're doing, that's awesome!
I'd like to enlighten why choosing a license is important.

Many people can be picky about the license, because even though you may be full of good intentions, the data you provide is non-free as-is in that it can't be reused elsewhere. Having a license is the clean, boring way to tell everyone "do whatever you want with this data".

That's even a problem for Github, or more precisely Github users, because many people push some code without any explicit license, making this code hardly usable by default: it may be available but you don't know if you have the right to reuse it, even if the developer said "yeah, use this as you want". That's not enough. Just because the developer didn't take a few minutes to select and put a LICENSE file.

It is also important to think about it in the other direction: If you're going to take content from Wookieepedia, their license is CC-BY-SA (http://starwars.wikia.com/wiki/Wookieepedia:Copyrights), which means that you MUST say it comes (at least partially) from them (not that you wouldn't anyway) and that you MUST redistribute your content with a "similar" license. Even though you may think that everything is fine, there are some actions to do on this side.

Now, I'd understand that if only "amateurs" come and play with the data, we're all among good behaving adults and all is fine. But you may not be able to predict what will happen with how data is used, so unfortunately this step is important.

Personally I don't like restricting people, so I try to use CC0 as much as possible. Be aware that Creative Commons licenses may not be best suited for data (they were designed for work of art primarily), as can be seen by OSM's decision on the matter (http://www.osmfoundation.org/wiki/License/We_Are_Changing_Th...) so you may want to avoid them.

Note: I'm not even talking about money, which is an orthogonal problem.
Basically $100/hour is a nice round number that seems to be roughly in line with the market for line of business application programming on a consulting basis. More specialized programming that requires particular problem domain expertise can command much higher rates, basically inversely correlated with the number of other devs who are able to do it.
Funny you should ask.

This company aims to provide modified iPads to prisons and jails. SF county has signed onto the scheme: http://apdscorporate.com/

This company already has a heavily locked-down tablet and provides a way for relatives to buy music for or send email or donate money to prisoners: http://blog.jpay.com/mini-tablet-for-prisons-now-available-i...

Victims' rights groups are not very happy about this: http://www.usatoday.com/story/news/nation/2013/08/17/tablets...

EDIT: I mentioned a scheme in Ohio, but associated it with the wrong link. That state uses Jpay, not the APDS system.
New Version of dotCloud Runs on Google Compute Engine
British Court Says Government’s Electronic Surveillance Is Legal
Check the Future Work:

"We learn many things writing a realistic example of a web server in Coq, especially in the way of implementing side effects. We also shown that it is possible to use Coq as a programming language to write interactive and concurrent softwares.

"Our main goal now is to extend our DSL of computations with a specification and a certification mechanism. We would like to write a specification of the non-purely functional part of our web server and prove its correctness, exploiting the unique ability of Coq to marry proofs and programs."

One of the ways of approaching a dependently-typed project (in my limited experience) is to start by building an otherwise-not-especially-typeiferous, but working, version, then backfilling the proofs necessary for correctness. This is particularly useful if you're new to the technology or (as in this case) not sure how exactly it's going to work.
Einstein papers go digital
No, because the I/O threads never enter JS land (V8); they just dump their data for the main V8 thread to pick up.

And yes you are correct that V8 effectively has a GIL for its Javascript execution (though V8 does actually run other threads in the background for profiling).
How I Almost Let the College Myth Keep My from My Dream
Choose What Facial Hair I have to wear for charity
I don't feel that's the case at all... relative to development of every stable release of Node, 0.10 is getting very long in the tooth, and 0.11 is pretty stagnant as well. If only from the perspective of v8 supported features alone. At this point we really should be working on 0.13 (towards 1.0) which should have the --harmony features by default.

It's bad enough that I have to use browserify to get working features in the browsers... I shouldn't have to do that for a leading edge server-side JS platform in the development version. Don't get me wrong, still love node, and JS is very effective, just the same, I'd rather not have to require in libraries that should be baked into the engine at this point... or writing shims to make for an easier transition.

co/koa are over a year old now... developed against features that still aren't in the supported release... prior to 0.10, v8 had been kept very close to the edge... it's now over a year behind.
I perfectly agree with you.
Show HN: JSON files and making good tests easier to write in Google App Engine
Like "djrogers", I also live under (let's name names) PG&E and their "infernal" tiered pricing. Try paying 30 to 40 cents a kW/h, and also working from home with kids running around during the summer. I live in the Sacramento area, but outside of "SMUD" coverage, so I have to have PG&E. When it is about 100 degrees +/- for 3 months solid, A/C is "life support", not a convenience.

$400/month electric bill, very typical for summer.
Heat based energy needs are usually cheaper with gas, which is most of what you listed.
Doesn't it cost you to host your server and data somewhere? That's not mentioned in the blog post, but I would love to get a ballpark figure for how much $$'s are going out every month to provide this service
The most you can charge is the perceived differential value you provide. So, if the client perceives that you will make them an extra $1M compared to the alternatives, you can charge, say $300K. If you have to do 100 hours of work to do that, don't say that your rate is $3,000/hr. Just say that the $1M costs $300K.

You don't always get a clearcut case like that, but the key, as @bdunn mentioned, is that you need to help the customer in a way that other commodity providers can't. Writing Ruby code or working with Photoshop is a commodity. The market sets the rate for those services. But if you can use those skills to reduce costs, increase web conversions, etc, you can provide increased differential value.

I've helped a lot of small business owners work through these scenarios, and then come up with numbers that "don't feel right." They don't want to charge what they're worth. Then we have a conversation like this:

"I agree with you that it's worth it, but I just don't feel like I can charge that much."

"Why not?"

"It just doesn't feel right?"

"You believe in helping your clients, right?"

"Of course."

"Would charging the higher rate help you provide more resources and increase the customer's return?"

"Probably."

"So why are you so hung up on your own feelings that you're hurting your clients by not charging them properly?"

OK, it's a bit silly, but it's a real conversation I've had many times. When they are convinced in their head but not in their gut, I ask them to literally practice talking about price in front of a mirror. Do it so that it sound confident, comfortable, and unapologetic. Your customer is getting a great deal! Of course they should want to do this. Steve Jobs never apologized for the fact that a Mac had a higher price than many PCs-- it was just a great deal if you wanted to do certain things.

Feedback is that practicing in front of a mirror really helps. ;-)
You're ignoring all the ways it's cheaper to provide service to big, compact consumers like factories or data centers, vs. a big branching distribution network, more transformers and metering and billing costs. And then there's math is not optional details like power factor (https://en.wikipedia.org/wiki/Power_factor), although I don't know how they play out for these different sorts of consumers, but it's important to realize the grid past power plants is anything but simple and passively operated.

Plus factories can negotiate schedules of when they're pulling X amount of power, and most of them can shut down during extreme peak demand. It costs power companies a lot to avoid brownouts and blackouts during those worst periods of a year, and most of us home consumers don't have a firm deal to conserve during them.

The biggest devil in the details of all of this is what comes after whatever is producing power, solar cells or conventional power plants, baseline and peaking. That is, after all, what this topic is about.
Networking.

Marketing (ebooks, blogging, tweeting, open source).

Connecting people who can do nothing for you because you want to do a good thing (aka karma). (I wrote a post about 'being an informal recruiter': http://www.mooreds.com/wordpress/archives/1728 )
Ask HN: Which functional programming language to get started with
Like to learn any functional programming language but having hard time choosing one, Looking for a language which is easier to grasp the fundamentals of functional programming.
New features for numerical computing? I am intrigued... for me that essentially means operator overloading, including []. I think that would open the door for implementing a numpy like module for Node. Is that the plan?
Are you seriously suggesting that String incompatibilites are a big issues in Java?

String interning is specified in the JLS: http://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#...

As far as I can tell, the substring "feature" has been there since Java 1.0 and was fixed in Java 7. Hardly groundbreaking stuff.
Batteries for the supply slack, hot water heater elements to dump excess power into. Concerned about enough supply? Oversize your systems.
Really? I've never seen any synchronization code (e.g., locks) in JavaScript. If multiple threads can execute async tasks in parallel, doesn't that mean JavaScript needs synchronization primitives? Most JS code I've seen in the wild relies implicitly on the single-threaded assumption—that only one callback (for example) will run at a time.
The bigger issue here for me is Snowden and his small team of people are doing the same thing the government does.

They regulate the flow of what documents they want the public to see, while still holding a large trove of other documents, deciding unilaterally when they will get released. For someone who had a lot issues with the government, Snowden seems to be emulating quite well with this draconian process of releasing the remaining documents at such a slow pace.
forking didn't hurt MySQL. Going proprietary hurt MySQL.