<razzy_>
abu[m]: yes i implemented saving my history. I want to save all my executed code. i do not want to invest much. if it is not suporrted, ok. i wanted to ask if there is easy way. :] I live in vip, i rarely use REPL now.
razzy has quit [Ping timeout: 276 seconds]
<abu[m]>
ok
<abu[m]>
But, as you know, I think you waste a lot of power if you do everything only in Vip
<abu[m]>
It makes sense only for trivial code snippets
<razzy_>
I like when all code is made from trivial testable code snipets.
<abu[m]>
This is not possible. A real-world application needs more than isolated code snippets
<abu[m]>
You have a state of global environment, database, namespaces etc.
<abu[m]>
If you are *in* an application in the REPL and start from there, you have access to everything from iside Vip then
<abu[m]>
But the REPL is the driving environment still
<abu[m]>
For example, an application consists of many source files
<abu[m]>
They all must be loaded first
<razzy_>
i see your point.
<abu[m]>
Then you can start Vip inside this
<abu[m]>
"They all must be loaded first" was wrong. Most of them are *not* loaded ;)
<abu[m]>
only on demand
<abu[m]>
But it is good that you explore the other direction too
<razzy_>
but i was not forced to live in REPL yet.
<abu[m]>
👍
Nistur has quit [Ping timeout: 240 seconds]
Nistur has joined #picolisp
<razzy_>
thank you for answers :]
razzy_ has quit [Quit: leaving]
<abu[m]>
Was not so helpful I think
Nistur has quit [Ping timeout: 244 seconds]
Nistur has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe31 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe31 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe8 has joined #picolisp
alexshendi has joined #picolisp
alexshe8 has quit [Ping timeout: 260 seconds]
alexshendi has quit [Ping timeout: 240 seconds]
alexshe76 has joined #picolisp
alexshendi has joined #picolisp
alexshe76 has quit [Ping timeout: 268 seconds]
alexshendi has quit [Ping timeout: 268 seconds]
alexshe7 has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe7 has quit [Ping timeout: 272 seconds]
alexshendi has joined #picolisp
<beneroth>
razzy, if you want to have a complete log (input and output) of your repl interactions... then check out the unix command 'script' made for that purpose
<beneroth>
script -c pil logfile.log
<beneroth>
'script' is part of util-linux package and therefore most likely already installed on your system
alexshendi has quit [Read error: Connection reset by peer]
<abu[m]>
The problem is that razzy wants to do it all from inside Vip
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<abu[m]>
Vip is very good for browsing, navigating and editing sources, and for some quick execution of code snippets, but it is not a replacement for the full REPL
<abu[m]>
I have a .pilrc file in the working directories of each project, and thus always have a history suitable for that project
<abu[m]>
I edit these .pilrc (and sometimes .viprc) files manually, so I can quickly start, stop and restart test environments and have always the matching commands and test cases in the REPL history
alexshendi has quit [Read error: Connection reset by peer]
<abu[m]>
If you start Vip stand-alone, you don't have the right env and namespaces
<abu[m]>
But if you start Vip from the REPL of the application, all is there, and you can click on symbols and edit them too, always with correct namespaces set up
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe9 has joined #picolisp
alexshe9 has quit [Read error: Connection reset by peer]
alexshe43 has joined #picolisp
alexshe43 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe34 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe34 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe81 has joined #picolisp
alexshe81 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
<tankf33der>
after several days of coding i closed the project to rewrite isprime without catch-throw.
<abu[m]>
oh
<tankf33der>
first i can not correctly rewrite it, secondly i became a monster.
<tankf33der>
third it is fast anyway.
<abu[m]>
What kind of monster? ;)
<tankf33der>
non trivial branching to cut do-loop exits
<tankf33der>
tests shows pil21 is faster than pil64
<abu[m]>
I believed my pseudo-proposal was close
<tankf33der>
my tests fails for two days, enough.
<abu[m]>
I will check later
<tankf33der>
pil21 - 12secs
<tankf33der>
pil64 - 40secs
<abu[m]>
Strange, why such a big diff?
<tankf33der>
the same code
<tankf33der>
maybe catch-throw
<abu[m]>
interesting
<abu[m]>
I would have expected that pil64 is a little faster
<abu[m]>
catch/throw too
<tankf33der>
code became strange and ugly when you must immediately exits from two loops
<tankf33der>
much longer
<abu[m]>
But here only one loop remains. The 'do'
<tankf33der>
no, i believe they must be two.
<tankf33der>
all my implementations were only on two