ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
clacke_movim has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
razzy has quit [Read error: Connection reset by peer]
clacke_movim has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
_whitelogger has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
rob_w has joined #picolisp
mtsd has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
mtsd has quit [Quit: Leaving]
mtsd has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
mtsd has quit [Quit: Leaving]
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
mtsd has joined #picolisp
rob_w has quit [Quit: Leaving]
mtsd has quit [Quit: Leaving]
<viaken> Is there a upper limit on DB size, assuming crazy amounts of RAM?
<viaken> Wait, I asked that wrong.
<Regenaxer> There is, but it does not depend on RAM
<viaken> Yeah, I meant the number of transient symbols.
<Regenaxer> ah
<Regenaxer> No limit
<viaken> Thanks!
<viaken> Since it was mentioned, what's the limit for the DB, other than disk space? I don't see it in the ref
<Regenaxer> It is 2**16 files, each ith maximally 2**42 blocks (thus also objects)
<viaken> That's a lot of objects.
<Regenaxer> yeah
tankf33der has joined #picolisp
<tankf33der> o/
orivej has joined #picolisp
<tankf33der> Regenaxer: ping.
<tankf33der> will be afk in 30mins.
<Regenaxer> Hi tankf33der! WB!
<Regenaxer> Uh, tankf33der's last mail says it draws a box -> strange!
<Regenaxer> No idea where the crash comes from
<Regenaxer> Can you try to debug?
<Regenaxer> Set breakpoint with '!', then 'vip file +'
<Regenaxer> It seems to crash on save>, but not in view>
<Regenaxer> but save by itself works. Not much possibility left
<tankf33der> (dm (save> 0 . This) (Win)
<tankf33der> (println 'before-super)
<tankf33der> (view> This Win) )
<tankf33der> (println 'after-super)
<tankf33der> (super)
<tankf33der> ===========
<tankf33der> generated this:
<tankf33der> ============
<tankf33der> :w"before-super"
<tankf33der> Segmentation fault (core dumped)
<tankf33der> [root@void ~]#
<Regenaxer> I see
<Regenaxer> Hmm
<tankf33der> VIP - crash
<tankf33der> vip - small one, just save and no crash
<Regenaxer> 'super' calls 'save>' in +Buffer
<Regenaxer> Can it be a version mismatch?
<Regenaxer> All from current rolling release?
<tankf33der> yeap
<Regenaxer> Geo wrote me in delta that he crashes too
<Regenaxer> Why no crash on my systems (Debian + Android)?
<Regenaxer> Can it be (status) in 'save> +Buffer'?
<Regenaxer> Try (msg 1) and (msg 9) in 'status'
<Regenaxer> at begin and end of 'status'
paines has joined #picolisp
<paines> hi
<tankf33der> afk
<Regenaxer> Hi paines
miskatonic has joined #picolisp
<paines> sorry for my ignorance. In the past is used the function (hex 'symbol) to convert symbol to hex. the docs say it should still be there, but I get Undefined. do I have to import somehting, or what am I doing wrong ?
<Regenaxer> 'hex' is in @lib/misc.l - It is loaded by 'pil'
<Regenaxer> 'pil' is the "normal" start-up of PicoLisp
<paines> *facepalm*
<paines> thanks !
<Regenaxer> Welcome, no problem :)
<tankf33der> 15:25 <Regenaxer> Try (msg 1) and (msg 9) in 'status' at begin and end of status
<tankf33der> i dont know how to do it
<Regenaxer> Just use 'msg' instead of 'print'
<Regenaxer> (goes to stderr, usually better for debug-prints)
<Regenaxer> I want to find out *where* exactly it crashes
<Regenaxer> Too bad that I cannot reproduce it
<Regenaxer> You can debug vip normally, just it garbles the screen of course due to curses
<Regenaxer> $ vip file +
<Regenaxer> Either set breakpeint in vip.l, or use the REPL of Vip
<Regenaxer> you get it by pressing space
<Regenaxer> it shows ':'
<Regenaxer> If you now enter space + s-expr, it is executes as lisp
<Regenaxer> Before perhaps increasse the command window with ---- in the main window
<Regenaxer> To access functions in Vip itself, set the namespace first:
<Regenaxer> : (symbols '(vip pico))
<Regenaxer> -> (pico)
<Regenaxer> : (pp 'status)
<Regenaxer> (de status NIL
<Regenaxer> ...
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<tankf33der> i dont understand how to debug.
<tankf33der> trying others OSes.
razzy has joined #picolisp
razzy has quit [Changing host]
razzy has joined #picolisp
<tankf33der> ersatz works under java 12 too. :)
<tankf33der> crash.
<tankf33der> this is not ncurse.
<Regenaxer> ok
<tankf33der> im inside :)
<tankf33der> (dm save> (Win)
<tankf33der> (msg 123)
<tankf33der> (when (: file)
orivej has quit [Ping timeout: 245 seconds]
<tankf33der> i dont see 123
<tankf33der> when do :w
<tankf33der> and i dont see any (msg) if insert in (status) function.
<Regenaxer> Cool
<Regenaxer> So 'save>' is not executing at all it seems
<tankf33der> but
<tankf33der> ("w" # (Write) Save buffer
<tankf33der> (println 'start)
<tankf33der> (if Line
<tankf33der> this calls and i see start
<tankf33der> when press :w
<Regenaxer> ok
<Regenaxer> Hmm, so until where does it go?
<tankf33der> ("w" # (Write) Save buffer
<tankf33der> 18:01 <tankf33der> (println 'start)
<tankf33der> 18:01 <tankf33der> (if Line
<tankf33der> this first
<tankf33der> then save in draw.l
<tankf33der> # Override +Buffer methods in object
<tankf33der> (view> This Win) )
<tankf33der> (dm (save> 0 . This) (Win)
<tankf33der> (! super)
<tankf33der> and crash in super but without call save from vip.l
<Regenaxer> yes, thought so
<Regenaxer> So it is in save> +Buffer
<tankf33der> (dm save> (Win)
<tankf33der> (msg 123)
<tankf33der> (when (: file)
<tankf33der> (msg 'kuku)
<tankf33der> and i dont see 123
<tankf33der> from save> in vip.l
<Regenaxer> yes
<Regenaxer> (when (msg (: file)) ?
<Regenaxer> is it NIL?
<tankf33der> no
<tankf33der> :w"start"
<tankf33der> (super)
<tankf33der> -> T
<tankf33der> ! (: file)
<tankf33der> ! (d)
<tankf33der> -> "mike2"
<tankf33der> ! (info @)
<tankf33der> -> (38 737550 . 52702)
<tankf33der> !
<tankf33der> its my file.
<Regenaxer> ok
<Regenaxer> very strange
<Regenaxer> (msg 'kuku) does not appear?
<tankf33der> no
<tankf33der> full debug text:
<tankf33der> :w"start"
<tankf33der> -> T
<tankf33der> ! (d)
<tankf33der> ! (: file)
<tankf33der> (super)
<tankf33der> ! (info @)
<tankf33der> -> "mike2"
<tankf33der> ! (: text)
<tankf33der> -> (38 737550 . 52702)
<tankf33der> -> (("#" " " "V" "I" "P" " " "@" "l" "i" "b" "/" "v" "i" "p" "/" "d" "r" "a" "w" "." "l") ("(" "b" "o" "x" " " "3" " " "4" " " "1" "0" " " "1" "5" ")"))
<tankf33der> ! (symbols '(vip pico))
<tankf33der> -> (pico)
<Regenaxer> Looks all good
<Regenaxer> but (msg 123) also does not appera?
<Regenaxer> r
<tankf33der> no
<Regenaxer> It looks like (super) does not go up
<tankf33der> yea!
<Regenaxer> up to the buffer method
<tankf33der> crash inside dosuper
<Regenaxer> yeah
<tankf33der> as i post gdb trace
<Regenaxer> Looks like some code mismatch
<Regenaxer> But then it would not work here either
<tankf33der> what is your (version) of pil ?
<tankf33der> :)
<Regenaxer> The latest
<Regenaxer> 19.7.2
<tankf33der> the same.
<Regenaxer> And draw.l did not change a while
<Regenaxer> BTW, yesterday I was only 10 km away from you
<tankf33der> from me ?
<Regenaxer> Well, from Riga
<tankf33der> :)
<Regenaxer> vertically ;)
<Regenaxer> You did : (version) in the vip repl, right?
<Regenaxer> (ie. not some global installation)
<tankf33der> :w"start"
<tankf33der> ! (version)
<tankf33der> (super)
<tankf33der> -> (19 7 2)
<tankf33der> 19.7.2
<Regenaxer> ok
<Regenaxer> really really strange
<Regenaxer> doSuper
<tankf33der> [root@void ~]# vip /root/mike2
<tankf33der> 111
<tankf33der> 111
<tankf33der> [root@void ~]#
<tankf33der> i see 111 out of screen
<tankf33der> (dm T (File Y)
<tankf33der> (msg 111)
<tankf33der> (and (=: file File) (queue '*Buffers This))
<tankf33der> ========================
<tankf33der> :w"start"
<tankf33der> ! (d)
<tankf33der> -> T
<tankf33der> ! (version)
<tankf33der> (super)
<tankf33der> 18.1.9
<tankf33der> -> (18 1 9)
<tankf33der> !
<tankf33der> Segmentation fault
<tankf33der> older version the same.
<Regenaxer> ok
<Regenaxer> Old version did not call save>
<Regenaxer> What do you mean with "out of screen"? Not curses screen?
<Regenaxer> Stderr goes separate, yes
<tankf33der> yea
<Regenaxer> I'm confused now
<Regenaxer> why does it not crash here?
<tankf33der> # cat /root/mike2
<tankf33der> (box 3 4 10 15)
<tankf33der> # VIP @lib/vip/draw.l
<tankf33der> mike2 file, right ?
<tankf33der> open vip:
<Regenaxer> ok
<tankf33der> vip mike2
<Regenaxer> T
<tankf33der> 1/1 ~/mike2 1,1/2 0%
<tankf33der> -> "view>"
<tankf33der> i see this in status
<tankf33der> right ?
<tankf33der> you see this in status
<tankf33der> right ?
<Regenaxer> I try *exactly* the same
<tankf33der> ok
<tankf33der> press :w
<tankf33der> 1/1 ~/mike2 1,1/2 0%
<tankf33der> :wSegmentation fault
<tankf33der> two chars ":" and "w"
<tankf33der> :)
<Regenaxer> yes, plus return
<Regenaxer> I get a new buffer with the box
<Regenaxer> before exactly the same
<Regenaxer> -> "view>" etc
<tankf33der> it even crash when open file, delete these two lines and press :w
<Regenaxer> Perhaps our startup script differs?
<tankf33der> #!/root/picolisp/bin/picolisp /root/picolisp/lib.l
<tankf33der> # 01may18abu
<tankf33der> (make
<tankf33der> (load "@lib/misc.l" "@lib/vip.l")
<tankf33der> (bye
<tankf33der> (if
<tankf33der> (vip~vi ## [+<pat>] [+[<num>]] <file1> [+[<num>]] <file2> ..
<tankf33der> (for (L (argv) L)
<tankf33der> (let S (++ L)
<tankf33der> (link
<tankf33der> (nond
<tankf33der> ((pre? "+" S) S)
<Regenaxer> Hmm, wait
<tankf33der> :w(super)
<tankf33der> !
<tankf33der> ! (version)
<tankf33der> -> (19 7 4)
<tankf33der> 19.7.4
<tankf33der> now i'm on latest.
<Regenaxer> I dont use bin/vip directly it seems
<tankf33der> i use directly.
<tankf33der> i run vip today first time ever.
<Regenaxer> ok :)
<Regenaxer> What I use is http://ix.io/1NH2
<Regenaxer> stored as 'vi' in my ~/bin/
<Regenaxer> Maybe that's why
<tankf33der> let me try.
<Regenaxer> I forgot what I did ;)
<Regenaxer> Seems I don't use bin/vip in picolisp
<Regenaxer> Well, I use it, but via 'load'
<tankf33der> the same.
<Regenaxer> Should make no difference
<Regenaxer> Ah, ok
<Regenaxer> The issue is that \pico>/bin/picolisp uses the global installation
<Regenaxer> which is outdated
<Regenaxer> I think this is what gives all the problems
<Regenaxer> There is no (super) for 'save>' yet
<tankf33der> BTW, open file, press v, box appears, press :w, no crash.
<Regenaxer> yes, cause it is a normal buffer then
<Regenaxer> But with a local vip it does never crash, right?
<tankf33der> local vip ?
<Regenaxer> *if* it has the right path in the hash-bang
<Regenaxer> In my case http://ix.io/1NH2
<tankf33der> always crash
<tankf33der> !!!
<tankf33der> like yours paste or call /root/picolisp/bin/vip /root/mike2
<Regenaxer> no
<Regenaxer> #!/home/abu/pico/bin/picolisp /home/abu/pico/lib.l # 30nov16abu (load "@bin/vip")
<tankf33der> # cat /root/bin/vippp
<tankf33der> (load "@bin/vip")
<tankf33der> #!/root/picolisp/bin/picolisp /root/picolisp/lib.l
<tankf33der> # 30nov16abu
<Regenaxer> you need the path to your local install in your hash-bang
<Regenaxer> ok
<tankf33der> the same crash.
<Regenaxer> And this crashes too?
<tankf33der> afk in 10mins.
<tankf33der> yes!
<Regenaxer> ok, one more try:
<Regenaxer> $ ./pil + # newest
<Regenaxer> : (vi "mike2")
<Regenaxer> then :w
<tankf33der> [root@void picolisp]# pwd
<tankf33der> /root/picolisp
<tankf33der> -> "/root/mike2"
<tankf33der> : (vi "/root/mike2")
<tankf33der> [root@void picolisp]# ./pil +
<tankf33der> : (version)
<tankf33der> 19.7.4
<tankf33der> -> (19 7 4)
<tankf33der> :
<tankf33der> ha, it cant call (vi)
<Regenaxer> oh
<Regenaxer> haha
<Regenaxer> I load it automatically
<Regenaxer> Try ./pil lib/vip.l +
<tankf33der> works now, crash.
<Regenaxer> oh
<Regenaxer> So it indeed not a version mismatch
<Regenaxer> sigh
<tankf33der> maybe it possible create simpler version with methods relations ?
<tankf33der> maybe bug in dosuper ?
<tankf33der> or logicaly super doesnt exist
<Regenaxer> I dont think it is a bug in 'super'. Too much used
<Regenaxer> It must be some config issue
<tankf33der> config of what ?
<Regenaxer> vip
<Regenaxer> I have a .viprc too
<Regenaxer> ~/.pil/viprc
<tankf33der> but i'm not
<tankf33der> try rename it for test.
<tankf33der> and open vip without config and :w
<Regenaxer> yes, what I mean I use vip so much that I perhaps have a lot of things I forgot about
<tankf33der> afk.
<Regenaxer> No crash either
<Regenaxer> after rename of viprc
<Regenaxer> See you later, I think hard meanwhile :)
clacke_movim has left #picolisp [#picolisp]
clacke_movim has joined #picolisp
orivej has joined #picolisp
paines has quit [Ping timeout: 260 seconds]
mtsd has joined #picolisp
<Regenaxer> Ha! Now I can reproduce! In a separate, stand-alone installation! ☺
<Regenaxer> Will debug a little later
<tankf33der> i knew it
<Regenaxer> T
mtsd has quit [Ping timeout: 244 seconds]
<Regenaxer> I must do it tomorrow. We have guests now
mtsd has joined #picolisp
ubLIX has joined #picolisp
mtsd has quit [Ping timeout: 268 seconds]
mtsd has joined #picolisp
<rick42> good news! since Regenaxer can reproduce, we will have more Regenaxers soon! ;)
mtsd has quit [Ping timeout: 272 seconds]
<Regenaxer> Hi rick42! I'm busy with guests, but what I saw is that in fact it always seems to crash on x86. Obviously I only tested on Android until now
<rick42> Hi Regenaxer! No worries, have fun!
<Regenaxer> Sure :)
mtsd has joined #picolisp
freemint has joined #picolisp
ubLIX has quit [Quit: ubLIX]
mtsd has quit [Ping timeout: 246 seconds]
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
mtsd has joined #picolisp
mtsd has quit [Quit: Leaving]
karswell_ has joined #picolisp
karswell has quit [Ping timeout: 268 seconds]