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

237
LINES

< > BotCompany Repo | #1032857 // CompactQ - Q (thread-based queue) but in compact - only 32 bytes when idle (including Java header!)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6432L/37K).

java.lang.RuntimeException: Unknown token 2: <: 
Warning: session_start(): open(/var/lib/php/sessions/sess_a1k2mhsud3q900io9aq6h8v7cr, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
{"1000628":"first function","1001518":"l function (synonym of length), length of arrays, strings, lists, size of maps","1001634":"cloneList - now safely clones a synchroList (synchronizing on it)","1001664":"max function","1001730":"currentThread","1001931":"cleanUp - try to clean up a program\/object\/class","1002022":"isEmpty - check strings or collections for emptiness","1002066":"licensed - should program keep running? also ping()s so thread is cancelled\/paused etc. on request","1003008":"or2 function - return string or default value if string is empty (=null or \"\")","1003483":"callF + safeCallF - call a Runnable, func, voidfunc or function name","1003960":"done - print elapsed time","1004558":"startThread","1007610":"popFirst - remove & return first element(s) of collection","1009344":"cancelAndInterruptThread","1010842":"trueOrNull - convert true to TRUE, false to null","1010896":"clear - clear a collection or map","1013362":"close","1014725":"add - add Component to Container, add element to collection, set bit in BitSet","1023032":"IF0 - function with no arguments (interface version)","1024021":"with - synonym of withComputing","1029960":"addInFront - synonym of addFirst + containerAddFirst","1030325":"toString - synonym of strOrNull","1030483":"inc - synonym of incAtomicLong + more","1030670":"chainPlus - append to Chain (to beginning) or to AppendableChain\/ReverseChain (to the end)","1031838":"Meta - successor of DynamicObject","1032857":"CompactQ - Q (thread-based queue) but in compact - only 32 bytes when idle (including Java header!)","1032858":"AppendableChain - singly-linked cons list (forward connected) with a pointer to the end so you can append cheaply","1032859":"itemPlusChain - append in front","1032879":"flagSleep - provide a flag and sleep until it is up","1032880":"raiseFlagOnRunAndClose","1032885":"cloneList_unsynced - synonym of cloneList_noSync","1033195":"metaGet - synonym of metaMapGet","1033244":"metaSet - synonym of metaMapPut","1033772":"metaPut - synonym of metaMapPut"} at main.fail(m1008705.java:1589) at main$jsonDecode_Y.fail_base(m1008705.java:14008) at main$jsonDecode_Y.fail(m1008705.java:14006) at main$jsonDecode_Y.parseExpr(m1008705.java:14058) at main$jsonDecode_Y.parse(m1008705.java:14012) at main.jsonDecode(m1008705.java:13990) at main.jsonDecodeMap(m1008705.java:12844) at main.getSnippetTitles(m1008705.java:10820) at main$JavaXHyperlinker.codeToHTML(m1008705.java:6209) at main.html2(m1008705.java:85) at main.html(m1008705.java:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.callOpt_withVarargs(m1008705.java:4387) at main.callOpt(m1008705.java:3326) at main.callHtmlMethod2(m1008705.java:11404) at main$MyHTTPD$1.get(m1008705.java:7337) at main$MyHTTPD$1.get(m1008705.java:1) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.safeCallF(m1008705.java:642) at main.callF(m1008705.java:611) at main$MyHTTPD.serve(m1008705.java:7373) at main$NanoHTTPD.serve_2(m1008705.java:9572) at main$NanoHTTPD.serve(m1008705.java:9553) at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453) at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829) at java.base/java.lang.Thread.run(Thread.java:833)

Author comment

Began life as a copy of #1000934

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032857
Snippet name: CompactQ - Q (thread-based queue) but in compact - only 32 bytes when idle (including Java header!)
Eternal ID of this version: #1032857/76
Text MD5: 32da1580b4fb6dbd8109b9d1b1e8aaa0
Transpilation MD5: 8972134aa4e72bed0ed2fa022e28a3a7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-19 21:48:36
Source code size: 7139 bytes / 237 lines
Pitched / IR pitched: No / No
Views / Downloads: 798 / 1253
Version history: 75 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)