Re: [X10-users] Tools for compilation

2010-11-05 Thread Richard Gomes
Hi Igor, As I explained before, I'm using a Maven-like directory layout. So, basically I have classes in two trees: .../src/main/x10 and .../src/test/x10. The x10c++ command below works fine and produces an executable as expected: x10c++ -o test -MAIN_CLASS=com.jquantlib.math.statist

Re: [X10-users] Tools for compilation

2010-11-05 Thread Richard Gomes
Hi David, Yeah I did something wrong. It's working now. Thanks a lot :) -- Richard Gomes On 05/11/10 18:54, David P Grove wrote: > > > Richard Gomes wrote on 11/05/2010 11:19:59 AM: >> >> Looks like something is wrong with 64 bit distribution. >> >> $ file lib*.so* >> libgc.so.1:

Re: [X10-users] Tools for compilation

2010-11-05 Thread David P Grove
Richard Gomes wrote on 11/05/2010 11:19:59 AM: > > Looks like something is wrong with 64 bit distribution. > > $ file lib*.so* > libgc.so.1: ELF 32-bit LSB shared object, Intel 80386, > version 1 (SYSV), dynamically linked, not stripped > libgc.so.1.0.3: ELF 32-bit LSB sh

Re: [X10-users] Tools for compilation

2010-11-05 Thread Richard Gomes
My answer to myself and to the list: Inside Eclipse, using X10DT, you can echo command line arguments to console by giving: Window > Preferences > X10 > Compiler [X] Echo compiler arguments to console Nice! :) I hope it helps -- Richard Gomes On 05/11/10 14:40, Richard Gomes wrote

Re: [X10-users] Tools for compilation

2010-11-05 Thread Igor Peshansky
Richard Gomes wrote on 11/05/2010 10:40:21 AM: > Hi Igor, > > I'm also trying the Java compiler but it fails like this: > > $ x10 \ > com.jquantlib.math.statistics.StatisticsTests > `find ~/workspace-x10/xql-statistics/src/main/x10 \ >-type f -name '*.x10' ` \ > `fin

Re: [X10-users] Tooling : Emacs

2010-11-05 Thread Igor Peshansky
Richard, We have had a VIm mode for X10 that is based on the VIm Scala mode in our repository for a while now. I'm sure the Emacs mode can be included as well. If you open a JIRA for this and attach your changes as a standalone set of .el files that we could import into the repository, we'll do

Re: [X10-users] Tools for compilation

2010-11-05 Thread Richard Gomes
Hi Igor, Looks like something is wrong with 64 bit distribution. $ file lib*.so* libgc.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped libgc.so.1.0.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamic

Re: [X10-users] Tooling : Emacs

2010-11-05 Thread Richard Gomes
On 05/11/10 14:07, Russel Winder wrote: > On Fri, 2010-11-05 at 13:26 +, Richard Gomes wrote: > [ . . . ] >> I've installed scala-mode on Emacs by downloading the .el files from >> http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/ > > It's probably much better if you u

Re: [X10-users] Tools for compilation

2010-11-05 Thread Richard Gomes
Hi Igor, I'm also trying the Java compiler but it fails like this: $ x10 \ com.jquantlib.math.statistics.StatisticsTests `find ~/workspace-x10/xql-statistics/src/main/x10 \ -type f -name '*.x10' ` \ `find ~/workspace-x10/xql-statistics/src/test/x10 \ -type f

Re: [X10-users] Tooling : Emacs

2010-11-05 Thread Russel Winder
On Fri, 2010-11-05 at 13:26 +, Richard Gomes wrote: [ . . . ] > I've installed scala-mode on Emacs by downloading the .el files from > http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/ It's probably much better if you use Bazaar, Mercurial or Git (or Subversion I guess

[X10-users] Tooling : Emacs

2010-11-05 Thread Richard Gomes
Just sharing ideas with the group. Some tools for Scala would easily be adapted for X10. I've installed scala-mode on Emacs by downloading the .el files from http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/ I've also installed the code completion stuff, which is very we

Re: [X10-users] Running C++ generated code . . .

2010-11-05 Thread Vijay Saraswat
Hi Russel -- (Make sure you set the environment variable X10_NTHREADS to specify the number of initial workers in the X10 computation. See the link http://dist.codehaus.org/x10/documentation/languagespec/x10-env.pdf I posted earlier.) There does appear to be a problem in the C++ backend with M

Re: [X10-users] Updating to 2.1.0

2010-11-05 Thread Russel Winder
On Wed, 2010-11-03 at 17:26 -0400, David P Grove wrote: [ . . . ] > We split Array into two classes: Array (an array that is local to a > single place) and DistArray (an array that is potentially distributed > across places). Seems reasonable to me, since the two have different optimization capa

Re: [X10-users] Running C++ generated code . . .

2010-11-05 Thread Russel Winder
On Wed, 2010-11-03 at 17:36 -0400, Igor Peshansky wrote: [ . . . ] > You cannot run multi-place code with runx10 -- that script only supports > launching one place at a time. OK, thanks -- I hadn't realized that. I should have read INSTALL.txt it is most clear on the topic! > With 2.1.0 using th

Re: [X10-users] Tools for compilation

2010-11-05 Thread Russel Winder
On Fri, 2010-11-05 at 10:49 +1100, Josh Milthorpe wrote: > Hi Russel, > > x10c++ does handle multiple source X10 files, including checking whether > the file has changed since the last compilation. It will search for any > imported X10 classes in 'sourcepath'. I typically compile to a separate