News for hackers. Stuff that matters.
Re:Show HN: A Pure SQL Raytracer by qeternity on Saturday August 21, 2021 @07:37PM (#28261584)
> Mainly, I'm just buggering around with the wrong tool for the job

Is there a list of these types of projects? Or a competition for the most wrong tool for a given complex job? (DAFTCON?)

I don’t know why I find these things so interesting, but I’d love to see more (the PowerPoint Turing machine comes to mind).

Re:Show HN: A Pure SQL Raytracer by chunkyks on Saturday August 21, 2021 @10:55PM (#28262472)
I don't know of anything explicitly around the wrong tool to the job, although I think it's the same itch that gets scratched by Code Golf [eg 1, stack exchange] or IOCCC [2]?

[1] https://codegolf.stackexchange.com/ [2] https://www.ioccc.org/

Re:Show HN: A Pure SQL Raytracer by tomnipotent on Sunday August 22, 2021 @01:25AM (#28263115)
I've always called them abstract squared solutions.

I worked with a programmer that inadvertently re-invented tf-idf in SQL, without being familiar with solutions in full-text indexing. He created tables mapping words to documents, kept counts, and came up with simple algorithm to rank documents based on word frequency weighted by overall word scarcity of the words across all documents.

He also re-discovered stemming during this process, different heuristics for splitting words, and other pre-processing methods that come with experience.

This would have been mid-2004, so Lucene wasn't omni-present and Apache Solr hadn't made it's debut. He was half-way to rediscovering n-grams when Solr was released and he stumbled upon it.

Re:Show HN: A Pure SQL Raytracer by jjice on Monday August 23, 2021 @11:59PM (#28284946)
Wow, very concise and impressive, nice work!
Re:Show HN: A Pure SQL Raytracer by chunkyks on Tuesday August 24, 2021 @01:05AM (#28285289)
Thank you!
Re:Show HN: A Pure SQL Raytracer by chanpatorikku on Sunday August 22, 2021 @08:51AM (#28265079)
not very sure why you want to write it in sql. But nice project.
Re:Show HN: A Pure SQL Raytracer by chunkyks on Sunday August 22, 2021 @01:25PM (#28267507)
I get my jollies using sql for stuff, mostly. Partly keeping skills sharp, partly being deliberately obtuse