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
pfd has quit [Ping timeout: 252 seconds]
razzy has joined #picolisp
razzy has quit [Quit: Lost terminal]
razzy has joined #picolisp
<razzy> question, why is picolisp generate so many non printable characters when writing to standart output?
<tankf33der> What is your code example?
<razzy> tankf33der: https://termbin.com/epl8 was generated with pil + | tee FILE
hunar has joined #picolisp
<razzy> non pritable characters are not readable in linux console
<razzy> web browser should print them
<razzy> tankf33der: hmmm, maybe these characters are formatting characters for terminal?
<razzy> maybe there is program that can read it as terminal and print into file?
pfd has joined #picolisp
hunar has quit [Ping timeout: 252 seconds]
hunar has joined #picolisp
<hunar> Hello Everyone :)  I got very busy the last few months and gone from here, I almost switched programming language at one point but fortunately came back to pil.. Today I started again and got interested in PilBox .. in part6 of mia's tutorials on mobile development I have a problem.. when i enter (let PM (java CONTEXT 'getPackageManager))  then
<hunar> (java PMan 'hasSystemFeature "android.hardware.camera") I assume PMan is a typo so corrected it to PM, but it prints this (java.lang.NoSuchMethodException: hasSystemFeature([L java.lang.Class;@c407e7b) ) is the tutorial up to date or i'm doing something wrong?
<razzy> i will read possible answers
razzy has quit [Quit: leaving]
chexum has quit [Quit: No Ping reply in 180 seconds.]
chexum has joined #picolisp
<abu[m]> Hi hunar:!
<hunar> Hello abu[m] :D
<abu[m]> razzy, these are ncurses control characters from readline()
<abu[m]> hmm, does (camera?) work?
<abu[m]> it is in @lib/android.l
<abu[m]> It calls: (java (java CONTEXT 'getPackageManager) 'hasSystemFeature "android.hardware.camera")
<abu[m]> Anyway, hunar, I'm glad to see you back here ☺
<hunar> The camera within the demo example works
<abu[m]> Good, but what is different then?
<hunar> Thank you abu[m] :)
<abu[m]> just the 'let'?
<hunar> This runs normally (let PM (java CONTEXT 'getPackageManager))  the problem is in the next command
<abu[m]> But 'camera?' calls it
<hunar> Wait, I'll install PilBox in another phone and try again
<abu[m]> (vi 'camera?)
<abu[m]> it calls hasSystemFeature
<abu[m]> Perhaps in the wrong namespace?
<abu[m]> It needs 'android'
<hunar> I don't follow what you're saying :(    here is what i'm doing: opening pilbox, going to repl, typing (let PM (java CONTEXT 'getPackageManager)) then (java PM 'hasSystemFeature "android.hardware.camera") .. if I type (vi 'camera?) it freezes then crashes
<abu[m]> yes, (vi 'camera?) works only in pseudo TTY
<abu[m]> (pp 'camera?) then
<hunar> My other phone said (not compatible with your device's CPU)
<hunar> The installation of the app failed
<abu[m]> Oh, yes, needs an Arm64
<hunar> Ah, I was switching between tty and the phone, didn't know there was a difference :)
<abu[m]> camera? calls (java (java CONTEXT 'getPackageManager) 'hasSystemFeature "android.hardware.camera")
<abu[m]> So in your Arm64 phone (camera?) should work
<hunar> ok (pp 'camera?) outputs a function definition, I'll compare the code to see what's different
<abu[m]> Or you connect from a PC or Termux via 'pty' to get a real terminal
<hunar> Oh, I'm dumb
<hunar> It was a parenthesis issue, I didn't put the java call within the let .. sorry for wasting you time
<abu[m]> Ah, good! No problem :)
<abu[m]> You should really try bin/pty
<abu[m]> If your phone is in the LAN, you can ~/pil21/bin/pty 192.168.xxx.yyy
<abu[m]> and voila have a full terminal
<abu[m]> with 'vi' and all
<abu[m]> into the PilBox REPL
<hunar> I did try it :)  It's awesome, but I fall back to the phone because I expected that my tty is causing the problem ... however the connection is laggy for me .. half second delay between key press and character showing on terminal
<abu[m]> I see, strange
<abu[m]> The built-in REPL in PilBox is a bit limited
<hunar> I agree :)
<abu[m]> Anyway, so you found a typo in the blog?
<abu[m]> 'PM' ?
<hunar> Yes, it was PMan instead of PM
<abu[m]> I tell Mia
<hunar> Great :)  should I always tell typos in here or there is a better place
<hunar> I think I saw another typo but I don't remember where
<abu[m]> Perhaps the mailing list?
<abu[m]> Or, if you have a Matrix client, in the room #picolisp:7fach.de
<abu[m]> There Mia is member
<hunar> Ah, right .. I never use the mailing list.. I should start using it
<hunar> First time I hear about Matrix, I'll research it now
<abu[m]> Great! Look at matrix.org
<hunar> Thanks :D
<abu[m]> You can set up your own server, and be safer.
<abu[m]> My Matrix ID is @abu:7fach.de
<hunar> I joined the room and saw you :) , the messages are hidden (I suppose old messages aren't accessible due to encryption) :)  what is the idea behind yet another chatting location? when to use matrix
<abu[m]> Good question ;) Just fun.
<abu[m]> We made that room before we hat this bridge to Libera.chat
<abu[m]> In that room it is kind of easier to make a Video Conf
<abu[m]> It uses also Jitsi, but sets up the conf for us. Never tried though.
<hunar> Cool :)  .. where is the 6th finger of the penti keyboard on your profile picture?
<abu[m]> This was the original version, there was no 6th button yet
<abu[m]> Also no arpeggio, so it was hard to use
<hunar> Aha
hunar has quit [Quit: Client closed]
Hunar[m] has joined #picolisp
<Hunar[m]> Wait, I can connect to libera.chat fron a matrix client :D that's great
<abu[m]> I like it too. No need to keep an IRC client open all the time
<Hunar[m]> My irc client on android was horrible and constantly disconnecting, another client was banned, this one is very nice
<Hunar[m]> There are options to send images/files/polls etc.. what happens if i use them here?
<abu[m]> I think then a link shows up
<Hunar[m]> I'll try a small image :) curious
<Hunar[m]> hmm, uploaded to libera.ems.host
<abu[m]> Yes, a link in text-IRC
<abu[m]> Good I think
<Hunar[m]> :)
<abu[m]> Here in Matrix it is a normal embedded image. Perfect!
<Hunar[m]> Did a like emoji show up on your message? nothing changed in the irclog
<abu[m]> Which do you mean?
<abu[m]> Exactly the same here
<abu[m]> The thumb-up was generated from "Perfect!" perhaps?
<Hunar[m]> no, I placed it
<abu[m]> ah
<abu[m]> So this is ignored in IRC
<Hunar[m]> yes :D I also want to try out poll
<abu[m]> It even shows the "writing ..." dots
<abu[m]> Probably only if both are on Matrix
<abu[m]> How did you make the poll?
<Hunar[m]> I'm using the (Element) app, there us a + button on the left bottom corner
<abu[m]> Same here
<abu[m]> FluffyChat too
<Hunar[m]> Cool :D
<abu[m]> But the poll is not useful in IRC for the general public
<abu[m]> as it is not shown
<Hunar[m]> Yeah, I cant see a use case here either
<Hunar[m]> If it is possible to connect matrix to facebook messenger then I'll delete that heavy messenger app from my phone, it uses too much ram
<abu[m]> No idea if there is a bridge
<Hunar[m]> There is this, https://matrix.org/docs/projects/bridge/mautrix-facebook but I don't know what does it mean or need to work
<abu[m]> Cool
alexshendi has joined #picolisp
alexshe4 has joined #picolisp
alexshe45 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe4 has quit [Ping timeout: 252 seconds]
alexshe45 has quit [Ping timeout: 260 seconds]
alexshendi has quit [Ping timeout: 240 seconds]
alexshendi has joined #picolisp