jelmerk / hnswlib

Java library for approximate nearest neighbors search using Hierarchical Navigable Small World graphs
Apache License 2.0
260 stars 56 forks source link

Can it support jdk1.7?Android 5.1 does not support 1.8。 #18

Closed KevinAnnn closed 4 years ago

KevinAnnn commented 4 years ago

Can it support jdk1.7?Android 5.1 does not support 1.8。

jelmerk commented 4 years ago

The short answer is no.

Long answer is, it uses things like Optionals, default methods and lambda's etc that are all unsupported on java 7. So it cannot simply be compiled to run on jdk 1.7 without making alterations to the code / making the code less nice

Plus both jdk7 and lollypop have been unsupported for some years now.

You can always fork the project i suppose, it should not be a lot of work to get it to compile on jdk7 but I am not going to add support for what are effectively dead platforms

ashfaq92 commented 4 years ago

fork the project i suppose

We can not even fork the code that has no license. Meanwhile, other implementations that are based on your code include GPL licence Scalable HNSW So why not you include license so that we fork it and implement it according to our need?