YARA had me at the name
Or Yet Another RSS Feed (YARA)the self-effacing title of the application is funny and reflects the glut of RSS or web readers we have at the moment from those operated on desk tops to on-line and to mobile communications devices.
But what is YARA?
(i) The adjectives and nouns taken from the website include parser, fast, speed, and embeddable RSS aggreagator. (ii) YARA is written in C++ and (iii) it exposes a very simple API in C.
Notice the dominance of speed in the descriptives? YARA is designed to be fast as possible while being maintainable and usable:
- Yara uses the Expat XML parser, which is the fastest XML parser I know.
Though Expat is neither a SAX nor a DOM parser, it suits its purpose exactly and is the de-facto standard for fast XML parsing.
- Yara uses templates for rendering, in which it replaces tags with the contents of what it found in the RSS stream.
To render an RSS stream, it searches in the template for tags that look like this: $$__tagname__$$. It then uses a perfect hash, generated by GNU gperf, to look up the function to use to insert whatever the tag corresponds to, and inserts whatever needs inserting.
This means that this RSS renderer doesn’t necessarily render RSS into HTML: you could, if you wanted, use it to generate C code that statically contains the RSS feed. {Source]
Parsing in YARA is done by:
(I) RSS stream is parsed
(II) The template is then used to create a header, a footer, and each item found in the river of information.
The template therefore consists of a template text for all three.
Yara will not download the river of information or stream.
Yara also comes a stand-alone RSS Reader created using Turbo C++ , an example application. The parser/renderer DLL is loaded dynamically.
Whew! Was that too tehcnical for most of you. Well, It was for me.
YARA was developed by Ronald Landheer-Cieslak and he can be contacted here: blytkerchan [at] users [dot] sourceforge [dot] net. And the YARA zip file us here.
Related Stories
POSTED IN: RSS Readers, RSS Tools
0 opinions for YARA had me at the name
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: