SRL Archive - FAQ

Pascal Script


HyperSecret

2010-06-29 20:29:13

So I just wanted to make sure really quick.

When downloading and installing Pascal Script I should do it on my window vm right? or should I on the uBuntu vm (thought it had problems here too)? It won't work if I put it on my Mac?

i luffs yeww

2010-06-29 21:09:55

I believe it doesn't fully work on Ubuntu, so Windows would be your best bet. :)

ReadySteadyGo

2010-06-29 21:20:34

i use free pascal and lazaras on my mac, works great :)

Nava2

2010-06-30 03:02:28

PS to my knowledge is only full fledged working on Windows.

Wizzup?

2010-06-30 05:21:17

From: ReadySteadyGo
i use free pascal and lazaras on my mac, works great :)


Could you possibly help us building Simba for the Mac / making it mac compatible? A start would be to compile our PSTest project in the Simba repos, and see if it passes all the tests.

Hyper: I'm not sure what you want to do with pascalscript, but it works *ok* on Windows.

HyperSecret

2010-07-01 19:04:31

From: Wizzup?
Could you possibly help us building Simba for the Mac / making it mac compatible? A start would be to compile our PSTest project in the Simba repos, and see if it passes all the tests.

Hyper: I'm not sure what you want to do with pascalscript, but it works *ok* on Windows.


I have a Mac and I thought that you needed PascalScript to look at the Simba source code. Am I wrong? What else can I use?

Wizzup?

2010-07-01 19:05:58

From: HyperSecret
I have a Mac and I thought that you needed PascalScript to look at the Simba source code. Am I wrong? What else can I use?


The source code is online at http://git.villavu.com/ (click on Simba)
You can also download it with git; "git clone git://villavu.com/simba.git"
You don't actually need PascalScript to see the source. Also, pascalscript is included with Simba source.

Nava2

2010-07-02 03:12:19

You are confused! You want: freepascal, which is located at www.freepascal.org :) you can get Lazarus from the same place. As well, you can look at source with obly your webbrowser on the link Wizzup posted.

Finally, if you want to download all of the source, do a 'git clone' of the simba repository.

PascalScript, PS, is the scripting engine for Simba and creates a sandbox for extensiohereWIthhere as the language Simba is written in is Free Pascal (FPC).

HyperSecret

2010-07-05 10:04:43

K, so I got lazarus installed on my mac side. What do I need to do next to try and compile the Simba source? I would like to help you guys to get it to work on the Mac OS or at least learn something from this project.

Wizzup?

2010-07-05 10:59:35

From: HyperSecret
K, so I got lazarus installed on my mac side. What do I need to do next to try and compile the Simba source? I would like to help you guys to get it to work on the Mac OS or at least learn something from this project.


Getting it to actually work properly on the Mac is quite a task, because you'll have to implement their Windowing protocol. (Quartz iirc) Specifically, you'll need a mac implementation of this: http://wizzup.org/simbadoc/mmlref/iomanager.html (Probably the only thing that is documented a bit atm, lol)
Recently I got OS X to work in Virtualbox so I may be able to do it some time. (Vacation just started…)

If you want to learn from Simba, you could start… anywhere. If you have a bit more patience (few days) I can port over some more documentation which will make learning how Simba works much, much easier. Will get back to you. :)

HyperSecret

2010-07-05 12:04:09

Iirc there is X11 Windowing on my Mac or at least I remember seeing something about it. If I am correct would this be totally different than what is already implemented for the linux system?

Wizzup?

2010-07-05 12:09:49

From: HyperSecret
Iirc there is X11 Windowing on my Mac or at least I remember seeing something about it. If I am correct would this be totally different than what is already implemented for the linux system?


No, it is not different from the linux X11: it would work if you used X11 for mac. It would however only work (pick colours etc) on other X11 windows. Having an implementation for Mac OS X windowing system is the best way to go, as you could use it to target all windows.

HyperSecret

2010-07-05 12:33:34

From: Wizzup?
Having an implementation for Mac OS X windowing system is the best way to go, as you could use it to target all windows.


The way I understand it, Leopard uses X11 as the OS's windowing system but I guess I am totally missing a link here. That Quartz (XQuartz) that you mentioned seems just like another project of some sort or is this an open-source project that you can use to make use of Mac OS windowing system?

Wizzup?

2010-07-05 12:50:13

From: HyperSecret
The way I understand it, Leopard uses X11 as the OS's windowing system but I guess I am totally missing a link here. That Quartz (XQuartz) that you mentioned seems just like another project of some sort or is this an open-source project that you can use to make use of Mac OS windowing system?


You're making me unsure. ;) As far as I know Mac OSX does not use the X11 window system by default, but it can be installed to run next to the default windowing system.
http://en.wikipedia.org/wiki/X_Window_System

E: I am wrong; I meant Cocoa / Carbon, not Quartz

E2:
Since version 10.3, Mac OS X has included X11.app, Apple's version of the X Window System graphical interface for Unix applications, as an optional component during installation.[35] Up to and including Mac OS X v10.4 (Tiger), Apple's implementation was based on the X11 Licensed XFree86 4.3 and X11R6.6. All bundled versions of X11 feature a window manager which is similar to the Mac OS X look-and-feel and has fairly good integration with Mac OS X, also using the native Quartz rendering system. Earlier versions of Mac OS X (in which X11 has not been bundled) can also run X11 applications using XDarwin. With the introduction of version 10.5 Apple switched to the X.org variant of X11.[36]

HyperSecret

2010-07-05 12:56:00

Ah ok, I was reading the 1st link you posted and I found this part:

While it is common to associate X with Unix, X servers also exist natively within other graphical environments. Hewlett-Packard's OpenVMS operating system includes a version of X with CDE, known as DECwindows, as its standard desktop environment. Apple's Mac OS X v10.3 (Panther) and Mac OS X v10.4 (Tiger) include X11.app, based on XFree86 4.3 and X11R6.6, with better Mac OS X integration. On Mac OS X v10.5 (Leopard), Apple included X.org (X11R7.2 Codebase) instead of XFree86 (X11R6.8).


Which I thought was implying that Mac OS X (Leopard) used X11. But I guess reading it more carefully and reading the 2nd link, it seems that is just an add-on/option for certain programs.

I will keep reading up on it, I am bored at work (holiday observance day) so it is really slow. :)


Edit 1:

After reading some more, I assume this is what we are looking for.

Quartz 2D is available to all Mac OS X application environments, and provides resolution-independent and device-independent rendering of bitmap graphics, text, and vectors both on-screen and in preparation for printing. Its responsibilities within the graphics layer include:[1]

Rendering text using Apple Type Services (ATS)
Displaying, manipulating, and rendering PDF documents
Converting PostScript data to PDF data, and vice-versa
Displaying, manipulating, and rendering bitmap images via ImageIO <– more specifically this
Providing color management via ColorSync
Displaying the elements of the Aqua user interface


Edit 2:
After a little looking around I can't really find anything but then again I don't know exactly what I am looking for. I was thinking of trying to find some type of documentation from the apple website on things to use.

From: Apple Website

Quartz provides essential graphics services for applications in two integral parts: the Quartz 2D graphics API and the Quartz Extreme windowing environment. Quartz 2D&#8217;s rich graphics capabilities are based on the Portable Document Format (PDF) and provides professional-strength 2D graphics features such as Bezier curves, transformations and gradients. Acting as an advanced &#8220;visual mixing board,&#8221; Quartz Extreme manages an application&#8217;s onscreen presentation and delivers responsive, GPU-accelerated window compositing with full support for transparency.


They have a Mac OS X Reference Library on the Apple website. I am not able to view it here at work (will try when I get home later). http://developer.apple.com/mac/library/navigation/

HyperSecret

2010-07-05 13:46:19

For reference : http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html

HyperSecret

2010-07-05 13:56:10

From: Wizzup?
You're making me unsure. ;) As far as I know Mac OSX does not use the X11 window system by default, but it can be installed to run next to the default windowing system.
http://en.wikipedia.org/wiki/X_Window_System

E: I am wrong; I meant Cocoa / Carbon, not Quartz

E2:
Since version 10.3, Mac OS X has included X11.app, Apple's version of the X Window System graphical interface for Unix applications, as an optional component during installation.[35] Up to and including Mac OS X v10.4 (Tiger), Apple's implementation was based on the X11 Licensed XFree86 4.3 and X11R6.6. All bundled versions of X11 feature a window manager which is similar to the Mac OS X look-and-feel and has fairly good integration with Mac OS X, also using the native Quartz rendering system. Earlier versions of Mac OS X (in which X11 has not been bundled) can also run X11 applications using XDarwin. With the introduction of version 10.5 Apple switched to the X.org variant of X11.[36]


Gah, ok. Scratch my edits then :P