@mcmcjs/julia 0.6.1 → 0.7.0
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.
- package/dist/fitlib.jl +94 -6
- package/dist/index.cjs +190 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -7
- package/dist/index.d.ts +21 -7
- package/dist/index.js +169 -36
- package/dist/index.js.map +1 -1
- package/dist/julia-env/Manifest.toml +1895 -0
- package/dist/julia-env/Project.toml +10 -0
- package/dist/worker.jl +8 -1
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[deps]
|
|
2
|
+
AdvancedHMC = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
|
|
3
|
+
DimensionalData = "0703355e-b756-11e9-17c0-8b28908087d0"
|
|
4
|
+
FlexiChains = "4a37a8b9-6e57-4b92-8664-298d46e639f7"
|
|
5
|
+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
|
|
6
|
+
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
|
|
7
|
+
JuliaBUGS = "ba9fb4c0-828e-4473-b6a1-cd2560fee5bf"
|
|
8
|
+
MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
|
|
9
|
+
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
|
|
10
|
+
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
|
package/dist/worker.jl
CHANGED
|
@@ -20,7 +20,10 @@ function owns_socket(path, ino)
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
function remove_if_owned(path, ino)
|
|
23
|
-
owns_socket(path, ino)
|
|
23
|
+
if owns_socket(path, ino)
|
|
24
|
+
rm(path; force = true)
|
|
25
|
+
rm(path * ".pid"; force = true)
|
|
26
|
+
end
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
function serve(path)
|
|
@@ -32,10 +35,14 @@ function serve(path)
|
|
|
32
35
|
exit(0)
|
|
33
36
|
catch
|
|
34
37
|
rm(path; force = true)
|
|
38
|
+
rm(path * ".pid"; force = true)
|
|
35
39
|
end
|
|
36
40
|
end
|
|
37
41
|
server = Sockets.listen(path)
|
|
38
42
|
ino = stat(path).inode
|
|
43
|
+
# A pidfile beside the socket lets a cancelling client kill this worker
|
|
44
|
+
# mid-fit (it cannot answer a polite stop while busy sampling).
|
|
45
|
+
write(path * ".pid", string(getpid()))
|
|
39
46
|
atexit(() -> remove_if_owned(path, ino))
|
|
40
47
|
|
|
41
48
|
last_activity = Ref(time())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcmcjs/julia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Julia toolchain detection and the inference runner for MCMC.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcmc",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@mcmcjs/core": "0.
|
|
50
|
-
"@mcmcjs/engine": "0.
|
|
49
|
+
"@mcmcjs/core": "0.5.0",
|
|
50
|
+
"@mcmcjs/engine": "0.5.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsup",
|