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