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

19
LINES

< > BotCompany Repo | #1016026 // Snippets DB [Dyn Module, warning: loads whole snippet DB in memory]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 3874K of libraries. Click here for Pure Java version (16515L/122K).

1  
!7
2  
3  
!include #1009918 // main is not run
4  
5  
sclass SnippetsDB extends DynModule {
6  
  transient ReliableSingleThread rst = new(r updateMe);
7  
  
8  
  void start {
9  
    useDBOf(#1009918);
10  
    onConceptsChange(rst);
11  
    fullUpdateAtStart = false;
12  
    snippetsDB_init();
13  
  }
14  
  
15  
  JComponent visualize() {
16  
    ret centerBoldLabel(jLiveValueLabel(dm_calculatedLiveValue(this, S,
17  
      func -> S { n2(countConcepts(CSnippet), "snippet") })));
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016026
Snippet name: Snippets DB [Dyn Module, warning: loads whole snippet DB in memory]
Eternal ID of this version: #1016026/10
Text MD5: 87ccd67814490cb70659f18a0f3b1166
Transpilation MD5: 8893bc0305283f0841600827c1c100c4
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-06 13:13:01
Source code size: 450 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 559
Version history: 9 change(s)
Referenced in: [show references]