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
alexshe95 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
chexum has quit [Ping timeout: 268 seconds]
chexum has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
anddam has quit [*.net *.split]
anddam has joined #picolisp
anddam has quit [Signing in (anddam)]
anddam has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 252 seconds]
alexshendi has joined #picolisp
alexshe13 has joined #picolisp
alexshendi has quit [Ping timeout: 244 seconds]
alexshe13 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
chexum has quit [Ping timeout: 268 seconds]
chexum has joined #picolisp
alexshe22 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
chexum has quit [Ping timeout: 268 seconds]
chexum has joined #picolisp
alexshe22 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
chexum_ has joined #picolisp
chexum has quit [Ping timeout: 268 seconds]
azynheira has joined #picolisp
<azynheira> Hello all
<abu[m]> Hi @azynheira!
<azynheira> I came back to studying picolisp after a few time out of the game
<abu[m]> Very good idea ☺
alexshendi has quit [Quit: -a- Connection Timed Out]
<azynheira> I have started diving into the specifics ... and I thought that I was smart human ... but then I come across these pearls:                            (de recur recurse
<azynheira>    (run (cdr recurse)) )
<azynheira> and I seem to come back to primary school :P
<abu[m]> Yeah, simple and obscure at the same time
<azynheira> Thats exactly my point
<azynheira> there needs to be a leap of intuition
<azynheira> why do you need anonymous recursion in the first place ?
<abu[m]> It is just a consequence of how the Pil interpreter works
alexshendi has joined #picolisp
<abu[m]> In fact I need it much more often than explicitly recursing named functions
<azynheira> Can you provide me with a very simple example
<azynheira> please :-)
<abu[m]> There are many examples even in the standard distribution
<abu[m]> Just do this:
<abu[m]> $ pil +
<abu[m]> (vf 'recur "" ".l")
<abu[m]> I get 17 hits
<azynheira> let me try
<abu[m]> (maybe not all these are in the distro but locally here)
<abu[m]> and not 17 hits but 17 files, with several case per file sometimes
<azynheira> I see them yes
<abu[m]> The main advantage is that you can set up stuff, and then recurse
<azynheira> But is it not what one usually do ?
<abu[m]> yes, but then you need to define a separate function
<abu[m]> i.e. named and not anonymous
<abu[m]> An extreme example is 'snapshot' in @lib/too.l
<azynheira> like a recursive environment ?
<azynheira> let me check
chexum_ has quit [Remote host closed the connection]
<abu[m]> yes
chexum has joined #picolisp
<abu[m]> It has 'recurse' inside 'recurse'
<abu[m]> I mean 'recur' inside 'recur'
<azynheira> I am there
<azynheira> checking it ....
<azynheira> Another nuissance from my side
<azynheira> is there a easy way to change the VI cursor keys to cursor keys on the keypad ?
<azynheira> My hands are not VIed :-)
<azynheira> in VIP I mean
<abu[m]> Hmm, the cursor keys are used in Vip. You could change them in ~/.pil/viprc
<azynheira> I get a strange behaviour when I press the right key for example
<abu[m]> I think only arrow right and left. Up and down are "normal", no?
<azynheira> the whole screen is moved to the right
<abu[m]> Yes
<azynheira> yes
<abu[m]> That's intentional
<abu[m]> it scrolls 3 spaces
<azynheira> I am not saying its not ... but could I not change it ?
<abu[m]> Very useful for long lines (or small screens)
<azynheira> I undestand
<abu[m]> yes, you can remap keys in ~/.pil/viprc
<abu[m]> I forgot, let me check
<azynheira> Thanks
<abu[m]> ok :) Put this into viprc: (map+ "\e[C" "l")
<abu[m]> and (map+ "\e[D" "h")
<azynheira> the first bit is the ASCII escape character
<azynheira> right?
<abu[m]> yes
<abu[m]> These are the escape sequences for the arrow keys
<azynheira> As a side joke I compare the size of pil21 development kit to anyother and its mindboggling
<azynheira> :)
<abu[m]> Well, it's "pico" ;)
<azynheira> size usually does not matter :P
<abu[m]> right
<abu[m]> In fact, most of the space in the TGZ is take up by src/base.ll
<abu[m]> It is not really needed. Only to bootstrap the compilation
<azynheira> but if you compare the funcionality
<azynheira> in a gcc toolchain alone + IDE and all the other
<azynheira> niceties
calle has joined #picolisp
<azynheira> Is it easy to cross compile  pil21 to ARM64 using LLVM ?
<abu[m]> Yes, I use it mostly this way
<abu[m]> Termux on Android
<azynheira> The reason being I work with ARM MCUs and would be a neat project to have a Pil21 on bare-metal working on one of these babies
<azynheira> If cross compiling was possible only the low leve of clocking and UART I/O would be required
azynheira has quit [Quit: Ping timeout (120 seconds)]
<abu[m]> Good I think. The only thing is that Pil needs a POSIX system
azynheira has joined #picolisp
<azynheira> Could I use PIlbox as a base for development ?
<abu[m]> Perhaps, if it is ok that it is Android-based (Java)
<azynheira> Nah ... I need to "Hack" pil21 so I can create a .elf that I can trim to a .bin file and then boot on a ARMv7 or ARM53
<azynheira> arm64 is more AR53
<abu[m]> Pil21 will not run on a 32-bit hardware
<abu[m]> The architecture depends on 64 bit pointers
azynheira has quit [Client Quit]
azynheira has joined #picolisp
<azynheira> but ARM53 it will correct ?
<azynheira> A53 I mean ... thats a 64bit CPU
<abu[m]> Yes, this is fine
<azynheira> CM7 is a 32bit so out of the question
alexshendi has quit [Ping timeout: 256 seconds]
<abu[m]> Time to sleep ☺ Good night!
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
<azynheira> You too :-)
alexshendi has joined #picolisp
azynheira has quit [Ping timeout: 252 seconds]
calle has quit [Quit: Leaving]
alexshendi has quit [Ping timeout: 248 seconds]
alexshendi has joined #picolisp