Skip to content

Commit 882b573

Browse files
committed
updated languages versions
1 parent 6e5bb1a commit 882b573

File tree

13 files changed

+189
-136
lines changed

13 files changed

+189
-136
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ The difficulty in sorting words is due to the need to handle sorting rules accor
1010

1111
The following results are for 123 unique utf-8 Bible text files in 23 languages (used at mybible.pl site) They take 504MB. (The repo contains only a few sample files in the 'data' folder. For testing more data you could multiple files by cloning *.txt (and the associated*.yml) file under different names)
1212

13-
* Platform: MacOS 12.2
13+
* Platform: MacOS 12.6
1414
* Machine: MacBook Pro 16" 64GB 2TB M1Max 10 cores.
1515

1616
<pre>
17-
1. Rust 1.18 = 1.14s, with sorting: 1.59s
18-
2. Golang 1.17.7 = 1.84s, with sorting: 2.16s
19-
3. Python 3.10.2 = 4.53s, with sorting: 4.65s
20-
4. Crystal 1.3.2 = 5.72s
21-
5. Elixir 1.13.2 = 7.82s
22-
6. Julia 1.7.1 = 12.46s, with sorting: 13.71s
23-
7. Ruby 3.1.0 = 13.00s, with sorting: 13.04s
17+
1. Rust 1.63 = 1.15s, with sorting: 1.64s
18+
2. Golang 1.19.1 = 1.38s, with sorting: 1.71s
19+
3. Python 3.11.0rc1 = 4.29s, with sorting: 4.44s
20+
4. Crystal 1.5.1 = 5.61s
21+
5. Elixir 1.14.0 = 7.34s
22+
6. Julia 1.8.1 = 12.13s, with sorting: 12.22s
23+
7. Ruby 3.2.0-preview2 = 12.63s, with sorting: 12.87s
2424
</pre>
2525

2626
### Conclusion
@@ -49,6 +49,10 @@ The new optimized Golang code version is very fast, slower than Rust but faster
4949

5050
## Changes
5151

52+
2022-09-17
53+
54+
* Updated all version. Slighty faster results. The order not changed.
55+
5256
2022-02-08
5357

5458
* Added improved Ruby code version with correct reading the pure text to tokenize (it ignores sigla in each verse), and with the correct regular expression for extracting words. The code is a little slower but it works almost as expected. (almost because for arm64/M1 it can't use ICU)

example-crystal/shard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: example-crystal
2-
version: 0.1.0
2+
version: 0.3.0
33

44
authors:
55
- Jaroslaw Zabiello <[email protected]>
@@ -8,6 +8,6 @@ targets:
88
example-crystal:
99
main: src/example-crystal.cr
1010

11-
crystal: 1.3.2
11+
crystal: 1.5.1
1212

1313
license: MIT

example-elixir/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule WordsExtractor.MixProject do
55
[
66
app: :words_extractor_ex,
77
version: "0.2.0",
8-
elixir: "~> 1.13",
8+
elixir: "~> 1.14",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps()
1111
]

example-golang/.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golang 1.17.7
1+
golang 1.19.1

example-golang/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module wordextractor
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/bmatcuk/doublestar v1.3.4

example-julia/src/words.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
module words_extractor_jl
22

3+
import Pkg
4+
Pkg.add("ArgParse")
5+
Pkg.add("YAML")
6+
Pkg.add("Glob")
7+
38
using ArgParse
49
using Distributed
510
using YAML
611
using Glob
712

13+
814
const outdir = "words"
915

1016
function parse_commandline()

example-python/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python 3.11.0rc2

example-python/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# PyICU>=2.7.4
22
PyYAML
3-
mypy
43
black
54
ipython

example-ruby/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 3.2.0-preview2

example-ruby/Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
21
source 'https://rubygems.org'
32
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
43

5-
ruby '3.1.0'
4+
ruby '3.2.0.preview2'
65

7-
gem 'rubocop', require: false
86
gem 'parallel'
7+
gem 'rubocop', require: false
98
# gem 'irbtools', require: 'irbtools/binding'
109
gem 'pry'
1110
gem 'pry-doc'
12-
gem 'pry-gem', '~> 1.0'
11+
gem 'pry-gem', '~> 1.0'

0 commit comments

Comments
 (0)