Socket patches

Tony Garnock-Jones tonyg at lshift.net
Fri Nov 4 13:00:06 PST 2005


Attached.
-------------- next part --------------

New patches:

[Detail in socket_CreateSocketAndConnectByDNS in case of error
Tony Garnock-Jones <tonyg at kcbbs.gen.nz>**20051104205125] {
hunk ./src/plugins/socket/unix/socket.c 19
-  if(fd == -1) return -1;
+  if (fd == -1) {
+    perror("socket failed");
+    return -1;
+  }
}

[/Clone/ sockets, don't reuse the same one!
Tony Garnock-Jones <tonyg at kcbbs.gen.nz>**20051104205147] {
hunk ./src/lib/net/socket.slate 56
-  s nativeType `>>
+  s nativeType clone `>>
hunk ./src/lib/net/socket.slate 63
-  s nativeType `>>
+  s nativeType clone `>>
hunk ./src/lib/net/socket.slate 72
-  s nativeType `>>
+  s nativeType clone `>>
}

Context:

[Bug fixes for the arity and allSelectorsSent methods.
Brian T. Rice <water at tunes.org>**20051102234044] 
[Added a #swing method to Method ported from relative obscurity of Haskell, reference included in comment.
Brian T. Rice <water at tunes.org>**20051102233953] 
[Minor process.slate cleanups.
Brian T. Rice <water at tunes.org>**20051102174800] 
[Fixed splitWith: to honor the &includeEmpties: optional
Attila Lendvai <attila.lendvai at netvisor.hu>**20051029171103] 
[Added `defaultsTo:
Attila Lendvai <attila.lendvai at netvisor.hu>**20051029170624] 
[Various Syntax Node additions (parenthesize) and fixes
Attila Lendvai <attila.lendvai at netvisor.hu>**20051029170412] 
[Added String refactoring to the NEWS file
Attila Lendvai <attila.lendvai at netvisor.hu>**20051029170042] 
[Added a roleIndices map introspection method which returns an Array of all indices an object has roles for dispatch positions. Also a reset method was added for RoleReadStream.
Brian T. Rice <water at tunes.org>**20051027222122] 
[Added a #last method to InjectStream to quickly get the last value.
Brian T. Rice <water at tunes.org>**20051027221946] 
[Makefile clean rule update to recurse over platform directory and plugins.
nickf at system-7.freeserve.co.uk**20051027184756] 
[Temporary patch to boot.c to bootstrap in the InterruptFlag change to the VM interface.
Brian T. Rice <water at tunes.org>*-20051027190342] 
[Temporary patch to boot.c to bootstrap in the InterruptFlag change to the VM interface.
Brian T. Rice <water at tunes.org>**20051027190342] 
[Fix prototype of slate_GetTimeZoneOffsetInSeconds to allow plugins to compile.
Tony Garnock-Jones <tonyg at lshift.net>**20051027143741] 
[Install shortcut to socket primitives.
Tony Garnock-Jones <tonyg at lshift.net>**20051027143648
 
 The code has been written to expect the presence of this shortcut, but
 the ExternalInterface lives in a different namespace.
] 
[Remove double-send of n.
Tony Garnock-Jones <tonyg at lshift.net>**20051026225007
 
 What was happening was that the `>> macro expanded into some text
 like: "n n pointTailTo: rest". I couldn't find it for ages, since the
 double-send isn't lexically apparent!
] 
[#forString: seems to have been replaced by #for:.
Tony Garnock-Jones <tonyg at lshift.net>**20051026224933] 
[Updated the "following development" section of the README for new Makefile concerns.
Brian T. Rice <water at tunes.org>**20051026222552] 
[Internal symbol renames in the new process.slate.
Tony Garnock-Jones <tonyg at lshift.net>**20051026215719] 
[Rename thread.slate to process.slate, replacing the old process.slate
Tony Garnock-Jones <tonyg at lshift.net>**20051026215435] 
[Remove obsolete process.slate.
Tony Garnock-Jones <tonyg at lshift.net>**20051026215355] 
[Modification to boot.c to drive a context-switch loop, plus support code.
Tony Garnock-Jones <tonyg at lshift.net>**20051026213752
 
 The new trampoline in boot.c uses (lobby globals specialOops at: 17)
 as a register containing the currently-active interpreter. Each time
 the InterruptFlag is set, the trampoline clears it, and reenters the
 interpreter.
 
 The support code in thread.slate makes use of this, replacing the 17th
 specialOop as appropriate, and managing a toy round-robin cooperative
 scheduler.
 
 NOTE: that before you apply this patch you will need to have a VM and
 image that support InterruptFlag (in the VM), "Interpreter interrupt"
 (in the image) and "Interpreter initializeThreadOn:" (also in the
 image).
] 
[Support an interrupt flag, and primitive for building an Interpreter.
Tony Garnock-Jones <tonyg at lshift.net>**20051026213532
 
 The InterruptFlag global is used to tell the "Interpreter interpret"
 method to return to its caller. This will be used in boot.c to drive
 a trampoline that allows code to switch the active Interpreter instance.
 
 The new primitive "Interpreter initializeThreadOn:" is used to create
 suspended Interpreter instances that can be switched out using
 (lobby globals specialOops at: 17) and the InterruptFlag.
] 
[Correct case of "lobby globals".
Tony Garnock-Jones <tonyg at lshift.net>**20051026180233] 
[Fix simple bugs in Interpreter Frame abstraction.
Tony Garnock-Jones <tonyg at lshift.net>**20051026174945] 
[Silly cleanups of the X11 port code, since it still does not work.
Brian T. Rice <water at tunes.org>**20051020035222] 
[Cut String into ASCIIString/String
Attila Lendvai <attila.lendvai at netvisor.hu>**20051024233256] 
[BigInteger bug fixes.
eihrul at tunes.org**20051023221409] 
[Debugger fix for nested condition printing.
eihrul at tunes.org**20051019162027] 
[Slight updates to the README regarding makefile usage.
Brian T. Rice <water at tunes.org>**20051019013157] 
[Widespread but minor code cleanups.
Brian T. Rice <water at tunes.org>**20051018233911] 
[Simple Integer code cleanups, using byteShift:, define:.
Brian T. Rice <water at tunes.org>**20051010075335] 
[Timezone patch cleanup.
eihrul at tunes.org**20051015201136] 
[Time plugin fixes, cygwin compatibility
Attila Lendvai <attila.lendvai at netvisor.hu>**20051015123217] 
[Fixed closing of inspectors.
Brian T. Rice <water at tunes.org>**20051013083440] 
[Partially fix #do: for queues
bpt at tunes.org**20051011235653] 
[Makefile install target and some new rules to meet the GNU Coding Standards
nickf at system-7.freeserve.co.uk**20051010210540] 
[More agnostic version of ReadStream next:putInto:
eihrul at tunes.org**20051011201402] 
[ReadBufferStream fixes.
eihrul at tunes.org**20051011200210] 
[RingBuffer addAllFirst: and addAllLast: fixes
eihrul at tunes.org**20051011194953] 
[Correct names of WriteBufferStream, ReadBufferStream in reference manual
bpt at tunes.org**20051010063652] 
[Some benchmark tests from the Computer Language Shootout.
nickf at system-7.freeserve.co.uk**20051005214746] 
[Removal of assert macros from optimized builds.
nickf at system-7.freeserve.co.uk**20050930180032] 
[Signal infinite loop fix on test failures and various other test updates
nickf at system-7.freeserve.co.uk**20050925170848] 
[Fixed external method support for Double-type parameters.
pavouk100 at volny.cz**20050919190224] 
[External methods extended to be able to have up to 16 word-sized parameters.
pavouk100 at volny.cz**20050919190113] 
[Bootstrap bug-fixes.
Brian T. Rice <water at tunes.org>**20050919064851] 
[Fixed allSelectorsSent for the case where the sourceTree is available.
Brian T. Rice <water at tunes.org>**20050920034251] 
[Adjusted collectGarbage primitive.
Brian T. Rice <water at tunes.org>**20050919140451] 
[Changed Dictionary Nil-key handling to warn instead of signal an error, for transition purposes.
Brian T. Rice <water at tunes.org>**20050919133525] 
[Makefile cleanups.
Brian T. Rice <water at tunes.org>**20050919072157] 
[Re-added a top-level Makefile install target.
Brian T. Rice <water at tunes.org>**20050919071049] 
[Fixed the Makefile rules to use $(VM).c and not just vm.c.
Brian T. Rice <water at tunes.org>**20050919065651] 
[Added accessorMethods and mutatorMethods.
Brian T. Rice <water at tunes.org>**20050919061419] 
[Moved slotCount and delegateCount to pre-bootstrap code, since they are shadowed now by vm/interp/map.slate.
Brian T. Rice <water at tunes.org>**20050919051934] 
[Noted and handled Nil keys in a Dictionary.
Brian T. Rice <water at tunes.org>**20050919044037] 
[Overrode #new and #copy on Symbol to not create un-interned Symbols.
Brian T. Rice <water at tunes.org>*-20050915214235] 
[Exposed the garbageCollect VM routine as collectGarbage primitive.
Brian T. Rice <water at tunes.org>**20050916143155] 
[Fixed File Locator printing to escape its contents, and fixed String escaped for space characters.
Brian T. Rice <water at tunes.org>**20050915232747] 
[Created byteShift: for bootstrap code.
Brian T. Rice <water at tunes.org>**20050915230947] 
[Moved intoByte to numeric.slate.
Brian T. Rice <water at tunes.org>*-20050915222829] 
[Use of define: in numeric.slate.
Brian T. Rice <water at tunes.org>**20050915223152] 
[Moved intoByte to numeric.slate.
Brian T. Rice <water at tunes.org>**20050915222829] 
[Added a #sign method to Comparable, based on < and <=>.
Brian T. Rice <water at tunes.org>**20050915223217] 
[Bug-fix for intoByte.
Brian T. Rice <water at tunes.org>**20050915220347] 
[Cleanups to bootstrapping code.
Brian T. Rice <water at tunes.org>**20050915214358] 
[Overrode #new and #copy on Symbol to not create un-interned Symbols.
Brian T. Rice <water at tunes.org>**20050915214235] 
[Added comments and cleaned up formatting of prims.slate.
Brian T. Rice <water at tunes.org>**20050915205928] 
[Added automation to fix html table output, but wound up breaking diagram support in the progman makefile.
Brian T. Rice <water at tunes.org>**20050915040641] 
[Improved the Makefile to generate .tex from lyx.
Brian T. Rice <water at tunes.org>**20050915022952] 
[Added a Makefile for the reference manual under doc/.
Brian T. Rice <water at tunes.org>**20050915022505] 
[Added more Syntax equality/hash methods.
Brian T. Rice <water at tunes.org>**20050915002811] 
[Manual updates for standardizing message-send tracing on "send" vs. "call" in method names.
Brian T. Rice <water at tunes.org>**20050914214806] 
[Replaced the use of "Call" in message-send tracing routines with "Send" for uniformity with sendWith:/sendTo:/allSelectorsSent, etc. So the new methods are #senders, #macroSenders, #methodsSending:.
Brian T. Rice <water at tunes.org>**20050914213636] 
[Fixes to method-call query methods.
Brian T. Rice <water at tunes.org>**20050914055310] 
[Fixes to role/method introspection due to a bug in RoleReadStream, and an implementation of #roles and #methods to access all roles and methods on a given object.
Brian T. Rice <water at tunes.org>**20050914050718] 
[Added beginningWith:, endingWith:, containing: to the global Symbols table for convenient searching.
Brian T. Rice <water at tunes.org>**20050914035012] 
[Update Makefile byteorder test to work better under Windows.
nickf at system-7.freeserve.co.uk**20050912122535] 
[Some more plug-in Makefile enhancements (take 2).
nickf at system-7.freeserve.co.uk**20050911115512] 
[Renamed tracer.slate to segment.slate.
Brian T. Rice <water at tunes.org>**20050910230422] 
[Updated the Tracer with a new model calling it a Segment.
Brian T. Rice <water at tunes.org>**20050910230303] 
[Plugin c compiler warnings cleanup.
nickf at system-7.freeserve.co.uk**20050908202214] 
[Refactored rolesDo: and callers into a roleReader stream-based protocol.
Brian T. Rice <water at tunes.org>**20050908090921] 
[Iterator code cleanups.
Brian T Rice <water at tunes.org>**20050908020835] 
[ByteCompiler definition cleanups.
Brian T Rice <water at tunes.org>**20050830161856] 
[Condition definition code cleanup.
Brian T Rice <water at tunes.org>**20050830161555] 
[Refactoring of plugins Makefiles and rename of Makefile.inc to common.mk
nickf at system-7.freeserve.co.uk**20050906212201] 
[Consolidated the reference manual's introspection notes into one section, and added more entries.
Brian T. Rice <water at tunes.org>**20050907023040] 
[Added macroCallers&in: to Symbol, and supporting methods allMacroSelectorsSent and methodsCallingMacro:.
Brian T. Rice <water at tunes.org>**20050907014652] 
[Added CompiledMethod recompile for updating methods based on their annotated sources.
Brian T. Rice <water at tunes.org>**20050907011715] 
[Added BOOTFILES as a rule pre-requisite for building the VM.
The Slate Team <slate at tunes.org>**20050906175940] 
[Made use of the VERSION file in Makefile.inc.
The Slate Team <slate at tunes.org>**20050906175231] 
[Added a VERSION file for automation/build update purposes.
The Slate Team <slate at tunes.org>**20050906175007] 
[Grouping definition cleanups.
Brian T Rice <water at tunes.org>**20050830161824] 
[Added an Image save &startupREPL: option to allow live saving that does not continue the stack from the immediate context.
Brian T Rice <water at tunes.org>**20050830161647] 
[Added wget argument to switch off server-side caching
nickf at system-7.freeserve.co.uk**20050905194409] 
[Added an openResource method to ExternalResource Locator for polymorphic construction of resources from locators.
Brian T. Rice <water at tunes.org>**20050904191547] 
[Removed the dependency on PATH including ./ and cleaned up the byte-order testing for the Makefile.
Brian T. Rice <water at tunes.org>**20050904090036] 
[Updated Path testing code.
Brian T. Rice <water at tunes.org>**20050903170045] 
[New Makefile / Makefile.inc architecture from Nick Forde.
Brian T. Rice <water at tunes.org>**20050903162950] 
[Refactored load: into a locator vs. File variant.
Brian T. Rice <water at tunes.org>**20050902194314] 
[Added a globals SlateDir, Directory / pathSpec definition, and fixed a File Locator as: bug.
Brian T. Rice <water at tunes.org>**20050902184133] 
[TAG StablePoint-0.3.5.2
Brian T. Rice <water at tunes.org>**20050902164432] 
Patch bundle hash:
163d993e0816bca8a23c898334a229a2d2655504


More information about the Slate mailing list