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
Regenaxer has quit [Ping timeout: 265 seconds]
freeemint has quit [Ping timeout: 245 seconds]
freeemint has joined #picolisp
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
stultulo has joined #picolisp
f8l has quit [Ping timeout: 240 seconds]
stultulo is now known as f8l
freeemint has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 240 seconds]
stultulo has joined #picolisp
stultulo has quit [Remote host closed the connection]
stultulo has joined #picolisp
f8l has quit [Ping timeout: 268 seconds]
stultulo is now known as f8l
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
_whitelogger has joined #picolisp
_whitelogger has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
Regenaxer has joined #picolisp
freeemint has joined #picolisp
<Regenaxer> Hi tankf33der!
<tankf33der> o/
freeemint has quit [Ping timeout: 265 seconds]
freeemint has joined #picolisp
freeemint has quit [Remote host closed the connection]
orivej has joined #picolisp
freeemint has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
freeemint has quit [Remote host closed the connection]
orivej has joined #picolisp
_whitelogger has joined #picolisp
xkapastel has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
razzy has joined #picolisp
<razzy> hi
<razzy> when loading symbols from pico to my-namespace, do i need to print them into file, and than load? is there easier way?
<Regenaxer> Hi razzy
<Regenaxer> In Lisp you can always type all into the REPL
<razzy> i think i could somehow use pico~symbol
<razzy> from my namespace
<Regenaxer> Ah, that you mean! Yes
<Regenaxer> How is your search order now? (symbols)
<Regenaxer> Usually (myNames1 myNames2 pico)
<razzy> called from pico namespace
<Regenaxer> Then you don't need "~"
<Regenaxer> Only if that symbol is shadowed by another namespace
<razzy> when i create blank namespace, i cannot use (symbols)
<razzy> from inside
<Regenaxer> If you want a complete example of namespaces
<razzy> which makes sense
<Regenaxer> and look at src/lib/llvm.l
<Regenaxer> It redefines part of picolisp
<Regenaxer> to compile to LLVM
freemint has joined #picolisp
<Regenaxer> BTW, a new namespace is always empty at the beginning
<razzy> so i need to create copy of namespace pico and than delete all symbols i do not like
<Regenaxer> noo
<Regenaxer> Never copy!
<razzy> i read the llvm.l, but i do not know what i should look for
<Regenaxer> look for 'symbols' and 'local' calls
<Regenaxer> (symbols 'llvm 'pico)
<Regenaxer> this starts llvm namespace
<Regenaxer> So search order is (llvm pico)
<Regenaxer> and new symbols ge to llvm
<Regenaxer> Then (symbols 'cc 'llvm 'pico) makes a "private" namespace
<Regenaxer> Later, when whe sources are compiled, the search order is (llvm pico)
<razzy> if i do (symbols 'my-namespace) i am in blank namespace i cannot do anything
<Regenaxer> cc is hidden
<Regenaxer> right
<Regenaxer> you can do anything, but the reader finds no symbols
<Regenaxer> 'local' does this btw
<Regenaxer> (de local NIL
<Regenaxer> (symbols (list (car (symbols))) (read)) )
<Regenaxer> It sets the namespace to a *single* one ic the first in the search order
<Regenaxer> While local runs, no other symbols are found
<Regenaxer> while (read) runs
<razzy> i have issue
<razzy> i create (symbols 'mine 'pico), i am in "mine" namespace i (setq prolog NIL) prolog is gone from "mine" namespace but it seems gone from pico namespace too
<Regenaxer> Perhaps it existed already before
<Regenaxer> *new* symbols are created in 'mine'
<Regenaxer> With 'local' you can force this
<razzy> sorry, i will try again
<Regenaxer> but don't need if you *know* that it is not otherwhere in the search order
<Regenaxer> you can force with (local) prolog
<Regenaxer> or (setq mine~prolog xxx)
<Regenaxer> if to NIL, use 'off'
<Regenaxer> (off mine~prolog)
<razzy> (setq mine~curry NIL) seems apropriate
<Regenaxer> as you like :)
<razzy> i was hoping that everything i do in my namespace will affect only my namespace
<Regenaxer> Yes, lets hope
<Regenaxer> namespaces are powerful but tricky
<Regenaxer> easy to shoot into the foot
<razzy> yeah
<Regenaxer> Keep in mind that namespaces affect only I/O
<Regenaxer> read and print
<razzy> why sometime i drop out of namespace when i hit enter, and sometimes i do not
<Regenaxer> If you enter an empty line, the REPL is left and restarted
<Regenaxer> usded e.g. in a breakpoint
<Regenaxer> to continue just with Enter
<Regenaxer> So <space>Enter won't terminate the REPL
<razzy> thx
<Regenaxer> :)
<razzy> and i terminate namespace (symbols 'myspace NIL) ? or how
<Regenaxer> Namespaces are not terminated in that sense, but the (symbols) search order is private to a REPL
<Regenaxer> ie.saved at start and then restored upon exit
<Regenaxer> So (symbols ...) at the top of a file is private to that file
<razzy> (setq myspace NIL) seems to did the trick
<Regenaxer> is myspace a namespace? Then it is cleared
<Regenaxer> NIL is not legal
<Regenaxer> needs (NIL)
<Regenaxer> cause it is two trees
<Regenaxer> (symbols 'myspace ...) inits it to (NIL)
<Regenaxer> otherwise the system gives an error
<Regenaxer> if you use NIL as a namespace
<Regenaxer> Must drive by cdr now, back later
<razzy> (setq my-namespace NIL) seems to work the best
<razzy> for namespace anihilation
<razzy> adressing with myspace~curry and pico~curry works.
<razzy> can i use function notation instead of myspace~symbol i.e. (search-namespaces myspace symbol) for better automation?
<Regenaxer> back
<Regenaxer> No, cause this is not a functional thing
<Regenaxer> ~ is a read macro
razzy has quit [Ping timeout: 246 seconds]
orivej has joined #picolisp
Regenaxer has left #picolisp [#picolisp]
Regenaxer has joined #picolisp
freemint has quit [Ping timeout: 245 seconds]
freemint has joined #picolisp