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).

1  
!7
2  
3  
static new AI_SubSpace subSpace;
4  
5  
p {
6  
  final new MultiMap<S, WebNode> bigCache;
7  
  ai_addWebToIndex_noNotify(bigCache, webFromTriple("a", "b", "c"));
8  
  cachedNodeIndex2_cache.set(bigCache);
9  
  
10  
  assertTrue(func { ai_hasTriple("a", "b", "c") });
11  
  assertFalse(func { ai_hasTriple("love", "is", "nice") });
12  
  
13  
  ai_setPostHandler(subSpace);
14  
  ai_postTriple("love", "is", "nice");
15  
  
16  
  assertTrue(func { subSpace.index.containsKey("nice") });
17  
  assertTrue(func { ai_hasTriple("a", "b", "c") });
18  
  assertFalse(func { bigCache.containsKey("nice") });
19  
  
20  
  print("OK");
21  
}

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: 476 / 1937
Version history: 8 change(s)
Referenced in: [show references]