skysight-inc/HackerNews huggingface dataset:
Far more likely to be a response to Nest than Nest's acquisition.
Sometimes you don't want to shrink your clothes and are looking for like 4% moisture left or something. There are tons of options left for more granular washing/drying of clothes that haven't been explored yet.
You can actually read the language reference with a "standard browser":

https://developer.apple.com/library/prerelease/ios/documenta...
Just have a separate commit for these. Not really much different from having a commit which updates bower.json or a Gemfile.
Url changed from http://techcrunch.com/2014/06/02/apple-announces-os-x-yosemi....
I also really like Obj-C now that I am familiar with it. I think the biggest pain point with iOS apps is understanding the way to build apps within the context of the iPhone (how to structure views, and the custom things like alert sheets, etc...) particularly if you are coming from a web app background. The syntax is quite nice (although sometimes verbose) once you get used to it.
The whole function name is addNumber:withString:

so if it has to be something, it might be myobj.addNumberWithString(42, "Hello world")
Earlier betas of Mavericks were damn unstable/unusable. Apps crashing all over the place, third party apps not working because of changed APIs etc. I had to revert as well (not this beta though).
I really don't see the Golang influence at all. The multiple- return- value semantic is closer to Ruby's than to Golang's; you're returning a tuple, which happens to have natural syntax in the language.

Defining Golang features that don't exist in Swift:

- Interface types with implicit adoption (Swift takes explicit protocols from ObjC)

- Error types

- Relatedly, the "damnable use requirement" and its interaction with error types and multiple value returns (ie, the reason Golang programs in practice check errors more carefully than C programs).

- Slice types

- Type switching (though, like Golang, it does have type assertions)

- "defer"

- Of course, CSP and the "select" statement.

Swift features that don't exist in Golang:

- Generics

- Optionals

- A conventional, full-featured class-model

Of the languages you could compare Swift to, Golang seems like one of the biggest reaches. Even the syntax is different.

(I like what I've read about Swift and expect to be building things in both Golang and Swift, and often at the same time).
Ask Panelists Questions: Large Hadron Collider Physics at Columbia University
If I haven't experienced the translucent effect on iOS 7 I would be as skeptical as you are. But despite all the amateurish things Apple did with iOS (Oh the icons),the translucency is actually very tasteful and providing a satisfactory sense of depth.

The translucency on Vista is just over the top besides a heavy system resource toll.

I'll have to wait to see how the see-through side panel works in reality to give thumbs up to Yosemite though.
https://developer.apple.com/library/prerelease/ios/documenta...
Yes, any mention of Nest was conspicuously absent during the WWDC keynote.
Incidentally, Rasmus was in fact the most famous programmer from Greenland I met on that month when I met him

I hope that 6.0 does clear out some of the interchangeability between stack and needle, but that could be a huge barrier for upgrading.

A few other things on my wish list would be python-like arrays/strings, with slicing via [].slice(). Every time I do something of moderate complexity it ends up looking huge.

For example, converting snAke_case to snakeCase looks like this:

lcfirst(implode(array_map('ucfirst', explode('_', $string))))

Where I would like:

$string.explode('_').map('uc_first').implode().lcfirst()
Long tap for numbers and punctuation, ala android, is always annoying missing when using the iPad keyboard. Its so simple, plus saves so much time and mental processing hunting through the extra keyboard states.
favorite new feature by far. just awesome.
hn search for polls may help discover previous polls on OS usage. (i m on mobile, can't search effectively:-)
Here's the book for those without access to an iTunes account:

http://kristofferr.com/files/The%20Swift%20Programming%20Lan...
That does not sound like a practical solution for any language that offers a standardized toolchain or no explicit compilation as features. For those languages adding a homebrew translation step results in discarding unrelated features that the user might have wanted, and completely isolates you from intermingling your code with the rest of the language community.

Syntax is not the most important thing in a language but it's not nothing either.
Traffic integration is most probably Google's acquisition of Waze. It'll probably only get better.
It should still be possible to have the compiler interpose mechanisms between everything else and the Swift code, such that your Swift code has a section of heap all to itself. By the time you're done with that, you're halfway to having implemented your own Erlang on the Obj-C runtime. That might be worth doing, though.
> Claims like "99% of malware exist on Android" didn't prevent Apple users across the west from having their devices hijacked for ransom.

The feature used for this - remote locking of a stolen/lost phone - is present on both Android and iOS, as are weak passwords. That you're acting like that's an issue with the hardware/software involved is a good indication that you're trolling or fanboying.
Try it in a VM first. Most things will be fine, however if it were production ready it wouldn't be marked beta. Something that you need may be disabled or in flux leaving you hanging.
This article has enlightened me about opening browser new windows. Forgive me father, for I have sinned.
There's no indications yet that it won't be. I suspect a large part of it will be part of a timed-release with their next merge to LLVM. But only Apple knows for sure.
Swift looks promising and looks like a step in the right direction. However, looking at the reference and everything, I fail to find an answer to this question. Does the concept of private members (methods and variables) in Swift's object system not exist? It looks like every single variable is exposed fully without any way to prevent it from being so.
myobj.addNumber(42, withString:"Hello World")

edit: I see you removed your equals - your guess is now correct :)

for more details, see this link on apple's docs (may change)

https://developer.apple.com/library/prerelease/ios/documenta...
Any ideas on how easy it will be to slurp JSON with Swift?
Burying this thread as a dupe: https://hn.algolia.com/?q=open+office+trap#!/story/forever/0....

Once a story has had significant attention, reposts are treated as duplicates for about a year.
Droplets: A low-cost swarm robotics platform for teaching and experimentation
Any hints on how hard it is to call C libraries from within Swift? This might be a great way to quickly develop a native UI.
Swift uses a special "bridging header" to expose Objective-C code to Swift. This header will presumably be processed by the Swift compiler.

In the other direction, XCode will automatically generate an Objective-C header to expose your Swift code to Objective-C.
I'm interested to see the license under which Swift is released but it isn't mentioned anywhere. Is it under EULA or released under some open source license ?
I certainly agree with the overall idea, particularly in the context of 'just starting'.

However, I find it odd that it's seen as such a wide-ranging absolute in these comments. These days, I'm not given to thinking of number of 'machines' as a sole or even primary axis of complexity.

Like so many things, it depends.
Tetris: how we made the addictive computer game
According to one Apple developer who works on the project it will _likely_ be open sourced, though the developer says they don't know if that's true or not:

http://forums.somethingawful.com/showthread.php?threadid=363...
Hard to say, as yet. I'd expect it to be pretty open in the end, though; they're using LLVM and the Objective C runtime, both of which are open and usable on other platforms. I guess we'll see if they release the compiler.
But it will be worth it.

Bring on the Downvotes!
Reading people compare Swift to other languages is pretty hilarious. OCaml.. Haskell.. CoffeeScript.. Ruby.. Go... Kotlin... JavaScript.. Scala...
No one is saying it so I will:
It looks like damn Java 8.

It is probably not a good sign that it can be immediately compared to every modern (and not so modern) language in existence.
I don't know much about it, but I was under the impression that the new asyncio library in Py3 included callback support -- though it may not have everything you want that's in Twisted.
Yes, Apple has posted a pre-release version here:

https://developer.apple.com/library/prerelease/ios/documenta...
I always say Oh Ess Ex, but maybe I'm weird.
"appropriate behavior of these design elements is defined in the Windows Vista User Experience standard"

This isn't from 1999. Something's amiss...
Re: 3)...

Look at the bottom of the page. There's a link to the swift-lang site...from an Apple web property. That's probably more publicity than the swift-lang folks could have hoped for in a million years.
actually, the rules are the same as swift. newline is the end of a statement, multiple statements on the same line require a semicolon.
The only practical use is that we can assign functions to a variable named λ Or define a type alias to that.

On a more serious note, several languages have that, Ruby included.
So is this another MFI-type program? Am I going to need to design in some Apple-authorized chip to enable the handshake?

If it's bluetooth LE, can I expect to get decent range across the footprint of a home?
I've been using Alfred for years and I love it, but when Yosemite comes out I think I'll probably switch to Spotlight. The reason why I started using Alfred in the first place was because it was a simple and fast application launcher, and didn't have any of the complexity and bloat that Quicksilver and Launchbar had. Of course, Alfred's added power user features over the years, but I've never really had the need for many of them.
Metal – Apple’s new graphics API
Our dryer, which wasn't very expensive, has loads of options - including to what level of dryness you want clothes done to - there are about 10 levels all the way from "completely dry" to "still a bit damp" (not the terms used).
The Swift is a bird. It's unsurprising that the icons are of birds.

http://en.m.wikipedia.org/wiki/Swift
Those bars looks surprisingly close to GNOMEs' ones.
Is there an equivalent to this in Python land (I've looked but not seen anything)? It'd be great to have "pip install bower-bootstrap".
WebGL support on iOS 8 Safari
The images there all have ALT tags, so that should be okay. Images comprising only text is (obviously) more bandwidth-heavy, though, so that could be seen as a bit of a mistake. It's not a design mistake though, it's more of a "care about your users" mistake.
TL;DR: It's a Heartbleed exploit.
I wonder how 2048 will compare to tetris from a historical perspective.
(I like what I've read about Swift and expect to be building things in both Golang and Swift, and often at the same time).

How about a blog series where a developer implements something in Golang and/or Swift, then you explain how it's insecure? Then the developer tries to fix it and you explain something else that's insecure. Rinse, repeat.
which of current VMs application able to run OSX on mac hardware?
They'll have to start going by "Original Swift" or "Classic Swift" now.
The ibooks guide references a "Using Swift with Cocoa and Objective-C" document. Is that where you got your information?
There is a section in the docs about it. Similar to what you propose.
https://developer.apple.com/library/prerelease/ios/documenta...
Hmm, can't seem to change page in Chrome. In Firefox, it works slightly better but still doesn't really. I'm guessing it only works on Safari? How can they release a language and not have proper documentation that is accessible by anyone?

It'd be great if someone could get the book, convert it to PDF and post it online.
You mean like Google did for Go? Meh
I haven't seen a single mention of parallelism in the 600+ page language manual. This will probably be done through libraries.
Nothing about concurrency. Nice. STOP MAKING NEW LANGUAGES!!! This is like environment pollution and should be shunned.
> - Interface types with implicit adoption (Swift takes explicit protocols from ObjC)

Objective-C has informal protocols, and so does Swift.
> Open source is something Apple only does strategically - when they have to or it suits them - it is not part of the company's ethos.

What Fortune 500 (or even 5000) systematically open sources every piece of technology? Every company I can think of -- Yahoo, Microsoft, Google, Facebook, LinkedIn, Twitter, Amazon, LinkedIn, AOL, Craigslist, Oracle, -- selectively decides what to open source.

I'm not saying that's right or wrong, but Apple is far from alone in doing so.
Define easy?

`NSJSONSerialization` worked pretty well with iOS 5.x and above.

Not sure if you're looking direct JSON -> Object serialization.
Look into Kotlin for Android development. It's a nice-looking language.
Looks pretty cool. I think DNS, and particularly SRV records, unfortunately get overlooked as a simple tool for internal service discovery.
In particular, Obj-C = Smalltalk + C. If you subtract C from Obj-C, you'd most easily just end up with Smalltalk. But that's not the right move for mass adoption.
yes but does it notify twitter??
This was all the rage before popup blockers and tabs!
I got it from Apple's ebook store. It showed up in ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books
"dudes, or duos of dudes, who have only recently experienced the crushing realization that their laundry is now their own responsibility, forever. Paradoxically, many of these dudes start companies that make laundry the central focus of their lives." https://news.ycombinator.com/item?id=7817895
As someone who has written apps in Lua using Corona SDK. This is exciting. Syntax looks a lot like Lua/Ruby and we are not stuck using the watered down version of Lua that Corona provides.
I don't think this is very functional. First of all, the let binding inside the condition has type bool by itself (instead of the normal let-in construction). Also, it's scope permeates into the body of the if condition. The whole thing is very much like C-style NULL/Not-NULL check:

if (x = proc()) {printf("%i", x);}
But the libraries you depend on may not work nicely together, minor versions for them could create breaking bugs in your app, and a ton of other things that can go wrong. The easiest way to put your app at the real working truth (no difference btween dev, prod, etc) is to commit your vendor files.
Was this originally a TC link? Because it now points to the Apple.com page for OS X Yosemite, and some of the comments elsewhere in this thread no longer make sense. I didn't know it was possible for mods to change the link associated with a story, and now that I know I wish they wouldn't do it.
If so, for anyone with access how does the bunny_mark perform for 10k sprites? (Click to spawn.)

http://jamesaustin.github.io/turbulenz_bunnymark/dots.html
Samsung Z is the world’s first commercial Tizen phone
Why would you want to put math symbols in LaTeX using unicode? What would be the advantage over using a package like amsmath or even the native math environment? I'm genuinely curious.
I don't think syntax is really the issue. Using objc these days is clunky for reasons besides syntax.
Much of it is, though it seems Nielsen's revised this at least somewhat. Hrm...

As notahacker notes, the original text is on the Internet Archive: http://web.archive.org/web/20000302210201/http://www.useit.c...

Text: "The appropriate behavior of these design elements is defined in the Windows UI standard, the Macintosh UI standard, and the Java UI standard."

I suspect some sort of search-and-replace.
Yes, but Swift looks much cleaner thanks to ARC memory management. I wish Rust has something similar, all those sigils make it messy.
Ruby has both semicolon and newline statement termination.

> x = 1; y = 2; z = x + y
=> 3
Can text messages be both complete and correct, simultaneously?
“Apps may facilitate transmission of approved virtual currencies”
"11.17 Apps may facilitate transmission of approved virtual currencies provided that they do so in compliance with all state and federal laws for the territories in which the app functions"
Thanks for the thoughtful response, I'll link it in my blog post. My apologies for mischaracterizing Quora as running ads. http://www.quora.com/Quoras-Business-Model-and-Monetization/...
Ah yes, that will do. Thanks!
Why Google Deserves More Respect Than Apple
Yeah, but without the vanguard of the proletariat or its like, with its pesky need to oppress and slaughter those who don't get with the program, not such a problem.
So, I'll be more blunt:

For a system that is supposed to be so pragmatic and practical, it seems quite odd that there isn't a list of reasons to use it in production or a list of people using it for actual business.

I'm going to call bullshit on Plan 9 as a practical operating system without at least one of those pieces of information.

I know of at least one company (name escapes me) that uses the 9P format for practical communication and file work. I know of nobody (none) using either Inferno or Plan 9 as a system, unless you count a sad effort by /g/ or a few loons on IRC.

It's not simply enough to talk about namespaces, or simplicity of porting things, or the awesomeness of the everything-is-a-file-no-really-we-mean-it-this-time, unless you tie that back into the real world and show how it is a clear improvement over the existing tech.

That nobody has done this, and that nobody cares enough to evangelize it, means that the Plan 9 community will be nothing more than an interesting footnote until it is forgotten entirely.
I guess it depends what country you're currently in. I know some chinese developers would prefer some chinese characters because it happens to be the ones available on their keyboard.
There were multi-monitor updates in Mavericks - fixed most of my issues. What's still an issue for you?
OS<insert censor blur here>XXX
I can switch pages in both Chrome and Firefox.

ePub[1] has been posted elsewhere in this comment thread.

[1] https://news.ycombinator.com/item?id=7835994 (accidentally said PDF instead of epub before)
Green Bay, WI | Remote | Full Time
Ruby/Rails, Python/Django, AngularJS, SASS, Ansible, NodeJS
Contact me for a resume
Twitter, Github, or username[dot]com using the same username you see here.

I just finished up the front-end of a large pilot project for a fortune 500 retail company (in-store, touch-screen) using AngularJS and SASS and I'm at a good point to look for an opportunity if one arises. My preferred backend is Ruby on Rails but I've previously done multiple projects with Python and Django (also Flask.)
Wow, real dynamic linking. Xcode even let me do so when targeting 7.1. Does anyone know if you will be able to submit apps to the AppStore that use dynamic frameworks while still deploying to < iOS 8?
what so what? If you don't care about PHP, that's fine. Just don't read it, there's plenty of news about Apple Swift right here on HN. But some of us actually care or have to care...
On a related note: It's amazing how miserable many popular "mobile first" "hip/modern" sites are to actually use on a mobile data connection/latency.

The modern web may be pretty, but it feels like general usability it at a low point.
JS has exceptions though. I didn't notice that bit until just now… hmm. Could turn into lots of return-checking boilerplate. I'm still excited about this, very much so, but I think exceptions are worth keeping.
That's how interaction works with my boss. He has a couple chairs and a small bench, and I'll often go in and sit quietly until he's ready to talk. It's a good system, and without it I don't think he would be able to get anything done.
It's not only possible, it's even not uncommon for a C programmer to get a 90X improvement in speed in their own C program. If you have naive memory management, or incorrectly implemented concurrency or parallelism, you can easily lose 2 orders of magnitude speed.
Agreed that the lack of using an existing (and open-source!) language is annoying and frustrating to deal with (think of where we'd be if they invested that time and effort into improving Ruby/Python/whatever instead!). But because of the desire for compatibility with Objective-C, and Apple's general desire to call all the shots regarding their ecosystem, this move doesn't surprise me in the least.
CloudKit documentation
i registered just to say, "you're hired!"
Strangely I'm one of the people that loves the objc syntax. It's very verbose but that also makes it very simple to understand. Same goes for nested square brackets, they make it pretty simple to see how things are working. I'll definitely be trying Swift though.
Relevant: http://vimeo.com/36579366
New Statistical De-minifier and De-obfuscator for JavaScript
If the solution for a feature intended to save time and reduce hassle ends up being "write and maintain your own compiler extension" it's a bad feature. Period.

I'm not a fan of whitespace delimiting or type inferencing because while they seems like they save you time and effort, I've found that in the long run you end up spending more time debugging your indentations here or type declarations there than you would have spent just explicitly declaring them in the first place.
I think you and I are the only two people left on the planet putting two spaces after a full stop/period.
Awesome, this will be super useful for running ML experiments on the HN stories.

Previously, Max Woolf worked on this
http://minimaxir.com/2014/02/hacking-hacker-news/ via https://news.ycombinator.com/item?id=7291531
UIColor *color = [UIColor colorWithRed:0.5 green:0.0 blue:0.5 alpha:1.0];

let color = UIColor(red: 0.5, green: 0.0, blue: 0.5, alpha: 1.0)

Wow, this just brings up more questions, is the compiler removing the "colorWith" semantics or do you write your own translator?
Nice, a benchmark that tries to measure something else than JS speed (because it's not really JS that is the actual bottleneck in webpages people actually use). There's also Dromaeo but for some reason it has never gained enough mindshare.
This is a good benchmark for stressing rendering, layout, and style. We should be testing the real frameworks being used on the web and Speedometer is as good as any I have seen. Unlike IE's testdrive, Speedometer's source does not look like it was written by cherry picking examples that perform well in a specific browser.

I'm skeptical of a minor point though: synthetic events do not accurately simulate end-user responsiveness, especially when it comes to frame and event scheduling that occurs in a different process. There's a difference between simulated and real events even on the renderer side (see: http://trac.webkit.org/changeset/164871).