<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It would probably look a lot like the existing C version. Though I suppose it would be easier to graft asynchronous execution if it was possible to program around the GIL. I’m not sure it would have significant performance improvement over the existing C Python; Go is fast, but it’s not necessarily faster than C. I think the primary advantage in Go is that it makes it relatively trivial to write concurrent systems, and such a system can be much faster than one that is not. It’s also typically much faster building binaries since the language is designed for optimal compilation. There might be optimizations that could be gained by building the runtime to use goroutines, but that is just wild speculation on my part; I don’t really know enough about the internals to say that’s true for sure.<div class=""><br class=""></div><div class="">Maybe if it were a special version of Python that implemented a keyword to execute a function in a goroutine, and support for channels, might get you some kind of hybrid that maybe performs about the same at regular code but a big boost in asynchronous code.</div><div class=""><br class=""></div><div class="">The more I think about it, the more I wish I had infinite free time to just re-write it in Go and see what happens :P</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div class="">Chris Foresman</div><div class=""><a href="mailto:chris@chrisforesman.com" class="">chris@chrisforesman.com</a></div><div class=""><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 15, 2015, at 10:13 PM, kirby urner <<a href="mailto:kirby.urner@gmail.com" class="">kirby.urner@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">how about Python *implemented* in Go, what would that look like?</span></div></blockquote></div><br class=""></div></div></body></html>