-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asami #29
Comments
Great, when you get chance could you please push an example? |
Asami would be useful as a repl-driven app, so I tried this... (ns asami.main
(:require [clojure.main :as cm]
[clojure.repl :as repl]
[asami.core :as asami])
(:gen-class))
(defn -main
[& args]
(require '[asami.core :as asami :refer [now instant instant? long-time create-database connect
db as-of as-of-t since since-t graph as-connection
transact entity q show-plan import-data export-data]])
(apply cm/main args)) This works well with
I thought that maybe the Do you have any suggestions please? |
With "after compilation" do you mean graalvm native-image compilation? In this case don't require at runtime, rather pull the require to the top-level. Can you give an example of how you would call your jar / native binary? I think it's probably better to make the operations of your application explicit rather than going through clojure.main, but this depends on your example. |
@quoll Here is an example that demonstrates that asami works with native image compilation (well, this specific example): I adapted the jayfu tutorial.
|
When using local storage (
|
The above issue should be fixed with threatgrid/asami#156 |
New issue:
|
After fixing those reflection issues in asami and adding an additional reflection config for
|
After multiple runs, a new reflection issue:
|
The binary works again with PR threatgrid/asami#157 (which supersedes PR 156). Note that there are some remaining reflections in
|
We discussed this, and it’s embarrassingly obvious why a plain repl could never work for this. But I’ll just explain the |
I just tried out asami locally:
https://github.com/threatgrid/asami
Worked great, memory consumption during compilation is far more reasonable than datascript.
Hopefully once it gets durable storage it keeps working well like this.
The text was updated successfully, but these errors were encountered: