Stef, Always the idealist, our fearless leader :)
I believe Esteban is absolutely correct in what he says. Yes, it is silly to need FFI and alien, but Alien is where callbacks are rumored to work. What was not available was a linux alien library, and I'm hearing that works now. My image is ancient, so a save/build won't kill me, even if it flops. Andreas Raab described a generic callback mechanism for FFI, but from here, it's vapor ware. I'm sure he could do it, but I have other battles to fight, and might fail anyway. If the mechanism Andreas described were to appear, I'd certainly try it. NB can do callbacks (I think), but I'm not Sig... You have the answer planned: live long and prosper with callbacks and threaded calls. I just need *something* that works. Callbacks will do a lot for my gsl wrappers - the bindings aren't much us w/o the carefully coded classes for roots, LM minimizer (curve fitting<g>), FFT and wavelets, etc. I generated what I have pre-underscore fixes, and it needs to be redone (really does....) and callbacks bring the solvers to life in the image vs. dll/so. Anyway, that's what I'm trying to create for us. Bill ________________________________________ From: [email protected] [[email protected]] on behalf of Stéphane Ducasse [[email protected]] Sent: Wednesday, February 01, 2012 3:25 AM To: [email protected] Subject: Re: [Pharo-project] Cog+linux: external module not found I'm confused. Why do you need alien in addition to FFI. And loading the latest version is not a way to get reproducible situation. Stef > we are using it with success... installed this way: > > Gofer it > squeaksource: 'MetacelloRepository'; > package: 'ConfigurationOfFFI'; > load. > (ConfigurationOfFFI project version: '1.5') load. > > Gofer it > squeaksource: 'Alien'; > package: 'Alien'; > load. > > not sure if you need the both, but having them is easier: you can subclass > ExternalLibrary, etc.... and use FFI in the old way <apicall:>, and when you > need a callback you use alien Callback. > > (works on pharo 1.3 and 1.4) > > best, > Esteban > > El 31/01/2012, a las 7:53p.m., Eliot Miranda escribió: > >> >> >> On Tue, Jan 31, 2012 at 12:03 PM, Schwab,Wilhelm K <[email protected]> >> wrote: >> Eliot, >> >> Interesting news... On Linux? Is there a good place to hunt for examples? >> >> Yes, on all three platforms. Alien. See >> http://www.squeaksource.com/Alien/Alien-kb.15 >> >> >> Bill >> >> >> ________________________________________ >> From: [email protected] >> [[email protected]] on behalf of Eliot Miranda >> [[email protected]] >> Sent: Tuesday, January 31, 2012 2:41 PM >> To: [email protected] >> Subject: Re: [Pharo-project] Cog+linux: external module not found >> >> On Tue, Jan 31, 2012 at 12:36 AM, Schwab,Wilhelm K >> <[email protected]<mailto:[email protected]>> wrote: >> Göran, >> >> Thanks for what you do, and for noticing what I (at least try) to >> contribute. Some other "tangible" items in my queue *will* be worth the >> wait[*]. I sincerely hope you are correct about a misunderstanding being at >> the base of thread. >> >> Hopefully, we can all dust ourselves off [**] and make FFI robust everywhere. >> >> Best regards, >> >> Bill >> >> [*] I know I've said this for essentially Pharo's entire life cycle, but >> it's true... Callbacks, my kingdom for callbacks. >> >> Callbacks in Cog work. The threaded VM needs work, but synchronous >> callbacks from blocking FFI calls work now. You may have to integrate >> image-level code but the VM has support and it works. >> >> >> [**] Some US slang for Stef's benefit :) >> >> >> ________________________________________ >> From: >> [email protected]<mailto:[email protected]> >> >> [[email protected]<mailto:[email protected]>] >> on behalf of Göran Krampe [[email protected]<mailto:[email protected]>] >> Sent: Tuesday, January 31, 2012 3:05 AM >> To: >> [email protected]<mailto:[email protected]> >> Subject: Re: [Pharo-project] Cog+linux: external module not found >> >> Hi guys! >> >> On 01/09/2012 09:36 PM, Sven Van Caekenberghe wrote: >> > On 09 Jan 2012, at 20:06, Schwab,Wilhelm K wrote: >> >> I think you have the situation very much in reverse. You are flying off >> >> the handle, not me. >> >> >> >> Cog deserves better than to ignore feedback from motivated users. >> >> Motivated users deserve better than to be insulted for their efforts to >> >> improve it. >> > >> > Pharo, Squeak, Cog, Seaside, and most other Smalltalk software on >> > SqueakSource is open source, written almost exclusively by people in their >> > free time. And although most of them will try to help the users of their >> > software the best they can, they cannot and should not do just anything >> > unless they want to. The relation between open source authors and their >> > users should be mutually productive. Using software and giving feedback if >> > one thing, but it is not enough. It can't be one way all the time. >> > >> > I might be wrong, but I fail to find >> > >> > - any issues you put in the issue tracker(s) >> > - any issues you solved >> > - any open source software you published on SqueakSource or anywhere else >> > - any blog post or web pages with documentation, tutorials, .. that you >> > wrote >> > >> > I hope you get the point: there are many more ways to contribute than what >> > you are doing now. >> > >> > Pharo and other projects need all the help they can get, give back to the >> > community, we are all using software written by others in the same spirit, >> > it is only fair to honor these contributions. >> > >> > My 2c, >> >> This thread is long dead but I just wanted to mention that Wilhelm >> Schwab is a long time Squeaker and has been active in the community long >> before Pharo was even born. ;) >> >> Now, it seems to me that the "heat" in this particular thread was based >> on a misunderstanding, I know Eliot and it didn't seem to me he was >> trying to insult. >> >> General observation: Try taking it easy on the "what the heck have you >> done for us?"-talk. I have made several such similar posts too over the >> years when I got frustrated, but it might backfire if you aren't >> shooting at the "right people". We take pride in being a friendly >> community (Smalltalk at large) and I presume Pharo does too :) >> >> regards, Göran >> >> >> >> >> >> -- >> best, >> Eliot >> >> >> >> >> >> -- >> best, >> Eliot >> >
