29 Jan 2003 lkcl   » (Master)

the "Custom" project i'm working on auto-generates virtually all of its HTML.

i'm looking at a way to separate the HTML formatting from the code itself, and found that there's a python program to do exactly that - with templates (apt-get install python-htmltmpl).

so i naively thought it best to start by outputting some of the auto-generated html code from a couple of example pages, and to go from there.

unfortunately, the functions used to generate tables, forms etc. are vastly more compact than the squiggly looking html output they create.

i've gone sufficiently far down the function route - display_form(), display_table(), display_header(), display_footer() etc. that it's going to be impossible to do entire HTML pages.

so i'm going to do specific templates: a display_form.tmpl that display_form() uses; a display_table.tmpl that display_table uses, etc.

and hope like hell it all hangs together.

simd

if you like SIMD, take a look at aspex.net - theirs is a parallel processor on a chip with - get this: four thousand and ninety six processors.

those processors run at 250 Mhz, can do two-bit arithmetic that can be cascaded to emulate N-bit arithmetic of ANY length and i mean literally ANY length.

we're talking 4096 x 250 million bit-operations per second, here. that's one terabit-ops per second, out of a $USD 150 device.

... but it takes SIMD to the extreme: you REALLY have to think about your algorithm designs in a different light.

using the c++ template array classes really helps out there, as does making extensive use of python's functional programming operatives such as map and filter.

radical.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!