[swift-evolution] Support Transducers

Jason Jobe box14 at jasonjobe.com
Fri Dec 25 11:07:49 CST 2015


Okay,

I would like to propose that Transducers be considered for addition to the Swift core.

"Transducers are a powerful and composable way to build algorithmic transformations that you can reuse in many contexts…"

There are ways to build them w/out any language modification but they are not as efficient as alternative expressions.
Here are some example implementations to give you an idea.

	https://gist.github.com/rjchatfield/14e2869b0c572696ea3c <https://gist.github.com/rjchatfield/14e2869b0c572696ea3c>
	https://github.com/mbrandonw/learn-transducers-playground/blob/master/transducers.md <https://github.com/mbrandonw/learn-transducers-playground/blob/master/transducers.md>
	https://gist.github.com/hsavit1/0791bc9a54d11608ed6d <https://gist.github.com/hsavit1/0791bc9a54d11608ed6d>


I look forward to your thoughts and comments.

-jason


Transducers are Coming — Cognitect Blog <http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming>

A presentation by Rich Hickey
https://www.youtube.com/watch?v=6mTbuzafcII <https://www.youtube.com/watch?v=6mTbuzafcII>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151225/78c7fce1/attachment.html>


More information about the swift-evolution mailing list