Re: [dev] reading an epub book with less: adventures in text processing

2024-03-11 Thread Κρακ Άουτ
On 2024-03-11 17:44 Greg Reagle  wrote:

> Now my next question is, what is the tool that does the *best* job of
> turning a PDF book into a readable text document?  Via html or
> docbook or markdown or whatever--doesn't matter.  My previous
> experience trying things out to achieve this goal is that it's just
> not worth it.  The output always winds up un-readable.

I use pdftotext from poppler-utils. It does quite good job.

This is my main pdf reader command:
```
pdftotext -layout -nopgbrk ${1@Q} - | less -MS --use-color
```




[dev] [dwm] [st] benefits (or not) of -march=x86-64-v3 and gcc optimizations

2023-02-07 Thread Κρακ Άουτ
I have compiled dwm & st using -march=x86-64-v3 (tried -march=x86-64-v2 also). 
To be honest they are both (dwm & st) fast and snappy with their default 
configuration and I cannot spot any difference when compiled with 
-march=x86-64-v3 or v2. Is there any point adding them?

Related, would -O2 or -O3 flags give any benefit?

As I mentioned, in practice I don't see any differences. I'm wondering if 
theoretically there could be some positive effect. People who know how exactly 
the code works are better suited to supply a definitive answer than me, that's 
why I'm posting here.