HN user

CrawfordJF

23 karma
Posts0
Comments5
View on HN
No posts found.

Cheers, yes that was the idea!

I looked for a while to find something similar. I'm sure it must already be implemented out there, but to answer the question in the original post about why build something, I couldn't find an easily downloadable "tool" for doing it when I looked (2019) and it was simple enough to be "fun".

A Python program to make an embeddable search engine for a static website: https://github.com/joe-crawford/Static-Site-Search

It indexes the site and generates search functionality in JavaScript (the index is just a static JSON file) that can be uploaded wherever JS/HTML/etc. files can be uploaded. I thought it might be useful for people with sites on GitHub pages or similar who don't want to use one of the major search engine company widgets.

Also my back of the envelope calculations were that the simple search index for a small–medium site won't be that big.

Many consider these powers to be essentially spent: they have not been exercised to any significant extent in a very long time, and since then various changes (e.g. the need to comply with the European Convention on Human Rights) have put them on very shaky ground. If he had refused to go along with the Serjeant at Arms, I suspect nothing would have happened because parliament is keen to avoid a small constitutional crisis over these powers, and to avoid losing even the power of threatening to actually use them. In particular the power to compel witnesses, documents and so on in a process that is entirely separate from the courts could conceivably breach the right to freedom of expression as protected by the ECHR.

I am surprised that he actually complied with this order, especially as the article says the documents were under a US court order restricting their dissemination/publication, but maybe what happened is the Serjeant at Arms appeared with these scary warnings, his lawyers didn't know quite what to do, so they just did what they were told even if they probably didn't have to.

It will be interesting to see what the US court makes of its order being broken due to the order of a foreign legislature.

-- A source on the status of these powers: https://www.bbc.co.uk/news/uk-politics-18875266

It might be true that latency can't be improved much by using an off-the-shelf FPGA but performance in parallel processing tasks can. For instance an FPGA might be cheaper than a GPU (in relative performance/$) in machine learning implementations because the FPGA architecture can allow for higher throughputs/less bottlenecks.