LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-18-2022, 01:15 AM   #1
openbsd98324
Member
 
Registered: Feb 2022
Posts: 31

Rep: Reputation: 4
(Re)-Discover the Art of Unix Programming


Hello,

The Art of Unix Programming is to shorten the code and to reduce the dependencies, endlessly. The code needs to be shorter and more efficient.

The Art of Programming has been described many years ago by earlier Unix programmers.

Code:
 links-gui -g  "https://homepage.cs.uri.edu/~thenry/resources/unix_art/ch01s06.html"
The assembly language or the C language are highly recommended.

Have a look, this is worth to study.

Have Fun!

Quote:
Basics of the Unix Philosophy
The ‘Unix philosophy’ originated with Ken Thompson's early meditations on how to design a small but capable operating system with a clean service interface. It grew as the Unix culture learned things about how to get maximum leverage out of Thompson's design. It absorbed lessons from many sources along the way.

The Unix philosophy is not a formal design method. It wasn't handed down from the high fastnesses of theoretical computer science as a way to produce theoretically perfect software. Nor is it that perennial executive's mirage, some way to magically extract innovative but reliable software on too short a deadline from unmotivated, badly managed, and underpaid programmers.

The Unix philosophy (like successful folk traditions in other engineering disciplines) is bottom-up, not top-down. It is pragmatic and grounded in experience. It is not to be found in official methods and standards, but rather in the implicit half-reflexive knowledge, the expertise that the Unix culture transmits. It encourages a sense of proportion and skepticism — and shows both by having a sense of (often subversive) humor.

Doug McIlroy, the inventor of Unix pipes and one of the founders of the Unix tradition, had this to say at the time [McIlroy78]:
(...)
 
Old 06-18-2022, 07:33 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,385
Blog Entries: 17

Rep: Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791Reputation: 3791
I love the philosophy, but how exactly do you use it to write a browser that will handle modern javascript-ridden websites? Or even a word processor? And it's no answer to say, "Don't use a word processor, use groff markup" because that's not feasible for most ordinary users.
 
Old 06-18-2022, 12:27 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,494

Rep: Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983
Now being carried on as the suckless philosphy.

Last edited by dugan; 06-18-2022 at 12:41 PM.
 
Old 06-18-2022, 12:51 PM   #4
openbsd98324
Member
 
Registered: Feb 2022
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by dugan View Post
Now being carried on as the suckless philosphy.
The suckless source code sucks as well. There are numerous examples on their site.
Still, better than a systemd

What about Unix v6 source code?
 
Old 06-19-2022, 10:41 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,494

Rep: Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983Reputation: 4983
Look. Every time someone talks about how well-engineered things were back in those good old days, I feel obligated to point out that that's when a single piece of malware hacked into and crashed the entire Internet.

Last edited by dugan; 06-19-2022 at 10:42 AM.
 
Old 06-19-2022, 12:35 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,020

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
changing cost ratios

Way back in the day the cost of hardware was by far the overriding consideration in computing. The cost for programmers' time was almost trivial in comparison. So programmer's would spend large amounts of time and effort to maximize the machine efficiency of their programs.

Over time the cost of hardware has decreased steadily and drastically even in spite of IBM's efforts to maintain monopoly profit margins and in spite of inflation. Programming costs in real terms have remained fairly constant over time. These days maximizing programmer efficiency is more important than minimizing hardware costs.

The "Unix philosophy" is very much a product of the old ratio of hardware cost to programmer cost. I would take it with a grain of salt when looking at current programming techniques.

Last edited by jailbait; 06-19-2022 at 12:37 PM.
 
Old 06-22-2022, 02:15 PM   #7
openbsd98324
Member
 
Registered: Feb 2022
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by jailbait View Post
Way back in the day the cost of hardware was by far the overriding consideration in computing. The cost for programmers' time was almost trivial in comparison. So programmer's would spend large amounts of time and effort to maximize the machine efficiency of their programs.

Over time the cost of hardware has decreased steadily and drastically even in spite of IBM's efforts to maintain monopoly profit margins and in spite of inflation. Programming costs in real terms have remained fairly constant over time. These days maximizing programmer efficiency is more important than minimizing hardware costs.

The "Unix philosophy" is very much a product of the old ratio of hardware cost to programmer cost. I would take it with a grain of salt when looking at current programming techniques.
systemd is best example of non unix philosophy, it is a waste of resource and many much more. The web is too a good picture.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google Wallpaper Art app turns your Chromebook into an art gallery LXer Syndicated Linux News 0 11-14-2015 08:54 AM
LXer: The Coded Camel - Cool Linux And Unix Perl Art LXer Syndicated Linux News 0 01-10-2009 07:01 AM
LXer: Happy Thanksgiving - Unix/Linux ASCII Art LXer Syndicated Linux News 0 11-27-2008 07:41 PM
LXer: Discover How a UNIX Machine Boots LXer Syndicated Linux News 0 05-17-2008 12:10 PM
traditional art vs modern art acid_kewpie General 14 10-27-2003 01:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration