comp.lang.ada
 help / color / Atom feed
* Developing on a Mac
@ 2020-10-14 16:39 Marius Amado-Alves
  2020-10-14 19:02 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marius Amado-Alves @ 2020-10-14 16:39 UTC (permalink / raw)


I searched but could not find.
How to develop Ada programs on a Mac today (Catalina)?
GNAT CE 2020 for Mac has no GPS anymore.
Must one use Xcode?
How make Xcode Ada-aware and integrate it with GNAT?
Some other Ada-aware IDE for Mac?
Thanks a lot.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Developing on a Mac
  2020-10-14 16:39 Developing on a Mac Marius Amado-Alves
@ 2020-10-14 19:02 ` Simon Wright
  2020-10-15  9:35 ` Simon Wright
  2020-10-15 23:41 ` Jerry
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Wright @ 2020-10-14 19:02 UTC (permalink / raw)


Marius Amado-Alves <[email protected]> writes:

> How to develop Ada programs on a Mac today (Catalina)?
> GNAT CE 2020 for Mac has no GPS anymore.

If you want GPS the best bet is probably to use the GPS from GNAT CE
2019 with the new compiler. Have CE 2020 bin first on your PATH, then
explicitly call up gps: I just used /opt/gnat-ce-2019/bin/gps.

There is a port of GNAT Studio to Catalina[1], but ISTR it's not all
working 100%?

> Must one use Xcode?
> How make Xcode Ada-aware and integrate it with GNAT?

Last time I heard, Xcode is proprietary and closed, and no one has ever
reported extending it for Ada. But of course I haven't been looking.

> Some other Ada-aware IDE for Mac?

Emacs[2], with ada-mode[3]].

[1] https://sourceforge.net/projects/gnuada/files/GNAT_GPL%20Mac%20OS%20X/2020-catalina/GNATStudio-20.2-a.dmg/download
[2] https://emacsformacosx.com
[3] https://www.nongnu.org/ada-mode/ada-mode.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Developing on a Mac
  2020-10-14 16:39 Developing on a Mac Marius Amado-Alves
  2020-10-14 19:02 ` Simon Wright
@ 2020-10-15  9:35 ` Simon Wright
  2020-10-15 23:41 ` Jerry
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Wright @ 2020-10-15  9:35 UTC (permalink / raw)


Marius Amado-Alves <[email protected]> writes:

> How to develop Ada programs on a Mac today (Catalina)?
[...]
> Some other Ada-aware IDE for Mac?

Just announced:
https://github.com/thindil/vim-ada/releases/tag/v10.0
https://github.com/thindil/Ada-Bundle

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Developing on a Mac
  2020-10-14 16:39 Developing on a Mac Marius Amado-Alves
  2020-10-14 19:02 ` Simon Wright
  2020-10-15  9:35 ` Simon Wright
@ 2020-10-15 23:41 ` Jerry
  2020-10-16  6:17   ` Luke A. Guest
  2020-10-16 20:21   ` Blady
  2 siblings, 2 replies; 6+ messages in thread
From: Jerry @ 2020-10-15 23:41 UTC (permalink / raw)


On Wednesday, October 14, 2020 at 9:40:00 AM UTC-7, wrote:
> I searched but could not find. 
> How to develop Ada programs on a Mac today (Catalina)? 
> GNAT CE 2020 for Mac has no GPS anymore. 
> Must one use Xcode? 
> How make Xcode Ada-aware and integrate it with GNAT? 
> Some other Ada-aware IDE for Mac? 
> Thanks a lot.

Some of the following is kind of vague but I hope it is useful. Many listers will know much more.

One time a long time ago someone (on this list?) made Xcode work with Ada. It was fantastic. Even a debugger IIRC. But apparently Apple likes to change the underpinnings and after some time Xcode ceased to work with Ada. (There also is or was a FPC Pascal way with Xcode that was even more capable but I haven't checked into that for a long time.)

There also used to be Carbon bindings to Ada, possibly made by the same person. (The words "Blady" and "Pascal" come to mind for this person.) They were on the macada.org web site which doesn't seem to do much these days, as well as being linked from AdaPower. Of course the Carbon API has been long-deprecated but I'm sure it is still used. (How does Microsoft keep Word et al working on Macs?)

It's not a full IDE in some opinions but Visual Studio Code runs on Macs, even my now-ancient 2008 PowerBook and macOS 10.11.6. There is an Ada plug-in but make sure you get the right one. I think this plug-in might be supported by AdaCore. And there's something about an Ada Language Server. I don't really understand all of this. I've tried to get this running but the instructions are minimal so it is taking more effort than it should. (Why are installation instructions so frequently written assuming that you already know how to install stuff?)

IntelliJ IDEA CE also has an Ada plug-in.

I guess Eclipse has an Ada plug-in as well. I think AdaCore supports this but I'm not sure if the Mac version is well-supported.

None of the above except Xcode is a native Mac app so you'll have to deal with a certain amount of cross-platform-turdism. I would happily pay hundreds of $US for a native Mac Ada IDE but that will never happen. The previously-mentioned Xcode hack was close enough, though.

There are lots of text editors that aren't too bad. I have used Textmate with its Ada plug-in (bundle) which I've modified for my own purposes for many years. Not an IDE but it does have the capability to link from parsed error reports back to your code. Textmate was a leader in this area and its bundle architecture has been used by several other editors.

Sorry if this is all a little sketchy.

Now for something OT. If you are doing technical work in Ada and want to store or examine or plot results, I have made Igor Pro (wavemetrics.com) work with Ada. This is a fantastic arrangement. It's almost as nimble as working in a notebook (think Jupyter or Jupyter Lab) but you get the awesomeness of Igor Pro to plot, post-process, and document. 

Jerry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Developing on a Mac
  2020-10-15 23:41 ` Jerry
@ 2020-10-16  6:17   ` Luke A. Guest
  2020-10-16 20:21   ` Blady
  1 sibling, 0 replies; 6+ messages in thread
From: Luke A. Guest @ 2020-10-16  6:17 UTC (permalink / raw)


On 16/10/2020 00:41, Jerry wrote:

> There also used to be Carbon bindings to Ada, possibly made by the same person. (The words "Blady" and "Pascal" come to mind for this person.) They were on the macada.org web site which doesn't seem to do much these days, as well as being linked from AdaPower. Of course the Carbon API has been long-deprecated but I'm sure it is still used. (How does Microsoft keep Word et al working on Macs?)

Microsoft are, or were, part owners of Apple as they helped out Steve 
Jobs financially at one point. So, they likely have the source to Mac OS X.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Developing on a Mac
  2020-10-15 23:41 ` Jerry
  2020-10-16  6:17   ` Luke A. Guest
@ 2020-10-16 20:21   ` Blady
  1 sibling, 0 replies; 6+ messages in thread
From: Blady @ 2020-10-16 20:21 UTC (permalink / raw)


Le 16/10/2020 à 01:41, Jerry a écrit :
> On Wednesday, October 14, 2020 at 9:40:00 AM UTC-7, wrote:
>> I searched but could not find.
>> How to develop Ada programs on a Mac today (Catalina)?
>> GNAT CE 2020 for Mac has no GPS anymore.
>> Must one use Xcode?
>> How make Xcode Ada-aware and integrate it with GNAT?
>> Some other Ada-aware IDE for Mac?
>> Thanks a lot.
> 
> Some of the following is kind of vague but I hope it is useful. Many listers will know much more.
> 
> One time a long time ago someone (on this list?) made Xcode work with Ada. It was fantastic. Even a debugger IIRC. But apparently Apple likes to change the underpinnings and after some time Xcode ceased to work with Ada. (There also is or was a FPC Pascal way with Xcode that was even more capable but I haven't checked into that for a long time.)
> 
> There also used to be Carbon bindings to Ada, possibly made by the same person. (The words "Blady" and "Pascal" come to mind for this person.) They were on the macada.org web site which doesn't seem to do much these days, as well as being linked from AdaPower. Of course the Carbon API has been long-deprecated but I'm sure it is still used. (How does Microsoft keep Word et al working on Macs?)

If I remember well, the Carbon bindings were provided by James E. Hopper
from a Pascal to Ada translation with p2ada of Apple Carbon API in Pascal.
Though Carbon may still work, Apple weren't maintaining the Pascal API, 
but only C API.
Thus Ada Carbon Bindings weren't more used as far as I know.
I provided some Xcode support to Ada but after, as you said, Xcode was 
no more custumable.
You'll find here some historical material:
https://blady.pagesperso-orange.fr/alpha.html

Best, Pascal.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-16 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 16:39 Developing on a Mac Marius Amado-Alves
2020-10-14 19:02 ` Simon Wright
2020-10-15  9:35 ` Simon Wright
2020-10-15 23:41 ` Jerry
2020-10-16  6:17   ` Luke A. Guest
2020-10-16 20:21   ` Blady

comp.lang.ada

Archives are clonable: git clone --mirror https://archive.legitdata.co/comp.lang.ada

Example config snippet for mirrors


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git