DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th August 2009
SunSpyda SunSpyda is offline
Port Guard
 
Join Date: Mar 2009
Posts: 20
Thanked 0 Times in 0 Posts
Question Delphi or Object Pascal In OpenBSD?

I was wondering if anyone knew a Delphi (Or any other good Object Pascal) implementation for OpenBSD? I don't like the language or anything, it's just that a collage course I'm taking uses it, so I'll have to give up the C/ASM side of things for a while.

I'm just on about a compiler or interpreter for it, just so I can execute the code I use for the course... Any ideas?

I don't want a IDE or anything... just the compiler/interpreter.

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 27th August 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

OpenBSD does not have any ports related to "Pascal" or "Delphi", but FreeBSD has a "Free Pascal" port, and some additional wrapper ports for common libraries.

Perhaps you can create an OpenBSD port by referencing them.
Reply With Quote
  #3   (View Single Post)  
Old 27th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,834
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by SunSpyda View Post
I was wondering if anyone knew a Delphi...
Delphi was a proprietary commercial product. Borland, (who developed & marketed) has since fallen into obscurity. Because of any number of contractual agreements, most likely it will never resurface. Besides, Pascal programming is no longer in vogue.
Quote:
(Or any other good Object Pascal) implementation for OpenBSD?
It is always a good idea to search through the ports collection to answer these types of questions. The following Website makes searching very simple:

http://openports.se/
Reply With Quote
  #4   (View Single Post)  
Old 27th August 2009
SunSpyda SunSpyda is offline
Port Guard
 
Join Date: Mar 2009
Posts: 20
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
Delphi was a proprietary commercial product. Borland, (who developed & marketed) has since fallen into obscurity. Because of any number of contractual agreements, most likely it will never resurface. Besides, Pascal programming is no longer in vogue.

It is always a good idea to search through the ports collection to answer these types of questions. The following Website makes searching very simple:

http://openports.se/
As I came from a C background, I asked if I could use C++ for the OO aspects, but they insisted on Delphi, despite the fact, as you say, it's pretty dead.

I browsed that site, but since I didn't know the name of any implementation I couldn't perform an effective search.

Quote:
Originally Posted by BSDfan666
OpenBSD does not have any ports related to "Pascal" or "Delphi", but FreeBSD has a "Free Pascal" port, and some additional wrapper ports for common libraries.

Perhaps you can create an OpenBSD port by referencing them.
The problem is, I don't actually like Pascal as a language, so I would find it difficult to go through the porting process for a language I don't like, if you get what I mean.

Also, I have zero idea how FreePascal works. Would I be rewriting ASM kernel interrupts to the appropriate OpenBSD ones, or would I be switching FreeBSD-only C functions for OpenBSD ones? Or would it simply be a case of changing the configuration files for a OpenBSD environment? I write pretty portable code, so I seldom have to port things.. so I am inexperienced in the porting area.
Reply With Quote
  #5   (View Single Post)  
Old 27th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,834
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by SunSpyda View Post
...but they insisted on Delphi
The problem you are facing is that Object Pascal is not a rigorously defined standard as can be seen the following Wikipedia article:

http://en.wikipedia.org/wiki/Object_Pascal

...so even if FreePascal would run on OpenBSD, does it emulate enough extensions to satisfy your instructor? More to the point, does it emulate Delphi enough?

These questions may not have answers, or you may find out at the worst moment. My recommendation would be to use the tools that the instructor advocates. Delphi tightly binds Windows UI-isms into the language, & depending upon where the instructor takes the course, trying to stay with OpenBSD may straying too far from his intent.
Reply With Quote
  #6   (View Single Post)  
Old 28th August 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is online now
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

As ocicat's suggests: Be pragmatic and use the most practical thing, in this case, Windows.

This doesn't even mean you're 100% ``stuck'' to Windows. Using remote sessions (ssh, rdp, vnc, etc.) and network shares (smb, nfs, etc.) is pretty easy and cheap nowadays.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #7   (View Single Post)  
Old 29th August 2009
Stellar Stellar is offline
Port Guard
 
Join Date: Aug 2009
Posts: 26
Thanked 1 Time in 1 Post
Default

anyone have tried run lazarus on openbsd?
Reply With Quote
  #8   (View Single Post)  
Old 29th August 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

It would appear that "Lazarus" is a Pascal IDE, without any Pascal implementation readily available.. it seems rather obvious.
Reply With Quote
  #9   (View Single Post)  
Old 29th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,834
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Stellar View Post
anyone have tried run lazarus on openbsd?
As someone new to OpenBSD, you should take the time to familiarize yourself with its scope -- & part of this process is to read & study the official FAQ:

http://openbsd.org/faq/index.html

The BSD family approaches the world from a different standpoint than Linux. OpenBSD uses a different filesystem layout (see the hier(7) manpage...) than Linux, & the system calls & common libraries aren't always the same. This means that some effort has to be typically put into taking code found in the wild to ensure that it runs on OpenBSD as intended. More information can be found in the compat_linux(8) manpage.

A significant number of third-party applications have already been ported to OpenBSD & can be found in the package/ports system official sanctioned & supported by the Project. You will find a significant amount of information in Section 15 of the FAQ:

http://openbsd.org/faq/faq15.html

You should take the time to study this information.

I don't know anything about Lazarus, nor do I know anything about what effort needs to be expended to port it to OpenBSD. This may be a trivial task; it may be very involved. The point being made here is that you should always check the ports system for an application first given that porting any application to this environment commonly requires more work than a simple recompilation of the application's source base.

Most people who port third-party applications to the OpenBSD environment submit their work to the Project such that it can be included in the sanctioned packages/ports system.
Reply With Quote
Old 30th August 2009
SunSpyda SunSpyda is offline
Port Guard
 
Join Date: Mar 2009
Posts: 20
Thanked 0 Times in 0 Posts
Default

Thanks a lot for the help everyone - I have a Vista machine I use for VS .NET '08, so I'll use that for Delphi.

As it stands, I have been reading Delphi tutorials on the internet, and I am not impressed. Seems like a locked down kiddy environment to me, but I won't judge until I start doing some real work with it. It has inline ASM at least, but it's the Borland syntax, so I'll have to get used to it.

I won't get any extra points for ASM anyway, so I probably won't bother - most people in this class haven't done any programming whatsoever before, so I shouldn't really expect to much of it. I'll just stick by the KISS philosophy on this one

EDIT - I can't see the Thanks button anywhere, so I can't thank anyone - Am I blind or something?
Reply With Quote
Old 30th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,834
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by SunSpyda View Post
EDIT - I can't see the Thanks button anywhere, so I can't thank anyone - Am I blind or something?
During a recent upgrade of the forum software, the "Thanks" subsystem was inadvertently turned off. It might return again in later maintenance.
Reply With Quote
Old 30th August 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

Using the developer edition of Delphi, in a couple of weeks, I wrote a simple accounting package, with foreign currency support, for our Mom and Pop computer parts shop.

Coming from a Forth and assembly background, I was rather impressed with it.

Unfortunately it only worked on Win95 and not Windows 98. So that is the only project I used it for. Well I bought it only for a couple of hundred guilders at a computershow, instead of the +2000 guilders originally price.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 31st August 2009
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 371
Thanked 13 Times in 13 Posts
Default

I was forced to learn Delphi and translate C++ code to Delphi and at first didn't really like Delphi. We used Delphi for 8 or 9 years for all or development on Win32. Now I 1 year into the switch from Delphi to C# and that are a few things that I wish C# had that Delphi does.

For RAD Win32, there was nothing better than Delphi, but Delphi has basically been kill off by .Net and Borland is gone. Which for anyone into computing history is sad.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
Old 10th November 2009
gbechis gbechis is offline
Port Guard
 
Join Date: Oct 2009
Posts: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
OpenBSD does not have any ports related to "Pascal" or "Delphi", but FreeBSD has a "Free Pascal" port, and some additional wrapper ports for common libraries.

Perhaps you can create an OpenBSD port by referencing them.
FreePascal is entirely written in Pascal, to build an OpenBSD version you will need to cross-compile it:
http://www.freepascal.org/faq.var#FPandGNUPascal
I think that it would be easier to build a port of GNU Pascal (it it written in C) even if it's rather old.
Reply With Quote
Old 28th November 2009
windependence's Avatar
windependence windependence is offline
Real Name: Tim
Shell Scout
 
Join Date: May 2008
Location: Phoenix, Arizona
Posts: 116
Thanked 4 Times in 3 Posts
Default

Delphi, C++ Builder and other former Borland products are very much alive and IMHO better than they were with Borland. See http://www.embarcadero.com. If you have to develop for windoze, there is nothing better again IMO.

I am using their new php IDE and I love it. In fact, I just attended a conference here in Phoenix and met one of the old guys from Borland there. I never thought I'd say it because I was a bif Borland fan, but the products are much better off without the Borland baggage.

-Tim
__________________
www.windependence.org
Get your Windependence today!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared object not found 'libwrap.so.4' magic FreeBSD General 3 22nd July 2009 09:36 PM
link: `libtheora_la-common.lo' is not a valid libtool object error during compilation pax FreeBSD Ports and Packages 2 29th July 2008 11:30 AM


All times are GMT. The time now is 07:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick