TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to build Apache modules in Swift

61 pointsby helge5over 8 years ago

3 comments

kinofcainover 8 years ago
With regards to being able to call a Swift function from C, stevetrewick pointed me to @_cdecl early last year[0][1][2]:<p><pre><code> @_cdecl(&quot;foobar&quot;) public func foobar() {} </code></pre> I haven&#x27;t yet used it in anger, but that will compile in Swift 3.<p>[0]<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11650628" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11650628</a><p>[1]<a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;swift&#x2F;commit&#x2F;013aad13d4245a012cfb762b7edccf92013b3609" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;swift&#x2F;commit&#x2F;013aad13d4245a012cfb76...</a><p>[2]<a href="https:&#x2F;&#x2F;swiftlang.ng.bluemix.net&#x2F;#&#x2F;repl&#x2F;d68be430e72609717f718006aa0ae137eae872ca7a0b7e8141b351770b0c9eac" rel="nofollow">https:&#x2F;&#x2F;swiftlang.ng.bluemix.net&#x2F;#&#x2F;repl&#x2F;d68be430e72609717f71...</a>
评论 #13488146 未加载
评论 #13495342 未加载
jimjagover 8 years ago
Pretty cool stuff. Too bad it&#x27;s not available under an Open Source license. That kind of severely limits who can use it and what they can use it for. :-(
评论 #13503693 未加载
Sembianceover 8 years ago
What do people still use Apache for? Hasn&#x27;t everyone moved onto Nginx?
评论 #13489265 未加载
评论 #13490285 未加载
评论 #13489870 未加载
评论 #13489053 未加载
评论 #13495462 未加载
评论 #13501379 未加载
评论 #13489375 未加载