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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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.33.161 with SMTP id s1mr22915993pbi.2.1318807280105; Sun, 16 Oct 2011 16:21:20 -0700 (PDT) MIME-Version: 1.0 Path: d5ni18654pbc.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin.stu.neva.ru!news.ett.com.ua!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: What is the best way to get a process-list with Ada? Date: Sun, 16 Oct 2011 23:21:18 +0000 (UTC) Organization: ETT newsserver Message-ID: References: <2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: dialup-4.225.168.225.dial1.dallas1.level3.net X-Complaints-To: usenet@news.ett.com.ua X-Notice: Filtered by postfilter v. 0.6.1 X-Newsreader: IBM NewsReader/2 2.0 Xref: news2.google.com comp.lang.ada:13982 Date: 2011-10-16T23:21:18+00:00 List-Id: Writing drivers are easy in any language except those which are interrupted like JAVA. For "Java" you can bind like in Ada a small imported code that is wriiten in Assembly, C or any other compiled language. That would give you the way to include functions that he desires. To use Ada for this type you must compile use the technique of no system. Ada specification will export the function. And a small java file will import the Ada function. Its was back in the 1990's the last time I use native code with Java so this link might help: "Java Tip 23: Write native methods - JavaWorld" http://www.javaworld.com/javaworld/javatips/jw-javatip23.html As for the actually routines just google for an example. In <2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com>, 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++... 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, and 2) get >window dimensions of a focused-window. > >I was wondering how those of you who have had experience in all three >systems would approach it. > >(BTW; Linux, Mac, and Windows for #1 & #2, which is the reason they >had for making the project Java, I certainly don't have enough >experience w/ Mac and Linux to say much about them.)