Skip to content

Commit 36c3bf8

Browse files
committed
Transfer to pt.kcry package
1 parent 7c26f51 commit 36c3bf8

23 files changed

+152
-118
lines changed

Diff for: CHANGELOG.md

+33-32
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
All notable changes to this project will be documented in this file.
44

55
## [unreleased]
6+
- Migrated to package `pt.kcry.blake3`
67
- Switched to scalajs-1.8.0
78
- Switched to scala-native-0.4.2
89
- Switched to scala-2.13.7
@@ -85,7 +86,7 @@ All notable changes to this project will be documented in this file.
8586

8687
## [1.7.0] - 2020-11-18
8788
- Significant performance improvement and reducing memory footprint.
88-
- Fixed `BuildInfo` by moving it to `ky.korins.blake3` package.
89+
- Fixed `BuildInfo` by moving it to `pt.kcry.blake3` package.
8990

9091
## [1.6.2] - 2020-11-16
9192
- Migrated from dotty `0.27.0-RC1` to scala `3.0.0-M1`.
@@ -116,34 +117,34 @@ All notable changes to this project will be documented in this file.
116117
## [1.0.0] - 2020-07-15
117118
- The first public release as dedicated project.
118119

119-
[unreleased]: https://github.com/catap/scala-blake3/compare/v2.9.0...HEAD
120-
[2.9.0]: https://github.com/catap/scala-blake3/compare/v2.8.0...v2.9.0
121-
[2.8.0]: https://github.com/catap/scala-blake3/compare/v2.7.0...v2.8.0
122-
[2.7.0]: https://github.com/catap/scala-blake3/compare/v2.6.1...v2.7.0
123-
[2.6.1]: https://github.com/catap/scala-blake3/compare/v2.6.0...v2.6.1
124-
[2.6.0]: https://github.com/catap/scala-blake3/compare/v2.5.2...v2.6.0
125-
[2.5.2]: https://github.com/catap/scala-blake3/compare/v2.5.1...v2.5.2
126-
[2.5.1]: https://github.com/catap/scala-blake3/compare/v2.5.0...v2.5.1
127-
[2.5.0]: https://github.com/catap/scala-blake3/compare/v2.4.1...v2.5.0
128-
[2.4.1]: https://github.com/catap/scala-blake3/compare/v2.4.0...v2.4.1
129-
[2.4.0]: https://github.com/catap/scala-blake3/compare/v2.3.1...v2.4.0
130-
[2.3.1]: https://github.com/catap/scala-blake3/compare/v2.3.0...v2.3.1
131-
[2.3.0]: https://github.com/catap/scala-blake3/compare/v2.2.0...v2.3.0
132-
[2.2.0]: https://github.com/catap/scala-blake3/compare/v2.1.0...v2.2.0
133-
[2.1.0]: https://github.com/catap/scala-blake3/compare/v2.0.1...v2.1.0
134-
[2.0.1]: https://github.com/catap/scala-blake3/compare/v2.0.0...v2.0.1
135-
[2.0.0]: https://github.com/catap/scala-blake3/compare/v1.9.0...v2.0.0
136-
[1.9.0]: https://github.com/catap/scala-blake3/compare/v1.8.1...v1.9.0
137-
[1.8.1]: https://github.com/catap/scala-blake3/compare/v1.8.0...v1.8.1
138-
[1.8.0]: https://github.com/catap/scala-blake3/compare/v1.7.1...v1.8.0
139-
[1.7.1]: https://github.com/catap/scala-blake3/compare/v1.7.0...v1.7.1
140-
[1.7.0]: https://github.com/catap/scala-blake3/compare/v1.6.2...v1.7.0
141-
[1.6.2]: https://github.com/catap/scala-blake3/compare/v1.6.1...v1.6.2
142-
[1.6.1]: https://github.com/catap/scala-blake3/compare/v1.6.0...v1.6.1
143-
[1.6.0]: https://github.com/catap/scala-blake3/compare/v1.5.0...v1.6.0
144-
[1.5.0]: https://github.com/catap/scala-blake3/compare/v1.4.0...v1.5.0
145-
[1.4.0]: https://github.com/catap/scala-blake3/compare/v1.3.0...v1.4.0
146-
[1.3.0]: https://github.com/catap/scala-blake3/compare/v1.2.0...v1.3.0
147-
[1.2.0]: https://github.com/catap/scala-blake3/compare/v1.1.0...v1.2.0
148-
[1.1.0]: https://github.com/catap/scala-blake3/compare/v1.0.0...v1.1.0
149-
[1.0.0]: https://github.com/catap/scala-blake3/releases/tag/v1.0.0
120+
[unreleased]: https://github.com/kcrypt/scala-blake3/compare/v2.9.0...HEAD
121+
[2.9.0]: https://github.com/kcrypt/scala-blake3/compare/v2.8.0...v2.9.0
122+
[2.8.0]: https://github.com/kcrypt/scala-blake3/compare/v2.7.0...v2.8.0
123+
[2.7.0]: https://github.com/kcrypt/scala-blake3/compare/v2.6.1...v2.7.0
124+
[2.6.1]: https://github.com/kcrypt/scala-blake3/compare/v2.6.0...v2.6.1
125+
[2.6.0]: https://github.com/kcrypt/scala-blake3/compare/v2.5.2...v2.6.0
126+
[2.5.2]: https://github.com/kcrypt/scala-blake3/compare/v2.5.1...v2.5.2
127+
[2.5.1]: https://github.com/kcrypt/scala-blake3/compare/v2.5.0...v2.5.1
128+
[2.5.0]: https://github.com/kcrypt/scala-blake3/compare/v2.4.1...v2.5.0
129+
[2.4.1]: https://github.com/kcrypt/scala-blake3/compare/v2.4.0...v2.4.1
130+
[2.4.0]: https://github.com/kcrypt/scala-blake3/compare/v2.3.1...v2.4.0
131+
[2.3.1]: https://github.com/kcrypt/scala-blake3/compare/v2.3.0...v2.3.1
132+
[2.3.0]: https://github.com/kcrypt/scala-blake3/compare/v2.2.0...v2.3.0
133+
[2.2.0]: https://github.com/kcrypt/scala-blake3/compare/v2.1.0...v2.2.0
134+
[2.1.0]: https://github.com/kcrypt/scala-blake3/compare/v2.0.1...v2.1.0
135+
[2.0.1]: https://github.com/kcrypt/scala-blake3/compare/v2.0.0...v2.0.1
136+
[2.0.0]: https://github.com/kcrypt/scala-blake3/compare/v1.9.0...v2.0.0
137+
[1.9.0]: https://github.com/kcrypt/scala-blake3/compare/v1.8.1...v1.9.0
138+
[1.8.1]: https://github.com/kcrypt/scala-blake3/compare/v1.8.0...v1.8.1
139+
[1.8.0]: https://github.com/kcrypt/scala-blake3/compare/v1.7.1...v1.8.0
140+
[1.7.1]: https://github.com/kcrypt/scala-blake3/compare/v1.7.0...v1.7.1
141+
[1.7.0]: https://github.com/kcrypt/scala-blake3/compare/v1.6.2...v1.7.0
142+
[1.6.2]: https://github.com/kcrypt/scala-blake3/compare/v1.6.1...v1.6.2
143+
[1.6.1]: https://github.com/kcrypt/scala-blake3/compare/v1.6.0...v1.6.1
144+
[1.6.0]: https://github.com/kcrypt/scala-blake3/compare/v1.5.0...v1.6.0
145+
[1.5.0]: https://github.com/kcrypt/scala-blake3/compare/v1.4.0...v1.5.0
146+
[1.4.0]: https://github.com/kcrypt/scala-blake3/compare/v1.3.0...v1.4.0
147+
[1.3.0]: https://github.com/kcrypt/scala-blake3/compare/v1.2.0...v1.3.0
148+
[1.2.0]: https://github.com/kcrypt/scala-blake3/compare/v1.1.0...v1.2.0
149+
[1.1.0]: https://github.com/kcrypt/scala-blake3/compare/v1.0.0...v1.1.0
150+
[1.0.0]: https://github.com/kcrypt/scala-blake3/releases/tag/v1.0.0

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ instead of [SHA] because this implementation use only 32 bits number which nativ
77

88
You can use it as
99
```
10-
libraryDependencies += "ky.korins" %%% "blake3" % "x.x.x"
10+
libraryDependencies += "pt.kcry" %%% "blake3" % "x.x.x"
1111
```
1212
The latest version is ![maven-central]
1313

1414
API is pretty simple:
1515
```
16-
scala> import ky.korins.blake3.Blake3
16+
scala> import pt.kcry.blake3.Blake3
1717
1818
scala> Blake3.newHasher().update("Some string").doneHex(64)
1919
val res1: String = 2e5524f3481046587080604ae4b4ceb44b721f3964ce0764627dee2c171de4c2
@@ -71,7 +71,7 @@ Full version of results are available as
7171
- for [Apple M1] at [jmh-result.m1.json] or via [M1 @ JMH Visualizer].
7272

7373
[SHA]: https://github.com/catap/scala-sha
74-
[maven-central]: https://img.shields.io/maven-central/v/ky.korins/blake3_2.13?style=flat-square
74+
[maven-central]: https://img.shields.io/maven-central/v/pt.kcry/blake3_2.13?style=flat-square
7575
[RFC 4648]: https://tools.ietf.org/html/rfc4648
7676
[BLAKE3jni]: https://github.com/sken77/BLAKE3jni
7777
[AVX2 assembly]: https://github.com/BLAKE3-team/BLAKE3/blob/master/c/blake3_avx2_x86-64_unix.S
@@ -80,5 +80,5 @@ Full version of results are available as
8080
[Apple M1]: https://www.apple.com/mac/m1/
8181
[jmh-result.intel.json]: jmh-result.intel.json
8282
[jmh-result.m1.json]: jmh-result.m1.json
83-
[Intel @ JMH Visualizer]: https://jmh.morethan.io/?source=https://raw.githubusercontent.com/catap/scala-blake3/master/jmh-result.intel.json
84-
[M1 @ JMH Visualizer]: https://jmh.morethan.io/?source=https://raw.githubusercontent.com/catap/scala-blake3/master/jmh-result.m1.json
83+
[Intel @ JMH Visualizer]: https://jmh.morethan.io/?source=https://raw.githubusercontent.com/kcrypt/scala-blake3/master/jmh-result.intel.json
84+
[M1 @ JMH Visualizer]: https://jmh.morethan.io/?source=https://raw.githubusercontent.com/kcrypt/scala-blake3/master/jmh-result.m1.json

Diff for: bench/src/main/scala/ky/korins/blake3/benchmark/Blake3Benchmark.scala renamed to bench/src/main/scala/pt/kcry/blake3/benchmark/Blake3Benchmark.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
*
44
* Written in 2020, 2021 by Kirill A. Korinsky <[email protected]>
55
*
6+
* Supported since 2022 by Kcrypt Lab UG <[email protected]>
7+
*
68
* This work is released into the public domain with CC0 1.0.
79
* Alternatively, it is licensed under the Apache License 2.0.
810
*/
911

10-
package ky.korins.blake3.benchmark
12+
package pt.kcry.blake3
13+
package benchmark
1114

12-
import ky.korins.blake3._
1315
import org.openjdk.jmh.annotations._
1416

1517
import scala.util.Random

Diff for: bench/src/main/scala/ky/korins/blake3/benchmark/Blake3JNIBenchmark.scala renamed to bench/src/main/scala/pt/kcry/blake3/benchmark/Blake3JNIBenchmark.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
*
44
* Written in 2020, 2021 by Kirill A. Korinsky <[email protected]>
55
*
6+
* Supported since 2022 by Kcrypt Lab UG <[email protected]>
7+
*
68
* This work is released into the public domain with CC0 1.0.
79
* Alternatively, it is licensed under the Apache License 2.0.
810
*/
911

10-
package ky.korins.blake3.benchmark
12+
package pt.kcry.blake3.benchmark
1113

1214
import org.openjdk.jmh.annotations._
1315

Diff for: build.sbt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ lazy val scalatestVersion = "3.2.10"
1212

1313
lazy val blake3jniVersion = "0.2.2"
1414

15-
name := "blake3"
16-
ThisBuild / organization := "ky.korins"
15+
name := "scala-blake3"
16+
ThisBuild / organization := "pt.kcry"
1717

1818
ThisBuild / dynverSeparator := "-"
1919

@@ -48,7 +48,7 @@ lazy val blake3 = crossProject(JSPlatform, JVMPlatform, NativePlatform)
4848
}
4949
),
5050
headerLicense := LicenseDefinition.template,
51-
buildInfoPackage := "ky.korins.blake3",
51+
buildInfoPackage := "pt.kcry.blake3",
5252
libraryDependencies ++= Seq(
5353
"org.scalatest" %%% "scalatest" % scalatestVersion % Test
5454
)

Diff for: jmh-result.intel.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"jmhVersion" : "1.25",
4-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
4+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
55
"mode" : "sample",
66
"threads" : 1,
77
"forks" : 1,
@@ -3405,7 +3405,7 @@
34053405
},
34063406
{
34073407
"jmhVersion" : "1.25",
3408-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
3408+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
34093409
"mode" : "sample",
34103410
"threads" : 1,
34113411
"forks" : 1,
@@ -5922,7 +5922,7 @@
59225922
},
59235923
{
59245924
"jmhVersion" : "1.25",
5925-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
5925+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
59265926
"mode" : "sample",
59275927
"threads" : 1,
59285928
"forks" : 1,
@@ -6487,7 +6487,7 @@
64876487
},
64886488
{
64896489
"jmhVersion" : "1.25",
6490-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
6490+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
64916491
"mode" : "sample",
64926492
"threads" : 1,
64936493
"forks" : 1,
@@ -7167,7 +7167,7 @@
71677167
},
71687168
{
71697169
"jmhVersion" : "1.25",
7170-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
7170+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
71717171
"mode" : "sample",
71727172
"threads" : 1,
71737173
"forks" : 1,
@@ -7896,7 +7896,7 @@
78967896
},
78977897
{
78987898
"jmhVersion" : "1.25",
7899-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.newHasher",
7899+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.newHasher",
79007900
"mode" : "sample",
79017901
"threads" : 1,
79027902
"forks" : 1,
@@ -8500,7 +8500,7 @@
85008500
},
85018501
{
85028502
"jmhVersion" : "1.25",
8503-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
8503+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
85048504
"mode" : "sample",
85058505
"threads" : 1,
85068506
"forks" : 1,
@@ -11211,7 +11211,7 @@
1121111211
},
1121211212
{
1121311213
"jmhVersion" : "1.25",
11214-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
11214+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
1121511215
"mode" : "sample",
1121611216
"threads" : 1,
1121711217
"forks" : 1,
@@ -13750,7 +13750,7 @@
1375013750
},
1375113751
{
1375213752
"jmhVersion" : "1.25",
13753-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
13753+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
1375413754
"mode" : "sample",
1375513755
"threads" : 1,
1375613756
"forks" : 1,
@@ -14371,7 +14371,7 @@
1437114371
},
1437214372
{
1437314373
"jmhVersion" : "1.25",
14374-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
14374+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
1437514375
"mode" : "sample",
1437614376
"threads" : 1,
1437714377
"forks" : 1,
@@ -14999,7 +14999,7 @@
1499914999
},
1500015000
{
1500115001
"jmhVersion" : "1.25",
15002-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
15002+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
1500315003
"mode" : "sample",
1500415004
"threads" : 1,
1500515005
"forks" : 1,
@@ -15607,7 +15607,7 @@
1560715607
},
1560815608
{
1560915609
"jmhVersion" : "1.25",
15610-
"benchmark" : "ky.korins.blake3.benchmark.Blake3Benchmark.reusedHaser",
15610+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3Benchmark.reusedHaser",
1561115611
"mode" : "sample",
1561215612
"threads" : 1,
1561315613
"forks" : 1,
@@ -16221,7 +16221,7 @@
1622116221
},
1622216222
{
1622316223
"jmhVersion" : "1.25",
16224-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
16224+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
1622516225
"mode" : "sample",
1622616226
"threads" : 1,
1622716227
"forks" : 1,
@@ -18820,7 +18820,7 @@
1882018820
},
1882118821
{
1882218822
"jmhVersion" : "1.25",
18823-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
18823+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
1882418824
"mode" : "sample",
1882518825
"threads" : 1,
1882618826
"forks" : 1,
@@ -21738,7 +21738,7 @@
2173821738
},
2173921739
{
2174021740
"jmhVersion" : "1.25",
21741-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
21741+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
2174221742
"mode" : "sample",
2174321743
"threads" : 1,
2174421744
"forks" : 1,
@@ -22360,7 +22360,7 @@
2236022360
},
2236122361
{
2236222362
"jmhVersion" : "1.25",
22363-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
22363+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
2236422364
"mode" : "sample",
2236522365
"threads" : 1,
2236622366
"forks" : 1,
@@ -23071,7 +23071,7 @@
2307123071
},
2307223072
{
2307323073
"jmhVersion" : "1.25",
23074-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
23074+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
2307523075
"mode" : "sample",
2307623076
"threads" : 1,
2307723077
"forks" : 1,
@@ -23802,7 +23802,7 @@
2380223802
},
2380323803
{
2380423804
"jmhVersion" : "1.25",
23805-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.newHasher",
23805+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.newHasher",
2380623806
"mode" : "sample",
2380723807
"threads" : 1,
2380823808
"forks" : 1,
@@ -24381,7 +24381,7 @@
2438124381
},
2438224382
{
2438324383
"jmhVersion" : "1.25",
24384-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
24384+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
2438524385
"mode" : "sample",
2438624386
"threads" : 1,
2438724387
"forks" : 1,
@@ -27828,7 +27828,7 @@
2782827828
},
2782927829
{
2783027830
"jmhVersion" : "1.25",
27831-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
27831+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
2783227832
"mode" : "sample",
2783327833
"threads" : 1,
2783427834
"forks" : 1,
@@ -30916,7 +30916,7 @@
3091630916
},
3091730917
{
3091830918
"jmhVersion" : "1.25",
30919-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
30919+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
3092030920
"mode" : "sample",
3092130921
"threads" : 1,
3092230922
"forks" : 1,
@@ -31526,7 +31526,7 @@
3152631526
},
3152731527
{
3152831528
"jmhVersion" : "1.25",
31529-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
31529+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
3153031530
"mode" : "sample",
3153131531
"threads" : 1,
3153231532
"forks" : 1,
@@ -32218,7 +32218,7 @@
3221832218
},
3221932219
{
3222032220
"jmhVersion" : "1.25",
32221-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
32221+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
3222232222
"mode" : "sample",
3222332223
"threads" : 1,
3222432224
"forks" : 1,
@@ -32915,7 +32915,7 @@
3291532915
},
3291632916
{
3291732917
"jmhVersion" : "1.25",
32918-
"benchmark" : "ky.korins.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
32918+
"benchmark" : "pt.kcry.blake3.benchmark.Blake3JNIBenchmark.reusedHaser",
3291932919
"mode" : "sample",
3292032920
"threads" : 1,
3292132921
"forks" : 1,

0 commit comments

Comments
 (0)