freemint has quit [Quit: Leaving]
jibanes has joined #picolisp
orivej has quit [Ping timeout: 258 seconds]
ubLIX has quit [Quit: ubLIX]
jibanes has quit [Ping timeout: 272 seconds]
jibanes has joined #picolisp
f8l has quit [Ping timeout: 244 seconds]
f8l has joined #picolisp
_whitelogger has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
jibanes has quit [Ping timeout: 244 seconds]
jibanes has joined #picolisp
xkapastel has joined #picolisp
rob_w has joined #picolisp
nullnullnull has quit [Quit: Leaving]
orivej has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #picolisp
ubLIX has joined #picolisp
_whitelogger has joined #picolisp
<
tankf33der>
Regenaxer: hi
<
Regenaxer>
Hi tankf33der
<
tankf33der>
i want edit file in vip and press f4 to execute it
<
tankf33der>
is it possible?
<
tankf33der>
in vim i do: pil % + for f4
<
tankf33der>
binding
<
Regenaxer>
F4 is defined for paragraph re-formatting, but F7 'load's (executes) the current file
<
Regenaxer>
Besides this, you can define F8 - F12 in ~/.pil/viprc
<
tankf33der>
ok, i will try then.
<
tankf33der>
is your viprc online somewhere?
<
Regenaxer>
I think not
<
tankf33der>
will be?
<
tankf33der>
maybe just copy to software-lab.de/viprc
<
Regenaxer>
It is a bit special for my purpose, but I can post here
<
Regenaxer>
using :ix.io
<
tankf33der>
i will save it
<
Regenaxer>
I'm today updating the Vip wiki article. It was
*very* out of date
<
tankf33der>
i wanted do it too :)
<
Regenaxer>
Please wait a little then :)
<
tankf33der>
let me know when you finish.
<
Regenaxer>
sure, I'm doing other work in parallel, but continuing always when waiting for feedback from customer
<
Regenaxer>
About 50% through now
<
tankf33der>
you could insert link to wiki article as comment to vip file itself
<
Regenaxer>
Good idea
<
tankf33der>
now for picolisp i have only one path in PATH and pil automagically know dir and everything is always working
<
tankf33der>
like: /home/mpech/picolisp
<
tankf33der>
not bin in it
<
tankf33der>
for vip also should be like this
<
tankf33der>
maybe it is already.
<
Regenaxer>
You mean "@path" ?
<
tankf33der>
i mean PATH in shell
<
Regenaxer>
I think picolisp does nothing automagically here
<
tankf33der>
of course, joking
<
Regenaxer>
In any case, Vip inherits all such behavior from pil
orivej has quit [Ping timeout: 245 seconds]
<
tankf33der>
when i get updated wiki i will play with all features myself for fun and testing.
ubLIX has quit [Quit: ubLIX]
<
tankf33der>
back for 5mins
<
tankf33der>
im about this one
<
tankf33der>
i have only
*one* path in $PATH
<
tankf33der>
'/home/mpech/picolisp
<
tankf33der>
and pil in it always works, i dont care and dont edit pil in bin dir
<
tankf33der>
so i just do 'hg fetch' and working dir is always clear.
<
Regenaxer>
I have another 'vip' script in my PATH
<
tankf33der>
of course
<
Regenaxer>
#!/local/path
<
Regenaxer>
(load "@bin/vip")
<
Regenaxer>
Only 2 lines
<
tankf33der>
but you already did this for pil in root dir
<
tankf33der>
just put the same in root dir and name it vip
<
Regenaxer>
What is root dir?
<
Regenaxer>
The installation dir?
<
Regenaxer>
@path ?
<
tankf33der>
root dir for me is /home/mpech/picolisp
<
tankf33der>
and this is fetched from bitbucket
<
Regenaxer>
yes, where it is installed
<
tankf33der>
$ which pil
<
tankf33der>
[mpech@lambda picolisp]$
<
tankf33der>
/home/mpech/picolisp/pil
<
tankf33der>
pil for me is not file in bin/pil
<
tankf33der>
but pil in installation dir
<
tankf33der>
my idea do the same for vip
<
Regenaxer>
You just need an executable somewhere
<
Regenaxer>
You need something somewhere in PATH
<
Regenaxer>
My path has /home/abu/bin as its first entry
<
Regenaxer>
So I put all private scripts there
<
Regenaxer>
I have
*no* path to picoLisp/bin/
<
Regenaxer>
But thats a matter of taste perhaps
<
tankf33der>
you already did it for pil
<
tankf33der>
and rejects do the same for vip
<
Regenaxer>
No, these are different scripts
<
Regenaxer>
global and local
<
tankf33der>
let me try do it.
<
Regenaxer>
local is called with a
*relative* path
<
Regenaxer>
./pil or ../pil etc
<
tankf33der>
pil in /home/mpech/picolisp works for me.
<
Regenaxer>
yes, so you have PATH point to it?
<
tankf33der>
of course
<
tankf33der>
everyuser have something in PATH to call pil
<
Regenaxer>
depends
<
Regenaxer>
I have only /usr/bin/pil in PATH
<
Regenaxer>
local pil is always called relatively
<
tankf33der>
anyway i have these errors
<
Regenaxer>
Same as in mailing list. You must export the env vars
<
Regenaxer>
in .bashrc
<
Regenaxer>
export COLUMNS LINES
<
tankf33der>
but echo $COLUMNS shows number
<
Regenaxer>
sure, in the shell
<
Regenaxer>
but the shell must "export" variables
<
Regenaxer>
to inherit them to child processes
<
Regenaxer>
Unix principle
<
tankf33der>
wow. LOL.
<
Regenaxer>
I thought COLUMNS and LINES are exported by default in /etc/bashrc or so usually
<
Regenaxer>
But perhaps not (?N
<
Regenaxer>
I always seemed to have had it in my .bashrc
<
Regenaxer>
Same with PATH
<
Regenaxer>
and others
karswell has joined #picolisp
<
tankf33der>
vip is not for human. deep depressed. im not ready. eh
<
Regenaxer>
What's the problem? ;)
<
Regenaxer>
Are you a Vim/Vi user?
<
tankf33der>
yes, im joking.
<
tankf33der>
im shocked from any editor.
<
Regenaxer>
yeah, understand
<
tankf33der>
my first editor from norton commander
xkapastel has joined #picolisp
<
tankf33der>
and im the most satisfied customer of picolisp. truly addicted.
<
jan6>
THE most satisfied?
<
Regenaxer>
yes, that's for sure!!
<
Regenaxer>
Done! I changed the wiki article!
<
jan6>
that's a fast reply ;P lol
<
Regenaxer>
Nope, it was for the prev sentence ;)
<
Regenaxer>
tankf33der, will you check?
<
tankf33der>
of course
<
tankf33der>
without deadline
<
Regenaxer>
Please change it as you like
<
Regenaxer>
Many mistakes perhaps, I could not fully concentrate on it
karswell has quit [Read error: No route to host]
karswell has joined #picolisp
rob_w has quit [Remote host closed the connection]
libertas has quit [Remote host closed the connection]
libertas has joined #picolisp
libertas has quit [Remote host closed the connection]
libertas has joined #picolisp
orivej has joined #picolisp
libertas has joined #picolisp
karswell has quit [Read error: Connection reset by peer]
karswell has joined #picolisp
orivej has quit [Ping timeout: 258 seconds]
libertas has joined #picolisp
orivej has joined #picolisp
<
tankf33der>
implement continue fraction recurcevly
<
tankf33der>
and lost somewhere to implement pi
orivej has quit [Ping timeout: 268 seconds]
<
tankf33der>
so close.
<
Regenaxer>
Moment, tel
<
Regenaxer>
OK, done
orivej has joined #picolisp
<
Regenaxer>
Ah, you told last time
<
Regenaxer>
hmm, pastebin does not open
<
Regenaxer>
It is a loop
<
tankf33der>
on loop can solve everybody
<
tankf33der>
recursevly is tricky
<
Regenaxer>
yeah, but tail recursion is equivalent to a loop
<
Regenaxer>
Is fsqrt2 correct?
<
tankf33der>
correct
<
Regenaxer>
And pi you also want to do recursively?
<
tankf33der>
and third too
<
tankf33der>
im stuck somewhere in 1.0 1.0
<
Regenaxer>
(*/ `(* 1.0 1.0) (fsqrt2 N (inc A)))
<
Regenaxer>
a little faster
<
tankf33der>
this is my current file.
<
tankf33der>
(println 31415926839198062649342019294083175420335002640134) - expecting result for pi
<
Regenaxer>
pastebin takes always
*very* long to load recently
<
Regenaxer>
hangs a minute or so
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
orivej has joined #picolisp
jibanes has quit [Ping timeout: 248 seconds]
jibanes has joined #picolisp
orivej has quit [Ping timeout: 245 seconds]
<
jan6>
use a better pastebin then, I guess
beneroth has joined #picolisp
<
Regenaxer>
? I use a browser to access it
<
Regenaxer>
I myself use ix.io in Vip usually
<
Regenaxer>
Hi beneroth
orivej has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
<
tankf33der>
Regenaxer:
<
tankf33der>
(*/ `(* 1.0 1.0) (fsqrt2 N (inc A)))
<
tankf33der>
this one breaks my test.
<
Regenaxer>
Should be same as (*/ 1.0 1.0 (...
<
tankf33der>
(*/ `(* 1 1.0) 1.0 (...)
<
tankf33der>
only this works.
orivej has joined #picolisp
<
Regenaxer>
(* 1 1.0) is a no-op
<
tankf33der>
here works as expected.
<
tankf33der>
fixed.
<
Regenaxer>
What was the reason?
<
tankf33der>
((= N A) 2)
<
tankf33der>
((= N A) 2.0) works with `(* 1.0 1.0)...
<
Regenaxer>
Strange
<
tankf33der>
maybe because recursion?
<
Regenaxer>
No, the read macro can't make a difference here
<
Regenaxer>
1.0 is also a read macro, so scale is set
<
tankf33der>
inside cond ?
<
Regenaxer>
can't be
<
Regenaxer>
(*/ A B C D) is the same as (*/ (* A B C) D
<
Regenaxer>
and if A B and C are constant
<
Regenaxer>
you can do (*/ `(* A B C) D)
<
tankf33der>
now all works even with ((= N A) 2)
<
Regenaxer>
Very strange, with ((= N A) 2.0) it worked too?
<
tankf33der>
maybe also all this my issues.
<
Regenaxer>
2 is not 2.0 if *Scl is >0
<
tankf33der>
scl 49
<
Regenaxer>
How is the result different?
<
tankf33der>
the same. all fine.
<
Regenaxer>
Good :)
<
tankf33der>
but pi is another story
ubLIX has joined #picolisp
<
rick42>
hello everyone
<
rick42>
nice article, Regenaxer
<
rick42>
yes, tankf33der is
*THE* most satisfied customer of picolisp
<
Regenaxer>
Hello rick42! Thanks!
<
Regenaxer>
and he is the most productive one
jibanes has quit [Ping timeout: 245 seconds]
jibanes has joined #picolisp
ubLIX has quit [Quit: ubLIX]
jibanes has quit [Ping timeout: 246 seconds]
jibanes has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
karswell has quit [Ping timeout: 244 seconds]
<
tankf33der>
i did it. all three functions are ready. will finish tomorrow.
<
tankf33der>
sleep.
xkapastel has joined #picolisp
beneroth has quit [Quit: Leaving]