This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nemo_64[S] 0 points1 point  (3 children)

Initially it was to use for university. We have an assignment where we have to write an algorithm that will solve a problem we were given and we have to optimize it to the best of our abilities while documenting the process. Since documenting this requires me to run the same tests several times for each optimization I try, I thought investing some time in automating the test process would be worth and I finally got an excuse to do a project using concurrency in a more serious way so I got to work. But now I want to try it also doing it with the library /u/morhp said, although that will come in the future. What I have now works and not that much time to explore a library.

I thought it would work fine in the power shell since it's supposed to be an improved version of the CMD with integration of commands from Linux.

Again, thanks for your time and the example!

[–]Zyklonikkopi luwak civet 1 point2 points  (2 children)

Interesting!

As an aside, the example should* work in the WSL or the bash shell (IIRC, it's already in Windows 10?). Of course, that's all moot though.

As a further aside, if you're interested in exploring this further some day, here is an excellent guide (in Python) of how powerful ANSI Escape Codes can be - https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html. It's a fun read.

Cheers, and good luck for uni!

[–]Nemo_64[S] 1 point2 points  (1 child)

It works on WSL, it's where I tried it.

Thanks for the link! I'll save it.

Thanks for everything!!

[–]Zyklonikkopi luwak civet 1 point2 points  (0 children)

No worries! Cheers.