Squeak Socket Primitives

Craig Latta Craig.Latta at NetJam.ORG
Wed Nov 10 01:42:54 UTC 1999


hello again--

	Thanks for the info!

> How much performance will you be able to get out of a Squeak-based
> server on the Mac? I hope that will be limited only by the speed of
> your hardware and the quality of the underlying OS socket 
> implementation.

	I think performance will suffer if the Squeak VM continues to poll for socket events.

> Regarding Craig's web page on sockets at:
> http://netjam.org/correspondents/advocacy.html. I don't buy his
> arguments that having the VM report socket state changes via
> two semaphores is intrisically better than a single semaphore. I'm
> not saying the current Squeak socket primitives design is better;
> it's just different from Craig's design.

	Lest someone joining the conversation here think this is only the issue, I'd like to reiterate that it is not. There are several more important issues. Squeakers, please see the webpage for my complete argument.

> ...at this point the Squeak primitives have been implemented and 
> debugged on quite a number of platforms including the Sharp iCruise...

	Does the iCruise pose a special challenge?

> ...and I see no reason to change them unless they are either
> inherently flawed or unimplementable. I don't believe either is
> the case. (The lack of "accept()" semantics on the Mac is an 
> implementation bug, not a design flaw, and that will be fixed.)

	I do think the current primitives are inherently flawed. The "accept" problem is another relatively minor issue. Again, I urge Squeakers to read the comparison webpage.

> What Squeak *could* use, I believe, is a simple and reliable 
> SocketStream implementation.

	I think Correspondents provides a very good implementation (NetStream), which incidentally works with all external resources, including sockets, files, serial ports, etc. Correspondents also provides a  client and server framework which uses it to good effect, and could be the basis of robust and easy-to-use reimplementations of Squeak's current internet clients and servers. I'm interested in speaking with anyone with related ideas.


	thanks again,

-C


--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
latta at interval.com
Smalltalkers do: [:it | All with: Class, (And love: it)]





More information about the Squeak-dev mailing list