Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tolmasky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
90 ms
·
721.
▲
by
tolmasky
12y ago
The hygienic C macro is broken. It breaks if your variable happens to already be named "tmp": swap(x, tmp). This would work however: #define SWAP(x, y) { \ typeof (x) x##y = x; \ x = y; \
722.
▲
by
tolmasky
12y ago
Once again, you seem strangely convinced that I am obsessed with the "status symbol aspect" despite my repeated listings of the differences in features I care about. I'll try once more: the iPhone 6 is smaller, which I consid
723.
▲
by
tolmasky
12y ago
That's the point, that it does exist. I don't regret the other iPhone 5's because they actually don't exist. Since the iPhone 6+ actually does exist, developers will start programming custom superior landscape layouts fo
724.
▲
by
tolmasky
12y ago
I found myself actually wanting the watch reading this, which caught me off guard. Really well done.
725.
▲
by
tolmasky
12y ago
Its not about not thinking for yourself, its about avoiding unnecessary choice. Our lives our filled with enough real decisions without the need for inane and subtle product ones. Most people do not need to be worrying about the voltage o
726.
▲
by
tolmasky
12y ago
Its funny because my iPhone still doesn't support the same level of interconnectedness as sailing clicker did back in the feature phone days. I remember thinking it was so cool that my music would just pause on my mac if someone call
727.
▲
by
tolmasky
12y ago
> Which is exactly what the iPad was. Everybody said it was stupid and nobody would buy it, and now the sales figures speak for themselves. You mean the declining year-over-year iPad sales figures? The tablet market is far from proven.
728.
▲
by
tolmasky
12y ago
The magazine market seems to be the worst possible use case for print, especially in the tech sector. With newspapers, at least you are only ever 1 day or maybe 1 week (sunday edition) behind the news, and its all general interest so there&
729.
▲
by
tolmasky
12y ago
The overriding feeling I had during this keynote is that every feature that I found cool in the watch I would much prefer on my phone. Cool watch app? Wait, actually that would be cooler and more usable on a big screen... Haptic feedback? A
730.
▲
by
tolmasky
12y ago
The problem has nothing to do with web devs but rather that no one wants to use a browser that spits out "error 5" on malformed HTML, which is necessarily what you're implying. The other option is to do your best with the bad
731.
▲
by
tolmasky
12y ago
Our society currently theoretically condemns murder, I don't think that government is more harshly judged for the people it kills than the citizenry is. I don't see why in a society that condemns secrecy government would be held m
732.
▲
by
tolmasky
12y ago
> "And having been transparent with his coreligionists about his loss of faith and with his ex-wife about his lost willingness to be monogamous, he gradually came to this life philosophy: Society would be better if no one had any se
733.
▲
by
tolmasky
12y ago
What is the advantage of this over exposing Cocoa Apis to Javascript (ala JSTalk)? Seems like a lot of work to get parity with basic features like gc and standard lib (not to mention putting the onus on yourself to keep updating it as new e
734.
▲
by
tolmasky
12y ago
For games , I highly recommend you check out Unity. My background is strongly ObjC/C++, but I still found that Unity was definitely the way to go when making my game (after first trying UIKit, then C++/OpenSceneGraph): 1. It is
735.
▲
by
tolmasky
12y ago
Seems infinitely more reasonable to have the default be a prompt, and to have to explicitly enable "auto calling". People making a contacts app for example would immediately notice the prompt and rectify it. Meanwhile everyone els
736.
▲
by
tolmasky
12y ago
(See above response). Sure for C++, but certainly not C. When you use a double in Objective-C its not "no longer Objective-C and actually C now". C is a part of Objective-C . Not using c-style arrays is an arbitrary limitation, a
737.
▲
by
tolmasky
12y ago
I think we agree, but let me explain. > The benchmark was how does Swift go compared to Objective-C, not C Objective-C is a strict superset of C, in other words, there's no such thing as "Objective-C, not C". This is not
738.
▲
by
tolmasky
12y ago
I can't think of a good reason other than "I don't want to compare C-style sort with Swift because I want to talk about Objective-C". This is an incredibly poor benchmark in my opinion, since if you were dealing with a t
739.
▲
by
tolmasky
12y ago
Yeah, not to mention that NSMutableArray is not necessarily an array in Objective-C, see: http://ridiculousfish.com/blog/posts/array.html . It really seems like this benchmark is comparing different framework ap
740.
▲
by
tolmasky
12y ago
This is an incredibly strange series of comments. OP simply stated that in his assessment from his use of the language (and the time it took him to learn it), that it isn't for everyone, and thus HE won't be spreading it. Notice h
741.
▲
by
tolmasky
12y ago
Its interesting that it seems Apple has really shied away from doing the bare minimum to improve things on the app store (until recently with videos and bundles). Not having the store be significant revenue is a double edged sword. I think
742.
▲
by
tolmasky
12y ago
This looks great! Can you submit a pull request? These things are coming in really fast and its way easier to take that way.
743.
▲
by
tolmasky
12y ago
I actually prefer it vs. frowning on it for the record ;)
744.
▲
by
tolmasky
12y ago
As I downloaded the economist app to listen to economist articles today, I felt the exact opposite of this article... 1. Won't be able to link to any article to friends unless the app maker decided to implement specific "share&quo
745.
▲
by
tolmasky
12y ago
There's a big difference between someone's pet project language, or even an industry leader's new language in the ether, vs. the next crowned prince of an existing ecosystem. Despite being backed by Google, regardless of how
746.
▲
by
tolmasky
12y ago
Linear-time indexing: operations like charAt require character indexing to be fast. We discussed solving this by adding a special flag to indicate all characters in the string are ASCII, so that we can still use O(1) indexing in this case.
747.
▲
by
tolmasky
12y ago
Most these operator discussions seem to go down the same way: "man you can make some really confusing operators, and I hope that doesn't become a thing... but gee writing == is so much nicer than isequalto and can't beat the
748.
▲
by
tolmasky
12y ago
The math is interesting, I'm not sure about the larger point he's trying to make however, as all the "bad" aspects of the sport actually arguably make it a better sport: 1. If you want to prove that its a waste of time
749.
▲
by
tolmasky
12y ago
So our lack of regulation will leave us susceptible to... China's notorious lack of regulation and corruption? Most of China's "advantages" in the last decades have been thanks to e.g. their ability to pay slave labor w
750.
▲
by
tolmasky
12y ago
Perhaps my consumer lifestyle strangely aligns Amazon's incentives with mine, but I'm actually really happy how they solved the problem of me buying more stuff from them. It seems that they observed very common patterns people a
More ›