Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

159
LINES

< > BotCompany Repo | #1011841 // Speculation as module (Include)

JavaX fragment (include)

1  
set flag hotwire_here.
2  
3  
// share ISpec interface with sub-modules
4  
static JavaXClassLoader hotwire_makeClassLoader(L<File> files) {
5  
  ClassLoader cl = myClassLoader();
6  
  ret new JavaXClassLoaderWithParent2(null, files, cl, parseClassesToShareList(smartBot_sharedClasses()));
7  
}
8  
9  
static ISpec owner, ispec;
10  
11  
static ThreadLocal<Bool> ai_postTriple_verified;
12  
13  
static void ai_spec_init() {
14  
  O c = creator();
15  
  if (owner == null) owner = (ISpec) getOpt(c, 'ispec);
16  
  ispec = owner;
17  
  if (c != null)
18  
    copyFields(c, mc(), 'ai_postTriple_verified);
19  
  ai_prepLoadFunctions();
20  
}
21  
22  
static void ai_alternativeSmartBot() {
23  
}
24  
25  
static Lock aiLock() {
26  
  ret owner.aiLock();
27  
}
28  
29  
static bool ai_cache_hasTriple(T3<S> t) {
30  
  ret ai_cache_hasTriple(t.a, t.b, t.c);
31  
}
32  
33  
static bool ai_cache_hasTriple(S a, S b, S c) {
34  
  ret owner.ai_cache_hasTriple(a, b, c);
35  
}
36  
37  
static S ai_postTriple(T3<S> t) {
38  
  ret ai_postTriple(t.a, t.b, t.c);
39  
}
40  
41  
static S ai_postTriple(S a, S b, S c) {
42  
  ret owner.ai_postTriple(a, b, c);
43  
}
44  
45  
static S ai_setMaker(S maker) {
46  
  ret owner.ai_setMaker(maker);
47  
}
48  
49  
static L<S> allIndexedFullTerms() {
50  
  ret owner.allIndexedFullTerms();
51  
}
52  
53  
static L<S> ai_texts_verified(S a, S b, S c) {
54  
  ret owner.ai_texts_verified(a, b, c);
55  
}
56  
57  
static S ai_text(S a, S b, S c) {
58  
  ret owner.ai_text(a, b, c);
59  
}
60  
61  
static S ai_text(T3<S> t) {
62  
  ret ai_text(t.a, t.b, t.c);
63  
}
64  
65  
static MultiMap<S, WebNode> dwlw_fullNodeIndex_ci() {
66  
  fail("Shouldn't call");
67  
}
68  
69  
static Web ai_blob(S word, bool verified) {
70  
  ret owner.ai_blob(word, verified);
71  
}
72  
73  
static L<WebNode> ai_index_search_dollarX(S a, S b, S c) {
74  
  ret owner.ai_index_search_dollarX(a, b, c);
75  
}
76  
77  
static L<WebNode> indexedNodes(S s) {
78  
  ret owner.indexedNodes(s);
79  
}
80  
81  
static L<Web> indexedWebs(S s) {
82  
  ret owner.indexedWebs(s);
83  
}
84  
85  
static Set<GlobalID> ai_invalidatedWebs() {
86  
  ret owner.ai_invalidatedWebs();
87  
}
88  
89  
svoid ai_invalidatedWebs_cache_put(GlobalID a, GlobalID b) {
90  
  owner.ai_invalidatedWebs_cache_put(a, b);
91  
}
92  
93  
static MultiMap<S, WebNode> cachedNodeIndex2() {
94  
  ret owner.cachedNodeIndex2();
95  
}
96  
97  
static Web ai_getWeb(S id) {
98  
  ret owner.ai_getWeb(id);
99  
}
100  
101  
static Web ai_getWeb(GlobalID id) {
102  
  ret owner.ai_getWeb(str(id));
103  
}
104  
105  
static void ai_setSubSpace(AI_SubSpace subSpace) {
106  
  owner.ai_setSubSpace(subSpace);
107  
}
108  
109  
static AI_SubSpace ai_currentSubSpace() {
110  
  ret owner.ai_currentSubSpace();
111  
}
112  
113  
static Set<S> ai_mainIndexKeys() {
114  
  ret owner.ai_mainIndexKeys();
115  
}
116  
117  
static TripleIndex tripleIndex() {
118  
  ret owner.tripleIndex();
119  
}
120  
121  
static void ai_removeWeb(Web web) {
122  
  owner.ai_removeWeb(web);
123  
}
124  
125  
static L<VirtualNodeIndex> virtualNodeIndices() {
126  
  ret owner.virtualNodeIndices();
127  
}
128  
129  
static bool ai_enabled() {
130  
  ret owner.ai_enabled();
131  
}
132  
133  
static bool ai_useThoughtSpaces() {
134  
  ret owner.ai_useThoughtSpaces();
135  
}
136  
137  
static bool ai_inTripleMode() {
138  
  ret owner.ai_inTripleMode();
139  
}
140  
141  
static AbstractThoughtSpace currentThoughtSpace() {
142  
  ret owner.currentThoughtSpace();
143  
}
144  
145  
static AbstractThoughtSpace thoughtSpace() {
146  
  ret currentThoughtSpace();
147  
}
148  
149  
static <A extends AbstractThoughtSpace> A thoughtSpace(A ts) {
150  
  ret owner.thoughtSpace(ts);
151  
}
152  
153  
static void ai_markMemoryDirty() {
154  
  owner.ai_markMemoryDirty();
155  
}
156  
157  
static bool ai_isMemoryDirty() {
158  
  ret owner.ai_isMemoryDirty();
159  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, ydilcnlqtmvn

No comments. add comment

Snippet ID: #1011841
Snippet name: Speculation as module (Include)
Eternal ID of this version: #1011841/44
Text MD5: 57bab829cdf2822d3e64b26f845f4741
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 04:19:10
Source code size: 3369 bytes / 159 lines
Pitched / IR pitched: No / No
Views / Downloads: 570 / 2351
Version history: 43 change(s)
Referenced in: [show references]