From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,33f90678fd18cbc7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.31.73 with SMTP id y9mr2420195pbh.0.1318936888791; Tue, 18 Oct 2011 04:21:28 -0700 (PDT) Path: d5ni26696pbc.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: What is the best way to get a process-list with Ada? References: <2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com> Date: Tue, 18 Oct 2011 07:21:33 -0400 Message-ID: <827h42v936.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:MgqcwSzEJGGtNdriGv/IKyDlJq8= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 93f234e9d6138e029e66119751 Xref: news2.google.com comp.lang.ada:14042 Content-Type: text/plain; charset=us-ascii Date: 2011-10-18T07:21:33-04:00 List-Id: Shark8 writes: > I got into a bit of a debate with a friend who said something to the > effect that to write drivers one needed to use C/C++... I use Ada for almost everything, but I write drivers for Lynx in C. The reason is that the OS API is provided with C interface. I only need a few functions from the OS API, and I keep the drivers as small as possible (Lynx is efficient enough to let me do almost everything in user code). Therefore writing and maintaining the Ada binding to the OS API is not worth the effort. In addition, bug reports sent to support will have to be rewritten in C > anyway, he was irritated about not being able to use Java (which he's > sort of been forced to use in this instance) to 1) get a process list, This is not defined in any standard language that I'm aware of, so the complaint is true of every language. I guess you are saying "He could not find a Java binding to the OS service that provides a process list". Finding a C binding is probably a lot easier, since most OS APIs are provided in C. > and 2) get window dimensions of a focused-window. That's a typical operation in a GUI system; I'd be _very_ surprised if the Java GUI packages on other OSs don't provide it. So again, it's a matter of finding the binding to the necessary function. -- -- Stephe