usearch 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,10 +47,10 @@ cmake \
47
47
 
48
48
  ```sh
49
49
  pip install -e .
50
- python src/test.py
50
+ python python/test.py
51
51
 
52
52
  # To benchmark:
53
- python src/bench.py \
53
+ python python/bench.py \
54
54
  --vectors datasets/wiki_1M/base.1M.fbin \
55
55
  --queries datasets/wiki_1M/query.public.100K.fbin \
56
56
  --neighbors datasets/wiki_1M/groundtruth.public.100K.ibin \
@@ -61,7 +61,7 @@ python src/bench.py \
61
61
 
62
62
  ```sh
63
63
  npm install
64
- node src/test.js
64
+ node javascript/test.js
65
65
  npm publish
66
66
  ```
67
67
 
@@ -74,6 +74,12 @@ cargo publish
74
74
 
75
75
  ### Java
76
76
 
77
+ ```sh
78
+ cs java
79
+ javac -h . Index.java
80
+
81
+ ```
82
+
77
83
  ### Wolfram
78
84
 
79
85
  ## Benchmarks
package/Cargo.toml CHANGED
@@ -1,8 +1,8 @@
1
1
  [package]
2
2
  name = "usearch"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  authors = ["Ashot Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
5
- description = "The Tiny Vector Search Engine from Unum"
5
+ description = "The Mighty Tiny Vector Search Engine with Automatic Quantization and Hardware Acceleration"
6
6
  edition = "2021"
7
7
  license = "Apache-2.0"
8
8
  publish = true
@@ -10,7 +10,7 @@ repository = "https://github.com/unum-cloud/usearch"
10
10
 
11
11
  [lib]
12
12
  name = "usearch"
13
- path = "src/lib.rs"
13
+ path = "rust/lib.rs"
14
14
 
15
15
  [dependencies]
16
16
  cxx = "1.0"
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
package/binding.gyp CHANGED
@@ -3,11 +3,12 @@
3
3
  {
4
4
  "target_name": "usearch",
5
5
  "sources": [
6
- "src/javascript.cpp"
6
+ "javascript/lib.cpp"
7
7
  ],
8
8
  "include_dirs": [
9
9
  "<!@(node -p \"require('node-addon-api').include\")",
10
10
  "include",
11
+ "src",
11
12
  "fp16/include",
12
13
  "simsimd/include"
13
14
  ],
package/build.rs CHANGED
@@ -1,16 +1,17 @@
1
1
  fn main() {
2
- cxx_build::bridge("src/lib.rs")
3
- .file("src/rust.cpp")
2
+ cxx_build::bridge("rust/lib.rs")
3
+ .file("rust/lib.cpp")
4
4
  .flag_if_supported("-std=c++11")
5
5
  .include("include")
6
+ .include("rust")
6
7
  .include("src")
7
8
  .include("fp16/include")
8
9
  .include("simsimd/include")
9
10
  .compile("usearch");
10
11
 
11
- println!("cargo:rerun-if-changed=src/lib.rs");
12
- println!("cargo:rerun-if-changed=src/rust.cpp");
13
- println!("cargo:rerun-if-changed=src/rust.hpp");
12
+ println!("cargo:rerun-if-changed=rust/lib.rs");
13
+ println!("cargo:rerun-if-changed=rust/lib.cpp");
14
+ println!("cargo:rerun-if-changed=rust/lib.hpp");
14
15
  println!("cargo:rerun-if-changed=src/advanced.hpp");
15
16
  println!("cargo:rerun-if-changed=include/usearch/usearch.hpp");
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "The Mighty Tiny Vector Search Engine with Automatic Quantization and Hardware Acceleration",
5
5
  "author": "Ashot Vardanian",
6
6
  "license": "Apache 2.0",
@@ -17,6 +17,6 @@
17
17
  "node-addon-api": "^3.0.0"
18
18
  },
19
19
  "scripts": {
20
- "test": "node src/test.js"
20
+ "test": "node javascript/test.js"
21
21
  }
22
22
  }
@@ -1,5 +1,5 @@
1
- #include "usearch/src/rust.hpp"
2
- #include "usearch/src/lib.rs.h"
1
+ #include "lib.hpp"
2
+ #include "usearch/rust/lib.rs.h"
3
3
 
4
4
  using namespace unum::usearch;
5
5
  using namespace unum;
@@ -10,7 +10,7 @@ pub mod ffi {
10
10
 
11
11
  // C++ types and signatures exposed to Rust.
12
12
  unsafe extern "C++" {
13
- include!("rust.hpp");
13
+ include!("lib.hpp");
14
14
 
15
15
  type Index;
16
16
 
package/setup.py CHANGED
@@ -12,7 +12,7 @@ if sys.platform == 'darwin':
12
12
  ext_modules = [
13
13
  Pybind11Extension(
14
14
  'usearch',
15
- ['src/python.cpp'],
15
+ ['python/lib.cpp'],
16
16
  extra_compile_args=compile_args,
17
17
  ),
18
18
  ]
@@ -58,6 +58,6 @@ setup(
58
58
  'Topic :: Scientific/Engineering :: Artificial Intelligence',
59
59
  ],
60
60
 
61
- include_dirs=['include', 'fp16/include', 'simsimd/include'],
61
+ include_dirs=['include', 'fp16/include', 'simsimd/include', 'src'],
62
62
  ext_modules=ext_modules,
63
63
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes