Two questions: 1) How good will a Mac hold up as a server? I can serve static content from the CDN I rented but CGIKit code is dynamic stuff. If a Mac and OS X holds well, I can throw Linux compatibility out of the window and use GCD as I will. 2) If a Mac does not fare well as a server, I will have to make sure my code is compatible with GNUstep which is the best Cocoa clone for Linux I have encountered so far - complete with ARC and Blocks but GCD support on GNUstep is poor (and CoreFoundation support is spotty) so I have to avoid using GCD completely and use CoreFoundation only sparsely.
> On Aug 19, 2015, at 00:18, Simone Tellini <[email protected]> wrote: > > Il giorno 18/ago/2015, alle ore 18:00, Maxthon Chan <[email protected]> ha > scritto: >> >> So the first class that is required is the main application class >> CGIApplication. Being the analogue of UIApplication it is a singleton. Is >> this the proper way of doing it? I cannot use @synchronized yet because >> there is nothing to lock on: > > if you used GCD, it would be simpler: > > + (instancetype)sharedInstance > { > static dispatch_once_t once; > static id ret; > > dispatch_once( &once, ^{ > ret = [[self alloc] init]; > } ); > > return ret; > } > > -- > Simone Tellini > http://tellini.info > > > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/max%40maxchan.info > > This email sent to [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
