Chat for coding collaboration
On Mon, Jul 20, 2009 at 6:02 PM, Andy Ray Terrel wrote: > I guess by using GChat you really mean use PartyChat ( > http://techwalla.googlepages.com/home )? No, sorry. I was talking about the plain Google chat service, the one you can access while using Gmail in your web browser: http://mail.google.com/mail/help/intl/en/chat.html > No google doesn't support > IMAP or POP with GChat. ?There are some codes out there that do turn > any jabber server into emails but they don't seem very polished ( > http://people.happycoders.org/dax/projects/jmc ). ?I guess since most > people are into gchat I shouldn't go on about irc. > > If you are going to use chat rooms I would also recommend getting to > know dpaste ( http://dpaste.com ) which I find invaluable when > debugging someone's code over a chat room. > > -- Andy > -- Lisandro Dalc?n --- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
release-3.0.0 broken for C++ builds
On Mon, Jul 20, 2009 at 5:49 PM, Barry Smith wrote: > > On Jul 20, 2009, at 3:35 PM, Lisandro Dalcin wrote: > >> On Mon, Jul 20, 2009 at 5:01 PM, Barry Smith wrote: >>> >>> ?Sorry, fixed. >>> >>> ?Say, isn't it about time we abolish PetscTruth? Are the C and C++ bool >>> compatible with each other and compatible with Fortran 90's logical? >>> >> >> C99 "_Bool" and C++ "bool" are likely compatible, at least if the same >> compiler suite is used... in GCC, both have sizeof() == 1 . I remember >> this surprised you some time ago, and even you said it was a nonsense >> (you gave alignment arguments, though I failed to find any issues >> there)... >> > > ? So in C99 and C++ the boolean type has a different name? In you #include , you get 'bool', 'true' and 'false' ... >That seems really stupid. Well, form a backward compatibility POV, it is not so stupid... What about user code written for C89 having a 'typedef int bool', '#define true 1'; '#define false 0' > So we will still need a PetscTruth macro that maps to bool in c++ and _Bool > in c? Moreover, if a C compiler does not support the C99 boolean, you will have to hack it.. > > Then it is not worth changing. > And we would have to investigate all the compatibility issues at the binary level with the many Fortran's out there. Finally... You will have to wait until MPI 3.0, in the hope we have support for portably communicating C99 bool data So in short, I think PetscTruth should remain being an enumeration. We just need to take care when coding, and test building with C++ in a regular basis. The later would be enough for spotting mistakes... As time passes, GCC gets more and more pedantic... >> Regarding Fortran, I'm not so sure about compatibility... we could >> have two problems: >> >> 1) non-matching sizeof() with the C99/C++ type, though in F90 we could >> use logical(kind=XXX), right? >> 2) Can we be 100% sure that in Fortran .TRUE./.FALSE. match C99/C++ >> true/false in a bit-by-bit basis? I mean, is .FALSE. a 0 (zero) at the >> binary level? >> >> >> >>> ?Barry >>> >>> On Jul 20, 2009, at 12:51 PM, Lisandro Dalcin wrote: >>> Barry, this time you are the guy to blame ;-) (at least for the push) All these lines like below in src/mat/impls/aij/mpi/mpiaij.c are wrong, you do not have implicit bool -> enum in C++. MatStashValuesXXX_Private(, ignorezeroentries && (addv == ADD_VALUES)) libfast in: /usr/local/petsc/3.0.0/src/mat/impls/aij/mpi mpiaij.c: In function PetscErrorCode MatSetValues_MPIAIJ(_p_Mat*, PetscInt, const PetscInt*, PetscInt, const PetscInt*, const PetscScalar*, InsertMode): mpiaij.c:396: error: cannot convert bool to PetscTruth for argument 6 to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) mpiaij.c:398: error: cannot convert bool to PetscTruth for argument 7 to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) mpiaij.c: In function void matsetvaluesmpiaij_(_p_Mat**, PetscInt*, const PetscInt*, PetscInt*, const PetscInt*, const PetscScalar*, InsertMode*, PetscErrorCode*): mpiaij.c:5242: error: cannot convert bool to PetscTruth for argument 6 to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) mpiaij.c:5244: error: cannot convert bool to PetscTruth for argument 7 to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) -- Lisandro Dalc?n --- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 >>> >>> >> >> >> >> -- >> Lisandro Dalc?n >> --- >> Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) >> Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) >> Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) >> PTLC - G?emes 3450, (3000) Santa Fe, Argentina >> Tel/Fax: +54-(0)342-451.1594 > > -- Lisandro Dalc?n --- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
release-3.0.0 broken for C++ builds
On Mon, Jul 20, 2009 at 5:01 PM, Barry Smith wrote: > > ?Sorry, fixed. > > ?Say, isn't it about time we abolish PetscTruth? Are the C and C++ bool > compatible with each other and compatible with Fortran 90's logical? > C99 "_Bool" and C++ "bool" are likely compatible, at least if the same compiler suite is used... in GCC, both have sizeof() == 1 . I remember this surprised you some time ago, and even you said it was a nonsense (you gave alignment arguments, though I failed to find any issues there)... Regarding Fortran, I'm not so sure about compatibility... we could have two problems: 1) non-matching sizeof() with the C99/C++ type, though in F90 we could use logical(kind=XXX), right? 2) Can we be 100% sure that in Fortran .TRUE./.FALSE. match C99/C++ true/false in a bit-by-bit basis? I mean, is .FALSE. a 0 (zero) at the binary level? > ? Barry > > On Jul 20, 2009, at 12:51 PM, Lisandro Dalcin wrote: > >> Barry, this time you are the guy to blame ;-) (at least for the push) >> >> All these lines like below in src/mat/impls/aij/mpi/mpiaij.c are >> wrong, you do not have implicit bool -> enum in C++. >> >> MatStashValuesXXX_Private(, ignorezeroentries && (addv == ADD_VALUES)) >> >> >> libfast in: /usr/local/petsc/3.0.0/src/mat/impls/aij/mpi >> mpiaij.c: In function PetscErrorCode MatSetValues_MPIAIJ(_p_Mat*, >> PetscInt, const PetscInt*, PetscInt, const PetscInt*, const >> PetscScalar*, InsertMode): >> mpiaij.c:396: error: cannot convert bool to PetscTruth for argument 6 >> to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, >> PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) >> mpiaij.c:398: error: cannot convert bool to PetscTruth for argument 7 >> to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, >> PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) >> mpiaij.c: In function void matsetvaluesmpiaij_(_p_Mat**, PetscInt*, >> const PetscInt*, PetscInt*, const PetscInt*, const PetscScalar*, >> InsertMode*, PetscErrorCode*): >> mpiaij.c:5242: error: cannot convert bool to PetscTruth for argument 6 >> to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, >> PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) >> mpiaij.c:5244: error: cannot convert bool to PetscTruth for argument 7 >> to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, >> PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) >> >> >> -- >> Lisandro Dalc?n >> --- >> Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) >> Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) >> Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) >> PTLC - G?emes 3450, (3000) Santa Fe, Argentina >> Tel/Fax: +54-(0)342-451.1594 > > -- Lisandro Dalc?n --- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
Chat for coding collaboration
I'm always online in GChat, as it is up once I enter GMail inside Firefox (or Chrome, or Safari, or any modern browser)... This is very convenient if GMail is used for managing all your incoming/outgoing mail. On Mon, Jul 20, 2009 at 4:59 PM, Matthew Knepley wrote: > I use my mail reader for GChat. I think Apple can do that. > > ? Matt > > On Mon, Jul 20, 2009 at 2:53 PM, Barry Smith wrote: >> >> ?I want to use may mail reader as my front end >> >> ? Barry >> >> It happens to be Mail.app but that is not important >> >> On Jul 20, 2009, at 2:41 PM, Andy Ray Terrel wrote: >> >>> This is what irc is for and why lots of open source codes are on >>> freenode servers. >>> >>> http://freenode.net/ >>> >>> Then you can pick what ever chat front end you want, log things for >>> others to see, and so on. >>> >>> >>> -- Andy >>> >>> >>> >>> On Mon, Jul 20, 2009 at 2:34 PM, Matthew Knepley >>> wrote: I have found chat to be the best way to resolve simple problems when coding, especially questions about parts I did not write. It would be nice if we all had access to the same chat program to facilitate this kind of interaction in our small group. I tend to prefer GChat. Does anyone else have a preference? or really hate chat? ?Matt -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener >> > > > > -- > What most experimenters take for granted before they begin their experiments > is infinitely more interesting than any results to which their experiments > lead. > -- Norbert Wiener > -- Lisandro Dalc?n --- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594
Chat for coding collaboration
The steps are simple: 1) Invite partychat2 at gmail.com to chat using the contacts on the left 2) Open a chat with partychat2 3) In the window type '/join petsc' 4) Then we can all talk at once, and it will be saved I think Matt On Mon, Jul 20, 2009 at 4:02 PM, Andy Ray Terrel wrote: > I guess by using GChat you really mean use PartyChat ( > http://techwalla.googlepages.com/home )? No google doesn't support > IMAP or POP with GChat. There are some codes out there that do turn > any jabber server into emails but they don't seem very polished ( > http://people.happycoders.org/dax/projects/jmc ). I guess since most > people are into gchat I shouldn't go on about irc. > > If you are going to use chat rooms I would also recommend getting to > know dpaste ( http://dpaste.com ) which I find invaluable when > debugging someone's code over a chat room. > > -- Andy > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090720/9ceb5f52/attachment.html>
Chat for coding collaboration
I guess by using GChat you really mean use PartyChat ( http://techwalla.googlepages.com/home )? No google doesn't support IMAP or POP with GChat. There are some codes out there that do turn any jabber server into emails but they don't seem very polished ( http://people.happycoders.org/dax/projects/jmc ). I guess since most people are into gchat I shouldn't go on about irc. If you are going to use chat rooms I would also recommend getting to know dpaste ( http://dpaste.com ) which I find invaluable when debugging someone's code over a chat room. -- Andy
release-3.0.0 broken for C++ builds
On Jul 20, 2009, at 3:35 PM, Lisandro Dalcin wrote: > On Mon, Jul 20, 2009 at 5:01 PM, Barry Smith > wrote: >> >> Sorry, fixed. >> >> Say, isn't it about time we abolish PetscTruth? Are the C and C++ >> bool >> compatible with each other and compatible with Fortran 90's logical? >> > > C99 "_Bool" and C++ "bool" are likely compatible, at least if the same > compiler suite is used... in GCC, both have sizeof() == 1 . I remember > this surprised you some time ago, and even you said it was a nonsense > (you gave alignment arguments, though I failed to find any issues > there)... > So in C99 and C++ the boolean type has a different name? That seems really stupid. So we will still need a PetscTruth macro that maps to bool in c++ and _Bool in c? Then it is not worth changing. Barry > Regarding Fortran, I'm not so sure about compatibility... we could > have two problems: > > 1) non-matching sizeof() with the C99/C++ type, though in F90 we could > use logical(kind=XXX), right? > 2) Can we be 100% sure that in Fortran .TRUE./.FALSE. match C99/C++ > true/false in a bit-by-bit basis? I mean, is .FALSE. a 0 (zero) at the > binary level? > > > >> Barry >> >> On Jul 20, 2009, at 12:51 PM, Lisandro Dalcin wrote: >> >>> Barry, this time you are the guy to blame ;-) (at least for the >>> push) >>> >>> All these lines like below in src/mat/impls/aij/mpi/mpiaij.c are >>> wrong, you do not have implicit bool -> enum in C++. >>> >>> MatStashValuesXXX_Private(, ignorezeroentries && (addv == >>> ADD_VALUES)) >>> >>> >>> libfast in: /usr/local/petsc/3.0.0/src/mat/impls/aij/mpi >>> mpiaij.c: In function PetscErrorCode MatSetValues_MPIAIJ(_p_Mat*, >>> PetscInt, const PetscInt*, PetscInt, const PetscInt*, const >>> PetscScalar*, InsertMode): >>> mpiaij.c:396: error: cannot convert bool to PetscTruth for >>> argument 6 >>> to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, >>> PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) >>> mpiaij.c:398: error: cannot convert bool to PetscTruth for >>> argument 7 >>> to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, >>> PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) >>> mpiaij.c: In function void matsetvaluesmpiaij_(_p_Mat**, PetscInt*, >>> const PetscInt*, PetscInt*, const PetscInt*, const PetscScalar*, >>> InsertMode*, PetscErrorCode*): >>> mpiaij.c:5242: error: cannot convert bool to PetscTruth for >>> argument 6 >>> to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, >>> PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) >>> mpiaij.c:5244: error: cannot convert bool to PetscTruth for >>> argument 7 >>> to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, >>> PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) >>> >>> >>> -- >>> Lisandro Dalc?n >>> --- >>> Centro Internacional de M?todos Computacionales en Ingenier?a >>> (CIMEC) >>> Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica >>> (INTEC) >>> Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) >>> PTLC - G?emes 3450, (3000) Santa Fe, Argentina >>> Tel/Fax: +54-(0)342-451.1594 >> >> > > > > -- > Lisandro Dalc?n > --- > Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) > Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) > Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) > PTLC - G?emes 3450, (3000) Santa Fe, Argentina > Tel/Fax: +54-(0)342-451.1594
release-3.0.0 broken for C++ builds
Sorry, fixed. Say, isn't it about time we abolish PetscTruth? Are the C and C++ bool compatible with each other and compatible with Fortran 90's logical? Barry On Jul 20, 2009, at 12:51 PM, Lisandro Dalcin wrote: > Barry, this time you are the guy to blame ;-) (at least for the push) > > All these lines like below in src/mat/impls/aij/mpi/mpiaij.c are > wrong, you do not have implicit bool -> enum in C++. > > MatStashValuesXXX_Private(, ignorezeroentries && (addv == > ADD_VALUES)) > > > libfast in: /usr/local/petsc/3.0.0/src/mat/impls/aij/mpi > mpiaij.c: In function PetscErrorCode MatSetValues_MPIAIJ(_p_Mat*, > PetscInt, const PetscInt*, PetscInt, const PetscInt*, const > PetscScalar*, InsertMode): > mpiaij.c:396: error: cannot convert bool to PetscTruth for argument 6 > to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, > PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) > mpiaij.c:398: error: cannot convert bool to PetscTruth for argument 7 > to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, > PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) > mpiaij.c: In function void matsetvaluesmpiaij_(_p_Mat**, PetscInt*, > const PetscInt*, PetscInt*, const PetscInt*, const PetscScalar*, > InsertMode*, PetscErrorCode*): > mpiaij.c:5242: error: cannot convert bool to PetscTruth for argument 6 > to PetscErrorCode MatStashValuesRow_Private(MatStash*, PetscInt, > PetscInt, const PetscInt*, const PetscScalar*, PetscTruth) > mpiaij.c:5244: error: cannot convert bool to PetscTruth for argument 7 > to PetscErrorCode MatStashValuesCol_Private(MatStash*, PetscInt, > PetscInt, const PetscInt*, const PetscScalar*, PetscInt, PetscTruth) > > > -- > Lisandro Dalc?n > --- > Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) > Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) > Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) > PTLC - G?emes 3450, (3000) Santa Fe, Argentina > Tel/Fax: +54-(0)342-451.1594
Chat for coding collaboration
I use my mail reader for GChat. I think Apple can do that. Matt On Mon, Jul 20, 2009 at 2:53 PM, Barry Smith wrote: > > I want to use may mail reader as my front end > > Barry > > It happens to be Mail.app but that is not important > > > On Jul 20, 2009, at 2:41 PM, Andy Ray Terrel wrote: > > This is what irc is for and why lots of open source codes are on >> freenode servers. >> >> http://freenode.net/ >> >> Then you can pick what ever chat front end you want, log things for >> others to see, and so on. >> >> >> -- Andy >> >> >> >> On Mon, Jul 20, 2009 at 2:34 PM, Matthew Knepley >> wrote: >> >>> I have found chat to be the best way to resolve simple problems when >>> coding, >>> especially >>> questions about parts I did not write. It would be nice if we all had >>> access >>> to the same >>> chat program to facilitate this kind of interaction in our small group. >>> >>> I tend to prefer GChat. Does anyone else have a preference? or really >>> hate >>> chat? >>> >>> Matt >>> >>> -- >>> What most experimenters take for granted before they begin their >>> experiments >>> is infinitely more interesting than any results to which their >>> experiments >>> lead. >>> -- Norbert Wiener >>> >>> > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090720/31184f58/attachment.html>
Chat for coding collaboration
I want to use may mail reader as my front end Barry It happens to be Mail.app but that is not important On Jul 20, 2009, at 2:41 PM, Andy Ray Terrel wrote: > This is what irc is for and why lots of open source codes are on > freenode servers. > > http://freenode.net/ > > Then you can pick what ever chat front end you want, log things for > others to see, and so on. > > > -- Andy > > > > On Mon, Jul 20, 2009 at 2:34 PM, Matthew Knepley > wrote: >> I have found chat to be the best way to resolve simple problems >> when coding, >> especially >> questions about parts I did not write. It would be nice if we all >> had access >> to the same >> chat program to facilitate this kind of interaction in our small >> group. >> >> I tend to prefer GChat. Does anyone else have a preference? or >> really hate >> chat? >> >> Matt >> >> -- >> What most experimenters take for granted before they begin their >> experiments >> is infinitely more interesting than any results to which their >> experiments >> lead. >> -- Norbert Wiener >>
Chat for coding collaboration
I vote GChat Regards Yaakoub El Khamra On Mon, Jul 20, 2009 at 2:34 PM, Matthew Knepley wrote: > I have found chat to be the best way to resolve simple problems when coding, > especially > questions about parts I did not write. It would be nice if we all had access > to the same > chat program to facilitate this kind of interaction in our small group. > > I tend to prefer GChat. Does anyone else have a preference? or really hate > chat? > > ? Matt > > -- > What most experimenters take for granted before they begin their experiments > is infinitely more interesting than any results to which their experiments > lead. > -- Norbert Wiener >
Chat for coding collaboration
This is what irc is for and why lots of open source codes are on freenode servers. http://freenode.net/ Then you can pick what ever chat front end you want, log things for others to see, and so on. -- Andy On Mon, Jul 20, 2009 at 2:34 PM, Matthew Knepley wrote: > I have found chat to be the best way to resolve simple problems when coding, > especially > questions about parts I did not write. It would be nice if we all had access > to the same > chat program to facilitate this kind of interaction in our small group. > > I tend to prefer GChat. Does anyone else have a preference? or really hate > chat? > > ? Matt > > -- > What most experimenters take for granted before they begin their experiments > is infinitely more interesting than any results to which their experiments > lead. > -- Norbert Wiener >
Chat for coding collaboration
I have found chat to be the best way to resolve simple problems when coding, especially questions about parts I did not write. It would be nice if we all had access to the same chat program to facilitate this kind of interaction in our small group. I tend to prefer GChat. Does anyone else have a preference? or really hate chat? Matt -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090720/98f5d28a/attachment.html>