[swift-dev] Starter project: Remove old mirrors

Dmitri Gribenko gribozavr at gmail.com
Sun Dec 6 04:20:48 CST 2015


Hi,

If someone is interested in working on a simple and useful starter
project, here is one.

We need to remove old mirrors from the standard library and the runtime.

The first step is very simple: all old mirrors in the standard library
and SDK overlays should be migrated to the new CustomReflectable APIs.
All mirrors that didn't have tests and are affected by this conversion
should get tests.

The dump() function needs to be rewritten to use new mirrors.

We need new runtime entry points that make sense for the new mirror
implementation.  The current entry points (the _reflect() function and
all its implementation details) directly depend on the old mirrors.
This step is slightly harder, but not doesn't require extraordinary
skills.  This part requires writing a proposal, because the runtime
API is going to be stable.

This project is tracked by https://bugs.swift.org/browse/SR-88

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-dev mailing list