Skip to content

Commit

Permalink
Move Pharo-specific ZnRingBuffer code to Pharo-specific package and s…
Browse files Browse the repository at this point in the history
…plit-off tests in a separate package
  • Loading branch information
jbrichau committed Dec 17, 2023
1 parent b38d7a2 commit e9c28c2
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 305 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ baselineadaptors: spec

spec
for: #pharo
do: [ spec
do: [
spec
package: 'Seaside-Adaptors-Comanche' with: [ spec requires: #('KomHttpServerLight' 'Seaside-Core') ];
package: 'KomHttpServerLight' with: [ spec repository: 'http://www.smalltalkhub.com/mc/Seaside/KomHttpServer/main' ];
package: 'Seaside-Tests-Adaptors-Comanche' with: [ spec requires: #('Seaside-Adaptors-Comanche') ];
package: 'Zinc-Seaside' with: [ spec requires: #('Seaside-Core') ].
package: 'Zinc-Seaside-Core' with: [ spec requires: #('Seaside-Core') ];
package: 'Zinc-Seaside-Pharo' with: [ spec requires: #('Zinc-Seaside-Core') ];
package: 'Zinc-Seaside-Tests' with: [ spec requires: #('Zinc-Seaside-Pharo') ].
spec
group: 'Kom' with: #('Seaside-Adaptors-Comanche');
group: 'Zinc' with: #('Zinc-Seaside');
group: 'Zinc' with: #('Zinc-Seaside-Pharo');
group: 'Tests' with: #('Zinc-Seaside-Tests');
group: 'default' with: #('Zinc');
group: 'CI' with: #('Zinc') ].

Expand All @@ -70,16 +74,17 @@ baselineadaptors: spec
spec
package: 'Seaside-GemStone-GemServer-Core' with: [ spec requires: #('GsApplicationTools' 'Seaside-Core') ];
package: 'Seaside-GemStone-GemServer-Tests' with: [ spec requires: #('Seaside-GemStone-GemServer-Core' 'Seaside-GemStone-Development' 'Seaside-GemStone-Adaptors-Zinc' 'Seaside-Adaptors-FastCGI') ];
package: 'Zinc-Seaside'
package: 'Zinc-Seaside-Core'
with: [ spec
requires: #('Zinc Project' 'Seaside-Core');
includes: #('Seaside-GemStone-Adaptors-Zinc') ];
package: 'Seaside-Adaptors-FastCGI' with: [ spec requires: #('Seaside-Core' 'FastCGI Project' 'Seaside-GemStone-GemServer-Core') ];
package: 'Seaside-GemStone-Adaptors-Zinc' with: [ spec requires: #('Zinc-Seaside' 'Seaside-GemStone-GemServer-Core') ].
package: 'Seaside-GemStone-Adaptors-Zinc' with: [ spec requires: #('Zinc-Seaside' 'Seaside-GemStone-GemServer-Core') ];
package: 'Zinc-Seaside-Tests' with: [ spec requires: #('Zinc-Seaside-Core') ].
spec
group: 'FastCGI' with: #('Seaside-Adaptors-FastCGI');
group: 'Tests' with: #('Seaside-GemStone-GemServer-Tests');
group: 'Zinc' with: #('Zinc-Seaside') ].
group: 'Tests' with: #('Seaside-GemStone-GemServer-Tests' 'Zinc-Seaside-Tests');
group: 'Zinc' with: #('Zinc-Seaside-Core') ].

spec
for: #(#'gs3.0.x' #'gs3.1.x' #'gs3.2.x' #'gs3.3.x' #'gs3.4.x' #'gs3.5.x' )
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am the optimized implementation of a ring buffer on Pharo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
at: anInteger
self checkBoundsFor: anInteger.

^ buffer atWrap: anInteger + offset
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
at: anInteger put: anObject
self checkBoundsFor: anInteger.

buffer
atWrap: anInteger + offset
put: anObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commentStamp" : "JohanBrichau 12/17/2023 23:19",
"super" : "ZnRingBuffer",
"category" : "Zinc-Seaside-Pharo",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "ZnPharoRingBuffer",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
SystemOrganization addCategory: #'Zinc-Seaside-Pharo'!
SystemOrganization addCategory: #'Zinc-Seaside-Pharo-Core'!
SystemOrganization addCategory: #'Zinc-Seaside-Pharo-Tests'!
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
accessing
at: anInteger
self checkBoundsFor: anInteger.
^ buffer atWrap: anInteger + offset

^ buffer atWrap: (anInteger + offset) \\ buffer size
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ at: anInteger put: anObject
self checkBoundsFor: anInteger.

buffer
atWrap: anInteger + offset
atWrap: (anInteger + offset) \\ buffer size
put: anObject
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e9c28c2

Please sign in to comment.