From 301adf7f088e4bc75d37ea927c11fe2e4a455d8f Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 16 Jan 2026 22:29:35 +0800 Subject: Remove matrix style. --- _config.yml | 2 +- _includes/foot.html | 2 +- _layouts/post.html | 1 - _log/site-search.md | 25 +++++----- about.html | 6 ++- assets/css/main.css | 68 +++----------------------- assets/css/skeleton.css | 2 +- assets/fonts/AveriaSerif-Light.ttf | Bin 0 -> 77504 bytes assets/fonts/Nouveau_IBM.ttf | Bin 69540 -> 0 bytes assets/lic/FONTLOG.txt | 63 ++++++++++++++++++++++++ assets/lic/averia.txt | 94 ++++++++++++++++++++++++++++++++++++ assets/lic/im_fell_english_font.txt | 93 ----------------------------------- index.html | 12 +---- 13 files changed, 185 insertions(+), 183 deletions(-) create mode 100644 assets/fonts/AveriaSerif-Light.ttf delete mode 100644 assets/fonts/Nouveau_IBM.ttf create mode 100644 assets/lic/FONTLOG.txt create mode 100644 assets/lic/averia.txt delete mode 100644 assets/lic/im_fell_english_font.txt diff --git a/_config.yml b/_config.yml index 1ee0de6..cbf8b18 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,5 @@ title: ASCIIMX -author: W. D. Sadeep Madurange +author: Sadeep M. Wickramage Don permalink: pretty diff --git a/_includes/foot.html b/_includes/foot.html index a1fdfcf..6e01dc2 100644 --- a/_includes/foot.html +++ b/_includes/foot.html @@ -1,7 +1,7 @@ diff --git a/_layouts/post.html b/_layouts/post.html index dd7ef06..b6c79a4 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -12,7 +12,6 @@
{{ page.date | date_to_long_string | upcase }}

{{ content }}
-

by {{ site.author }}

diff --git a/_log/site-search.md b/_log/site-search.md index 0ff97fc..df5a7ab 100644 --- a/_log/site-search.md +++ b/_log/site-search.md @@ -9,9 +9,9 @@ Needed search for site. Requirements: matches substrings, case-insensitive, fast, secure. No JavaScript. -Architecture: browser → httpd → slowcgi → Perl CGI script. +Architecture: browser → httpd → slowcgi → Perl script. -SA index implemented with three files: corpus.bin, sa.bin, file_map.dat. Index +Implemented SA index with three files: corpus.bin, sa.bin, file_map.dat. Index built with site: ``` @@ -40,8 +40,10 @@ my @sa = 0 .. (length($corpus) - 1); Sort is the bottleneck. Time complexity: O(L⋅N log N). Fast path caps L at 64 bytes (length of a cache line) → O(N log N). -Search: Textbook range query with twin binary searches. Uses fixed-width -offsets for random access: +32-bit offsets limits index size to 4GB (243k articles). + +Search: Textbook range query with twin binary searches. Fixed-width offsets +enable random access: ``` seek($fh_sa, $mid * 4, 0); @@ -80,17 +82,18 @@ regex search: - Peak RAM (SA): 12504 KB - Peak RAM (Regex): 12804 KB - Search (SA): 0.0161 s - - Search (Regex): 0.9120 s + - Search (Regex): 0.9120 S -Security: httpd, slowcgi, Perl in base system--no dependencies. File system -permissions govern access. Runs in chroot. +Security: httpd, slowcgi, Perl are in the base system--no dependencies. File +system permissions govern access. Runs in chroot. Resource exhaustion and XSS attacks are inherent. Lock-file semaphores limit -concurrent searches. Query length (64B) and result set (20) capped. All output -is HTML-escaped to prevent XSS. +concurrent searches. Query length (64B) and result set (20) are capped. All +output is HTML-escaped to prevent XSS. + +Warranty: 10,000 / 12 → 833 years. -Warranty: 10,000 / 12 → 833 years. Next release: inverted index, year of our -Lord 2859. +Next release: inverted index; Anno Domini 2859. Commit: Navigation