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)

set flag hotwire_here.

// share ISpec interface with sub-modules
static JavaXClassLoader hotwire_makeClassLoader(L<File> files) {
  ClassLoader cl = myClassLoader();
  ret new JavaXClassLoaderWithParent2(null, files, cl, parseClassesToShareList(smartBot_sharedClasses()));
}

static ISpec owner, ispec;

static ThreadLocal<Bool> ai_postTriple_verified;

static void ai_spec_init() {
  O c = creator();
  if (owner == null) owner = (ISpec) getOpt(c, 'ispec);
  ispec = owner;
  if (c != null)
    copyFields(c, mc(), 'ai_postTriple_verified);
  ai_prepLoadFunctions();
}

static void ai_alternativeSmartBot() {
}

static Lock aiLock() {
  ret owner.aiLock();
}

static bool ai_cache_hasTriple(T3<S> t) {
  ret ai_cache_hasTriple(t.a, t.b, t.c);
}

static bool ai_cache_hasTriple(S a, S b, S c) {
  ret owner.ai_cache_hasTriple(a, b, c);
}

static S ai_postTriple(T3<S> t) {
  ret ai_postTriple(t.a, t.b, t.c);
}

static S ai_postTriple(S a, S b, S c) {
  ret owner.ai_postTriple(a, b, c);
}

static S ai_setMaker(S maker) {
  ret owner.ai_setMaker(maker);
}

static L<S> allIndexedFullTerms() {
  ret owner.allIndexedFullTerms();
}

static L<S> ai_texts_verified(S a, S b, S c) {
  ret owner.ai_texts_verified(a, b, c);
}

static S ai_text(S a, S b, S c) {
  ret owner.ai_text(a, b, c);
}

static S ai_text(T3<S> t) {
  ret ai_text(t.a, t.b, t.c);
}

static MultiMap<S, WebNode> dwlw_fullNodeIndex_ci() {
  fail("Shouldn't call");
}

static Web ai_blob(S word, bool verified) {
  ret owner.ai_blob(word, verified);
}

static L<WebNode> ai_index_search_dollarX(S a, S b, S c) {
  ret owner.ai_index_search_dollarX(a, b, c);
}

static L<WebNode> indexedNodes(S s) {
  ret owner.indexedNodes(s);
}

static L<Web> indexedWebs(S s) {
  ret owner.indexedWebs(s);
}

static Set<GlobalID> ai_invalidatedWebs() {
  ret owner.ai_invalidatedWebs();
}

svoid ai_invalidatedWebs_cache_put(GlobalID a, GlobalID b) {
  owner.ai_invalidatedWebs_cache_put(a, b);
}

static MultiMap<S, WebNode> cachedNodeIndex2() {
  ret owner.cachedNodeIndex2();
}

static Web ai_getWeb(S id) {
  ret owner.ai_getWeb(id);
}

static Web ai_getWeb(GlobalID id) {
  ret owner.ai_getWeb(str(id));
}

static void ai_setSubSpace(AI_SubSpace subSpace) {
  owner.ai_setSubSpace(subSpace);
}

static AI_SubSpace ai_currentSubSpace() {
  ret owner.ai_currentSubSpace();
}

static Set<S> ai_mainIndexKeys() {
  ret owner.ai_mainIndexKeys();
}

static TripleIndex tripleIndex() {
  ret owner.tripleIndex();
}

static void ai_removeWeb(Web web) {
  owner.ai_removeWeb(web);
}

static L<VirtualNodeIndex> virtualNodeIndices() {
  ret owner.virtualNodeIndices();
}

static bool ai_enabled() {
  ret owner.ai_enabled();
}

static bool ai_useThoughtSpaces() {
  ret owner.ai_useThoughtSpaces();
}

static bool ai_inTripleMode() {
  ret owner.ai_inTripleMode();
}

static AbstractThoughtSpace currentThoughtSpace() {
  ret owner.currentThoughtSpace();
}

static AbstractThoughtSpace thoughtSpace() {
  ret currentThoughtSpace();
}

static <A extends AbstractThoughtSpace> A thoughtSpace(A ts) {
  ret owner.thoughtSpace(ts);
}

static void ai_markMemoryDirty() {
  owner.ai_markMemoryDirty();
}

static bool ai_isMemoryDirty() {
  ret owner.ai_isMemoryDirty();
}

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: 569 / 2350
Version history: 43 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010745 - Smart Bot (LIVE)
#1011823 - Speculation as module (Example)
#1013032 - smartBotEval_prelude
#1013530 - Mandatory Dyn Module Include (to share cache)