<freeemint_>
How is that better than using the db?
<Regenaxer>
You don't need a DB just for a single number
<freeemint_>
I would have a set of those
<Regenaxer>
But note that (in "myNum" (rd)) will be fast, but then it is printed to the console and will take long again
<freeemint_>
(nil)
<Regenaxer>
ie the conversion
<Regenaxer>
?
<Regenaxer>
The function 'nil' ?
<freeemint_>
(nil (setq NN (in "myNum" (rd))))
<Regenaxer>
ah, yes
<Regenaxer>
I usually do
<Regenaxer>
: (setq NN (in "myNum" (rd))) T
<Regenaxer>
-> T
<freeemint_>
works too
<Regenaxer>
less to type :)
<freeemint_>
How "efficient" is pilio?
<freeemint_>
space wise
<Regenaxer>
I little more compact than s-exprs
<freeemint_>
ok
<freeemint_>
what are the limits on pilio?
<Regenaxer>
it is called PLIO
<freeemint_>
Sorry
cess11_ has joined #picolisp
<Regenaxer>
Limits? It does not store comments
anjaa_ has joined #picolisp
<Regenaxer>
and no read-macros
<freeemint_>
On number of cells?
anjaa has quit [Ping timeout: 255 seconds]
cess11 has quit [Ping timeout: 268 seconds]
<Regenaxer>
What limit should be on the number of cells?
<freeemint_>
2^48?
<freeemint_>
no idea that is why i am asking
<Regenaxer>
indeed
<freeemint_>
no idea or 2^48?
<Regenaxer>
Please think a little more. I don't have so much time to answer such questions
<freeemint_>
ok
mtsd has quit [Quit: Leaving]
rob_w has quit [Ping timeout: 260 seconds]
miskatonic has joined #picolisp
orivej has quit [Remote host closed the connection]
orivej has joined #picolisp
orivej_ has joined #picolisp
<m_mans>
Hi all!
orivej has quit [Ping timeout: 248 seconds]
<m_mans>
Regenaxer: have you ever needed more complex access control system than you have in demo ERP system?
<Regenaxer>
hi m_mans
<Regenaxer>
Until now the user/role/permission system was fine
<Regenaxer>
I use the same everywhere, e.g.also in the wiki
<m_mans>
No multiple roles for the same user?
<m_mans>
My chief (product manager) ask me to make some too complex system (I suppose) :)
<Regenaxer>
What should that be good for?
<Regenaxer>
The role of a user can be changed any time (by someone who has permission ti do that ;)
<m_mans>
I don't know if complex system will be more comfort, until now I was happy with current access control implementation :)
<m_mans>
Concerning multiple roles for the same user, maybe it can help when users have several roles in organization
<m_mans>
of course, the question is not "how to implement this or that", but "how much tasks we could solve not adding too many new concepts"
<Regenaxer>
Yes, but only one role is active at a time
<m_mans>
ok, then we just need to save allowed list of user's roles somewhere
<Regenaxer>
yes, makes sense
<m_mans>
"only one role is active at a time" - I didn't think about it, nice idea
<m_mans>
I suppose you had systems with *a lot* of permissions?
<Regenaxer>
Max I had is 26 I think
<m_mans>
did you display them as plain list of checkboxes without any grouping?
<m_mans>
just to know
alexshendi has joined #picolisp
<Regenaxer>
yes, exactly as in the demos
orivej_ has quit [Quit: orivej_]
orivej has joined #picolisp
<m_mans>
thanks, Regenaxer! See you!
<Regenaxer>
:)
<freeemint_>
I need some help debugging a program doing relativly boring list stuff (but some recursion). Anyody willing to take a look i can not find the mistake that causes -- Symbol expected.
alexshendi has quit [Read error: Connection reset by peer]
<freeemint_>
(pper (1 2) ) causes the error
<freeemint_>
Also thanks
<Regenaxer>
(pper (1 2))
<Regenaxer>
!? (method (car "X") (cdr "X"))
<Regenaxer>
1 -- Symbol expected
<Regenaxer>
? (bt)
<Regenaxer>
(pp L (dec C) ..) "X" (1 2)
<Regenaxer>
C 1
<Regenaxer>
*Dbg NIL
<Regenaxer>
...
<Regenaxer>
(method 'msg 'obj) -> fun
<Regenaxer>
Clear?
<Regenaxer>
I would change 'ifn' to 'unless'
<Regenaxer>
The NIL is not needed in both cases
<freeemint_>
i used 'pp instead of 'pper
<freeemint_>
let me see if it works as expected now
<freeemint_>
thanks
<freeemint_>
I am not yet concerned with performance
<Regenaxer>
Good
<Regenaxer>
The NIL is not relevant for performance
<Regenaxer>
Just redundant
<freeemint_>
My programm is wrong anyhow, it produces the wrong number of results
<Regenaxer>
I have not looked at the meaning
<Regenaxer>
I'm sure you find it :)
<Regenaxer>
I recomend to single-step
<Regenaxer>
then you quickly find what's wrong
<Regenaxer>
(debug 'pper)
<freeemint_>
Oh it produces to few results, not to many
anjaa_ is now known as anjaa
<freeemint_>
My programm should produce the following list {order is not relevant} for (pper (1 2)) = {{(1 . 1) (2 . 2)} {(1 . 2) (2 . 1)} {( 1 . 1)} {( 2 . 2)} {(1 . 2)} {( 2 . 1)} {()}}}
<freeemint_>
(just talking to myself)
alexshendi has joined #picolisp
<freeemint_>
oh an there is a } ti many
<Regenaxer>
? Pil uses {} for external symbols only
<freeemint_>
denotes {} order not relevant in the output
<freeemint_>
the second part of the pair is element of the input the first part is from (range 1 (length input))
<freeemint_>
afk
freeemint_ has quit [Ping timeout: 260 seconds]
miskatonic has quit [Quit: WeeChat 1.0.1]
miskatonic has joined #picolisp
orivej has quit [Ping timeout: 248 seconds]
nonlinear has quit [Remote host closed the connection]
yumaikas is now known as cmiller
cmiller is now known as yumaikas
orivej has joined #picolisp
miskatonic has quit [Read error: Connection reset by peer]
miskatonic has joined #picolisp
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]