πŸ’Ύ Archived View for bbs.geminispace.org β€Ί u β€Ί stack β€Ί 20798 captured on 2024-12-17 at 15:26:31. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Comment by πŸš€ stack

Re: "I learned Pascal in uni and haven't touched it in ages, but..."

In: s/pascal

APL?

πŸš€ stack

Oct 12 Β· 2 months ago

6 Later Comments ↓

πŸ¦‚ zzo38 Β· Oct 12 at 21:27:

There are several problems with the C programming language, but the alternatives seems to avoid many of the good features of C and add some things that also aren't very good, in my opinion. So, I use the C programming language; it is not quite really bad enough that I will not use it, I think.

(I have used Pascal as well, to modify ZZT. Turbo Pascal seems like it is a reasonable programming language for writing DOS programs.)

πŸ™ norayr [mod] Β· Oct 23 at 00:11:

freepascal is an amazing compiler. it supports turbo pascal dialect if one wants to have that limit. it supports iso mode if you happen to need it. it supports delphi object pascal mode.

it generates very fast code, and in some benchmarks i have shared here, it shares first place with go and c.

πŸ™ norayr [mod] Β· Oct 23 at 00:26:

horrible standard library

this is a comment left by andreas borchert in comp.lang.oberon in the middle of nineties:

 The libc is certainly not a good guide:

    * Buffer overruns are not ruled out by design: gets, sscanf etc.
    * Interface inconsistencies: gets vs fgets, fgets vs fscanf (note
    the position of the file stream parameter)
    * Bad interfaces like that of getchar() whose return code
    can be a character or an error code
    * Particularly bad buffering system which
    – ignores the block structure of underlying file systems, and
    – does not support bidirectional buffering
    * No provisions exist such that independent libraries can cooperate
    with each other in
    – signal handling,
    – setting up alarms, and
    – tracking childs.

    (Please note that I do not want to bash Ritchie, Kernighan etc. The
    libc is history and should be taken as such… It is time to abandon
    C and the libc and it does not help to place other systems on top of this historic relic.)

i save a link to the usenet post via google groups, it was available years ago, but not now:

β€” http://groups.google.am/group/comp.lang.oberon/browse_thread/thread/ffe11b45037375e0/e8b65d37114d4931?hl=hy&ie=UTF-8&oe=utf-8&q=andreas+borchert+c+interfaces#e8b65d37114d4931

🐻 TardisKun · Dec 01 at 19:04:

@norayr alternate link ;-)

β€” narkive.com

πŸ™ norayr [mod] Β· Dec 02 at 00:16:

TardisKun, thank you.

🦁 Houjimmy · Dec 03 at 18:44:

I've also learned Pascal have ages, both in school and university. Is it still relevant?

Original Post

πŸŒ’ s/pascal

I learned Pascal in uni and haven't touched it in ages, but I'm thinking of picking it up again after reading how much less computation-expensive than, say, Python. Does anyone have any suggestions on good ways to get started again? Also, any thoughts about the virtues of Pascal vs. its related languages like, e.g. Ada?

πŸ’¬ dragfyre Β· 11 comments Β· 1 like Β· Oct 10 Β· 2 months ago