Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simscitizen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
simscitizen
11y ago
A version of this (called YellowSubmarine) ended up shipping in iTunes and Safari for Windows. You should be able to find a libobjc.dll, CoreFoundation.dll, etc. if you look around your filesystem.
92.
▲
by
simscitizen
11y ago
> FWIW, I think Apple can't ship any base libraries that uses Swift until they finish ABI-compatibility You hit the nail on the head here. Until the ABI is finalized, Apple can't ship dynamic libraries to developers that are wr
93.
▲
by
simscitizen
12y ago
Dynamic and compiled are not mutually exclusive. Objective-C is both a dynamic and compiled (to machine code) language that supports monkey patching. It supports extending classes with new methods and overriding existing methods in existing
94.
▲
by
simscitizen
12y ago
We wrote a tool like this in my last job to guess the width of raw images like these. First, we were dealing with iOS, and there are certain constraints on the platform which help with guessing width (bitmaps are generally 32-bit BGRA, and
95.
▲
by
simscitizen
12y ago
The man behind Objective-C these days (and for the past decade plus) is this guy: http://www.sealiesoftware.com/blog/ .
96.
▲
by
simscitizen
12y ago
The packet tracer is an interface to a tcpdump-like facility that's used for debugging. It requires you to connect the device to a Mac host. The interface is publicly documented: https://developer.apple.com/library/
97.
▲
by
simscitizen
12y ago
You can actually attach desktop Safari's Web Inspector to both Mobile Safari and webviews running on a remote iPhone and get debugging, console logging, etc. The native stuff still has much better tooling, but the situation with webvie
98.
▲
by
simscitizen
12y ago
No you wouldn't. You'd only be screwed if you used that other copy of SQLite to open the SQLite file used by CoreData to store data. Which you shouldn't be doing anyway.
99.
▲
by
simscitizen
12y ago
I was only considering the conflict between the system-provided SQLite and the private copy of SQLite in your binary, since that seemed to be what your article was about, and is the most common conflict. I hadn't actually considered th
100.
▲
by
simscitizen
12y ago
There is no problem unless you use different versions of the sqlite library to open connections to the same db file at the same time. This is because different versions of the sqlite library may use different locking strategies. But if you
101.
▲
by
simscitizen
12y ago
One that doesn't seem to be mentioned: if you want to navigate to an absolute path using the keyboard from within a Finder window or a Save dialog, use ⌘⇧G to open a little "Go to..." panel that lets you type in a path. It ha
102.
▲
by
simscitizen
12y ago
iOS and OS X ship with Accelerate.framework, which include implementations of BLAS and LAPACK: https://developer.apple.com/library/mac/documentation/Accele...
103.
▲
by
simscitizen
13y ago
The dynamic libraries in iOS aren't shipped as separate dylibs on the device. Rather, they're essentially concatenated together as part of a single file called the dyld shared cache that also lets Apple do some prebinding tricks,
104.
▲
by
simscitizen
13y ago
iTunes and other Apple software on Windows runs with code that looks pretty much exactly like that. Those code bases are compiled from Obj-C into plain C by the objc rewriter module in clang, then compiled into machine code by Visual Studio
105.
▲
by
simscitizen
13y ago
Use sqlite3_open_v2 with the SQLITE_OPEN_READONLY flag. It's been there for several releases now.
106.
▲
by
simscitizen
13y ago
One of the biggest impacts of moving to 64-bit is increased memory pressure. While all of Apple's apps and daemons are running 64-bit, most users will be actively using third party apps that are 32-bit-only for a while. This means that
107.
▲
by
simscitizen
13y ago
On OS X, use mach_absolute_time() to get a monotonic clock. A lot of APIs in OS X use the monotonic clock, e.g. CoreAnimation wraps mach_absolute_time() as CACurrentMediaTime() and uses that to calculate animation start times and delays.
108.
▲
by
simscitizen
13y ago
If you set the drawsAsynchronously or acceleratesDrawing property on a CALayer (the former is public and the latter is private), then the CGContext passed to you in -[CALayer drawsInContext:] or -[UIView drawRect:] will be GPU-accelerated i
109.
▲
by
simscitizen
13y ago
There are plenty of built-in performance/introspection tools in OS X that you can try first before resorting to a third-party solution: 1) What ports it opens: - netstat shows you what ports a program has running - DTrace shows you all sysc