Re: Vip Editor
Hi David, > Thank you Alex for another exciting utility as well as more example code to > learn from. I'm having some difficulty installing vip and I hope someone > can help me out. Using a 64-bit Netrunner (based off of Manjaro based off > Arch) install, a fresh 16-12 picolisp installation, and ncurses installed I > get: > > ... > [/usr/local/bin/vip:10] !? (265391 $10060141011 $10060141013 > $10060141015) > [DLL] /usr/lib/libncurses.so: file too short Yes, this is the common problem. I tried to explain it in the article, perhaps it got a bit too short: For Debian, however, I had to install libncurses5, and set a symbolic link (for reasons I don't really understand): $ sudo apt-get install libncurses5 $ (cd /lib/x86_64-linux-gnu; sudo ln -s libncursesw.so.5.9 libncurses.so) It seems that other Linux distributions need similar actions. Good luck! So it is important that you set the symbolic link! (For some reasons, the default "libncurses.so" is NOT a shared object library which can be called from C programs, but a text file with some kind of pointer or link in it) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: matching a simple string variable
Hi Joe, > > (match (cons '@A (conc (chop Varstring) '(@B))) ... > I'm using your "match" here as a simple string matcher. I'm sure there are > better ways, but I'm happy with my baby steps that appear to work! If you are only interested in a boolean result, but don't need the values of '@A' and '@B', you could of course simply do (sub? Varstring ...) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Vip Editor
Thank you Alex for another exciting utility as well as more example code to learn from. I'm having some difficulty installing vip and I hope someone can help me out. Using a 64-bit Netrunner (based off of Manjaro based off Arch) install, a fresh 16-12 picolisp installation, and ncurses installed I get: $ sudo pacman -Ss curses|grep installed core/ncurses 6.0+20161203-1 [installed] multilib/lib32-ncurses 6.0-2 [installed] $ vip testo.l [/usr/local/bin/vip:10] !? (265391 $10060141011 $10060141013 $10060141015) [DLL] /usr/lib/libncurses.so: file too short ? ^ -> (265391 $10060141011 $10060141013 $10060141015) ? What does it mean that mean the file is too short? Thanks and happy new year! Kind regards, David On Mon, Jan 2, 2017 at 2:29 AM, Alexander Burgerwrote: > Hi all, > > here is an article about Vip, the Vi-Style Editor in PicoLisp: > >http://picolisp.com/wiki/?vip > > It consists of only 990 lines of code. > > Not that the world needs yet another editor! But it may serve as a useful > collection of PicoLisp coding examples :) > > - Alex > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >
Re: pil64 on Android/Termux
False alarm. A bit of research showed I needed to force a fresh install of Termux to get access to 64-bit packages, even though the app was already up to date. pil64 is a go!
Re: pil64 on Android/Termux
Hi Alex, It is very easy. Just install the Termux App, then do $ apt update $ apt install picolisp Hmm, that leaves me with pil32. : (version) 16.12.22 C -> (16 12 22) : *CPU -> NIL I've been using pil32 for awhile now, so I did $ apt purge picolisp $ apt update $ apt install picolisp to make sure it wasn't just upgrading the existing install, but got the same results. Device is a Nexus 5x, which has a 64-bit ARMv8 processor. Thoughts?
Subscribe
Re: pil64 on Android/Termux
Hi Erik, > What's the current process to get pil64 running on Android/Termux? I tried > the method from the original announcement (wget, dpkg, etc) with more > recent versions of PL to no avail. That's not necessary. It is very easy. Just install the Termux App, then do $ apt update $ apt install picolisp ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: matching a simple string variable
Hi Joe, Also note that it's fairly easy to pull in regex functionality, should you need it. See http://rosettacode.org/wiki/Regular_expressions#PicoLisp for an example (pil64).
pil64 on Android/Termux
Hi Alex, What's the current process to get pil64 running on Android/Termux? I tried the method from the original announcement (wget, dpkg, etc) with more recent versions of PL to no avail. Thanks in advance, Erik
Re: matching a simple string variable
On Tue, Jan 03, 2017 at 07:52:34AM +0100, Alexander Burger wrote: >(match (append '(@A) (chop Varstring) '(@B)) ... BTW, better is perhaps (match (cons '@A (conc (chop Varstring) '(@B))) ... because 'append' unnecessarily copies the list just built by 'chop'. 'conc' avoids that garbage. Not critical though ;) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe