Update Blog “2026-11-17-just-start-making-shit”

This commit is contained in:
2026-11-18 10:55:40 +00:00
parent 74242cd3e0
commit 9441983135

View File

@@ -15,8 +15,36 @@ Needless to say, I reverted the commit at hand immediately and pushed the new an
The architecture used for Omnisearch is almost as simple as one can get. To begin, everything on the backend is hard-coded in C, including search engine endpoints and filtering rules. That leads to a simple url change requiring a recompile at the very least, and completely rewriting the associated functions because of a UI change at worst. The filtering rules (as far as I can tell) are regex, relying heavily on grep and C's built in `.contains()` methods for strings, which can get extremely inefficient when dealing with massive hunks of text, like, oh, I don't know, entire webpages? I can't fault the frontend, it's just a http server, although custom implemented by the same developer with "less than ideal" efficiency, but if you wanted to add a new search engine, rather than being a config change, it's a whole afternoon of suckless programming. The architecture used for Omnisearch is almost as simple as one can get. To begin, everything on the backend is hard-coded in C, including search engine endpoints and filtering rules. That leads to a simple url change requiring a recompile at the very least, and completely rewriting the associated functions because of a UI change at worst. The filtering rules (as far as I can tell) are regex, relying heavily on grep and C's built in `.contains()` methods for strings, which can get extremely inefficient when dealing with massive hunks of text, like, oh, I don't know, entire webpages? I can't fault the frontend, it's just a http server, although custom implemented by the same developer with "less than ideal" efficiency, but if you wanted to add a new search engine, rather than being a config change, it's a whole afternoon of suckless programming.
It's rather obvious that it was written in C so that the dev could put it on the readme. C isn't optimised for handling html, searching through strings, or hosting websites. Great choice. On top of the language choice, some of the code in the repo hasn't changed since the initial commit, which has led to the entire system slowing down with age and implementation debt (_is that what it's called?? idk_). Finally, with the addition of specialised capchas, and anubis in particular, the average search takes a few seconds to fetch and render, leading to a sluggish experience. But we're still before I fixed everything, remember? I should probably get working on that. It's rather obvious that it was written in C so that the dev could put it on the readme. C isn't optimised for handling html, searching through strings, or hosting websites. Great choice. On top of the language, some of the code in the repo hasn't changed since the initial commit, which has led to the entire system slowing down with age and implementation debt (_is that what it's called?? idk_). Finally, with the addition of specialised capchas, and anubis in particular, the average search takes a few seconds to fetch and render, leading to a sluggish experience. But we're still before I fixed everything, remember? I should probably get working on that.
### Why AI is good sometimes ### Why AI is good sometimes
I don't know how anubis works. I don't know how capchas and cookies work. I do, however, know how to read through chunks of code and get a rough idea whether it'll do what it's supposed to. So, instead of spending a few hours I don't know how anubis works. I don't know how capchas and cookies work. I do, however, know how to read through chunks of code and get a rough idea whether it'll do what it's supposed to. So, instead of spending a few hours deciphering cryptic stack overflow posts and attempting to bypass closed source bot protection methods, I just asked Opencode. Within 25 minutes, I had a fully functional anubis solver, cookie caching system, and a hard bypass for the duckduckgo lite capcha screen. On top of that, with one additional prompt, it made the entire fetch phase multithreaded, which sped up the page load by almost double. For literally a one shot, it was pretty impressive.
If you've ever heard anyone talk about "ethical AI usage", this is probably what they mean. Getting AI to take care of some niche issue that's never existed before, or to employ technologies that they have no konwledge of, so that the project doesn't run to a halt at the slightest roadblock. The core ideology that seperates vibe coded slop from actual good code is usually human understanding of the codebase as a whole. Omnisearch is an established project with hundreds of human made commits, leading to high levels of consistency across the board, meaning that if there's a blackbox function called `solve_anubis()` somewhere, it doesn't prevent the rest of the app from being properly developed. Of course, Omnisearch isn't my project, and my mirror is basically considered a hard fork, but this idea can be applied to basically anything. It's ethical if the AI:human code ratio is 1:9, or greater.
But, even though Omnisearch works fine again, I'm not happy. It's still bloated, and written in C for no reason (_we're in 2026, there's no reason to be messing with CFLAGS anymore_), and now there's AI uncertainty sprinkled in amongst the awful hard coding of values. There's a file called `scraping.c`, that's over 800 lines long and has 5 different functions calling 5 different instantiated curl classes for 5 different search engines, it's almost as if it were designed to make sure that only the head developer understood it fully. With some thought, the whole project could be compressed down into easily a quarter of its current size, just by universalizing the methods that are used by different search engines. So, I put some thought into it.
## Putting some thought into it
I'm now working on a replacement for Omnisearch, because Omnisearch sucks. Of course, I'm going to write it in rust, because rust is the best language ever made no matter what Aspen says, and package it primarily for nix, because it's the best package manager, no matter what the lead dev of Omnisearch thinks. The structure is going to be fully universal and modular, making the actual search engine implementation completely separate from the underlying code. Everything will be lua based, of course, with the program only taking in an array of functions that correspond to all the search engines that you want to index. Within lua, there'll be an api exposed that will allow manipulation of html objects, or just raw text through regex, as well as being able to hook up whatever anubis solvers or capcha bypassers that you could want. Finally, at the end, you would return an array of "search result" structs, which are passed to the template builder on the frontend and served to the user. That could lead to a config file that looks something like this:
```lua
local function duck_duck_go(term)
local result = vs.request("https://lite.duckduckgo.com/lite?q="..term)
if result.status ~= 200 then
-- Solve for capcha or request something different
end
local body = vs.objectify(result.body) -- Decodes into a dom tree
local titles = body.select("tbody tr rd a.result-link") -- Uses css selectors
for title in ipairs(titles) do
-- Manipulate, format, then add to final array
end
return finalArray; -- of search results
end
```
Considering I haven't implemented anything yet, this is probably only a guideline of what to expect.