[Ur] interfacing with C or other languages - how to pass more complex types?

Marc Weber marco-oweber at gmx.de
Sat Nov 27 12:29:52 EST 2010


Which would be the fastest way to add missing features to ur?

I'm talking about

- parsing RSS feeds (parsing XML is general)

- OpenID (eg support curl or the like. Its required by many payment
  systems as well)

- ...

Passing primitive datatypes (strings, ints, blobs, ...) from C to urweb
is known. Is there a way to pass more complex (foreign types) such as
XML documents you can run XPATH queries on etc?

Would it be crazy to add json encoding and decoding so that you can
interface with PHP, Pytohn or Ruby easily and reuse existing code (eg
OpenID)?
Of course it somehow defeats the purpose of Ur. But having to code up
everything using C doesn't feel right to me either.

At least for prototyping it could make a big difference.

Thoughts?

Marc Weber



More information about the Ur mailing list