Recent

Author Topic: Any Operating Sytem(OS) written with Freepascal?  (Read 3233 times)

coradi

  • Full Member
  • ***
  • Posts: 148
Any Operating Sytem(OS) written with Freepascal?
« on: July 22, 2018, 12:22:56 pm »
Hallo,
is there anywhere a simply or not simply Operating System written with Free Pascal Language?
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Xor-el

  • Sr. Member
  • ****
  • Posts: 404
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #1 on: July 22, 2018, 01:07:08 pm »
not an operating system but close.
https://ultibo.org/

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #2 on: July 22, 2018, 02:17:45 pm »
If I remember correctly, the first versions of Mac OS were written in pascal and assembler.
If the information in these web pages is correct, Mac OS used pascal until system 6.

https://discussions.apple.com/thread/1605550?answerId=7598271022#7598271022
https://www.quora.com/What-language-was-used-to-program-the-first-Macintosh
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #3 on: July 22, 2018, 02:46:52 pm »
Many.
See the wiki http://wiki.freepascal.org/Operating_Systems_written_in_FPC

There are actually many more (hundreds), in both scientific and engineering education and research, but these are not often released to the public.
I know of at least 15 of these. Not necessary all written in FPC but in Pascal.
« Last Edit: July 22, 2018, 02:59:06 pm by Thaddy »
Specialize a type, not a var.

krolikbest

  • Full Member
  • ***
  • Posts: 246
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #4 on: July 22, 2018, 03:29:45 pm »
not an operating system but close.
https://ultibo.org/

Interesting. have to try.

coradi

  • Full Member
  • ***
  • Posts: 148
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #5 on: July 22, 2018, 03:56:40 pm »
:-( Idiots
"one recurring theme we see is that the Pascal language is too often cited as a reason not to use Ultibo."
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

guest60499

  • Guest
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #6 on: July 22, 2018, 10:44:17 pm »
As noted there are a few. When you look at what new experimental operating systems are written in though, you tend to see type safety and specification adherence as desired features. While these may not be strictly helpful as low level interaction with the machine often results in undefinable behavior but is still often necessary, they do tend to excellent projects. Pascal itself is probably a large improvement, because a lot of pointer behavior is encoded in language features that are checkable by the compiler.

I think eventually these features will come to Pascal via the FreePascal project, and result in a language better than e.g. Rust in the theme of Oberon.

Are there any samples for Ultibo?

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #7 on: July 23, 2018, 12:47:40 am »
If I remember correctly, the first versions of Mac OS were written in pascal and assembler.
If the information in these web pages is correct, Mac OS used pascal until system 6.

Yes, classical Mac OS was a Pascal machine. It was developed in Pascal, its toolchain was based on Pascal and all programming examples were in Pascal. Of note, the first version of Object Pascal was developed on and for the Mac and later referred to as Mac Pascal.

However, Mac OS wasn't written in Free Pascal. The first Mac OS version was released in 1984, while FPC dates back to 1993.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Ultibo

  • New Member
  • *
  • Posts: 36
    • Ultibo.org
Re: Any Operating Sytem(OS) written with Freepascal?
« Reply #8 on: July 23, 2018, 02:03:02 pm »
:-( Idiots
"one recurring theme we see is that the Pascal language is too often cited as a reason not to use Ultibo."
It's hard to argue with the reality, while there has been a huge amount of interest in what we are trying to do with Ultibo many people come from a background of languages other than Pascal.

What's interesting is there are a lot of people who are learning Pascal just so they can use Ultibo, they might prefer it to be another language but they are willing to learn anyway because of what it offers.

Hopefully the extra language choices we are adding (FPC is not being removed) will take away the need for people to choose features versus language.

Are there any samples for Ultibo?
Yes many, the download includes at least two dozen example projects. There are also a series of videos on our YouTube channel which include examples for various different projects and then the forum contains many ad-hoc snippets and how to samples.


Ultibo.org | Make something amazing
https://ultibo.org

Threads, multi-core, OpenGL, Camera, FAT, NTFS, TCP/IP, USB and more in 3MB with 2 second boot!

 

TinyPortal © 2005-2018