skysight-inc/HackerNews huggingface dataset:
> Only variables used in the closure are allocated into the closure

I'm not sure that's true. Look at the following code:

var x = 123;

var f = function(xname) {
eval('console.log('+xname+');');
}

f('x');

It's a dynamically named variable. Clearly, f() has access to the entire context that surrounds it, not just the objects explicitly used in the function code. In this example, the compiler could not possibly have known I was going to access x.

This means in Javascript, as well as in Ruby, when you hand a closure to my code, I can access the entire environment of that closure.

Contrast that with Lua, for example, where the compiler does indeed check whether an outer variable is being used and then it imports that variable from the context only.

PHP does it most explicitly, forcing the developer to declare what outer objects they want to have available within the function.
Thanks for the link!

Apple sent out at least 1 update to TouchID as part of a regular iOS update. In my view, from a few miles up, the fact that you can update TouchID doesn't install a lot of confidence in this tech. Apple can change its workings, and it can also interface with TouchID from outside in order to update it.

Would you care to elaborate why you're still sure that Apple (or the NSA) couldn't change TouchID to send my fingerprints to an outside server?
I always figured trib.al and bit.ly and their ilk offered different analytics or whatever and that that's why some URLs would bounce through both. I see this especially in major journalism outlets.
From another thread:

I’m posting on a new account as I still want the company to look good in public.

Why?
For months i have been in transition to DuckDuckGo. The only missing bit was native search in safari for iOS and OSX. This definitely seal the deal. And is good for all the industry that a viable second choice exist to bring balance to the force , and bring humility to google monopoly in search.
When I was in prison, we had open plan shitting. It was very morale-boosting synergy.
If I can get it to 500 megabits throughput, I'd be happy. I'm more confident now than when I started posting in this thread.
What you're saying is perhaps ideal. The unfortunate reality, however, is that we really aren't seeing the "once Rust is mature" part actually happening.

There is still a large amount of change happening to the language and to the standard libraries. Some of this change has been of a here-and-there nature, where it's like they're trying to find an optimal or perfect solution that most likely does not exist.

C++11 (and C++14) may not offer the level of safety that Rust potentially could, but unlike Rust it's usable today, and using modern techniques does a reasonable job of avoiding dangerous situations.

It's been claimed that Rust will have stabilized and 1.0 will be released before the end of the year. Given that we're already into June, this becomes more and more doubtful each day. Now Rust is facing even more competition with this announcement of Swift. The longer we're forced to wait for a stable, seriously-usable release of Rust, the less viable Rust will become.
Question: who owns the data stored with iCloud? Do developers still get to own their data, or is it going to be subject to sniffing from Apple?
Swift reuses the Objective-C runtime, so it had to be compatible in terms of memory management.
The copy I have is only 366 pages, but it's 'converted' from the ebook so I'm not sure if that's a factor. A lot of the pages are dedicated to an examination of the grammar that's probably not relevant for a language overview and the rest is really readable and easily skimmed for interesting details. It's broken up with simple and clear examples every few paragraphs as well.

Definitely take a look through it. You definitely don't need to be a language nerd to understand it.
Yes, linux geeks can school Apple on systems engineering when they can deliver laptops with a better battery life than Macs get. As for this latest release, what, adding a new systems programming language and a whole new graphics API isn't enough?

At least my Mac recognizes and uses a second monitor when I plug it in, unlike the bloody Fedora 19 box that I use at work. And don't get me started on that second graphics card that the system can't figure out how to use! And the wifi Just Works(tm), unlike the Ubuntu laptop that I had before that.
It's cool if you actually replace the switches. If you don't, now you have two switches for one control, and they don't know about each other. If you do something crazy like switch off the wall switch, your fancy home automation is dead.
> doesn't Firefox make millions each year with Google referrals?

Mozilla grossed 311M for FY2012, almost all of which came from their deal with google: https://static.mozilla.com/moco/en-US/pdf/Mozilla_Audited_Fi...
Meanwhile, 10.10 will track more keystrokes and gather more personal data than ever. Doesn't have anything to do with privacy. More to do with being at war with Google.
By far, Twitter's t.co is most often the dead hop. So, for Twitter users it is indeed an effect of the practice.
I'm no SEO guru, but isn't the recommended behavior to create a URL that matches the title of the blog post? I've seen these "post title" URLs with increasing frequency over the past few years.
FWIW, the snark in my comment wasn't directed at the research but at the reporting ("faster than any human!").
The big graphical demo was Unreal Engine 4 on iPad...
Is there an official way to write plugins and its documentation yet? I'd like to write some stuff for JS work using EnyoJS...
What precedent would one need?

You ask the government for a license to incorporate. You pay some money to facilitate this incorporation.

This is no different than a drivers license. The gov't can say yea or nay to that under criterion they decide.
You can see the pattern matching inspiration was from Clojure:
https://twitter.com/jckarter/status/473557476302802944

https://twitter.com/jasonyeojs/status/473562520930635776
My wish list is per project spaces, such that:

1) a copy of mail, tasks, text editor/IDE, preview etc. Can all be opened that are specific to a project/space, say.

2) Multiple copies of apps filtered by their project

3) mail only shows emails about/from/in association with the current project

4) preview/photoshop shows project assets, these are shared in the ether via iCloud, you can see designers working on things in realtime

5) I switch spaces and they are all saved/restorable after reboot

6) developer Apis for this!

Wishful thinking I guess :-)
How do you enable dark mode? I'm on 10.10 and I can't find it anywhere.
Will the syncing of Mac and iOS have a significant impact on the battery life of the iPhone? I noticed MightyText takes up significant energy on my Nexus 5.
Congrats to Brad and the team - well deserved for bringing a beautiful UX and simplified system to retargeting on social (first anyways)
I stand by my statement. Your feeble attempts and downvoting me into light grey can't silence me! Stupendous man will save the day again! :-P
If you flip a coin a thousand times and it always comes up heads, it's fairly safe to assume it will come up heads the thousandth and one time. I know we should be skeptical at everything, but I'm going to assume the journal and authors aren't completely incompetent to make a mistake like that.

Of course there is prior probability to factor in, and it doesn't seem very likely a priori that this would be the case. So the effect size would have to be fairly large or have a large number of examples to convince me of this.
It's starting to remind me of the book 'The Circle" by Dave Eggers[1]. Where a company ("The Cirlce") eventually, essentially, takes over the control of all information in the world.

It wasn't my favorite book, although I very much respected my Mom for getting it for me. It's an easy read. And it makes you realize what could potentially happen I suppose. It's like 1984 written in 2010. And the ending...well I won't spoil it. Probably worth the read for the reminder. And it is very engaging. A lot of my complaints are almost metaphysical in nature. In that it is very hard to describe definitively what my issue was.

[1] http://www.amazon.com/The-Circle-Dave-Eggers/dp/0385351399
This is fantastic news for DuckDuckGo and for Apple. A nice solid search engine coupled with a nice new redesign. If I were Google I would be a little bit worried DuckDuckGo are steadily stealing users. They converted me.
... AllJoyn, anyone?

https://www.alljoyn.org/
Bill Lee: "Apple now allows BTC apps"
Apple's Swift Language Pattern Matching inspired by Clojure's core.match
I think your best bet would be going with something like node.js' util.inherits, a standalone version for the browser can be found here:

https://github.com/isaacs/inherits
> you don’t even need to type semi-colons.

But you still need to type curly braces. Which are utterly redundant with indentation, pain to type, brainless task that languages should take care of, and a source of bugs.
It's my default search engine... but I find myself going to Google for about 75% of searches -- at least for my searches, they just aren't good enough yet.
First thing i looked was a "pricing" page to send to my company bean counter!

i want that installed internally so we can send live code instead of boring pastebin links
Because the top stories were about the biggest Apple event of the year as they were announced? I don't think this says that much
I'm fairly sure I've seen ways to interface the Turnigy 9X with phones via a headphone jack.
http://fsharp.org/use/linux/ feel free to give F# a try. Apple hardware ( or MSFT tax) not required.
4 gigs of RAM isn't much. On modern OSX, you'll overflow that quite frequently. Using your SSD as virtual memory isn't good for its longevity.
I saw a lot of people mention ADT in relation to Swift but I haven't found examples in the documentation book I downloaded from Apple. Would you be kind enough to provide the example you saw?
EDIT: My bad, page 40 in the section about protocols (unless I'm missing something).
I'd be interested to know what they don't like about Python 3.
It never shows types of return values, unless it is undefined. The reason is that the method may be overridden with a method with other return type.
Just glanced thru the Swift book in about 3 hours. Conclusion: all your programming language are belong to Swift, mostly stolen good ideas, some innovations, a few gripes.

I can say Swift takes inspiration and improves on at least these languages:

C:

typealias

struct

control structures

labeled statements AKA gotos

varargs

C++:

default arguments

class instance construction syntax

// comment

superclass, implementing protocol declaration syntax

semi-virtual class init, deinit

Go:

No parentheses around the condition part of control statements

Unicode identifiers

shorthand for signed and unsigned integer types U?Int(8|16|32|64)

C#:

in-out params

properties

subscript access of class member values

Objective-C:

ARC

protocols

extensions

param names as method names

willSet/didSet

nil?

Java:

enum

@final

super keyword

override method keyword

Scala:

Local type-inference, blend of an ML flavored FP with OOP without the noise and believe it or not, even more powerful in specifying generic type constraints. No stupid JVM type erasures either so you can actually create an instance of a generic type, just like C++ templates.

Self:

self

Python:

for i in enumerate(seq)

for key, value in dictionary

Type(value) explicit type conversion syntax

No public/private/protected class member access modifier bullshit

Array literals, dictionary is also like Python but use [] instead of {}

Ruby:

0..100, 100_000

Lisp:

closures

Scheme, Coffeescript:

? optional type modifier

Bash:

$0, $1... inside short callback closures

Innovations

---------------

break-less switch, optional fall-thru, comma as multiple case, case can be any value of any type, condition or a type constraint for pattern matching, supports method call shorthand

generic type constraint queries

overflow operators

@prefix, @postfix, @infix, @assignment modifiers for operator overloading
Trailing closure as partial function application

Gripes

------

Seems like array[4..6] is even more useless than Javascript's Array#slice, and a far cry from Python's slices.

No set literals and list/set/dict comprehension.

Nothing for concurrency???? No yield, no generators, no channels, not even the synchronized keyword.

There's no decorator or annotations, and Swift isn't Objective-C, what's with the odd-ball @ modifiers?

I don't see namespaces as mentioned in the WWDC slides, and goto is definitely still here so you might just write another gotofail.

Looks like Swift is Apple's answer to Go, Rust, Scala, Java, PyObjC/RubyMotion, Unity, Xamarin and all these HTML5 + JS/Phonegap people. I'll definitely pay attention to Swift. If the performance results hold up, Swift + iOS8 will definitely leave Android's ancient Java 5 crap way out in the dust.

https://itunes.apple.com/us/book/swift-programming-language/...
OP here. This is the first time I've been excited about changes to the app store as a dev. Who knows how they will actually turn out, but I think they are all positive.
https://famo.us
In your example, X is still in scope when f('x') is called. It doesn't require closure to work.
Hey! Thanks for letting me know! I will fix this right away! If you wish to see a sample, you can sign in with sample credentials below:

user: kevin@gmail.com
password: 123456
Outside of your circle of close friends, there's not really a shortage of liberal economists even if the field might skew somewhat conservative (likewise, though you may have no self-identifying-as-liberal close friends planning to go into politics/teaching, neither of those fields is particularly short of liberals, and same with lawyers).

> Honestly, we need more political diversity in all fields.

Why? Particularly, why shouldn't what people value have a very real relationship to what they choose to do with their life?

> we need more liberals in economics and more conservatives in the social sciences.

Economics is a social science. And, frankly, I think we need more scientists in the social sciences (incl. economics) and fewer ideologues of any stripe (not fewer people that have an ideology, that would be nonsense, but fewer that pursue the field with an axe to grind for an ideology.)

> Liberals have made great headway in areas like same-sex marriage, and that's a good thing. Conservatives can take a lot of credit for building strong economic foundations

I think that the case for the former belonging to "liberals" is a lot stronger than the case for that latter belonging to "conservatives".

> But by having such a stark difference between the two styles of thinking and letting that carry over to academia and career choices it only inhibits both ideologies' advancements.

What's the alternative? Ideological quotas in professions? How do you enforce it?
I've done both, they were fun projects :)

The only thing that got in the way was the difficulty using the code away from OS X or iOS, and the fact that a lot of libraries for things like database access (especially those intended for iOS) were never intended to be used in a long running process. I found slow (3 week) memory leaks that someone writing an iOS app would never have hit.
Unfortunately the software API isn't very informative. As you'd expect, it's a pretty high level model, with a home object, that contains rooms, that contain "accessories", that have actions. So it's sufficient to write a home control app, but gives no info on how iOS interfaces with the devices themselves.
I think everybody can see their own favorite language in it... and that's a good thing.

For me it looks like Scala + a sprinkle of C++14 :)
I agree with this. For programming issues I normally use !g to search Google. I suspect Google is better for programming queries because they did a lot of indexing of newsgroups, blogs, and StackOverflow. But for everyday queries, DDG works fine (and I prefer it to Google as I don't usually want to see Google Reviews/Maps/Plus links in the top 50% of the screen area... and I don't need to see results for alternate queries on the bottom 50%).
And to come to the defense of designers: it's very often the clients who are insisting on idiotic features, yes, I know. Still doesn't get around the issue that it's design that's the problem.
Air Strike In Support of Ukrainian Forces Under Attack By Terrrorists In Lugansk
Ukraine War 2014 | Air Strike In Support of Ukrainian Forces Under Attack By Terrrorists In Lugansk
Wait, you made your release date and didn't tell me?! I've missed the party!
Yes, but you need Windows and a Windows PC to run them. I guess you could get Linux for C# and F# but you still need to buy a PC.
That's for desktop Safari.
Well, windows vista had this with Aero
I think it's reasonable to assume if an entity had fucked up once, they are at least capable of doing so again.
Riot Games - Full-time in Los Angeles / St. Louis / Points elsewhere globally

Riot Games, developer and publisher of League of Legends, is looking for highly accomplished engineers passionate about the technology that excites and engages millions of players globally. Our opportunities run the gamut of Game Development, Big Data, eSports, Merchandise, Live Service Development and Corporate IT Systems. With 27 million players daily, we face cutting edge technical challenges at scale. Consequently, we’re an engineering organization that values “T-shaped” engineers. We are expected to make pragmatic decisions about the best tool for the job, thus a broad exposure to many languages and tools is vital.

Excited to improve the game engine behind today’s largest PC game? Interested in crafting the future of infrastructure as a service? Curious about the role of open source in the video game industry? Thrilled to participate in and cultivate a global engineering organization? We are. If this sounds like you, check out the careers section on the Riot Games website.

http://boards.greenhouse.io/riotgames/jobs/10838#.U40FOZRdWH...

Ok, hacker news friends, corporate speak aside, League of Legends offers a pretty amazing and rare intersection of core video gaming and cutting edge, large scale, interesting tech problems. For those of us engineers who are gamers in our heart, this is a chance to work on something you’re truly passionate about. I feel quite lucky to work at Riot and am excited to have other other gamers join us in building games by players and for players. If you have any questions, feel free to hit me up directly on Twitter or LinkedIn.

https://twitter.com/jaaronfarr
https://www.linkedin.com/in/jaaronfarr
Yes, I do agree that the situation is improving across the board.

But as an industry, we need practical solutions that are available now, even if somewhat flawed. We need languages we can use today, and know that the code we write today will still compile fine next week and next year, if not a decade or more from now.

Modern C++ is getting pretty good at offering this, while offering far a greater degree of safety. Go isn't bad, either. Scala has its drawbacks, but it's often a reasonable option, too. The key thing to remember is that all of these languages have offered developers a stable target, and they are seriously usable in the present.

Given the announcement of Swift, and given that Apple will very likely deliver on it by the fall, we very well could see it becoming a major player during 2015.

The safety benefits that Rust could theoretically or potentially offer are virtually useless to huge swaths of the industry as long as the predictability of a stable release just isn't there. The longer this wait goes on, the better the competition becomes, and the less relevant Rust will unfortunately become in the long term.
I used to be in prison. I still am, but I used to be as well.
Marin Software Buys Social Retargeting Co. Perfect Audience For $23M
I'm not sure how much Python you've written but I personally have never had to debug problems with whitespace. (I'm had to debug plenty of problems in other languages where the whitespace implied one thing but the curly braces said another).
It's really not even comparable to ideone.com. You get a full VM provisioned for your snippet/project and you choose what stack you want
> Do you have a legal precedent to point to?

For revoking corporate charter? Every jurisdiction which grants them also already reserves the power to revoke them. E.g., Delaware: http://codes.lp.findlaw.com/decode/8/1/X/284
Tele-tech and mobile revolutionising global healthcare
I think there is reason to doubt that TouchID stores your fingerprint as a hash. Let me elaborate:

Even after the initial priming phase, TouchID continues to learn and adapt to your fingerprints. So during priming, you could always place your finger flat on the sensor, and then after that, during usage, you can continuously use different parts of your finger, and if at least a part of your finger overlaps with a previous image of your finger, TouchID unlocks the device and - crucially - it continues to learn those new angles of your finger.

This indicates that TouchID internally aggregates an image of your fingerprint during actual usage. Now to merge those images together, you have to compare previous images with the new image, to find a common section. And you can't do that if you have only got a hash of the previous image.

I think therefore just by looking at its operation from outside, we can infer TouchID stores a fingerprint in a way that it can reproduce the fingerprint itself.
Well, I thought it was funny and I enjoyed reading through the list. You're absolutely right that it provides an insight into the past language efforts and the trade-offs that they inevitably encounter.

I hope you remember that when someone tells you something like 'it doesn't work here' that it's an opinion rather than a fact, regardless of how they phrase it.

The USENET era, while sometimes dated, was probably one of times in 'geek' history where we were the closest to one another. The internet was interpersonal, and i'm glad that someone is still trying to propagate the humor and spirit from that time.
Or "I'm going to bed early, turn off all the lights". Or, "I'm having a party outdoors, turn on all the exterior lights." Or, "I'm done listening to music, turn off the audio." There are lots of use cases.

But, all of this nifty tech does rely on tapping in to home infrastructure (switches and devices that understand the protocol), so it's a long haul.

These devices are wired in and have 50-year design lives. The life of these protocols seems to be significantly less than 50 years, which is a pretty big mismatch.

Yes, I'm still sore about the ~10 useless X-10 switches I put in in the 2000s. ;-)
Why would method inlining be incompatible with dynamic dispatch?
I presume you're on iOS8 beta? Presumably when iOS8 goes gold in the fall, the DDG landing page for mobile users will be greatly improved.

This is a great partnership, as both companies, unlike Google, seem to see privacy as a major feature.
This really is an awesome site, and I was really impressed when I first discovered it. It's like having a nitrous.io box provisioned on the spot in whatever stack you want, for something as simple as a 3 line snippet of code to a full on project (although probably not the best place for that). I hope more people start using it and contributing to the examples, it's really nice to be able to walk through full-stack snippets
Apple, please allow us to extend the diversity of Xcode 6 to other languages
Cool experiment: Non-Newtonian fluids
Can you give me more specifics as to what's being captured?