skysight-inc/HackerNews huggingface dataset:
If the min macro would have worked, it would have allowed the two lines

min(1, 2, out);
return out;

to be condensed into one line.
I am not an iOS dev, so I apologize if the answer is too obvious, but why did Apple introduce Swift? What's wrong with Objective-C?
Agreed that this post is idealistic / naive, but if you replaced every occurrence of 'communicate' / 'communicating' in the 'your job isn't to code' post with 'politic' / 'politicking', both posts would be more real
Links to aggregators are off-topic for HN. If you think an article is interesting, by all means post it for its own sake. But we don't want HN to be a list of lists.
Yes, but probably not ones on the top of a mountain.
I tend to think that a (likely now) quarter of a billion dollars or more a year does matter. It matters less than iPhone/iPad revenue, of course... proportional to the money if not less-so (as in mattering less per dollar than iOS). But saying a quarter of a billion dollars a year in revenue doesn't matter and doesn't drive certain decision-making within any company is a bit naive.
You should be able to do some pipe fu and carry out some form of merging via bash. I mostly use it for making our output more readable or producing CSV style reports with the filtered data. Its filters are probably the biggest feature, at least in my mind.
Boy, I considered myself pretty well-versed in C++ (and pretty good at C proper) and looked at Objective C like it was Delphi or something the first time.

I wouldn't say it's a simple transition, even if it is a superset. You can get away with writing a great deal of an iOS app without doing much in C proper at all.
GizmoSneak: Rent gadgets for as low as $10 a month
I heard this game was done very badly, especially kickstarters may have been hugely disappointed. Did you play it?
Why do you even need to root a Nexus 4? It just lets you unlock / root it out of the box with no more effort than plugging in a usb cable and installing fastboot/adb.
>Its okay, I understand I'm getting downvoted for not following along with the groupthink that Apple can't do anything wrong in the GUI department

I think this "persecution complex" is more groupthink that what you accuse as groupthink. There are tons of discussions on HN, and highly voted comments, about Apple's errors in GUI work (and elsewhere). They just happen to do a better job than 80% of the developers out there.

Furturmore, I disagree with the two basic premises of your comment:

1) Native doesn't mean "let the GUI to Apple". You conflate native with "follows a platform's GUI guidelines religiously".

You can create a great native app, using Cocoa APIs et al, that still looks totally different from Apple's apps. Take for example Paper for iOS. Or Procreate. Or Elements. Or tons of stuff, really.

You don't have to follow the GUI look at all, you can even have your own widgets for stuff. Just don't try using Swing in a Mac app, or some shitty Cocoa port on a Windows app. And let the common behavior of items like dropdowns and text-entry boxes be the same (e.g with regard to keyboard shortcuts).

But for those that do want to "leave the GUI" (well, look) to Apple, it's because it saves them tons of fucking work. Redundunt work of having to implement common stuff for themselves and their app.

2) Second, I don't think "native GUI toolkits/frameworks for each platform are really designed to lock users - and developers - into the platform" makes much sense.

What DEFINES a platform is the very presence of such things (native GUIs/frameworks, etc).

Without those, what you ask amounts to OS landscape where everything is the same generic base, sort of like FreeBSD/NetBSD/OpenBSD/etc but also at the desktop level.

What's the sense in having "platforms" for desktop OSes at all, if that's the case?

If you just want one OS to rule them all, for everybody, just ask for that. It makes no sense to want to have different platforms but still be bound to not have unique APIs and frameworks for each.
This was exactly what I would suggest. If you have no commercial interest, try to make it as open as possible that the community can profit from it as a whole. HTML5+Github+Reddit Thread might result some interesting viral effects.
Been using jq for a while now. Probably since the last hn post. My biggest gripe with jq is the name and asking for help on stack overflow - the jq tag is an alias to the jquery tag. Someone with tag edit level rep should really fix that.
I guess I should read those guidelines then. Sorry!
FOILing NYC’s Taxi Trip Data
First, the YouTube comparison is far less appropriate than you suggest. The Digital Millennium Copyright Act contains a safe harbor that is designed to shield internet service providers from liability associated with copyright infringment provided that they meet certain criteria. The U.S. Court of Appeals for the Second Circuit determined that YouTube was protected by this safe harbor.

Second, and more importantly, you seem to neglect the fact that some AirBnB hosts are not just violating laws, but their leases and HOA rules. These are legally-binding contracts between private individuals.

AirBnB's most ardent supporters like to focus on zoning and hospitality laws, suggesting that they're antiquated, anti-competitive, etc. Some of these arguments are quite reasonable in my opinion, but what about private contracts? I have yet to see convincing arguments around the issue of hosts who are violating their contracts with their landlords and/or homeowners associations.

Most apartment leases have strict terms around subletting and many HOAs have restrictions around property use that would be in conflict with AirBnB-style short term rentals. Even if AirBnB doesn't have a legal obligation to help enforce these, given the number of listings that are ostensibly governed by leases and/or HOA rules, it seems implausible that AirBnB isn't aware that a good number of its hosts are breaking private contracts, potentially exposing those hosts, their neighbors and even their "guests" to a variety of risks.

Does AirBnB not have a moral obligation to address this? I'd love to see more AirBnB supporters take on this issue. At least it would be more entertaining and perhaps even more enlightening than the recurrent arguments against zoning and hospitality laws.
I'm pretty sure thats what they've always done, at least for the time they've used LLVM.
Does anyone know what makes this more compelling than static power generation over the electric grid? Gas-fired power plants are pretty efficient. Is this significantly better?
Apple is doing something different and new, comparing all available languages capable to produce fast non-stuttering GUI based applications that work smoothly even on the smartphones and demand minimal resources. And it's not a small feat by any comparison.

It's like you'd read about the first usable jet-powered car and then claim "but it's not innovative, there were jet powered planes already."
Yup. Comcast's ideal world is where they sell TV via IP for $200/month + Amazon.com access with a referral fee, and block everything else.
How To Use Logstash and Kibana To Centralize Logs
Dependency Injection library for JavaScript
I think it's a little bit of both. Yes, Haskell code is often quite terse, but the more important thing is that the type system allows abstraction to a much higher degree than in languages with weaker type systems. Abstraction always takes skill, but in Haskell usually once you come up with the abstractions, the type system allows you to (pretty easily and) safely use them.
I don't think this has anything to do with patriarchy, but rather with capitalism; "caretaker"-type jobs simply aren't generating enough short-term, individualised returns to make them worth a bigger paycheck; even if the society values these kinds of jobs, it values capitalism more, and capitalism puts almost no value on things that have no measurable profit.

This also explains why some people are concerned about the shortage of programers in general, and shortage of women programers in particular - programming is a high-paying job, so they feel they are supporting a just cause if they are encouraging people to learn programming. Noone feels the same about construction/garbagemen (male-dominated professions) or nursing/cleaning (female-dominated professions), so it can't be something to do with Patriarchy.
Hi! Didn't see your question until now.

While I haven't implemented the logging yet, I'm thinking about storing them in the JSON-format. Messages are already stored as JavaScript object, so I think this is my best option. And exporting them as .txt on demand, shouldn't be a problem either.

Thank you for the feedback
# (fixed) output to stdout:

wget -O- http://reddit.com/.json | python -mjson.tool
Chinese wearables ace exams
These are great points but I would point out that "solid revenues" and "not raking it in" are not necessarily incongruous or exclusionary. What's wrong with steady and consistent revenues? It's not going to turn you into Mark Zuckerberg but it will sustain a business, employ people usefully, and provide a steady financial base to take chances from.
gratz, you have just ruined github contributions calendar.
Dave Kanter on RWT has published a few articles going into more depth about the memory disambiguation on Merom (Core 2+) and Haswell processors: http://www.realworldtech.com/merom/7; http://www.realworldtech.com/haswell-tm-alt (in the context of how the traditional memory order buffer had to be updated to support transactional memory).

This is a really interesting area of modern OOO processor design. Every entry of the store buffer has to be probed on every load to see if there is an earlier store to that address that hasn't hit the cache yet. If you make it bigger, you can perform more stores without waiting for the cache, but you also need a bigger, more power-hungry CAM to implement the store buffer. That structure tends to be a major point of contention in trading off between increased memory parallelism and the cycle-time/power usage of the design. Structures for predicting the addresses of stores use even more power.

See this discussion of why Silvermont (the OOO Atom core in Bay Trail), avoids memory disambiguation by simply stalling on stores with unknown addresses, in order to save power: http://www.realworldtech.com/silvermont/7.

In order to avoid expensive memory disambiguation, Itanium punts on the problem entirely and uses a software-visible structure called an ALAT: http://www.realworldtech.com/poulson/6.
At some point in the execution culling has to happen. It will always happen on the GPU so adding your own CPU based culling will lead to double checking and lower performance in most cases. It only makes sense to do your own culling if your GPU doesn't do it or if you have some spatial partition system which can cull in bulk.
Pressure cooking isn't modern but is obviously enjoying a modern renaissance.

I have little issue with the methodology unless it's unreasonably expensive for unreasonable reasons (and I don't count sous vides here).

But things like molecular gastronomy are almost pure show - have you eaten many spheres or foams with your food? They're basically pointless from the perspective of taste.
10,000 Users of Ubuntu Phone
U.S. Marshals Are Selling 29,656.51306529 Bitcoins
Yes, the title could have been better, but it's the first sentence of
the article, and the original title of the article was even worse. I'll
try to submit something better on the same topic tomorrow.
I invented an herb grinder 4 years ago, and founded the V. Syndicate. V. Syndicate is heavily engaged in B2B and B2C marketing, manufacturing and licensing in the cannabis/cannabis adjacent space.

Currently, I am devoting my attention to LookSee/LookSea, a B2B mobile app.
Merely godly.
There is probably quite a lot of truth in this if the new features aren't things your product needs. I've only been doing iOS development for 3 years and while I haven't been to WWDC yet I have followed the videos. I've been bitten by things each year having gotten excited.

3 years ago: Core data ordered sets looked perfect for my use case and then proved buggy. The kicker was a year later when iCloud managed document integration came along ordered sets were not supported (and they still aren't).

2 years ago: The above iCloud support was introduced and I was probably saved by the lack of support of ordered sets and their use in my code because for the first year iCloud was very buggy and problematic (see numerous blog posts). The major iCloud announcement at WWDC the following year was basically "no new features but we've fixed the bugs and added some testing tools" and they got a big round of applause. Autolayout was introduced (I think) which again excited me but I think my experiments with it in interface builder basically failed so it didn't make it into my app.

1 year ago: iOS7 being introduced encouraged me to adopt Autolayout. At least up until the release of iOS7 and Xcode 5 there were some pretty major problems building Autolayout designs which caused me issues. Even the current release Xcode has some issues that I recently needed to hack the XML file to work around[0].

This year it remains to be seen what level of stability is reached by the release time. At least there is no need to release product with a new design like there was last year so maybe I should be waiting for a more final release before trying Swift but I'm giving it a go. I might even try to release some Swift code in my product before the final release (by creating a framework and including it from Xcode 5) but I'll have to test it well.

[0] http://blog.human-friendly.com/hacking-constraints-in-storyb...
You get to keep all your data since unlocking bootloader will wipe everything.
Though if you take this intuition too far it tends to break down, for instance IO and ST both define functor instances but it doesn't really make sense to talk about a functor over IO preserving shape.
Does the average person involved in healthcare make the same sort of claims? They may feel pride in productive work that helps people but we are continuously told that a corporation's only function is to maximize shareholder value when they're ducking out on paying taxes but adopt a moral stance when they discuss blue-sky opportunities.

It's a specific attack on a specific company that has a long history of hyperbole about its position in this world. I don't swallow things that don't taste good, mang.
The big win is having the waste heat available at the house.
This has always been the case. Small food stalls can produce great quality good cheaply. So expensive reauatrants have to work on the ephemerals or 'experience'. Its just that this kind of restaurant has grown significantly in our generation where eating out costs less because of the efficiencies of the modern world.
>The language is not "innovative" as they claim

Not innovative compared to what? Haskell? Unfinished betas like Rust? Some language 100 people use (plus 1-2 banks and a couple of universities)?

This is a language that will jump in the top ten of most used languages in a year or so, just because it's used in a hugely popular development platform. And it had to fulfil several things to achieve that.

>They could've hired some smart people from more software-oriented companies or something

Because Chris Lattner, the guy behind the infrastructure of tens of new languages and one of the most popular C/C++ compilers, is not smart enough right? Or the team that created Swift.

And which company would that be? Go, for one, is like a 1980 language compared to Swift. And C# had 14 years to evolve, and didn't have the same functionality constrains Swift has handicapped with at all.
I suspect it's a question of what you do with the waste heat. Combined Heat and Power (CHP) stations are very efficient, but you need a way to distribute heat around the neighbourhood, which is expensive. A home fuel cell could generate electricity efficiently, plus put the waste heat right where you need it for space heating or hot water.
What are the best examples of products going viral in the enterprise space?
That's what `adb backup -apk -shared -all` is for. Rootless data and app backup that can be restored after a wipe
Didn't Windwaker only have 3 dungeons or something? The two abandoned dungeons would have kept it on par with OoT and MM, without them it seems like you're being shortchanged. Sure, the Twilight Princess style went down much better with the fanboys but you can't pay too much attention to the overly vocal minority that hated Celda.

Nobody thought to blame CD-ROMs as Sony made a big success of it, but sticking with cartridges let Nintendo differentiate themselves from everyone else and ensure they were the only genuine alternative to Playstation. In general Nintendo's business strategy can be described as: a) do something different b) never bet the house. The first ensures the potential for runaway hits like the Wii or DS, while the latter ensures they can always try again next generation.
> People at his level somehow manage to have both a very diverse set of interests and to excel at all of them.

I guess it helps a lot if you are really really rich and have time to do whatever you want for days on end.

I also guess some people would say Nathan Myhrvold is rich partially because he is running a very successful extortion scheme (my mind is not made up.)
Floor – Web development with Rust
It may not be a good reason to do this, but you can condense

if (failure) {
errno = EINVAL;
return -1;
}

into

if (failure)
return (errno = EINVAL, -1);
"There's nothing important to write about today." Are you shitting me?
This is really cool. It allows me to try out/play with a lot of gadjets! I could see myself using it back when I was in University.
Opinion: You don't want a high-resolution phone
>What is the chance that there is an irrational player that spends a lot of money only to destroy bitcoin? This kind of player has to be politically motivated, not just simply irrational.

Irrational in this context (game theory) means self-defeating, but only in the confines of Bitcoin. It doesn't mean insane in the common sense.

So you can very well be "politically motivated" and irrational in this regard.
Context: rev 2.0 of the Web font standard was going to use LZMA, it had issues (IP, decoding speed, clear spec for independent implementations), so Google proposed a new format.

WOFF report on Brotli: http://www.w3.org/TR/WOFF20ER/#candidateb (and #candidatea says what they thought of LZMA)

Reference code: https://code.google.com/p/font-compression-reference/ (this aims for very slow but good compression, like their zopfli zlib encoder)

Google's presentation: https://docs.google.com/presentation/d/1aigINmRR7fw_ml8rz0rJ...

To the authors, I suspect it was a feature that it's 'just' DEFLATE with 4MB windows + more context for entropy encoding + tuned-up coding + a static dictionary + some other stuff--the WOFF spec mentions similarty to DEFLATE as a benefit, and they would like to keep it easy enough to for others to write decoders.

I kind of wonder if it was derived from something Google had been using internally. If you decode the static dictionary in the spec, it has a bunch of words and phrases from the most-used languages as you'd expect, but also some things that look like common code fragments from Web pages, which would be right down Google's alley. And that's not stuff you need for font compression in particular.
I don't think Java is a good example for OOP best practice. For exactly these reasons. I can't think of a reason this should be allowed. It screams "I'm trying to misuse class hierarchy to do specialization instead of using composition".
That's cute.. Brooklyn Tech.. well our principal was legendary... (not in a good way)
I'm pretty new to actual engineering (I will be getting a BSEE in one year), but I've worked for a couple of years at a hardware company. From what I have seen I think EE and other types of engineering are quite a bit more rigorous than Software Engineering is currently.

Also keep in mind that for firmware often times an EE will be the one doing the programming and much of the time they picked programming as another tool on the way rather than as another separate field of work.
It also eliminates loss due to the friction between moving parts.
> There are plenty of rational players who would desire the downfall of Bitcoin.

Then game theory is pretty useful model. Players are rational, after all. Thats what's game theory is about.

> Governments may not want currencies they can't control.

Makes perfect sense. But we're discussing 51% attack. Would a miner with 51% of hashrate willingly help a government(and why would he)?

Or, would a government simply try to legislate bitcoin out of existence? I would say that the latter is more likely than the former.

> And now that there's a single pool with >51% of the CPU power, the difficulty of a hostile takeover just went way, way down.

Remember, it is not a single entity. It is a pool. And, in fact, ghash.io share is down to 39%.

> all the CIA has to do is threaten a few people and say

I do agree with this point. One of the strongest points of bitcoin is decentralization. We should keep bitcoin as decentralized as possible. But I would say ghash.io having 51% is a minor obstacle.
Why is it Airbnb's job to police their listings for HOA and lease violations?

Surely that responsibility is the host's.
I didn't know that. Fantastic comment. Thank you. It got me thinking
about both how and why Moore was able to make it work with new
characters. I think one of the major reasons how/why it worked with new
characters is neatly stated on Wikipedia:

> "All but the last issue feature supplemental fictional documents that
add to the series' backstory ... Structured as a nonlinear narrative,
the story skips through space, time and plot."

http://en.wikipedia.org/wiki/Watchmen
This is perhaps doubly true for financial news and CNBC.

...make that most news now that I think about it. I can't remember the last time I saw an article on CNN that was actionable in my life in any way. Not sure why I bother to read the news most days, although it still feels like a useful thing to do.
Wow, I'm impressed with the responsiveness. It could be better, but honestly, if the other municipalities in New York state were up to at least this standard, I'd be very happy. In my experience, however, FOIL requests are often delayed, "forgotten", or ridiculously stored (on reams of paper, in ancient data formats, etc).
Some folks are working on a library for this already: https://github.com/maxpow4h/swiftz
Accountability is a tricky thing. Mostly though, it requires a certain amount of non-monetary social proof and community (on or offline familial, school, work peers, friends) to really make that feeling of accountability 'stick'. You need someone around who's like, "Hey, this thing you're doing is important to ME that you finish/do it for no other reason than we like to see you being awesome and happy, not because there's a financial reward."

Figure that out, and this could work!
Call me gobsmacked.

Since I've lived in NY, I've seen plenty of cool visualizations and stories...about where pickups happen, time of day, volume, etc., and I've periodically asked around, where does the data come from? Obviously I didn't ask well enough...because if all it took was an old-fashioned public request (and a brand new hard drive)...wow.

The trip data is interesting enough...but the fare data is really mind blowing. Everytime I get out of a cab, I wonder, "should I have tipped that much?" The (crowd-based) answer is apparently not that hard to find...
The Hourglass Sales Funnel – How to get more sign ups
Sure it is a proof of concept and is about the spreadsheet computational model not making a full fledged spreadsheet application like Microsoft excel.

I thought you meant you saw some significant barriers to a full implementation or something fundamentally different in the underlying model that was not spreadsheet like.