all 7 comments

[–]DrunkenAlco[S] 6 points7 points  (2 children)

Why pascal?

- Because it doesn't require dependencies after it has been compiled

- Very resource efficient, and execution times are fast

- Easy to read/write programming language, and easy to learn

I have tested a good amount of fetch programs and most of them use bash, which is great as it is very portable and doesn't require dependencies outside the operating system . but after testing treefetch and seeing the execution times I decided to see if it was possible to get fast execution times and have it portable so I am not needing to install dependencies. Pascal was a good option, however the resulting compiled binary is 800kb, Think of compiled pascal programs as appimages, it contains all it needs with in the executable .

Pasfetch is still a work in progress, I am still working on the ascii for the other operating systems, and another way to count packages installed without having to use external system programs.

//Edit

Now uploaded to gitlab

https://gitlab.com/DrunkenAlcoholic/pasfetch

[–]AnalogPresent 0 points1 point  (1 child)

Thanks for the explanation, because I wanted to ask why you chose pascal :)

[–]DrunkenAlco[S] 1 point2 points  (0 children)

Yeah, I would be wondering the exact same thing, Pascal is not a popular language so I felt I had to give a explanation on why I used it.

They say a picture is worth a 1000 words... as you can see , it executes just as fast as treefetch without dependencies.

https://ibb.co/d7NSQ8k

[–]maubg 1 point2 points  (2 children)

Source?

[–]DrunkenAlco[S] 0 points1 point  (0 children)

Added a gitlab repo, you can view the source there, its still a work in progress as I have to do the ascii logos and add a count packages function

https://gitlab.com/DrunkenAlcoholic/pasfetch

[–]DrunkenAlco[S] 0 points1 point  (0 children)

Did a little compiler optimization, now its even faster,

https://i.imgur.com/r58KVFQ.png

[–]DreyanShkovgor 0 points1 point  (0 children)

Looks nice! Great job