<razzy>
hi, i tested comprimation on rosettacode. and it seems not functional for picolisp. https://ptpb.pw/PbSa it is not loosless compression. if i find mistake, should i fix it on rosetacode?
<razzy>
*it seems not working for picolisp
<razzy>
or i have wrong set of characters :]
bs29 has joined #picolisp
bs29 has quit [Killed (Unit193 (Spam is not permitted on freenode.))]
erkin has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
Michail11 has joined #picolisp
Michail11 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
EvilRoey2 has joined #picolisp
EvilRoey2 has quit [Remote host closed the connection]
ATDT911 has joined #picolisp
ATDT911 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
Guest11080 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
gareth__25 has joined #picolisp
gareth__25 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
dimi34ka has joined #picolisp
dimi34ka has quit [Ping timeout: 240 seconds]
mar77i_ has joined #picolisp
mar77i_ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<Regenaxer>
razzy: ";" is *not* a comment character in PicoLisp!
Yoda4 has joined #picolisp
Yoda4 has quit [Ping timeout: 244 seconds]
Tionis has joined #picolisp
Tionis has quit [Remote host closed the connection]
<Regenaxer>
razzy: and yes, wrong charset might be a problem. PicoLisp can read/print only UTF-8. Use eg. (in '("/usr/bin/iconv" "-f" "WINDOWS-1252" "enwiki8-bankrupt" (till))) or whatever codecs you have on input
<Regenaxer>
Current locale is best set to UTF-8
Lildirt has joined #picolisp
Lildirt has quit [Ping timeout: 268 seconds]
<aw->
Regenaxer: hi
<Regenaxer>
Hi aw-
<aw->
Regenaxer: have you fixed the issue with typing 字 in pil ?
<Regenaxer>
No
<Regenaxer>
I found no way to determine the print length
<Regenaxer>
gave up :)
<aw->
no reliable way, right
<aw->
i wonder how the bash shell does it
<Regenaxer>
I don't know how others do it, eg Termux
<Regenaxer>
yeah
<aw->
that would probably be the best road to a solution
<Regenaxer>
Also, fixing the line editor in all relevant places is not so simple
<Regenaxer>
I would need to dig into it again
<aw->
right..
<Regenaxer>
So I thought it is not worth the effort :/
m_mans has joined #picolisp
m_mans has quit [Client Quit]
<aw->
i can't say I have a need for it either.. just "it would be cool" that's all
<Regenaxer>
exactly
<Regenaxer>
Feels wrong not to have it
<Regenaxer>
Even more in Vip
<Regenaxer>
same problem
<aw->
yeah
alexshendi has joined #picolisp
<razzy>
Regenaxer: it is in UTF-8
<Regenaxer>
OK, good. Just to be sure
<Regenaxer>
So what goes wrong?
<razzy>
or utf-16,.. i will check
<Regenaxer>
I mean as you said, it doesn't work. *How* does it not work?
<Regenaxer>
If it were wrong charsets, you would see garbage text I think
<razzy>
it is utf8 and i do think that in comprimmation charset should not matter
<Regenaxer>
yes, but the reading may choke
<Regenaxer>
but usually just reads garbage
pierpal has quit [Quit: Poof]
<Regenaxer>
So how do you know it does not work?
pierpal has joined #picolisp
<razzy>
Regenaxer: the diference between original and decomprimmated is several characters ("’" "’" "“" "”" "—" "’" "’" "—" "—")
<Regenaxer>
It seems that lzwCompress was written by me, so I'm sure it works
<razzy>
length of decomprimated is slightly more
<Regenaxer>
The example (lzwCompress (chop "TOBEORNOTTOBEORTOBEORNOT")) works
<Regenaxer>
You can't use 'diff' here, right? 'diff' is for lists
<Regenaxer>
: (pack (lzwDecompress @))
<Regenaxer>
-> "TOBEORNOTTOBEORTOBEORNOT"
<razzy>
Regenaxer: i compare lists
<Regenaxer>
returns a symbol
<Regenaxer>
(diff original decomp))
<razzy>
Regenaxer: example should work
<Regenaxer>
decomp must be a symbol
<Regenaxer>
I cannot test your case as I don't have the data
<razzy>
Regenaxer: i can give you :]
alexshendi has quit [Read error: Connection reset by peer]
<Regenaxer>
For efficiency use 'pr' and 'rd' but then the file is not plain ASCII
Logan11 has joined #picolisp
Logan11 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
freemint has joined #picolisp
<freemint>
Regenaxer i had lots of time to think yesterday and i want bounce some ideas of you.
<Regenaxer>
aha
orivej has joined #picolisp
<freemint>
1. PicoLisp is great for building stuff on top of it. But it offers too little to build downwards and extend it. It would be interesting/nice if you could dynamicly build pilassmebly and execute and store it.
<Regenaxer>
You can
<Regenaxer>
write to a file, and pipe to the assebler
<Regenaxer>
then call the .so lib
<freemint>
You can but that could be supported / in a library which is sipped with pil
<Regenaxer>
Too seldom needed for a standard lib
<Regenaxer>
I think it is almost trivial
<Regenaxer>
3 lines?
<freemint>
Oh?
<freemint>
(well that settles that)
<Regenaxer>
You could try and tell us the results
<Regenaxer>
a simple example perhaps
<freemint>
2. There a great examples on how to work with a database (family), but there is little documentation (i think) how to build a database, that would be trivial too.
<Regenaxer>
Yes
<freemint>
But it is the reason why i have not managed to build anything interesting yet.
<Regenaxer>
in fact, doc/app.html was planned to describe more
<Regenaxer>
the whole app/*.l demo
<Regenaxer>
This is a vast field do document completely
<Regenaxer>
I use various strategies and patterns in applications
<freemint>
I think i lack/need less than you think.
<Regenaxer>
perhaps, but there is not a single way to describe
<Regenaxer>
The best are still simply examples for all those use cases
<freemint>
@1. how do i run the assembler on a file of pilassmebly ?