|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
String:findRegexp"foobar".findRegexp("o*bar");
throws a ERROR: A primitive was not bound. 0 525 Instance of Method { (08933440, gc=01, fmt=00, flg=11, set=04) instance variables [15] raw1 : Float 1.7800794579653544e-307 0040000C 00000000 raw2 : Float 3.522961154659544e-294 03020003 00000300 code : instance of Int8Array (08933580, size=4, set=1) selectors : nil constants : nil prototypeFrame : instance of Array (08933530, size=3, set=2) context : nil argNames : instance of SymbolArray (089334F0, size=3, set=1) varNames : nil sourceCode : nil ownerClass : class String (B742D9A0) name : Symbol 'findRegexp' primitiveName : Symbol '_String_FindRegexp' filenameSymbol : Symbol '/usr/share/SuperCollider/SCClassLibrary/Common/Collections/String.sc' charPos : Integer 4187 } ERROR: Primitive 'none' failed. Failed. RECEIVER: nil CALL STACK: MethodError:reportError 095E7F80 arg this = <instance of PrimitiveFailedError> Nil:handleError 095E7D00 arg this = nil arg error = <instance of PrimitiveFailedError> Thread:handleError 095E8070 arg this = <instance of Thread> arg error = <instance of PrimitiveFailedError> Object:throw 095E7FE0 arg this = <instance of PrimitiveFailedError> Object:primitiveFailed 095E7D60 arg this = nil Interpreter:interpretPrintCmdLine 09695400 arg this = <instance of Interpreter> var res = nil var func = <instance of Function> var code = ""foobar".findRegexp("o*bar");" Process:interpretPrintCmdLine 095E7A80 arg this = <instance of Main> I remeber this being implemented in boost and then something else, I can seem to find the right thread out there though. Well, I found this: http://www.nabble.com/regexp-matching-td13544795.html#a13561981 Is there a compile-time dependency that enables this functionality in the current sources? Thanks for any hints, Karsten |
|
|
Re: String:findRegexpAre you on Linux? IIRC, it was mostly developed by a mac user. It may
be that the scons file needs updating to make sure it's included. Dan 2008/6/26 krgn <k.gebbert@...>: > "foobar".findRegexp("o*bar"); > > throws a > > ERROR: A primitive was not bound. 0 525 > Instance of Method { (08933440, gc=01, fmt=00, flg=11, set=04) > instance variables [15] > raw1 : Float 1.7800794579653544e-307 0040000C 00000000 > raw2 : Float 3.522961154659544e-294 03020003 00000300 > code : instance of Int8Array (08933580, size=4, set=1) > selectors : nil > constants : nil > prototypeFrame : instance of Array (08933530, size=3, set=2) > context : nil > argNames : instance of SymbolArray (089334F0, size=3, set=1) > varNames : nil > sourceCode : nil > ownerClass : class String (B742D9A0) > name : Symbol 'findRegexp' > primitiveName : Symbol '_String_FindRegexp' > filenameSymbol : Symbol > '/usr/share/SuperCollider/SCClassLibrary/Common/Collections/String.sc' > charPos : Integer 4187 > } > ERROR: Primitive 'none' failed. > Failed. > RECEIVER: > nil > CALL STACK: > MethodError:reportError 095E7F80 > arg this = <instance of PrimitiveFailedError> > Nil:handleError 095E7D00 > arg this = nil > arg error = <instance of PrimitiveFailedError> > Thread:handleError 095E8070 > arg this = <instance of Thread> > arg error = <instance of PrimitiveFailedError> > Object:throw 095E7FE0 > arg this = <instance of PrimitiveFailedError> > Object:primitiveFailed 095E7D60 > arg this = nil > Interpreter:interpretPrintCmdLine 09695400 > arg this = <instance of Interpreter> > var res = nil > var func = <instance of Function> > var code = ""foobar".findRegexp("o*bar");" > Process:interpretPrintCmdLine 095E7A80 > arg this = <instance of Main> > > > I remeber this being implemented in boost and then something else, I can > seem to find the right thread out there though. Well, I found this: > http://www.nabble.com/regexp-matching-td13544795.html#a13561981 > Is there a compile-time dependency that enables this functionality in the > current sources? > > Thanks for any hints, > > Karsten > -- http://www.mcld.co.uk _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpOn Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> wrote: Are you on Linux? IIRC, it was mostly developed by a mac user. It may oh. yes, sorry, I should have mentioned that. I'm using debian/pure:dyne. |
|
|
Re: String:findRegexp2008/6/26 krgn <k.gebbert@...>:
> > > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> wrote: >> >> Are you on Linux? IIRC, it was mostly developed by a mac user. It may >> be that the scons file needs updating to make sure it's included. > > oh. yes, sorry, I should have mentioned that. I'm using debian/pure:dyne. As it turns out, I did misremember - it was developed by Flo on linux. It requires the "boost_regex" lib apparently. Dan _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpOn Thu, Jun 26, 2008 at 12:17 AM, Dan Stowell <danstowell@...> wrote:
oh really? does it work on the mac then? weird though, I thought I remember someone posting something about using the more standard glibc or something.. hmm. well, I used a Pipe for what I needed for now. would be great to find out though. cheers, karsten |
|
|
Re: String:findRegexpString:findRegexp is based on ICU 3.0 < http://www.icu-project.org/
>, should be pretty cross platform. On Jun 26, 2008, at 9:50 AM, krgn wrote: > > > On Thu, Jun 26, 2008 at 12:17 AM, Dan Stowell > <danstowell@...> wrote: > 2008/6/26 krgn <k.gebbert@...>: > > > > > > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell > <danstowell@...> wrote: > >> > >> Are you on Linux? IIRC, it was mostly developed by a mac user. > It may > >> be that the scons file needs updating to make sure it's included. > > > > oh. yes, sorry, I should have mentioned that. I'm using debian/ > pure:dyne. > > As it turns out, I did misremember - it was developed by Flo on linux. > It requires the "boost_regex" lib apparently. > > oh really? does it work on the mac then? weird though, I thought I > remember someone posting something about using the more standard > glibc or something.. hmm. well, I used a Pipe for what I needed for > now. would be great to find out though. > > cheers, > > karsten > _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpOn Thursday 26 June 2008 03:17:17 Dan Stowell wrote:
> 2008/6/26 krgn <k.gebbert@...>: > > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> wrote: > >> Are you on Linux? IIRC, it was mostly developed by a mac user. It may > >> be that the scons file needs updating to make sure it's included. > > > > oh. yes, sorry, I should have mentioned that. I'm using debian/pure:dyne. > > As it turns out, I did misremember - it was developed by Flo on linux. > It requires the "boost_regex" lib apparently. The scons file has no references to that. what gets defined extra in the mac build? sincerely, Marije _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpOn Thursday 26 June 2008, nescivi wrote:
> On Thursday 26 June 2008 03:17:17 Dan Stowell wrote: > > 2008/6/26 krgn <k.gebbert@...>: > > > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> > > wrote: > > >> Are you on Linux? IIRC, it was mostly developed by a mac user. It may > > >> be that the scons file needs updating to make sure it's included. > > > > > > oh. yes, sorry, I should have mentioned that. I'm using > > > debian/pure:dyne. > > > > As it turns out, I did misremember - it was developed by Flo on linux. > > It requires the "boost_regex" lib apparently. > > The scons file has no references to that. > what gets defined extra in the mac build? Actually my implementation back then was based on boost. But i think a mac user actually provided a different implementation which eventually found its way into trunk.. This one now uses regex.h which is a standard POSIX header IIRC.. Regards, Flo -- Palimm Palimm! http://tapas.affenbande.org _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpI would be careful about using findRegexp though, as as far as I know this bug is still at large
http://www.listarc.bham.ac.uk/lists/sc-dev/msg02239.html which will crash SC at random about one time in every 1000-10000 uses of that method (on OS X at least). Nathaniel 2008/6/26 Jan Trutzschler <sc3@...>: String:findRegexp is based on ICU 3.0 < http://www.icu-project.org/ >, should be pretty cross platform. |
|
|
Re: String:findRegexpaye. I agree with nescivi, the SConstruct should mention this for unix users who wish to build that way. at least, with it switched on, there might be more interest in this bug getting fixed, too? :)
On Thu, Jun 26, 2008 at 7:00 AM, Nathaniel Virgo <nathanielvirgo@...> wrote: I would be careful about using findRegexp though, as as far as I know this bug is still at large |
|
|
Re: String:findRegexpHiho,
On Thursday 26 June 2008 14:38:49 krgn wrote: > aye. I agree with nescivi, the SConstruct should mention this for unix > users who wish to build that way. at least, with it switched on, there > might be more interest in this bug getting fixed, too? :) for sure... just tell which compile flags it needs, which libs, and I can look into this... Which code file this is in, would help too... sincerely, Marije > > On Thu, Jun 26, 2008 at 7:00 AM, Nathaniel Virgo <nathanielvirgo@...> > > wrote: > > I would be careful about using findRegexp though, as as far as I know > > this bug is still at large > > > > http://www.listarc.bham.ac.uk/lists/sc-dev/msg02239.html > > > > which will crash SC at random about one time in every 1000-10000 uses of > > that method (on OS X at least). > > > > Nathaniel > > > > 2008/6/26 Jan Trutzschler <sc3@...>: > > > > String:findRegexp is based on ICU 3.0 < http://www.icu-project.org/ >, > > > >> should be pretty cross platform. > >> > >> On Jun 26, 2008, at 9:50 AM, krgn wrote: > >>> On Thu, Jun 26, 2008 at 12:17 AM, Dan Stowell <danstowell@...> > >>> wrote: > >>> > >>> 2008/6/26 krgn <k.gebbert@...>: > >>> > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> > >>> > >>> wrote: > >>> >> Are you on Linux? IIRC, it was mostly developed by a mac user. It > >>> >> may be that the scons file needs updating to make sure it's > >>> >> included. > >>> > > >>> > oh. yes, sorry, I should have mentioned that. I'm using > >>> > >>> debian/pure:dyne. > >>> > >>> As it turns out, I did misremember - it was developed by Flo on linux. > >>> It requires the "boost_regex" lib apparently. > >>> > >>> oh really? does it work on the mac then? weird though, I thought I > >>> remember someone posting something about using the more standard glibc > >>> or something.. hmm. well, I used a Pipe for what I needed for now. > >>> would be great to find out though. > >>> > >>> cheers, > >>> > >>> karsten _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
receiving by OSC from puredatahello,
I send any message from puredata by sendOSC object (in the same machine)I setting localhost and any port (like 9999)but when the message arrives to supercollider has another port number.(like 57149) why?...supercollider receive only in certains ports? I am using open sound control protocol,SC3,OSX tiger,powerbook G4. another question: the disgest mode don´t work in this maillist? I chose this mode in my settings. thanks a lot. Andrés Ferrari G. http://puredata.org/Members/anfex http://www.myspace.com/anfex http://www.youtube.com/anfex1 __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: receiving by OSC from puredataHiho,
(please start a new thread for a new topic, instead of replying to an existing thread). On Thursday 26 June 2008 18:38:55 Andres Ferrari wrote: > I send any message from puredata by sendOSC object (in the same machine)I > setting localhost and any port (like 9999)but when the message arrives to > supercollider has another port number.(like 57149) > > why?...supercollider receive only in certains ports? SC receives on NetAddr.langPort mostly this is 57120, sometimes 57121, or 57122, or ... The address you have to give the responder is the address that the message comes *from*, so the port Pd or anything else is using to send the message out. However not all programs use a fixed port for this, so you have to set the address to "nil", meaning that you listen to messages coming from everywhere with that OSC-tag. In an upstream version of SC (post 3.2), it is possible to set just the port of the address to nil, so you can at least limit it to a specific IP. > I am using open sound control protocol,SC3,OSX tiger,powerbook G4. > > another question: > > the disgest mode don´t work in this maillist? I chose this mode in my > settings. This mode does not work at the moment. Depending on Scott's dealings with the IT people it may or may not work in the future. I suggest using filters in your mail program to keep messages separate from other mails. sincerely, Marije _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: receiving by OSC from puredataOk,
I am not the one to answer this question, but since I had a 2-3 hours talk about this in a workshop and untill sb more adequate to answer shows up..... I hope I remember things correctly, if not excuse me, I hope sb will come up shortly to correct me.. First of all SCLang listens to 57120 and SCServer to 57110. So if you need to send a message to the server use the later port. Then, in order to send a osc message you need to give the sender the adress of the receiver, and tell the receiver what his own adress is.. When the message is received, you don't know and can't control the port from which it has actually left.. The only thing upon you actually have control is where the message goes.. Or sth similar, I don;t recall exactly the background theory, but untill sb who does shows up, bare in mind that there is some source of indetermination to some part of the path the message takes before it is finally receiaved. On 27 Ιουν 2008, at 5:27 ΠΜ, nescivi wrote: > Hiho, > > (please start a new thread for a new topic, instead of replying to > an existing > thread). > > On Thursday 26 June 2008 18:38:55 Andres Ferrari wrote: >> I send any message from puredata by sendOSC object (in the same >> machine)I >> setting localhost and any port (like 9999)but when the message >> arrives to >> supercollider has another port number.(like 57149) >> >> why?...supercollider receive only in certains ports? > > SC receives on > NetAddr.langPort > mostly this is 57120, sometimes 57121, or 57122, or ... > > The address you have to give the responder is the address that the > message > comes *from*, so the port Pd or anything else is using to send the > message > out. However not all programs use a fixed port for this, so you > have to set > the address to "nil", meaning that you listen to messages coming from > everywhere with that OSC-tag. > In an upstream version of SC (post 3.2), it is possible to set just > the port > of the address to nil, so you can at least limit it to a specific IP. > > >> I am using open sound control protocol,SC3,OSX tiger,powerbook G4. >> >> another question: >> >> the disgest mode don´t work in this maillist? I chose this mode in >> my >> settings. > > This mode does not work at the moment. Depending on Scott's > dealings with the > IT people it may or may not work in the future. > I suggest using filters in your mail program to keep messages > separate from > other mails. > > sincerely, > Marije > > _______________________________________________ > sc-users mailing list > > > info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/ > MusicTechnology/880 > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: String:findRegexpOn Thu, 2008-06-26 at 09:50 -0400, nescivi wrote:
> On Thursday 26 June 2008 03:17:17 Dan Stowell wrote: > > 2008/6/26 krgn <k.gebbert@...>: > > > On Wed, Jun 25, 2008 at 11:33 PM, Dan Stowell <danstowell@...> > wrote: > > >> Are you on Linux? IIRC, it was mostly developed by a mac user. It may > > >> be that the scons file needs updating to make sure it's included. > > > > > > oh. yes, sorry, I should have mentioned that. I'm using debian/pure:dyne. > > > > As it turns out, I did misremember - it was developed by Flo on linux. > > It requires the "boost_regex" lib apparently. > > The scons file has no references to that. > what gets defined extra in the mac build? > > sincerely, > Marije Did anyone get any luck with regexp under linux? This from lang/LangPrimSource/PyrUStringPrim.cpp suggests that there is code missing: #else // !SC_DARWIN void initUStringPrimitives(); void initUStringPrimitives() { //other platforms? - icu should be running on linux too } #endif // SC_DARWIN best alex _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
| Free Forum Powered by Nabble | Forum Help |