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

21
LINES

< > BotCompany Repo | #1012046 // Subspace Experiment [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (16229L/116K).

!7

static new AI_SubSpace subSpace;

p {
  final new MultiMap<S, WebNode> bigCache;
  ai_addWebToIndex_noNotify(bigCache, webFromTriple("a", "b", "c"));
  cachedNodeIndex2_cache.set(bigCache);
  
  assertTrue(func { ai_hasTriple("a", "b", "c") });
  assertFalse(func { ai_hasTriple("love", "is", "nice") });
  
  ai_setPostHandler(subSpace);
  ai_postTriple("love", "is", "nice");
  
  assertTrue(func { subSpace.index.containsKey("nice") });
  assertTrue(func { ai_hasTriple("a", "b", "c") });
  assertFalse(func { bigCache.containsKey("nice") });
  
  print("OK");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012046
Snippet name: Subspace Experiment [OK]
Eternal ID of this version: #1012046/9
Text MD5: 91b1f710def69d666470ff346115fb13
Transpilation MD5: 323fa3eb72cd06a37f05d99e43235d06
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-17 07:47:59
Source code size: 589 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 1647
Version history: 8 change(s)
Referenced in: [show references]