Home > Archive > Smalltalk > November 2005 > Including external Libaries (C/C++)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Including external Libaries (C/C++)
|
|
| D_Peglow 2005-11-07, 10:03 pm |
| Hello,
which Smalltalk product is best for integrating C/C++ libraries in the
Smalltalk enviroment of the vendor? I'm looking for a Smalltalk that has
a good C/C++ API glue. Is it possible at all? Platform would be Windows.
The C/C++ library I want to integrate has realtime Events coming from
financial markets (C/C++ callbacks) that need to be processed and
displayed in a GUI (stock price ticker for example).
My Smalltalk backround is 10 years back (Enfin Smalltalk). I don't know
if this product exists any more and what is state of the art at the
moment. So I need I good Smalltalk implementation to start with that has
a powerful C/C++ API.
Thanks,
Dietmar.
| |
| Friedrich Dominicus 2005-11-07, 10:03 pm |
| D_Peglow <news_peg02@snafu.de> writes:
> Hello,
>
> which Smalltalk product is best for integrating C/C++ libraries in the
> Smalltalk enviroment of the vendor? I'm looking for a Smalltalk that
> has a good C/C++ API glue. Is it possible at all? Platform would be
> Windows.
>
Smalltalk/X claims to be easy on that:
ttp://www.exept.de/exept/english/Smalltalk/frame_uebersicht.html
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.
| |
| Andy Bower 2005-11-07, 10:03 pm |
| Dietmar,
>
> which Smalltalk product is best for integrating C/C++ libraries in
> the Smalltalk enviroment of the vendor? I'm looking for a Smalltalk
> that has a good C/C++ API glue. Is it possible at all? Platform would
> be Windows.
>
> The C/C++ library I want to integrate has realtime Events coming from
> financial markets (C/C++ callbacks) that need to be processed and
> displayed in a GUI (stock price ticker for example).
If the library you want to connect to has an ActiveX/COM interface then
I would definitely recommend Dolphin Smalltalk from our company Object
Arts. Dolphin has already proven itself in the financial markets arena
since we have been using it now for over a year to handle live stock
market feeds. See:
www.alchemetrics.org
Dolphin will also call out to C DLLs but C++ callouts are more of a
problem unless the calls are all virtual (and even then, name mangling
makes this tricky). YOu can, however, define C style callbacks. Take a
look at the external interfacing documentation here:
http://www.object-arts.com/Lib/Educ...nalinterfacing.
htm
> My Smalltalk backround is 10 years back (Enfin Smalltalk). I don't
> know if this product exists any more and what is state of the art at
> the moment. So I need I good Smalltalk implementation to start with
> that has a powerful C/C++ API.
Enfin is now ObjectStudio which is owned by Cincom.
Best regards,
Andy Bower
www.object-arts.com
| |
| Chris Uppal 2005-11-07, 10:03 pm |
| D_Peglow wrote:
> which Smalltalk product is best for integrating C/C++ libraries in the
> Smalltalk enviroment of the vendor? I'm looking for a Smalltalk that has
> a good C/C++ API glue. Is it possible at all? Platform would be Windows.
>
> The C/C++ library I want to integrate has realtime Events coming from
> financial markets (C/C++ callbacks) that need to be processed and
> displayed in a GUI (stock price ticker for example).
Dolphin's external interfacing is pretty good (the only significant limitation
is that it's not always happy working with libraries that use OS threads).
From the sound of your application I wouldn't anticipate any problems
integrating Dolphin and your library. Dolphin is also a good environment for
producing very "Windowsy" applications since it uses native Windows widgets
throughout (another reason to be confident that the external interfacing has
been properly worked out).
Smalltalk MT can probably claim to have even better external interfacing. I
tried ST-MT some years ago and didn't like it much. The difference /then/ was
that the environment seemed less finished, and less stable, and also that it
worked very close to the metal -- you were nearly always programming using raw
Win32 APIs, rather than the Dolphin approach of exposing those APIs only at the
lowest level and building sensible abstractions on top of them.
I am, BTW, a Dolphin user and not a SM-MT user, which could be taken either as
support for the opinions above, or as a reason to suspect bias ;-)
-- chris
| |
| D_Peglow 2005-11-07, 10:03 pm |
| Andy,
just downloaded ther dolphin trial. 10 years now that I wrote my last
line of smalltalk code :-) Coll feeling to enter "200 factorial." ;-)
> If the library you want to connect to has an ActiveX/COM interface then
> I would definitely recommend Dolphin Smalltalk from our company Object
> Arts. Dolphin has already proven itself in the financial markets arena
> since we have been using it now for over a year to handle live stock
> market feeds.
Which market feeds (e.g. Telerate, Reuters ... ) have been connected
using what kind of technique?
Thanks,
Dietmar
| |
| Andy Bower 2005-11-07, 10:03 pm |
| Dietmar,
> Which market feeds (e.g. Telerate, Reuters ... ) have been connected
> using what kind of technique?
Alchemetrics uses Quote.com/QCharts to retrieve realtime price
information for about 1500 stocks. It also uses the same service to
retrieve daily bar data overnight in order to prepare buy/sell orders
for the coming day. The Dolphin interface to this is via an ActiveX
interface.
www.quote.com
Orders are submitted via Interactive Brokers who also have an ActiveX
API. They can also supply live quotes but we don't use this feature.
http://www.interactivebrokers.com/e...eComparison.php
Best regards
Andy Bower
www.object-arts.com
| |
| Eliot Miranda 2005-11-07, 10:03 pm |
|
D_Peglow wrote:
> Hello,
>
> which Smalltalk product is best for integrating C/C++ libraries in the
> Smalltalk enviroment of the vendor? I'm looking for a Smalltalk that has
> a good C/C++ API glue. Is it possible at all? Platform would be Windows.
>
VW has good (not great) glue for C. C++ needs to be wrapped in C.
> The C/C++ library I want to integrate has realtime Events coming from
> financial markets (C/C++ callbacks) that need to be processed and
> displayed in a GUI (stock price ticker for example).
No problem. VW supported threaded and non-threaded callbacks.
> My Smalltalk backround is 10 years back (Enfin Smalltalk). I don't know
> if this product exists any more and what is state of the art at the
> moment. So I need I good Smalltalk implementation to start with that has
> a powerful C/C++ API.
ENFIN is now called ObjectStudio and is the sister Smalltalk environment
to VisualWorks at Cincom. We're currently involved in a project to
rehost ObjectStudio within the VW environment so that one has the
benefits of VW's faster execution technology, namespaces, ANSI blocks,
et al.
--
_______________,,,^..^,,,____________________________
Eliot Miranda Smalltalk - Scene not herd
| |
| Ian Upright 2005-11-17, 7:03 pm |
| Hello, soon I'll be releasing a Swig module that supports S# and VW
Smalltalk. Hopefully it won't be too hard for others to port it to Dolphin,
Squeak, etc.. www.swig.org
Ian
D_Peglow <news_peg02@snafu.de> wrote:
>Hello,
>
>which Smalltalk product is best for integrating C/C++ libraries in the
>Smalltalk enviroment of the vendor? I'm looking for a Smalltalk that has
>a good C/C++ API glue. Is it possible at all? Platform would be Windows.
>
>The C/C++ library I want to integrate has realtime Events coming from
>financial markets (C/C++ callbacks) that need to be processed and
>displayed in a GUI (stock price ticker for example).
>
>My Smalltalk backround is 10 years back (Enfin Smalltalk). I don't know
>if this product exists any more and what is state of the art at the
>moment. So I need I good Smalltalk implementation to start with that has
>a powerful C/C++ API.
>
>Thanks,
>
>Dietmar.
---
http://www.upright.net/ian/
| |
| Reinout Heeck 2005-11-17, 7:03 pm |
| Ian Upright wrote:
> Hello, soon I'll be releasing a Swig module that supports S# and VW
> Smalltalk. Hopefully it won't be too hard for others to port it to
> Dolphin,
> Squeak, etc.. www.swig.org
Will this module emit C or Smalltalk?
I like the VW way of having a platform independent C-connect (just hand me
the library babe) instead of needing a wrapper compiler for every platform.
Will the module support that?
R
-
|
|
|
|
|