Re: Sport and the future



Janko Mivsek <janko.mivsek@xxxxxxxxxx> wrote:

Hi Eliot, hi Bruce,

I also join Bruce to first define (let's say) an API for sockets (and
files and times) and later deal with implementation.

Hi Janko,

One of the things is, that we could end up pulling some C++ library off the
shelf, and plugging it in. Presto, we have an instance interface, and as
the C++ library is enhanced and evolves over time, so is our base library.
In such a case, it might make more sense to have nearly identical or very
similar class/method names as the C++ library, for consistency. And in such
a case, then this interface could potentially be quite different than what
we would design as the initial interface -- or create a significant
impedence mismatch that could be painful to deal with.

Cheers, Ian

I also understand
you Eliot that implementation can influence back an API, but with having
that in mind we can overcome problems. For instance - using only
blocking socket calls we can "simulate" nonexistent concurrency on lower
level ...

Best regards
Janko

Eliot Miranda wrote:
Bruce Badger wrote:
Eliot,

I confess that I am more interested in the interfaces presented by the
libraries than the implementation of them, but I do think the FFI
approach makes a great deal of sense and could form a lower level set
of interfaces for doing all kinds of cool things.

I am hoping that Sport is like the irritating bit of grit that makes
an oyster grow a pearl. As a user of this pearl (or string of pearls
- one for each of sockets, files etc.) I only care that it's smooth,
consistent, looks nice and lasts. If the pearl makers get a better
way of making pearls too (e.g. FFI), then that's a big bonus.

What I would be uncomfortable about would be making Sport *depend* on
an FFI implementation ... or the other way around.

The problem is that basic facilities like threading determine how one
can write a given interface. This is especially true of things like
socket interfaces which involve asynchrony. IMO, if the community can
establish a basic level of FFI facilities that provide adequate
threading and callback facilities then the quality and portability of
Sport interfaces will be much enhanced.


I hope we get to talk more about FFIs at ESUG, Eliot. Will you be
there? :-)

Lugano in August. Hard to turn down. Right now I'm not planing on
attending. I have to first open my employer's purse strings ;)


All the best,
Bruce

cheers!

---
http://www.upright.net/ian/
.



Relevant Pages

  • Re: Variable uses a type not supported in Visual Basic (Error 458)
    ... > Microsoft Visual Basic for Applications Software Development Kit ... > interface in a Visual Basic class, ... > generate libraries that use a Visual Basic- or Visual Basic for ... > Rebuild your type library by pressing CTRL+F7 or selecting Compile ...
    (microsoft.public.vb.bugs)
  • Re: Recommendations for JavaScript drop-down menu code
    ... to not having a long enough history working with browsers to ... Obviously these individuals are not aware that there code has these issues following from their inexperience, but now your project manager cannot solve his problem by just using a library unless he has someone who knows the issues themselves and so can point out which libraries properly handle them and which doe not. ... interface and a base implementation of that interface. ... but it is still important that the interface design stage takes into account the need to accommodate the whole range of possible implementations of the interface. ...
    (comp.lang.javascript)
  • Re: TrueCrypt 4.0 Out
    ... >> Again you show that you know very little about information security. ... > If you don't understand the code enough to change a calling interface ... reasons for not making changes to this code unless this cannot be avoided. ... I can certainly now see why you mistkenly think that libraries are ...
    (sci.crypt)
  • Re: Recommendations for JavaScript drop-down menu code
    ... rare browsers may not be considered a wise ... for all the standard Java libraries, ... interface and a base implementation of that interface. ... implementations that are employed in the context, ...
    (comp.lang.javascript)
  • Re: Recommendations for JavaScript drop-down menu code
    ... to not having a long enough history working with browsers to ... libraries are deferring to the comparatively greater experience of the ... interface and a base implementation of that interface. ... trying to avoid even writing. ...
    (comp.lang.javascript)

Loading