skysight-inc/HackerNews huggingface dataset:
Definitely engineering.

Optimizing battery life is like f(x) = 1/x

If there is a way to get your standby power down to 0, you have infinite battery life. (Theoretically!)

If OSX really gets 2x the battery life of Windows, they only had to squeeze out 3.3 Watts. (calculation below)

So Atwood points to the 2013 Macbook Air 13", and its "14 hr 25 min" battery life. Well something fishy is going on there. He cites [1] but Apple themselves only claim 12 hours [2], and other tests have come in just under 12 hours [3].

Here's how I derived the 3.3 Watts above: the 2013 Air has a 54 Watt-Hourr battery.

54 Wh / 7 h 40 m = 7.043 W
54 Wh / 14h 25 m = 3.746 W
Save 7.043-3.746 = 3.297 W

Keep in mind Watts measure power, not energy. So to save 3.297 Watts average, OSX is keeping something mostly turned off that Windows is not successfully keeping off. OSX is saving on average 3.297 W over the test period by having brief bursts of activity while staying mostly idle.

It isn't surprising at all that Windows isn't able to fully manage power on a system that hasn't had its ACPI tables set up specifically for Windows (beyond getting Windows to boot).

I'm happy to say I've been Windows-free since 1997, no love lost and never looking back. But the statistics presented here have some major flaws. More testing / engineering needed...

[1] http://www.digitalversus.com/laptop/apple-13-macbook-air-201...

[2] http://www.apple.com/macbook-air/features.html#battery

[3] http://www.tekrevue.com/2013/07/28/pushing-it-to-the-limit-2...
Valuable legacy windows programs can run on a tablet.

From my perspective that shows that MS cares.

Programs written for the Mac can't run on iOS, I think.
Android largely isn't GPLv2.
> Mrs Lovelace was coding in an age when even few men were

It's even better than that. Ada was coding before there were COMPUTERS.

Also see Bret Victor's rant on creating the future:
"In 1968 — three years before the invention of the microprocessor — Alan Kay stumbled across Don Bitzer's early flat-panel display. Its resolution was 16 pixels by 16 pixels — an impressive improvement over their earlier 4 pixel by 4 pixel display. Alan saw those 256 glowing orange squares, and he went home, and he picked up a pen, and he drew a picture of a goddamn iPad."
http://worrydream.com/ABriefRantOnTheFutureOfInteractionDesi...
Take your time. And deliver. Entrust some small but really smart team with fixing the thing. And give them absolute power related to the project.

The situation is so bad right now that the second launch - doesn't matter when it will be, but it just have to work.

Also make sure that head rolls in the procurement parts of the agencies responsible and claw back maximum amount of money possible.
Reach out and save a battery today! With your help we can change the world. Please submit donation to help this innocent battery to get a better future.
Not sure what that has to do with semantics. Are you saying that NAV etc. aren't valid semantics on applications?
> if you’re writing CSS professionally then there’s really no good excuse for not using a CSS preprocessor.

CSS preprocessors aren't without their own problems as well. An app that I'm currently working on has a history of semantic HTML, but having no room for compromise had resulted in a CSS file that is 4000 lines long.

There were lots of cases where an innocent looking @extend created monster selectors (https://twitter.com/mezzoblue/status/390274599167877120/phot...). This is non-obvious behaviour that should be avoided.
It worked for C++.

Lots of C++ programmers do NOT wish for a simpler language.
Let me give you another example of manipulation:
https://twitter.com/AKGenclikGM/status/384629580226506753 - In this picture, they're wrote "Now, Q - W - X are free" in Turkish

Let's check English version of that:
https://twitter.com/AKGenclikGM_en/status/384649333884588032
"Kurdish letters are now free"

..there is no ban for usage of Kurdish letters in public. As i said, because of Q, W, X letters are not in Turkish alphabet, they're just don't allowed to use these letters in names. They just added q - w - x to Turkish alphabet
(btw think about it; USA changing their alphabet, adding another letters, i think general reaction would like "what")
That's why they just write "q - w - x are free" in Turkish version. But in English version, sadly, they're saying kurds can't use their alphabets and they're dramatizing the status of kurds.
Note that the HTC G1 didn't have a software keyboard at first; it was a (non-multi)-touch device, but you were meant to use the physical keyboard for all text entry until Android 1.5
I was going to say the same.. To me the Fast-and-Hard introduction made most sense off all intros I tried (pretty much every one I could find online).

Thumbs-up to FP Complete for integrating it with their tutorial suite!
I must get too much spam. I first read this as "in", instead of "to". Darned priming.
With Funding From Mark Zuckerberg, Panorama Improves Schools With Data
Show HN: Offsite status pages as a service
I think people will(I would) use Go more for writing services than doing actual systems programming. It is a very nice language and I hope it succeeds, but I am personally betting for Rust.
Woe For Amazon In Germany As Antitrust Watchdog Investigates
> its a betrayal of some part that make people defend android for what it is, a open source project..

As an open-source project, Android was only ever really open in the way that, say, Oracle BDB is open; there are periodic code dumps, but it's very much not operated as an open-source project.
Live Better, Help Often, Wonder More
"I am an excellent developer, with years of experience", but seemingly unable or unwilling to complete a small practical test. Sounds to me like they are good at weeding out the wrong people.
It raises interesting questions about how companies like Incapsula will integrate with their customers in the future.

Fairly easy for them to sit and monitor the low level networking kit dealing with Layer 3 + 4 attacks, but that's the wrong place to focus on Layer 7, right? They need to understand the web app and infrastructure it touches.

I'm sure they exist in some form or another, but it's likely we'll see more design patterns emerging to deal with mitigating application attacks. Combined with the network/protocol control you'd have application logic feeding down suspected attack data to block
Show HN: hand-picked unregistered domains for your side project or non-profit
Surely this doesn't just affect mobile devices. If the OS causes a higher power drain, then it must be more expensive to run a Windows server than an OS X/Linux server.
Mandatory garbage collection.

So far, no mainstream operating system includes garbage collection and there seems to be nobody who considers it a good idea.

(except the Oberon guys, maybe)
Unlikely. His shopworn "social commentary" is typically a dead giveaway. ("I remember when all this was trees.")
The title is actually Why tech needs a makeover to attract girls but the article doesn't say why. Technology is at the forefront of the economy and women have a vital role to play feels rather empty.

And while I'm sure Brazil and India can offer insights and be on the forefront of improving policies, those are not really very enticing models to emulate. Let's be honest, women in India work in IT to get ahead because India is poor.

"I must study politics and war, that our sons may have liberty to study mathematics and philosophy. Our sons ought to study mathematics and philosophy, geography, natural history and naval architecture, navigation, commerce and agriculture in order to give their children a right to study painting, poetry, music, architecture, statuary, tapestry and porcelain."

Hipsters are living the dream. Most people don't want to slave away at the keyboard.
Upvoted. But personally, I (am a C++ programmer) would not use C++ wherever I can make do with Python(which is orders of magnitude simpler).
> Are you saying that NAV etc. aren't valid semantics on applications?

What I mean is that the (supposed) benefits of semantic use of CSS classes go out of the window when you're no longer hosting documents to be read by machines. And the user does not care if the classes of HTML elements are semantic or not.
Yes, that's the correct answer. This problem today, on tablets especially, also comes from Microsoft's unwilling to use anything other than the full Windows on almost any product they have. So instead of starting something from scratch, they'd rather force all that legacy bloatware into devices that need very efficient software and have smaller batteries.
um... can anyone here define "WYSIWTFFTWOMG"? What You See Is What The Fuck For The Win Oh My God ... is the closest I can come and it makes no sense.
Why do we have to "attract" them?
That would actually be an extremely useful list, if you fancied creating it...
Lazy devs blocking all ^http strings in Twitter private messages as "malware"
That's not true, the Android userland is not GNU. It's probably possible to compile some of the GNU tools to work with the bionic libc but it's not the default userland.

I think it's fair to say Android is running on Linux, it's just not GNU/Linux.
I like C, but I also like the type-safe, efficient containers and generic algorithms of C++.
The Polish minority in Lithuania is autochtone, as far as I know (unlike Cyrillic in Germany). Furthermore, it's not merely a matter of not using the Polish letters - as the link that I provided says, their names get Lithuanized. (Mickiewicz > Mickevičius)

Since I assume you're Serbian (your handle + the mention of ć and Cyrillic), here's an example.

Imagine that the Hungarians in North of Serbia weren't allowed to write their name as Szabo Lajos (or Lajos Szabo) and instead they were forced to use Lajoš Sabić.
"And make sure all your money is offshore"
I started uni in 2002 and only did half a semester in C, and the other half on C++. I picked up a game dev elective for a semester, and did that in C++. Other than that, it was Java and PHP mostly, with smatterings of Lisp and Prolog for our AI classes.
Apple Patent on Touch Typing, Multitouch Upheld; Allows Ban on Most Androids
Apple manged to turn a multi-user OS into a tablet OS, why can't Microsoft do it? The actual NT kernel is supposedly hardware-agnostic.

I am guessing that power management was simply not on the radar when NT was developed. Few people had laptops, and if they did, nobody expected more than an hour or two of battery life out of them, and nobody really cared too much about power consumption on desktops and servers.

For whatever reason they have not made power management a priority since then, maybe because it was easy (and at least somewhat correct) to blame 3rd party drivers. But in the Surface devices they have the same "known target" that Apple has always had with their hardware, so they should have been able to optimize for that, if they had wanted to.
I think enterprises will rather adopt functional programming via Java.
How to make it writing comics
Because Apple have custom ACPI methods for cutting power to unused components and Windows doesn't know how to call them.
How much will a user notice that performance difference in everyday use? Maybe they are putting in more power than is needed. Also the Surface RT battery performance is just as bad and it's running ARM I think.
I don't see much future in Go either -- unless Google takes some steps to promote a certain niche for it like Android integration (which they most likely won't).

Since someone mentioned Python here.. my go-to language has always been Python lately, but large Python projects tend to often converge into a wtf mess; and there's also all kinds of performance issues... I've recently (to my shame) discovered D language which is kinda like C/C++ on steroids without all the ugliness and verbosity, with a mix of Scala/Python. Type inference, concurrency, first class functions/arrays/maps, runtime reflections, mixing, templating, compile-time evaluation, it's got it all. Kinda like Go, it also falls inbetween C++ and Python, but much closer to C++.
Hunting for neat .orgs is a little hobby of mine. I find many that I like but don't have a use for. This is a test to see if anyone else is interested in them.
> Flow control is necessary because it's a multiplexed protocol. Without your own flow control commands, flow control is applied over the entire TCP stream, not on your substreams. That doesn't do what you want. Try it: implement any kind of multiplexed protocol yourself, and you will quickly see why it is necessary.

Why should HTTP be a multiplex protocol though; that's the issue.

> Encryption: some of it might be for security, but a lot of it is also for backward compatibility. SPDY/HTTP2 is a different protocol than HTTP1, and there are a lot of broken routers out there that will break things unless you encrypt the entire connection as an SSL session.

So why not just use SSL/TLS? Why wrap it into the HTTP protocol?

> Those who do not understand SPDY are doomed to complain about it on HN, and then one day maybe reinvent it, poorly.

Those who can't see the benefits and reason for HTTP1 are doomed to make a mess of it by "improving" (or "working around") it.
Therein lies the problem: Full windows is the only kind of windows there is. Today you still cannot boot a windows server without a GUI layer. Windows is utterly monolithic.

Apple were able to rip the top layers off OSX and ship it as iOS without too much trouble, because it's unix. (They didn't start from scratch.)

Windows, not so much. MS have been trying to do it for a decade or more, and they've failed for the reasons outlined by optymizer.
The Netherlands here
What's so bad about Eric Raymond?
Why would you need "legacy apps" on a tablet?

The old Windows tablets had 4 main problems:

1) apps not optimized for touch

2) OS not optimized for touch

3) expensive hardware

4) inefficient hardware/small battery life

It seems to me that with devices like Surface Pro, the 1) and 3) problems are still ported to the new devices. I don't see legacy apps that aren't optimized for touch and on a 10" screen, as an "advantage" for Windows tablets. For all practical purposes, they are not.

Even if you want to do "work" with legacy apps when in "laptop mode" - are you sure you want to do that on a 10" screen? Because I'm telling you 10" is too small for productive work, and the keyboard is too crammed at that size.
I'm seeing around 1 to 1.5 more hours of operation on Mavericks on a 2012 Macbook Air 11". Now, that is not for web browsing but for development & debugging with Xcode, so I'm usually never reaching these marvellous 6+ hour rates, but with Mavericks it went basically from 3-4 hours to 4-6 hours, which is fantastic.

I'm pretty sure that that will only widen the gap between OSX and Windows on Laptop hardware.

The 13" Macbook Air could then theoretically reach 17 hours of operation time!
Personal Whitespace
It's not really a guess. Anyone who worked with power constrained devices would tell you it's because of polling.

If I told you the biggest culprit is component xyz, that would be a guess.
Yes you can easily just download it. But that's not exactly what the article is about. It's about why OEMs don't just download it and put it on there as such, but instead seem to get tied to Google Apps.
France summons U.S. ambassador over spying report
Step 1: stop referring to adult women as "girls"
Schmidt joined the Apple board August 29th 2006: http://www.apple.com/pr/library/2006/08/29Google-CEO-Dr-Eric...

Public iPhone announcement was January 9th 2007: http://www.apple.com/pr/library/2007/01/09Apple-Reinvents-th...

Even with a conspiracy angle, a three month head start isn't much.
Cheerz. I mean, salve :)
Are you still using weak passwords? Maybe it's time to update them
HDFS didn't have append at the time, not sure how it is now. It did have some filesystem journalling though (if I remember correctly), we just didn't know we should turn it on.
Java Type Erasure/Reification Survey
Maybe the correct URL is: https://www.surveymonkey.com/s/SCJC93R
Stuart Halloway - Narcissistic Design
Do you have a good ~/.cabal/config auto-installed with library profiling enabled?
That might explain the case of MacBook Air, but how come they don't do something similar with Surface Pro? It is their hardware, firmware and software - everything should be possible.
TLS Sessions could go a long way in helping the problems with TLS.

I'm still not sold on why a Layer 7 protocol should be doing things that a Layer 3/4 protocol should be worried about.
Parametric polymorphism is not a "modern" language feature, it has been known for many decades. When language designers opt against the inclusion of generics in the year 2007, then you can be sure that they don't do so because they are too stupid to see the benefits of "generics", but because they also consider the downsides. Language design is decision-making in hundreds of trade-off situations.
Wow! This almost exactly what I feel about html editor and why I'm working my live html/css editor (http://liveditor.com) !

Can I quote your response somewhere on my website to explain the idea of LIVEditor?!
I disagree. WP7 would've been a much better and more efficient OS for tablets, and they already built that, but in the name of keeping OS licenses for tablets at ~$100 like for notebooks, and some kind of "unification strategy" (which still hasn't been realized yet), they've also made Windows RT for tablets and WP8 out of the NT kernel for phones. But even WP8 would've be better than Windows 8 or Windows RT (which is 95 percent Windows 8 anyway).

It's actually how Apple built iOS, too. But will they put WP8 on tablets? No of course not. Instead, they'll try and push Windows RT to phones, which is the totally wrong way to do it. But just watch it happen.
It was not a punishment. The guy was getting free goodies from his powerful position somewhere in the government. He proposed to kill people. He got another position with free goodies somewhere in the government.
Some Lisp:

(defun foo (ls)
(mapcar (lambda (x) (+ (f x) 2))
ls)))

Trim unnecessary parenthesis (map is mapcar, \x -> … is lambda expr):

foo ls =
map (\x -> ((+) (f x) 2))
ls

With infix syntax

foo ls = map (\x -> f x + 2) ls

And only if you really want it:

foo = map (\x -> f x + 2)

foo = map ((+2) . f)
Show HN: I could not find any product manager specific news so I built this
Original artworks have greater value due to scarcity. It's pretty simple supply/demand - if everyone wants artwork from a certain artist, those pieces become more valuable. The same reason the value of artwork tends to spike after an artists death - no more artworks will be produced, so there is a definite cap on the amount of art.

Mayor Bloomberg's statement that he intends to target Banksy's artworks to destroy them will make them very valuable indeed, in a "last chance to see" way.
Leave your message in the air
Leave a message in the Air! It will remain there forever, visible within a range of 50 meters.

Download:
APPLE: https://itunes.apple.com/app/leaveon/id507434333?mt=8
GOOGLE: https://play.google.com/store/apps/details?id=com.unitstyle.leaveon&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS51bml0c3R5bGUubGVhdmVvbiJd
Not quite true. The Windows kernel is separated since a few years back and can be executed separately.

But probably the entire administration modules requires a GUI.
Edited frequently about 2002-2004. About Israel. At that time, Wikipedia was so young and sparsely populated that it was still possible to make great advances on such a contentious topic despite hugely different point of views.

Then the trolls came, pov pushers and various ideologues who thought that the best way to push their view on wikipedia was to make "the other sides" editors be as miserable as possible. People that don't really care about history or facts or even being right as long as their side wins.

So every edit or addition became stuck in discussions on talk pages or the mailing list. Lots of slurs about editors being anti-semites, racism etc.. Not only from trolls but also from admins. Thing is, when you want to write stuff you're at a distinct disadvantage versus those who likes to delete it. It can take you days to research a single paragraph while people who don't like you just have to spend a few minutes coming up with a reason why it's off-topic for the article, biased or something else. Then the ones with the most political clout in the Wikipedia establishment wins.

You also can't start a fresh on Wikipedia. If you edited about Israel (or Palestine for that matter) and upset some people, they will follow you around and try to find reasons why your edits suck even in totally different topic areas.

It's incredibly frustrating experience and huge amount of work. So you'll ask yourself what's the point? Unless you're a fanatic the answer is "absolutely no fucking point" so you let the extremists have their way and spend your time with more fullfilling hobbies!
So are we comparing different hardware or operating systems? Surface 2 Pro and a Macbook Air are completely different:
- different screen resolution
- one of them has touchscreen, other doesn't
- different keyboards (might matter a lot)
.. and so on. The MBA is clearly better, but that does not tell too much about whether Windows is inherently bad at power management or not.
So the argument is that MongoDB is only suitable for weekend hobby projects? Now that's quite a remarkable argument!
Interesting. Do you have any sources to share?
yeah, it's definitely more of a reference. Personally, I just skimmed through it and moved on. The purpose of a chapter like that is to give you a rough idea of what's out there. When you'll actually need something, you'll be looking it up anyway.

Just move on to the next chapter if you find it tedious. The book goes back to the original style in the subsequent chapters.
Voted for Western Europe. Afterwards I realized there was a Mediterranean Europe choice too. Oops...
"slightly more actual syntax" is where all the syntax is, though :)

"do", "let", "where", "case", "class", "instance", records, ...

There's a lot more syntax to learn than in Lisp, but it is IMO the best designed syntax of all languages I've used prior to Haskell. It is much less noisy and less painful than the C-family syntax.

I do remember it being so different was an obstacle for the first couple of weeks of learning Haskell, and even being grumpy about "why did they have to choose a syntax so foreign" at that point :)
Is PG's "imperative outside-in" advice any good?
> A tool called PRISM ... is sucking in data directly from the big Internet companies to do much the same thing that Binney warned about when he described "Stellar Wind." Rather than going to Internet companies piecemeal with search warrants and requests...

Huh? This is exactly what PRISM isn't/wasn't. It absolutely was not unfettered access to social networks or other websites, it WAS piecemeal requests by agencies.
Writing in a Dynamic Language? Naming Matters More.
I really wish Haskell syntax was extended to allow special forms ("case", "do", etc) to be ordinary function arguments and not just infix function arguments.

This would remove a significant portion of the $ signs in Haskell programs, as so many of them are just padding for "do", "case", etc.
Now this is an important point. Once you make your product, what do you need to do to retool a major part of the application? This seems like an excellent approach.

Many people in the Java world use something very simple like hsqldb, then shift to a new database when out of development.
"If AOSP were more open he wouldn't have left."
Can you substantiate that statement at all? AOSP's "openness" is determined by its licensing, which is a standard Apache 2.0 license. The issue was whether certain vendors would contribute to AOSP under that license, not whether AOSP was open enough.
California Health Care exchange cost $360 Million to build/maintain