Posts: 4,605
Threads: 1,482
Joined: Sep 2016
Oct-16-2016, 06:47 AM
(This post was last modified: Oct-16-2016, 06:16 PM by Yoriz.)
anyone interested in a project of making python versions of various POSIX commands like cat, cp, diff, grep, head, ln, ls, mv, rm, tail, and wc? maybe subsets (not implement all options)?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 2,343
Threads: 62
Joined: Sep 2016
Just for fun or for some other reason?
Posts: 7,145
Threads: 122
Joined: Sep 2016
Oct-16-2016, 06:25 PM
(This post was last modified: Oct-16-2016, 06:58 PM by snippsat.)
(Oct-16-2016, 06:47 AM)Skaperen Wrote: anyone interested in a project of making python versions of various POSIX commands like cat, cp, diff, grep, head, ln, ls, mv, rm, tail, and wc? maybe subsets (not implement all options)? You can look a Generator Tricks for Systems Programmers
The reason why he did is a really good story.
It invoke a trail case and and a vault where he had to look at and understand 1-million lines of assembly/C/C++ code.
The only tool he had in vault was Windows XP and the search mud :sick:
So he had to reinvent Linux tool with Python to figure out the code,because he could not run the code.
David Beazley: Discovering Python
Posts: 2,955
Threads: 48
Joined: Sep 2016
I watched this. Amazing talk. Installation on any tools or programs was not permitted and lucky for him there was installed Python on this XP :)
Posts: 11,898
Threads: 476
Joined: Sep 2016
Oct-16-2016, 10:11 PM
(This post was last modified: Oct-16-2016, 10:25 PM by Larz60+.)
David's been around the block his website:
http://www.dabeaz.com/
has links to all of his PyCon talks, slides, etc.
One particularly interesting and fun project he does is a live Chicago Transit Authority, current data on every bus
location in the video on coroutines.
Posts: 2,955
Threads: 48
Joined: Sep 2016
(Oct-16-2016, 10:11 PM)Larz60+ Wrote: One particularly interesting and fun project he does is a live Chicago Transit Authority, current data on every bus
location in the video on coroutines. The story for the lost luggage? :)
Posts: 4,605
Threads: 1,482
Joined: Sep 2016
(Oct-16-2016, 05:06 PM)micseydel Wrote: Just for fun or for some other reason?
for any reason you want
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 7,145
Threads: 122
Joined: Sep 2016
Oct-17-2016, 03:23 AM
(This post was last modified: Oct-17-2016, 03:25 AM by snippsat.)
Task like these can be good to do if want practice with Click.
Click is bye far the best command line parser for Python now.
Posts: 11,898
Threads: 476
Joined: Sep 2016
Wavic - Yes the lost luggage
But he shows how to use this service provided by the transit authority
I did a bit of research after watching the video, and it turns almost all cities have
this sort of service.
I still operate on a blackberry phone (hate phones), so not savvy on what's available, but someone must
have already created an app using this.
Posts: 4,605
Threads: 1,482
Joined: Sep 2016
(Oct-17-2016, 03:23 AM)snippsat Wrote: Task like these can be good to do if want practice with Click.
Click is bye far the best command line parser for Python now.
this kind of project can very likely benefit from Click, given the large set of options many of these commands have.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
|