Skip to content

Commit d6781f8

Browse files
committed
New todos and java-ideas
1 parent b28592d commit d6781f8

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

docs/java_ideas

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
All classes NEED to be wrapped - the whole hierarchy immediately. Wrap all methods too. The regular objects shouldn't be necessary to wrap.
3+
4+
5+
6+
Origin mimics JavaGround
7+
8+
How to refer to full class names?
9+
Foo
10+
java:util:HashMap
11+
xml:com:sun:blarg:Foo$Bar$Quux ;; inner classes
12+
xml:com:sun:blarg:Foo Bar Quux ;; inner classes
13+
14+
Importing:
15+
JavaGround#import
16+
17+
import(java:util:HashMap)
18+
19+
assignment works too:
20+
21+
HMap = java:util:HashMap
22+
23+
The class referred is the real class.
24+
25+
Create new instances with new
26+
27+
HMap new
28+
29+
To figure out:
30+
- how to call overloaded methods
31+
- args by name functionality?
32+
- how to send code to Java methods?
33+
maybe something like this:
34+
Thread new(Runnable: callSomeExpensiveThing)
35+
Thread new(run: callSomeExpensiveThing)
36+
Collections sort(list, fn(x, y, x <=> y))
37+
Collections sort(list, compareTo: (x, y, x <=> y))
38+
39+
- how to see difference between fields and methods
40+
- how to implement interfaces
41+
- how to extend from Java classes in some way
42+
43+
44+
- add loads of good helpers to Java types

docs/todo

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
- look up mn-trees for lookup stuff
3+
- first step: go to using a trie
4+
- linking tries together?
5+
- splay tree, possibly (since it allows the same key several times)
6+

0 commit comments

Comments
 (0)