Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
February 25, 2004 Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Attachments: | This is the preliminary version of a library I'm working on that I thought might be of interest to some people here. As of right now it's a primitive data structures library drawing loose inspiration from the Java Foundation Classes, and making extensive use of D's generic programming capabilities. Included in this archive are implementations of: Queues, Stacks, and Trees. There are also two supporting classes (Array and Node), and an interface (Enqueue). A Linked list implementation is mostly complete, and Binary Trees will be the next target. I'd like to eventually get this collection up to snuff for inclusion in Phobos or maybe another standard library. Remember, this is a preliminary release. So if it blows up in your face, don't blame me. Owen P.S. If anyone out there who's proficient at the Design by Contract bit would like to take a look at this, that would be awesome. I tried to fill in the appropriate asserts, but I'm not very good at it yet. |
February 25, 2004 Re: Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | Would like to look at your zip, but I can't seem to get a good decode of it. Did you make it an attachment, or what? Can you attach so it comes as a separate mime-section? In article <c1h4l7$2rl5$1@digitaldaemon.com>, resistor@mac.com says... > >This is the preliminary version of a library I'm working on that I thought might be of interest to some people here. As of right now it's a primitive data structures library drawing loose inspiration from the Java Foundation Classes, and making extensive use of D's generic programming capabilities. > >Included in this archive are implementations of: Queues, Stacks, and Trees. There are also two supporting classes (Array and Node), and an interface (Enqueue). A Linked list implementation is mostly complete, and Binary Trees will be the next target. I'd like to eventually get this collection up to snuff for inclusion in Phobos or maybe another standard library. > >Remember, this is a preliminary release. So if it blows up in your face, don't blame me. > >Owen > >P.S. If anyone out there who's proficient at the Design by Contract bit would like to take a look at this, that would be awesome. I tried to fill in the appropriate asserts, but I'm not very good at it yet. > > >begin 0644 charon.zip >M4$L#!`H``````'T963`````````````````.`!4`8VAA<F]N+V-O;6UO;B]5 >M5`D``WX2/$`JR3I`57@$`.@#9`!02P,$%`````@`9Q99,,A96M8W`0``'@0` >M`!4`%0!C:&%R;VXO8V]M;6]N+V%R<F%Y+F155`D``Z(-/$"LVSM`57@$`.@# >M9`"-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>M;6UO;B]T<F5E+F155`D``],2/$`&?CM`57@$`.@#9`"MD4UN@S`0A=?V*28[ >MO.D!@G*%K+*/4I@F2+8'C0<I596[U\-?((K:2LT"\/`^WCP]`M6=1Z@N)Z;X >M5E$(^2&,6%K;A)98'K1(M6IX'31_2@D.F2\.#K:PS^I&CU_6M$R"E6"]M<8H >M`N'H\4/*^\C-^:*S-8/?3"I7N#R9)JJ7,7K=]$:=0,&86HH)W2":G`)9YM>P >MVXW+7#E_^$[UYX@S2L=QD4>)U>[^)*L$TY)-(=`DB)WW;F&ON5;<X*Y1?DXQ >M@TMN"M,W].\F>I=?JIC^Q;/]+VFCM_I3'2-Y!V_?4$L!`A<#"@``````?1E9 >M,`````````````````X`#0`````````0`.U!`````&-H87)O;B]C;VUM;VXO >M550%``-^$CQ`57@``%!+`0(7`Q0````(`&<663#(65K6-P$``!X$```5``T` >M``````$```"D@4$```!C:&%R;VXO8V]M;6]N+V%R<F%Y+F155`4``Z(-/$!5 >M>```4$L!`A<#%`````@`:A19,"#SCS=0````7P```!<`#0```````0```*2! >MP`$``&-H87)O;B]C;VUM;VXO96YQ=65U92YD550%``/H"3Q`57@``%!+`0(7 >M`Q0````(`'0963#>5JR^X0```,<"```4``T```````$```"D@5H"``!C:&%R >M;VXO8V]M;6]N+VYO9&4N9%54!0`#;!(\0%5X``!02P$"%P,4````"`#8%EDP >MS!ST^!H!``#\`@``%0`-```````!````I(&"`P``8VAA<F]N+V-O;6UO;B]Q >M=65U92YD550%``-W#CQ`57@``%!+`0(7`Q0````(`(P563!4^.R"+@$``%,# >M```5``T```````$```"D@>0$``!C:&%R;VXO8V]M;6]N+W-T86-K+F155`4` >M`P@,/$!5>```4$L!`A<#%`````@`K!E9,+EW"GW?````IP(``!0`#0`````` >M`0```*2!6@8``&-H87)O;B]C;VUM;VXO=')E92YD550%``/3$CQ`57@``%!+ >4!08`````!P`'`"D"``"`!P````!M >` >end |
February 25, 2004 Re: Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Posted in reply to larry cowan | Hmm... I just attached it normally. But it appears not to have worked. Anyways, you can get it here: http://fortytwo.athensacademy.net/charon.zip Owen In article <c1h9r6$2vd$1@digitaldaemon.com>, larry cowan says... > >Would like to look at your zip, but I can't seem to get a good decode of it. Did you make it an attachment, or what? Can you attach so it comes as a separate mime-section? > >In article <c1h4l7$2rl5$1@digitaldaemon.com>, resistor@mac.com says... >> >>This is the preliminary version of a library I'm working on that I thought might be of interest to some people here. As of right now it's a primitive data structures library drawing loose inspiration from the Java Foundation Classes, and making extensive use of D's generic programming capabilities. >> >>Included in this archive are implementations of: Queues, Stacks, and Trees. There are also two supporting classes (Array and Node), and an interface (Enqueue). A Linked list implementation is mostly complete, and Binary Trees will be the next target. I'd like to eventually get this collection up to snuff for inclusion in Phobos or maybe another standard library. >> >>Remember, this is a preliminary release. So if it blows up in your face, don't blame me. >> >>Owen >> >>P.S. If anyone out there who's proficient at the Design by Contract bit would like to take a look at this, that would be awesome. I tried to fill in the appropriate asserts, but I'm not very good at it yet. >> >> >>begin 0644 charon.zip >>M4$L#!`H``````'T963`````````````````.`!4`8VAA<F]N+V-O;6UO;B]5 >>M5`D``WX2/$`JR3I`57@$`.@#9`!02P,$%`````@`9Q99,,A96M8W`0``'@0` >>M`!4`%0!C:&%R;VXO8V]M;6]N+V%R<F%Y+F155`D``Z(-/$"LVSM`57@$`.@# >>M9`"-4\%N@S`,/3M?X=U`E1"[CC%I_\"MJB8&V8@4,`IA6C7Q[TM*&`VE,`Y) >>M9#_;[^61FLI><BRJ7%$3%5379LN5RL\)8_R[):6QD'G7X:L-!EF(/XQ!JTCS >>M0O/RB0%DQQ/6;ZX(@,%89U.Z$ET0F@.(QA2"S0(,=J%>+R+O5)[]T-0A0]II >>M`H8B5SIP/"+)FT]=89KB8YBL`([QR29I3"[&PS4(*;FA8P3[A*;N-`U^P?BJ >>M]1[-/_1]&5-GA_L@A8%H-(HT3E`\^P4F<CB$;N12N1B5F]WU&C:NP.J/RKZ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[^)*L$TY)-(=`DB)WW;F&ON5;<X*Y1?DXQ >>M@TMN"M,W].\F>I=?JIC^Q;/]+VFCM_I3'2-Y!V_?4$L!`A<#"@``````?1E9 >>M,`````````````````X`#0`````````0`.U!`````&-H87)O;B]C;VUM;VXO >>M550%``-^$CQ`57@``%!+`0(7`Q0````(`&<663#(65K6-P$``!X$```5``T` >>M``````$```"D@4$```!C:&%R;VXO8V]M;6]N+V%R<F%Y+F155`4``Z(-/$!5 >>M>```4$L!`A<#%`````@`:A19,"#SCS=0````7P```!<`#0```````0```*2! >>MP`$``&-H87)O;B]C;VUM;VXO96YQ=65U92YD550%``/H"3Q`57@``%!+`0(7 >>M`Q0````(`'0963#>5JR^X0```,<"```4``T```````$```"D@5H"``!C:&%R >>M;VXO8V]M;6]N+VYO9&4N9%54!0`#;!(\0%5X``!02P$"%P,4````"`#8%EDP >>MS!ST^!H!``#\`@``%0`-```````!````I(&"`P``8VAA<F]N+V-O;6UO;B]Q >>M=65U92YD550%``-W#CQ`57@``%!+`0(7`Q0````(`(P563!4^.R"+@$``%,# >>M```5``T```````$```"D@>0$``!C:&%R;VXO8V]M;6]N+W-T86-K+F155`4` >>M`P@,/$!5>```4$L!`A<#%`````@`K!E9,+EW"GW?````IP(``!0`#0`````` >>M`0```*2!6@8``&-H87)O;B]C;VUM;VXO=')E92YD550%``/3$CQ`57@``%!+ >>4!08`````!P`'`"D"``"`!P````!M >>` >>end > > |
February 25, 2004 Re: Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | it would be cool to have a Ternary Search Tree in the package |
February 25, 2004 Re: Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Janssen | That I can work on, but I'm trying to make my binary tree work first. Stupid template problem... Owen In article <c1hlt6$p5j$1@digitaldaemon.com>, Mike Janssen says... > >it would be cool to have a Ternary Search Tree in the package > > |
February 25, 2004 Re: Charon Common Library - charon.zip | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | resistor@mac.com wrote: > will be the next target. I'd like to eventually get this collection up to snuff for inclusion in Phobos or maybe another standard library. Cool! You could register it in the Phobos-Project wiki page here so other people could find about your project before trying to reinvent the wheel: http://www.prowiki.org/wiki4d/wiki.cgi?Phobos |
Copyright © 1999-2021 by the D Language Foundation