julkas
Members-
Content Count
44 -
Joined
-
Last visited
Everything posted by julkas
-
Pascal bindings for PrimeSieve library - https://github.com/JulStrat/primesieve-pas. Examples provided. Tested with Rio 10.3 CE. it's my first code for Delphi. Suggestions and critics are welcome ...
-
v0.5.1 is out.
-
Delphi 10.3 Community Edition $ dcc32 --version dcc (Embarcadero Delphi for Windows) 33.0 Embarcadero Delphi for Win32 compiler version 33.0 Copyright (c) 1983,2018 Embarcadero Technologies, Inc. $ dcc64 --version dcc (Embarcadero Delphi for Windows) 33.0 Embarcadero Delphi for Win64 compiler version 33.0 Copyright (c) 1983,2018 Embarcadero Technologies, Inc.
-
Opinions about Pascal vs C/C++ IDE
julkas replied to TimCruise's topic in Tips / Blogs / Tutorials / Videos
If it is for learning - try Pascal.- 39 replies
-
- programming hardware
- rad studio
-
(and 1 more)
Tagged with:
-
Opinions about Pascal vs C/C++ IDE
julkas replied to TimCruise's topic in Tips / Blogs / Tutorials / Videos
Difficult question. Revise your project requirements. Don't forget CI, maintenance, community support, open source ... C or Pascal, front-end or back-end, firmware or UI, storage? Can you give more info about project?- 39 replies
-
- programming hardware
- rad studio
-
(and 1 more)
Tagged with:
-
For web reporting I use Tibco. Good option - Apache SuperSet.
-
UPDATE mytable SET DOCNO = CAST(CONCAT('21', DOCNO) AS INT)
-
Try recommendation-for-compressing-jpg-files-with-imagemagick
-
May be - kolmck
-
Fast lookup tables - TArray.BinarySearch vs Dictionary vs binary search
julkas replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
FPC benchmarks -
Fast lookup tables - TArray.BinarySearch vs Dictionary vs binary search
julkas replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Take a look - LGenerics -
Fast lookup tables - TArray.BinarySearch vs Dictionary vs binary search
julkas replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
There is no ready to use Pascal implementation 😞 . You can start / take ideas from existing C++ & Java code and create good (without remove/delete 😞) ordered set or order statistics set (array bisection algorithm may be helpful) Object Pascal class. -
Fast lookup tables - TArray.BinarySearch vs Dictionary vs binary search
julkas replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Take a look - Binary Array Set. Rare, but very useful data structure. -
Good quality Random number generator implementation
julkas replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
OK, it depends. Anyway, I suggest - xoshiro / xoroshiro generators Or 🙂 start with simple SplitMix64 Efficiently Generating a Number in a Range -
Why Record pointer is not allowed as function parameter and return?
julkas replied to wuwuxin's topic in RTL and Delphi Object Pascal
For parameters you can use const or var qualifiers (option - declare absolute). For return - use generic pointer. See - Parameters Pascal is a strongly typed. :-). https://ideone.com/5r1Uqf -
Request advice on inplementation Modbus-RTU in Tokyo
julkas replied to Dphvw's topic in General Help
See - https://github.com/kandiral/Kandiral/tree/master/Automation Check also - http://www.pascalscada.com/ (I don't know about Delphi support). -
Updates: added prime tuplets iterator (2, 3, ..., 6).
-
Random unsigned 64 bit integers
julkas posted a topic in Algorithms, Data Structures and Class Design
I need platform independent and FPC compatible random unsigned 64 bit generator. Here is my solution: program rnd; {$IF Defined(FPC)}{$MODE Delphi}{$ENDIF} {$INLINE ON} function RandU64(): UInt64; inline; begin Result := UInt64(Random($10000)); Result := (Result shl 16) or UInt64(Random($10000)); Result := (Result shl 16) or UInt64(Random($10000)); Result := (Result shl 16) or UInt64(Random($10000)); end; var i: integer; begin Randomize(); for i := 1 to 1000 do WriteLn(RandU64()); end. Can it be done better? Thanks. -
Check also: https://forum.lazarus.freepascal.org/index.php/topic,14956.0.html https://wiki.freepascal.org/fpChess
-
Yet another old chess program written in TP5.5. https://github.com/JulStrat/kcchess
-
Nero 5 is a chess program written in Pascal by Jari Huikari.
-
It's old chess engine written in Turbo Pascal. It's good for beginners and not only. You can increase / decrease engine default thinking time with + / -. Executable created on Windows 10 with Delphi Community Edition is in the folder Delphi. So just enjoy chess and power of great Turbo Pascal. I think it's clear.
-
Interesting sort implementation, does not fit into usual API tough
julkas replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Another generics collection (with TimSort) - https://github.com/avk959/LGenerics I don't know about Delphi support. -
Interesting sort implementation, does not fit into usual API tough
julkas replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Interesting. BTW I use always Merge Sort and Tim Sort. -
Hiere is my ASM code for (a * b) mod m, where a, b, m - UInt64. Can it be done better ? Thanks. Online - https://ideone.com/LKNjMM. program mulmod; {$IF Defined(FPC)}{$MODE Delphi}{$ASMMODE Intel}{$ENDIF} function MulModASM(a, b: UInt64; m: UInt64): UInt64; asm MOV RAX, a MOV RCX, m MUL b DIV RCX MOV @Result, RDX end; var a, b, m: UInt64; begin m := $FFFFFFFFFFFFFFFF; a := 3; b := m - 1; WriteLn(a, ' ', b, ' ', m); WriteLn(' ASM - ', MulModASM(a, b, m)); WriteLn('Pascal - ', (a * b) mod m); end.