beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
fbytez has quit [Quit: byte byte]
fbytez has joined #picolisp
_whitelogger has joined #picolisp
<abu[7]> d7
_whitelogger has joined #picolisp
rob_w has joined #picolisp
drawnto has joined #picolisp
<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?
<drawnto> by scope i mean accessible using java calls
<drawnto> I know that https://picolisp.com/wiki/?javaiterop is entirely unrelated to pilBox but that it has a javaImport function got me thinking.
DKordic has joined #picolisp
<abu[7]> drawnto: You mean the Java objects?
<drawnto> I was more thinking of classes and modules.
<abu[7]> They are accessed and fetched as Pil external symbols whenever their value or properties are needed
<drawnto> Does that mean pil by default has access to all of them?
<abu[7]> yes
<drawnto> I didn't get the impression that that was the case but that was also before i got more confident around the $ sign.
<abu[7]> Technically they are a database
<drawnto> Is there a way to remote access the picolisp shell running on an app?
<abu[7]> You can run the REPL from your PC
<abu[7]> The easiest is the 'pty' utility in the Pil release
<abu[7]> Or Telnet, but needs more setup
<abu[7]> It is described in detail in Mia's blog
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #picolisp
<drawnto> How would i create an java array of Strings?
<abu[7]> Should be simply a list of strings
<drawnto> I see.
beneroth has quit [Quit: Leaving]
<drawnto> What is the n for in    (java "cls" ['n] 'msg ['any ..]) -> any  Call method in class
<drawnto> and    (java 'obj ['n] 'msg ['any ..]) -> any   Send message to object
<abu[7]> If a number is give there, it causes the creation of a Thread
<abu[7]> Typically in combination with 'runOnUiThread'
<abu[7]> (java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 0 'loadUrl (pass pack)))
<abu[7]> If 'n' is zero, no return value is expected
<abu[7]> If positive, a return value
<abu[7]> If negative, the Thread persists in a loop
<abu[7]> (java (java @ -1 'accept) 'start)
<drawnto> this goes over my head but i will try a 0 there and see if it helps
<abu[7]> OK
<abu[7]> Only -1, 0 and 1 make sense
<abu[7]> Example for a result:
<abu[7]> (java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 1 'getUrl))
<drawnto> in the repl (java (; CONTEXT GUI) 'runOnUiThread (java (; CONTEXT GUI PilView) 1 'getUrl)) gives NIL
<abu[7]> Yes, this is not complete
<abu[7]> The Thread is started
<abu[7]> Wait, the callback makes no sense out of context.
<abu[7]> Better http://pb1n.de/?7978c4
abu[7] has quit [Ping timeout: 265 seconds]
abu[7] has joined #picolisp
<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.
drawnto has quit [Quit: Client closed]
rob_w has quit [Remote host closed the connection]
rob_w has joined #picolisp
user3456 has quit [Ping timeout: 245 seconds]
user3456 has joined #picolisp
Guest46 has joined #picolisp
<Guest46> Can any one explain how to solve the SEND + MORE = MONEY problem using pilog, thank you.
Guest46 has quit [Quit: Client closed]