Recent

Author Topic: a new generic pascal container  (Read 720 times)

powerpcer

  • Newbie
  • Posts: 3
a new generic pascal container
« on: December 30, 2019, 12:29:32 pm »
 :)
generic pascal data structure with B-Tree,B+Tree,B*Tree,T-Tree,HashMap and priority queue.

https://github.com/terrylao/PascalContainer

if any problem, just leave message

if you know chinese, you can read my blog: http://tuxedocatdarkchess.blogspot.com/
« Last Edit: December 31, 2019, 04:36:54 am by powerpcer »

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7862
Re: a new generic pascal container
« Reply #1 on: December 30, 2019, 01:27:46 pm »
:)
generic pascal data structure with B-Tree,B+Tree,B*Tree,T-Tree,HashMap and priority queue.

https://github.com/terrylao/PascalContainer

if any problem, just leave message

Nice! I looked at the b*tree and like the big comment about the strategy, it makes sources like this much more digestable.

julkas

  • Hero Member
  • *****
  • Posts: 524
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Re: a new generic pascal container
« Reply #2 on: December 30, 2019, 04:22:24 pm »
:)
generic pascal data structure with B-Tree,B+Tree,B*Tree,T-Tree,HashMap and priority queue.

https://github.com/terrylao/PascalContainer

if any problem, just leave message
Nice.
I think {$mode Delphi} has more clear, simple generics syntax.
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

powerpcer

  • Newbie
  • Posts: 3
Re: a new generic pascal container
« Reply #3 on: January 02, 2020, 11:07:41 am »