<div dir="ltr"><div>I&#39;ve been playing with recent versions of Swift on Linux and think the whole thing is rather neat. I&#39;m most curious about how swift programs might be embeddable in C projects.</div><div><br></div><div>I found a number of documentation artifacts about calling C functions and providing Swift callbacks to C, but none about how to disable mangling of symbols or doing whatever else was necessary to allow C programs to link a Swift .o/.so.</div><div><br></div><div>Also ambiguous to me are runtime requirements, particularly in terms of background threads and memory management. Many of the target C programs I have their in mind have their own memory and concurrency management strategies, e.g. extensions for Python, Ruby, Postgres...</div><div><br></div><div>Is this something that works? Or could be made to work? Has a lot of subtle problems besides throwing &quot;convention(c)&quot; on some functions and turning off mangling?</div><div><br></div><div>Thanks for considering my questions.</div></div>