Hi, I'm exploring the idea of a Ruby-FFI[1] gem for Monkey with the very focused use case of providing the minimal interface required by the Rack[2] web-application server interface, i.e. returning an array with three elements: - The HTTP response code - A Hash of headers (HTTP\1.1) - The response body
I'm not yet sure which is the most efficient and robust way to handle this via the patterns/methods FFI allows, maybe some struct-fu [3]? I'm interested to know if you are aware of any similar effort underway, and if this is a core use case you see Monkey fulfilling? [1]: https://github.com/ffi/ffi/wiki [2]: http://rack.github.io/ [3]: https://github.com/ffi/ffi/tree/master/spec/ffi Sincerely Mark -- πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα [The fox knows many things, but the hedgehog knows one big thing.] Archilochus, Greek poet (c. 680 BC – c. 645 BC) http://hedgehogshiatus.com _______________________________________________ Monkey mailing list Monkey@lists.monkey-project.com http://lists.monkey-project.com/listinfo/monkey