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
orivej has quit [Ping timeout: 245 seconds]
ubLIX has quit [Quit: ubLIX]
orivej has joined #picolisp
alexshendi has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 245 seconds]
rob_w has joined #picolisp
<Nistur> mornin'
aw- has joined #picolisp
<wuehlmaus> how can i test if my pil is 32bit or 64bit?
<tankf33der> (== 1 1)
<tankf33der> if T then pil64, else pil32
<tankf33der> if T then 64bit, else 32bit.
<wuehlmaus> oh, so it really is 32bit
<wuehlmaus> [on my mac]
<Regenaxer> You can also look at *CPU
<Regenaxer> NIL in pil32
<wuehlmaus> but you said it was 32bit yesterday, how can i get the 64bit version on my mac?
<Nistur> I'm not sure if I'm just being slow, I feel like I'm still asleep... but I don't understand how (== 1 1) works...
<wuehlmaus> nor do i
<Regenaxer> wuehlmaus, I think you could try to build the 'emu' version of pil64
<Regenaxer> Nistur, pil64 has short numbers
<Regenaxer> So they are pointer-equal
<wuehlmaus> the emu version builds just fine
<Regenaxer> I write usually (== 64 64), but *which* number does not matter
<Regenaxer> cool
<Regenaxer> So I would go with emu, much better (though slower)
<wuehlmaus> i like speed :-)
<wuehlmaus> i was quite impressed when i printed with newline til 1 million and pil was very fast
<Regenaxer> yes, but there are use cases where the speed is the same ;)
<wuehlmaus> ah
<Regenaxer> I notice this on PilBox
<Regenaxer> some customers have 32 bit Android devices
<Regenaxer> But all behavior feels the same
<Regenaxer> Bottleneck is the Java toolbox probably
<Regenaxer> Or I used emu to replicate 64-bit DBs to 32 bit machines
<Regenaxer> no problem at all
<Nistur> Regenaxer: ahh, so (== 64 64) or (== 1 1) is a side effect of a design decision, and not an intended check then
<Regenaxer> yes, exactly
<aw-> on Mac, it's easier to just run Pil in a Linux VM (ex: TinyCore or Alpine Linux on VMware Fusion or VirtualBox)
<Regenaxer> Hi aw-!
<aw-> Regenaxer: hi
<wuehlmaus> aw-: it seems it is no problem at all to compile picolisp on my mac
<wuehlmaus> well, openssl is a bit fiddly
<aw-> 32-bit
orivej has joined #picolisp
<wuehlmaus> (setq ls (call 'ls "-l")) does not work, how can i put the output of ls -l inside a variable?
<Regenaxer> See 'in
<Regenaxer> (in '("ls" "-l") (till NIL T))
<Regenaxer> (in '("ls") (make (while (line T) (link @]
<Regenaxer> (setq L (in '("ls") (make (while (line T) (link @]
<Regenaxer> etc
<wuehlmaus> thanks
<tankf33der> indeed.
<Regenaxer> brb
Regenaxer has left #picolisp [#picolisp]
Regenaxer has joined #picolisp
<wuehlmaus> what is @] ?
orivej has quit [Ping timeout: 246 seconds]
<wuehlmaus> @ i even knew but that ] confused me
<wuehlmaus> i first thought it was a typo
<tankf33der> Brackets ('[' and ']') can be used as super parentheses. A closing bracket will match the innermost opening bracket, or all currently open parentheses.
<tankf33der> copy paste from this:
<tankf33der> afk.
<wuehlmaus> tankf33der: thanks a lot
orivej has joined #picolisp
rob_w has quit [Quit: Leaving]
aw- has quit [Quit: Leaving.]
andyjpb has joined #picolisp
xkapastel has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
f8l has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #picolisp
andyjpb has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 268 seconds]
mtsd has joined #picolisp
<razzy> um, why sort sorting destructively?
alexshendi has joined #picolisp
<razzy> and do not put result in original list?
<razzy> um, why i cannot use (when (Var) (prog BlaBlaBla)) it says Var is undefined variable. is it typical behaviour?
andyjpb has joined #picolisp
mtsd has quit [Quit: leaving]
ubLIX has joined #picolisp
andyjpb has quit [Ping timeout: 250 seconds]
<Regenaxer> The way 'sort' sorts is the only way to do it efficiently
<Regenaxer> And (Var) is a function call
<razzy> i see, thx my bad :]
<Regenaxer> You mean (when Var ...) perhaps
<razzy> yeaaah
alexshendi has quit [Read error: Connection reset by peer]
jibanes has quit [Ping timeout: 255 seconds]
jibanes has joined #picolisp