|
Home Pages Pidgin Azarennya (S|N) Mac Thesaurus Reference ToDo Colino Food Local Blogs: BadIdea Rachel RIAA Cult: Clambake Infidels Fi: Arda StarTrek Trek/Wars Film: IMDB D Harry Jabootu Kyle Fun: Agony ICanHas? ObSkills Snopes Lang: ZBB Vreleksá AwkWords Omniglot Scriptorium More... Local: Maps Map MyWeb Metro (map) FC Weather GoWhere? GGWash DC Arlington Reston Beyond Bacon Pix: Deviant Places Renderosity Blender Artists Pol: Anchoress Lizards Lucianne Strata WAwakes Sci: SmallThings Darwin AntiEvo Skeptics EvC BAUT Physics /.Sci Junk Panda Pharyngula Mags AmSci NatG Space X86: OSX86 ArsTech OSNews TUAW Dev PowWeb PHP Webmaster Coding Walkers Prog: PHP JS Toolbox Unobt Compress RegExp (test) Lint SQL Cocoa Builder Dev Apple BBS Userland Faqin Science/Tech: Engadget Thunderbolts Icecap Centauri NewSci Gizmodo co2sci ClimateDebate SciDaily Nrich NatGeog Math CreatClaims GoodBadMath CurrentEvents: OrigSig Flamingo FlopAces ImmigProf ~J~ MyVRWC NewsGroper Pal2Pal Sanity Simon TCS Toldjah Blogs... Tools: Calculator AsciiArt XMLVal FunStuff: Pictures: Photobucket (eg Dubai) Videos: YouTube Subtitler InterestingThings: LibraryThing FlashCards GoogleDocs Wowio Bubbl.us Colemak Audible PodioBooks WonderfulInfo BooksOnline AboutUs.org |
Polly /
Polly"Polly" is my name for a note program I want to write using Euphoria and EDS (Euphoria Database System files). I chose Polly because I can't seem to come up with a more appropriate name that doesn't sound lame, so I went for whimsy and chose a girl's name that sounded like the name of a quiet librarian. Why EDS instead of text?Short answer: Because an EDS file can hold any kind of data (not just text), because its format is open and explorable, and because it has the structures needed for building indexes and other features I might want. EDS features
Why EDS is attractive
Drawbacks of EDS
VerdictAt the moment (2006-12-28), I am convinced that the benefits of EDS outweigh the drawbacks, particularly since the drawbacks have workarounds. Proposed featuresEach note is stored as a record (in the "notes" table), with the creation date as its key. Thus notes are naturally sorted by age. Indexes: Each note can have one or more keywords, and each keyword is a key (in the "keywords" table) to a list of note IDs (creation dates, i.e., keys to records in the "notes" table). File tables
Diversion: Why have both keyword and filter indexes?Keywords and filters seem to serve the same function. Can these be combined? The idea behind a keyword is to create an index for all notes with that keyword. Searches for multiple words will involve the intersection of two or more such indexes, which should be very fast. The idea behind a filter is to search for all notes with specific criteria [-] not only keywords but also text. A filter can search notes for patterns, not just exact string matches.ViewsIn a view, a summary of a note is the first line of text in the note.
FiltersA filter is essentially a set of search criteria. A filter is applied to produce a list of only those notes that match the search criteria. These could be stored in a "filters" table. Sharing a file with other applicationsAny EDS file can, in theory, contain Polly tables, so Polly can open any file that looks like an EDS file. CodeCreate a database fileOpen a database fileLoad the pollyNotes table from a database fileLoad a note, with keywordsSave changes to a note, including keywordsManage two or more open databasesAdd criterion to a filterApply filter (search file for notes that match the criteria)This is code. More code. |