The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
@ 2017-08-31 17:49 Doug McIlroy
  2017-08-31 23:36 ` Bakul Shah
  2017-09-01  0:19 ` Wesley Parish
  0 siblings, 2 replies; 9+ messages in thread
From: Doug McIlroy @ 2017-08-31 17:49 UTC (permalink / raw)


>  If Unix was written in Pascal I would've happily continued using Pascal!

Amusing in the context of Brian's piece, which essentially says if Unix
could have been written in Pascal, then Pascal wouldn't have been Pascal.

doug\


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-08-31 17:49 [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed! Doug McIlroy
@ 2017-08-31 23:36 ` Bakul Shah
  2017-09-01  0:19 ` Wesley Parish
  1 sibling, 0 replies; 9+ messages in thread
From: Bakul Shah @ 2017-08-31 23:36 UTC (permalink / raw)



> On Aug 31, 2017, at 10:49 AM, Doug McIlroy <doug at cs.dartmouth.edu> wrote:
> 
>> If Unix was written in Pascal I would've happily continued using Pascal!
> 
> Amusing in the context of Brian's piece, which essentially says if Unix
> could have been written in Pascal, then Pascal wouldn't have been Pascal.
> 
> doug\

My point being that perhaps the success of Unix had more to do
with the success of C than anything else.  And I believe Unix
success had more to with the set of s/w tools it came with
than C. 

For most user programs either language would be been fine. 
Given its evoltion C had the necessary features to implement 
an OS kernel but I believe Pascal could've been easily (&
minimally) extended to something equivalent. Note that Per
Brinch Hansen & his students did write an OS (Solo) in 
Concurrent Pascal[1].

Also note that C itself went through a few iterations while
Pascal was basically the same language that prof. Wirth
defined until 1985.

--bakul

[1] Solo was a university project + it lacked the greatest
strength of Unix (a set of s/w tools).  So it stayed a uni
project. Concurrent Pascal was a significant extension over
sequential Pascal but PBH explained his rationale by way of
his excellent book on Operating System Design!


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-08-31 17:49 [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed! Doug McIlroy
  2017-08-31 23:36 ` Bakul Shah
@ 2017-09-01  0:19 ` Wesley Parish
  2017-09-01  0:47   ` Larry McVoy
  1 sibling, 1 reply; 9+ messages in thread
From: Wesley Parish @ 2017-09-01  0:19 UTC (permalink / raw)


No, such a Pascal would've been more of an Ada if developed like C++; more of an Oberon or Modula-2 
if minimalist.

I (officially) learned programming with Turbo Pascal. However, I'd already read both Comer's and 
Tanenbaum's books on operating system design and implementation, and likewise Brinch Hansen's 
book on Solo and Concurrent Pascal.

It didn't take long to work out that you could put together larger projects even with Turbo C than you 
could with Turbo Pascal, and the Turbo Pascal efforts towards handling large projects were a fudge.

I liked Oberon - I think Wirth came closer to the minimalism of C with Oberon.

Wesley Parish

Quoting Doug McIlroy <doug at cs.dartmouth.edu>:

> > If Unix was written in Pascal I would've happily continued using
> Pascal!
> 
> Amusing in the context of Brian's piece, which essentially says if Unix
> could have been written in Pascal, then Pascal wouldn't have been
> Pascal.
> 
> doug\
>  



"I have supposed that he who buys a Method means to learn it." - Ferdinand Sor,
Method for Guitar

"A verbal contract isn't worth the paper it's written on." -- Samuel Goldwyn


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  0:19 ` Wesley Parish
@ 2017-09-01  0:47   ` Larry McVoy
  2017-09-01  2:45     ` Ian Zimmerman
  0 siblings, 1 reply; 9+ messages in thread
From: Larry McVoy @ 2017-09-01  0:47 UTC (permalink / raw)


> I liked Oberon - I think Wirth came closer to the minimalism of C with Oberon.

I went and looked it up and left when I say BEGIN END.  Really?


	IF (expr)
	BEGIN
		blah
		blah
		blah
	END

I'm sorry but I'm with whoever it was that said { } are better than
BEGIN END.  Seems trivial but it's not to me.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  0:47   ` Larry McVoy
@ 2017-09-01  2:45     ` Ian Zimmerman
  2017-09-01  3:53       ` Warner Losh
  0 siblings, 1 reply; 9+ messages in thread
From: Ian Zimmerman @ 2017-09-01  2:45 UTC (permalink / raw)


On 2017-08-31 17:47, Larry McVoy wrote:

> 	IF (expr)
> 	BEGIN
> 		blah
> 		blah
> 		blah
> 	END
> 
> I'm sorry but I'm with whoever it was that said { } are better than
> BEGIN END.  Seems trivial but it's not to me.

IMO, that's taking 1 part of a large coherent whole and judging by that.
I am terrible with metaphors and similes, but maybe a bit like saying "I
don't like the GPL because it restricts what I can do with my code."

Here's another construct from C:

for (i = n; i > 0; --i) {
    blah();
}

In a language like Pascal (really Algol), that is

FOR i = n TO 0 DO
    Blah()
DONE

That's much closer typing-wise, isn't it?  That's because of the melding
of the brackets with the control structure keywords.  But you can't do
that _and_ have braces.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
Do obvious transformation on domain to reply privately _only_ on Usenet.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  2:45     ` Ian Zimmerman
@ 2017-09-01  3:53       ` Warner Losh
  2017-09-01  3:56         ` Larry McVoy
  2017-09-01  4:45         ` Lyndon Nerenberg
  0 siblings, 2 replies; 9+ messages in thread
From: Warner Losh @ 2017-09-01  3:53 UTC (permalink / raw)


On Thu, Aug 31, 2017 at 8:45 PM, Ian Zimmerman <itz at very.loosely.org> wrote:

> On 2017-08-31 17:47, Larry McVoy wrote:
>
> >       IF (expr)
> >       BEGIN
> >               blah
> >               blah
> >               blah
> >       END
> >
> > I'm sorry but I'm with whoever it was that said { } are better than
> > BEGIN END.  Seems trivial but it's not to me.
>
> IMO, that's taking 1 part of a large coherent whole and judging by that.
> I am terrible with metaphors and similes, but maybe a bit like saying "I
> don't like the GPL because it restricts what I can do with my code."
>
> Here's another construct from C:
>
> for (i = n; i > 0; --i) {
>     blah();
> }
>
> In a language like Pascal (really Algol), that is
>
> FOR i = n TO 0 DO
>     Blah()
> DONE
>
> That's much closer typing-wise, isn't it?  That's because of the melding
> of the brackets with the control structure keywords.  But you can't do
> that _and_ have braces.
>

Today  I might agree with you because of the fancy IDEs coupled with the
huge screen size makes this a little easier to read.

When I learned, screen space was at a premium (24x80) so I had to make
every line count and pack in as much as I could. And any short cut to
typing also helped me write things faster, so I gravitated to C as soon as
it was available at an affordable price... It also was easier to do via
dialup at 1200 or 2400 baud.

But then again, I still write in 'C' because I find it easiest to grok
after 35 years of use... I'm also teaching python to my son and haven't
introduced C and compilers and makefiles. python just runs and the
indenting thing, though it offends my aesthetic, isn't a big deal with a
decent editor.

Warner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170831/a625f8e5/attachment.html>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  3:53       ` Warner Losh
@ 2017-09-01  3:56         ` Larry McVoy
  2017-09-01  4:45         ` Lyndon Nerenberg
  1 sibling, 0 replies; 9+ messages in thread
From: Larry McVoy @ 2017-09-01  3:56 UTC (permalink / raw)


+1

On Thu, Aug 31, 2017 at 09:53:15PM -0600, Warner Losh wrote:
> On Thu, Aug 31, 2017 at 8:45 PM, Ian Zimmerman <itz at very.loosely.org> wrote:
> 
> > On 2017-08-31 17:47, Larry McVoy wrote:
> >
> > >       IF (expr)
> > >       BEGIN
> > >               blah
> > >               blah
> > >               blah
> > >       END
> > >
> > > I'm sorry but I'm with whoever it was that said { } are better than
> > > BEGIN END.  Seems trivial but it's not to me.
> >
> > IMO, that's taking 1 part of a large coherent whole and judging by that.
> > I am terrible with metaphors and similes, but maybe a bit like saying "I
> > don't like the GPL because it restricts what I can do with my code."
> >
> > Here's another construct from C:
> >
> > for (i = n; i > 0; --i) {
> >     blah();
> > }
> >
> > In a language like Pascal (really Algol), that is
> >
> > FOR i = n TO 0 DO
> >     Blah()
> > DONE
> >
> > That's much closer typing-wise, isn't it?  That's because of the melding
> > of the brackets with the control structure keywords.  But you can't do
> > that _and_ have braces.
> >
> 
> Today  I might agree with you because of the fancy IDEs coupled with the
> huge screen size makes this a little easier to read.
> 
> When I learned, screen space was at a premium (24x80) so I had to make
> every line count and pack in as much as I could. And any short cut to
> typing also helped me write things faster, so I gravitated to C as soon as
> it was available at an affordable price... It also was easier to do via
> dialup at 1200 or 2400 baud.
> 
> But then again, I still write in 'C' because I find it easiest to grok
> after 35 years of use... I'm also teaching python to my son and haven't
> introduced C and compilers and makefiles. python just runs and the
> indenting thing, though it offends my aesthetic, isn't a big deal with a
> decent editor.
> 
> Warner

-- 
---
Larry McVoy            	     lm at mcvoy.com             http://www.mcvoy.com/lm 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  3:53       ` Warner Losh
  2017-09-01  3:56         ` Larry McVoy
@ 2017-09-01  4:45         ` Lyndon Nerenberg
  2017-09-01 14:19           ` Steffen Nurpmeso
  1 sibling, 1 reply; 9+ messages in thread
From: Lyndon Nerenberg @ 2017-09-01  4:45 UTC (permalink / raw)



> On Aug 31, 2017, at 8:53 PM, Warner Losh <imp at bsdimp.com> wrote:
> 
> But then again, I still write in 'C' because I find it easiest to grok after 35 years of use... I'm also teaching python to my son and haven't introduced C and compilers and makefiles. python just runs and the indenting thing, though it offends my aesthetic, isn't a big deal with a decent editor.

Wasn't Logo supposed to be the teaching language for the young ones?  "to turtle" still sticks in my mind, even though I never actually used the language.

--lyndon



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed!
  2017-09-01  4:45         ` Lyndon Nerenberg
@ 2017-09-01 14:19           ` Steffen Nurpmeso
  0 siblings, 0 replies; 9+ messages in thread
From: Steffen Nurpmeso @ 2017-09-01 14:19 UTC (permalink / raw)


Lyndon Nerenberg <lyndon at orthanc.ca> wrote:
 |> On Aug 31, 2017, at 8:53 PM, Warner Losh <imp at bsdimp.com> wrote:
 |> 
 |> But then again, I still write in 'C' because I find it easiest to \
 |> grok after 35 years of use... I'm also teaching python to my son \
 |> and haven't introduced C and compilers and makefiles. python just \
 |> runs and the indenting thing, though it offends my aesthetic, isn't \
 |> a big deal with a decent editor.
 |
 |Wasn't Logo supposed to be the teaching language for the young ones? \
 | "to turtle" still sticks in my mind, even though I never actually \
 |used the language.

Never really having used it, but turtle and Smalltalk come
together in my mind?

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-01 14:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-31 17:49 [TUHS] Why Pascal is Not My Favorite Programming Language Unearthed! Doug McIlroy
2017-08-31 23:36 ` Bakul Shah
2017-09-01  0:19 ` Wesley Parish
2017-09-01  0:47   ` Larry McVoy
2017-09-01  2:45     ` Ian Zimmerman
2017-09-01  3:53       ` Warner Losh
2017-09-01  3:56         ` Larry McVoy
2017-09-01  4:45         ` Lyndon Nerenberg
2017-09-01 14:19           ` Steffen Nurpmeso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).