💾 Archived View for bbs.geminispace.org › u › eddos › 16440 captured on 2024-07-09 at 05:29:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-06-16)

➡️ Next capture (2024-08-18)

🚧 View Differences

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

Comment by 🚀 eddos

Re: "Why did Wirth's languages never see widespread adoption..."

In: s/pascal

for m3 i know - cm3.

Thanks, I'll check it out.

for oberon, i am biased. i have my project i work on since long ago.

Honestly, this is really impressive. VOC looks very mature. The package manager is very cool too.

it means it produces very readable, but c code. libc is a dependency, c compiler too. but the generated c code is safe, and there is a good runtime.

Really? How do you ensure the safety of the C code? And how is the mapping from oberon to C?

so in order to write that irc bot, first i made a wrapper for unix sockets, then implemented some part of irc protocol, then only the bot logic.

🚀 eddos [OP]

Apr 28 · 2 months ago

3 Later Comments ↓

🚀 eddos [OP] · Apr 28 at 07:20:

That doesn't sound so bad. I know you usually wouldn't need to do the first two steps but after you're done, you could use the protocol implementation for other projects. They're always there.

🐙 norayr [mod] · Apr 29 at 02:32:

on safety of c code: it is a generated c code. likewise writing in assembly is not safe but assembly generated from oberon or ada is safe. (:

another addition is this example: oberon arrays always have size. even if you expect in the function

VAR str: ARRAY OF CHAR

when you get str, you know the size. we pass the size as an additional argument, it is visible in c code, but hidden in oberon.

oberon compiler which produces machine code would send an oberon string which is actually a struct with one field for size. well voc also keeps arrays as structs with one field for length.

🐙 norayr [mod] · Apr 29 at 02:40:

TKurtBond, on package manager, my dream is to be able to

Original Post

🌒 s/pascal

Why did Wirth's languages never see widespread adoption besides Pascal? Even Pascal is not used much nowadays outside of Delphi and Lazarus. I tried Pascal myself and I found it to be a nice language structurally, but I also found it to be missing basic features that relate to writing the language itself (example: not being able to insert newlines into strings like you would do in C via '\n'). I also don't like how much "modern" Pascal is centered around just 2 compilers: FreePascal and...

💬 eddos · 43 comments · 1 like · Apr 25 · 2 months ago