3 ms·
We've been able to do this in C at runtime for decades. Just use strcpy. Humour aside, in 10-15 years time I expect it to be considered strange not to have hot
by spitfire 13y ago
We've been able to do this in C at runtime for decades. Just use strcpy.
Humour aside, in 10-15 years time I expect it to be considered strange not to have hot-swap features in production languages.
- jjoonathan 13y agoXCode used to be able to do this with C and ObjC code, but they dropped the feature when they moved to llvm.
- albertzeyer 13y agoThat's interesting. Why did they drop it? Because of lacking support in LLVM? Are they planning to reimplement it? Or because of stability issues?
- jjoonathan 13y agoThe immediate reason was lack of support in LLVM, but I suspect the reason why it wasn't re-implemented was that the demand wasn't enough to justify the significant amount of work that would be needed to get it working a) with LLVM and b) in the locked-down environment of iOS. The speed boost from LLVM, SSDs, the "thin" nature of iOS apps, and the bump in processor performance was, per my intuition, enough that a typical "full" build today can handily beat a typical "Fix-and-Continue" build from a few years ago (I use the term "full" to mean a build that updates one or two compilation units and re-links). It was a nifty feature and I wish they'd bring it back, but I'm pretty sure the XCode team has lower-hanging fruit (static analysis, code navigation, refactoring).