00:34
fbytez has quit [Quit: byte byte]
00:35
fbytez has joined #picolisp
03:59
_whitelogger has joined #picolisp
06:11
_whitelogger has joined #picolisp
06:32
rob_w has joined #picolisp
07:13
drawnto has joined #picolisp
07:14
<
drawnto >
In the pilBox shell, what determines what Java stuff is in scope to access? Is there a way to "import" new things into scope?
07:14
<
drawnto >
by scope i mean accessible using java calls
07:32
DKordic has joined #picolisp
08:13
<
abu[7] >
drawnto: You mean the Java objects?
08:15
<
drawnto >
I was more thinking of classes and modules.
08:15
<
abu[7] >
They are accessed and fetched as Pil external symbols whenever their value or properties are needed
08:16
<
drawnto >
Does that mean pil by default has access to all of them?
08:17
<
drawnto >
I didn't get the impression that that was the case but that was also before i got more confident around the $ sign.
08:17
<
abu[7] >
Technically they are a database
08:27
<
drawnto >
Is there a way to remote access the picolisp shell running on an app?
08:28
<
abu[7] >
You can run the REPL from your PC
08:29
<
abu[7] >
The easiest is the 'pty' utility in the Pil release
08:29
<
abu[7] >
Or Telnet, but needs more setup
08:32
<
abu[7] >
It is described in detail in Mia's blog
10:25
bjorkintosh has quit [Remote host closed the connection]
10:25
bjorkintosh has joined #picolisp
10:58
<
drawnto >
How would i create an java array of Strings?
11:01
<
abu[7] >
Should be simply a list of strings
12:17
beneroth has quit [Quit: Leaving]
12:24
<
drawnto >
What is the n for in (java "cls" ['n] 'msg ['any ..]) -> any Call method in class
12:24
<
drawnto >
and (java 'obj ['n] 'msg ['any ..]) -> any Send message to object
12:27
<
abu[7] >
If a number is give there, it causes the creation of a Thread
12:28
<
abu[7] >
Typically in combination with 'runOnUiThread'
12:28
<
abu[7] >
(java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 0 'loadUrl (pass pack)))
12:29
<
abu[7] >
If 'n' is zero, no return value is expected
12:29
<
abu[7] >
If positive, a return value
12:30
<
abu[7] >
If negative, the Thread persists in a loop
12:31
<
abu[7] >
(java (java @ -1 'accept) 'start)
12:31
<
drawnto >
this goes over my head but i will try a 0 there and see if it helps
12:32
<
abu[7] >
Only -1, 0 and 1 make sense
12:33
<
abu[7] >
Example for a result:
12:33
<
abu[7] >
(java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 1 'getUrl))
13:04
<
drawnto >
in the repl (java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 1 'getUrl)) gives NIL
13:08
<
abu[7] >
Yes, this is not complete
13:09
<
abu[7] >
The Thread is started
13:15
<
abu[7] >
Wait, the callback makes no sense out of context.
13:58
abu[7] has quit [Ping timeout: 265 seconds]
14:06
abu[7] has joined #picolisp
14:09
<
abu[7] >
What I said above "Only -1, 0 and 1 make sense" is not correct. Other numbers can be used if the same method name is used in different places. They are keys.
14:19
drawnto has quit [Quit: Client closed]
14:53
rob_w has quit [Remote host closed the connection]
16:07
rob_w has joined #picolisp
17:37
user3456 has quit [Ping timeout: 245 seconds]
17:38
user3456 has joined #picolisp
18:44
Guest46 has joined #picolisp
18:46
<
Guest46 >
Can any one explain how to solve the SEND + MORE = MONEY problem using pilog, thank you.
18:56
Guest46 has quit [Quit: Client closed]