Skip to content

Commit e59a695

Browse files
committed
refactor: Correcting the block with option arrays
1 parent 17d3dc1 commit e59a695

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ The task is to write an Object Pascal program which reads the file, calculates t
2929
{Abha=-23.0/18.0/59.2, Abidjan=-16.2/26.0/67.3, Abéché=-10.0/29.4/69.0, Accra=-10.1/26.4/66.4, Addis Ababa=-23.7/16.0/67.0, Adelaide=-27.8/17.3/58.5, ...}
3030
```
3131

32-
## Honout Mentions
32+
## Honour Mentions
3333

3434
I'd like to thank [@paweld](https://github.com/paweld) for taking us from my miserable 20m attempt, to a woping 3m, beating the [Python script](https://github.com/gunnarmorling/1brc/blob/main/src/main/python/create_measurements.py) by about 2 minutes.
3535

36+
I'd like to thank [mobius](https://github.com/mobius1qwe) for taking the time to provide the Delphi version of the generator
37+
3638
## Links
3739

3840
The original repository: https://github.com/gunnarmorling/1brc
@@ -44,14 +46,15 @@ The blog post in question: https://www.bytesizego.com/blog/one-billion-row-chall
4446
## Entering The Challenge
4547

4648
Submissions will be, preferably, as a `GIT` `submodule`.
49+
4750
They must contain the source and a Linux `ELF` binary in 64 bits in a folder named `bin` from the `root` folder.
4851

4952
In order to produce the One Billion Rows of text, we are providing the source code for the official generator, so we all have the same entry data.
50-
> **NOTE**
51-
> Generator for Lazarus is now done!
52-
> Generator for Delphi will come shortly.
53+
54+
We now have both a Lazarus version and a Delphi version of the generator.
5355

5456
For those that are using a Delphi version that is not able to produce a Linux executable binary, please make that known on your `README.md` file.
57+
5558
I'll then compile the source code on my Windows `VM` with Delphi 12.1 and use the generated executable for the benchmark.
5659

5760
Submit your implementation and become part of the leader board!

generator/Common/generate.console.pas

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ interface
2222
cLongOptOutput = 'output-file';
2323
cShortOptNumber: Char = 'n';
2424
cLongOptNumber = 'line-count';
25-
{$IFDEF FPC}
26-
cShortOptions: array of char = ('h', 'v', 'i', 'o', 'n');
27-
cLongOptions: array of string = ('help', 'version', 'input-file', 'output-file',
28-
'line-count');
29-
{$ELSE}
25+
{$IFNDEF FPC}
3026
cShortOptions: array of char = ['h', 'v', 'i', 'o', 'n'];
3127
cLongOptions: array of string = ['help', 'version', 'input-file', 'output-file',
3228
'line-count'];

generator/Common/version.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
const
2-
cVersion = '0.4';
2+
cVersion = '0.5';

0 commit comments

Comments
 (0)