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

62
LINES

< > BotCompany Repo | #1004044 // JavaX Goodies

Document

1  
* Download: <a href="http://tinybrain.de/x30.jar">PC</a>, <a href="http://tinybrain.de/javax.apk">Android</a>
2  
* <b>All Java code is also JavaX code.</b> No learning required, only if you want to use our awesome extensions.
3  
* Everything is super-short (if you want that). No boilerplate, ever.
4  
* All code versioned automatically on our server [see <a target="_blank" href="http://snippets.tinybrain.de">code database</a>]
5  
* JavaX works on Windows, Linux, Mac OS X and Android.
6  
* JavaX is FREE and OPEN SOURCE.
7  
* No installation required. Just <a href="http://tinybrain.de/x30.jar">start the jar file</a>.
8  
* Compatible with any Java version
9  
* Every program is downloaded and run when user wants it.
10  
* <b>Stefan just knows what Java programmers want</b> (Java adopter since 1998 and leading member of the Java Operating System Project)
11  
* We are currently building <i>actual A.I.</i> in JavaX
12  
* 1500+ <a href="http://tinybrain.de/761">incredibly useful standard functions with speaking names</a>
13  
* Despite their power, JavaX programs are typically small, baked into a single .java file (<200K) and require no libraries.
14  
* Compiling a JavaX program into Java usually takes ~2 seconds.
15  
* Loading code dynamically from the server is a one-liner
16  
    <pre>Class dynamicallyLoadedClass = hotwire("#1004022");</pre>
17  
* Short syntax for starting threads
18  
    <pre>thread "Think Thread" { think(); }</pre>
19  
* Reflection made REALLY easy
20  
    <pre>call(someObject, "add", someOtherObject);</pre>
21  
    <pre>set(someObject, "variable", 123);</pre>
22  
* <a href="http://tinybrain.de/1003674">Many utility classes</a>
23  
* A proper comparison function
24  
    <pre>if (eq(a, b)) { ... }</pre>
25  
* MultiMap, MultiSet
26  
* JavaX code is PORTABLE between Java and Android (where at all possible)
27  
* Running your code on Android requires NO new app
28  
* Run your own code on Android without paying $25 for Play Store registration!
29  
* ANY Java library can be included & shipped with your program (they're automatically downloaded on demand)
30  
* Ultra-short syntax for list handling (L = List, S = String)
31  
    <pre>L<S> list = litlist("a", "b", "c");</pre>
32  
* Class loaders are now tamed! Everything is transparent (exactly one class loader per program).
33  
* Importing and exporting objects between class loaders is a one-liner
34  
    <pre>quickExport(foreignClass, myObject)</pre>
35  
    <pre>quickImport(foreignObject)</pre>
36  
* Every program automatically gets a graphical console (PRINT statements work everywhere again!)
37  
* You can build your own translator to extend the language. It's easy too.
38  
* Adding keywords to the language can be a one-liner!
39  
    <pre>tok = replaceKeywordBlock(tok, "myNewKeyword", ..., ...);</pre>
40  
* Built-in tokenizer for Java and JavaX
41  
    <pre>L<S> tokens = javaTok("class A {}");</pre>
42  
* Making a web server is a one-liner
43  
    <pre>serveHttp(8080);</pre>
44  
* Your web server will run on your Android phone no problem!
45  
* Shortest code ever for making GUIs
46  
    <pre>showFrame(vgrid(new JTextArea, new JTextArea));</pre>
47  
* Showing a JTable? One line.
48  
    <pre>showTable(ll(litorderedmap("Name", "John", "Last Name", "The Master")));</pre>
49  
* Including a pretty Look&Feel ("Substance") is a one-liner
50  
    <pre>substance();</pre>
51  
* Speech synthesis is a one-liner
52  
    <pre>kevin("This is Kevin, a FreeTTS voice.");  // Desktop</pre>
53  
    <pre>androidSayInGerman("Hallo Android User!"); // Android</pre>
54  
* Communication between virtual machines over TCP/IP is a breeze. You can use simple matching functions for natural language. More one-liners!
55  
    <pre>p { makeBot("Listener."); }
56  
    <pre>answer { if "are you there?" ret "I'm here"; }</pre>
57  
    <pre>/* client side: */ send("Listener", "are you there");</pre>
58  
* Lambdas
59  
    <pre>func(S s) { s + s }</pre>
60  
* Standard list functions: map, collect, filter, ...
61  
* <a href="https://medium.com/@stefanreich/java-can-have-coroutines-e469dc91c15a">Coroutines are possible</a>
62  
* And so much more!!

download  show line numbers   

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

No comments. add comment

Snippet ID: #1004044
Snippet name: JavaX Goodies
Eternal ID of this version: #1004044/2
Text MD5: 9fdbacaad55f67f7e1fa7eaa0f4ee8b0
Author: stefan
Category: javax
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-01 15:46:37
Source code size: 3966 bytes / 62 lines
Pitched / IR pitched: No / No
Views / Downloads: 510 / 9603
Version history: 1 change(s)
Referenced in: [show references]