00:06
orivej has quit [Ping timeout: 256 seconds]
00:06
orivej_ has joined #picolisp
00:22
orivej has joined #picolisp
00:22
orivej_ has quit [Ping timeout: 264 seconds]
00:34
aw- has quit [Quit: Leaving.]
00:47
orivej has quit [Ping timeout: 258 seconds]
03:01
karswell has joined #picolisp
04:54
aw- has joined #picolisp
05:32
_whitelogger has joined #picolisp
05:47
<
Regenaxer >
Cool, thanks!
05:48
orivej has joined #picolisp
06:12
orivej has quit [Ping timeout: 256 seconds]
06:12
orivej has joined #picolisp
06:14
razzy has joined #picolisp
06:43
orivej has quit [Ping timeout: 264 seconds]
06:43
orivej has joined #picolisp
07:03
orivej has quit [Ping timeout: 260 seconds]
07:04
orivej has joined #picolisp
07:11
orivej has quit [Quit: No Ping reply in 180 seconds.]
07:13
orivej has joined #picolisp
07:38
orivej has quit [Quit: No Ping reply in 180 seconds.]
07:39
orivej has joined #picolisp
07:48
orivej_ has joined #picolisp
07:50
orivej has quit [Ping timeout: 246 seconds]
07:58
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
07:59
orivej has joined #picolisp
08:16
orivej has quit [Quit: No Ping reply in 180 seconds.]
08:17
orivej has joined #picolisp
08:17
<
Regenaxer >
orivej: It would be nice if you either join or not join ;)
08:18
<
Regenaxer >
It clobbers my screen if you join and leave all day long
08:31
<
aw- >
gaga teag u noticed that too
08:31
orivej has quit [Quit: No Ping reply in 180 seconds.]
08:32
<
aw- >
orivej needs to fix the chat client
08:33
orivej has joined #picolisp
08:42
orivej has quit [Ping timeout: 256 seconds]
08:42
orivej has joined #picolisp
08:50
orivej_ has joined #picolisp
08:52
orivej has quit [Ping timeout: 264 seconds]
08:53
razzy has quit [Quit: Connection closed]
08:59
orivej_ has quit [Ping timeout: 256 seconds]
08:59
orivej has joined #picolisp
09:31
<
tankf33der >
Regenaxer: struct function finished? i am back to showip code
09:31
<
Regenaxer >
Yes, struct was simple
09:32
<
Regenaxer >
just reuses part of the native machinery
09:34
<
tankf33der >
then back to this example
09:34
<
tankf33der >
pil64 ok
09:34
<
tankf33der >
pil21 fails.
09:38
<
Regenaxer >
-1 is a float with scale zero?
09:39
orivej has quit [Quit: No Ping reply in 180 seconds.]
09:39
<
Regenaxer >
it is the third arg
09:39
orivej has joined #picolisp
09:39
<
Regenaxer >
So it is 3 integers
09:40
<
Regenaxer >
1, 0, 1
09:51
orivej has quit [Ping timeout: 246 seconds]
09:51
orivej has joined #picolisp
10:00
<
Regenaxer >
doesn't work here, neither pil64 nor pil21
10:00
<
Regenaxer >
returns 9
10:00
<
Regenaxer >
and R = 0
10:00
<
Regenaxer >
9 must be one of the return values
10:01
<
Regenaxer >
EAI_SERVICE perhaps
10:02
orivej has quit [Ping timeout: 240 seconds]
10:04
orivej has joined #picolisp
10:15
orivej_ has joined #picolisp
10:16
orivej has quit [Ping timeout: 240 seconds]
10:32
orivej_ has quit [Ping timeout: 272 seconds]
10:33
orivej has joined #picolisp
10:33
<
Regenaxer >
Good thing
10:38
<
tankf33der >
Regenaxer: so this is not pil21 issue, right?
10:45
<
Regenaxer >
Most probably
11:40
<
tankf33der >
then i will create tests for combinations
11:41
<
tankf33der >
lets see.
12:02
orivej has quit [Ping timeout: 246 seconds]
12:02
orivej has joined #picolisp
12:27
orivej has quit [Quit: No Ping reply in 180 seconds.]
12:28
orivej has joined #picolisp
13:19
karswell has quit [Ping timeout: 258 seconds]
13:22
orivej has quit [Ping timeout: 256 seconds]
13:22
orivej has joined #picolisp
13:36
<
tankf33der >
Regenaxer: already asked monthes ago and forget again:
13:36
<
tankf33der >
got N from native and should make it unsigned 64 bits, how to do it?
13:42
orivej has quit [Ping timeout: 240 seconds]
13:42
orivej has joined #picolisp
13:45
<
Regenaxer >
no, you want the highest bit
13:45
<
tankf33der >
i got 8242820295824506896
13:45
<
Regenaxer >
xor with (hex "8000000000000000") then subtract it
13:47
<
Regenaxer >
hmm, but this is on machine level ;)
13:47
<
Regenaxer >
ie 2s complement
13:47
<
Regenaxer >
So better add the number, then mask with FF...FF
13:50
<
Regenaxer >
or check if lt0 and add 2**64
13:50
<
Regenaxer >
this is more efficient
13:50
<
Regenaxer >
as positive numbers are not changed
13:56
orivej has quit [Quit: No Ping reply in 180 seconds.]
13:57
orivej has joined #picolisp
13:59
<
Regenaxer >
Hmm, perhaps we should introduce one additional return type?
14:00
<
Regenaxer >
like 'N', but means "positive" or "pointer"?
14:02
<
beneroth >
U for unsigned integer?
14:02
<
beneroth >
well unisgned long
14:05
<
tankf33der >
question: if i have such a struct how correctly get byte into R ?
14:06
<
tankf33der >
strange 4 and 8 are show there is no paddings.
14:14
orivej_ has joined #picolisp
14:14
orivej has quit [Ping timeout: 272 seconds]
14:22
orivej_ has quit [Ping timeout: 240 seconds]
14:23
orivej has joined #picolisp
14:39
Blukunfando has joined #picolisp
14:54
<
Regenaxer >
beneroth, I think more typically it is a pointer
14:54
<
Regenaxer >
and unsigned are other integers too
14:55
Blukunfando has quit [*.net *.split]
14:55
root____ has quit [*.net *.split]
14:56
<
Regenaxer >
tankf33der, such structs depend highly on the compiler configuration
14:56
orivej has quit [Ping timeout: 256 seconds]
14:56
<
Regenaxer >
even on command line arguments
14:56
<
Regenaxer >
ei. how int's are aligned (padded to 64 bits?)
14:57
orivej has joined #picolisp
14:57
Blukunfando has joined #picolisp
14:57
root____ has joined #picolisp
14:57
<
tankf33der >
Regenaxer: i tried in c
14:57
<
tankf33der >
map is those 4s and 8s
14:58
<
tankf33der >
4 4 4 4 8 8 8 8
14:58
<
tankf33der >
without pads
14:59
<
tankf33der >
so first 8 is corrupting :)
14:59
<
tankf33der >
should be 16 but i getting huge number
15:00
<
tankf33der >
8242820295824506896
15:00
<
Regenaxer >
too big for a size ;)
15:00
<
tankf33der >
on pil21 everything is corrupted
15:00
<
tankf33der >
everything is worse
15:01
<
tankf33der >
but should be size_t
15:02
<
Regenaxer >
size_t is 64 bits usually
15:03
<
beneroth >
when will the 128bit CPU's come??
15:04
<
beneroth >
then we get bigger small numbers :D
15:06
orivej has quit [Quit: No Ping reply in 180 seconds.]
15:06
orivej has joined #picolisp
15:06
<
tankf33der >
i dont understand how to make this trivial code work
15:10
<
Regenaxer >
OK, I check the man page
15:10
<
Regenaxer >
What to pass as 'node'?
15:11
<
Regenaxer >
NIL gives an empty string
15:12
<
Regenaxer >
is that good?
15:12
<
Regenaxer >
Or better pass a null pointer
15:13
<
Regenaxer >
And Hints? Sorry, I don't have your code frem this morning any more
15:13
<
Regenaxer >
can you paste again?
15:14
<
Regenaxer >
And, does it work in pil64? I think both should behave the same, just that pil21 does a little more init checks
15:23
orivej has quit [Ping timeout: 240 seconds]
15:24
orivej has joined #picolisp
15:25
<
tankf33der >
this is my main code for the issue
15:26
<
tankf33der >
this output on any x64 linux
15:28
<
Regenaxer >
I added 'P'
15:28
<
Regenaxer >
(hope it works ;)
15:29
<
Regenaxer >
Not really tested
15:29
<
tankf33der >
the main problem i cant make it work in pil64
15:30
<
Regenaxer >
I will check a little late
15:30
<
Regenaxer >
hurry atm
15:37
orivej_ has joined #picolisp
15:37
orivej has quit [Ping timeout: 272 seconds]
15:39
<
tankf33der >
[mpech@lambda ~]$ pil t1.l
15:39
<
tankf33der >
R 20902192
15:39
<
tankf33der >
((0 2 1 6) (16 20902240 0 20904016))
15:39
<
tankf33der >
(0 0 1 0 0)
15:39
<
tankf33der >
[mpech@lambda ~]$ pil t1.l +
15:39
<
tankf33der >
(0 0 1 0 0)
15:39
<
tankf33der >
R 7828432
15:39
<
tankf33der >
((0 2 1 6) (8242820295824506896 7828480 0 7847648))
15:40
<
tankf33der >
now it correct
15:40
<
tankf33der >
i spent all day and + is solver.
15:48
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
15:50
orivej has joined #picolisp
16:01
orivej has quit [Quit: No Ping reply in 180 seconds.]
16:02
orivej has joined #picolisp
16:07
alexshendi has joined #picolisp
16:22
orivej has quit [Ping timeout: 256 seconds]
16:23
orivej has joined #picolisp
16:26
<
alexshendi >
Good evening
16:30
orivej has quit [Quit: No Ping reply in 180 seconds.]
16:31
orivej has joined #picolisp
16:52
orivej has quit [Ping timeout: 256 seconds]
16:52
orivej_ has joined #picolisp
17:00
<
Regenaxer >
Hi alexshendi :)
17:00
<
Regenaxer >
tankf33der, sorry, was busy
17:01
<
Regenaxer >
What was the problem?
17:02
<
tankf33der >
run pil with and without +
17:02
<
Regenaxer >
This changes 'native' behavior?
17:07
<
tankf33der >
see above
17:08
<
Regenaxer >
I did not understand
17:11
orivej_ has quit [Ping timeout: 256 seconds]
17:11
orivej has joined #picolisp
17:13
f8l has quit [Ping timeout: 240 seconds]
17:17
<
tankf33der >
pil64 running the same file with and without + prints different digits
17:20
<
Regenaxer >
Strange
17:22
<
Regenaxer >
I get exactly the same with and without debug mode
17:22
<
Regenaxer >
and pil64 too
17:23
<
tankf33der >
[mpech@lambda ~]$ pil t1.l
17:23
<
tankf33der >
(0 0 1 0 0)
17:23
<
tankf33der >
((0 2 1 6) (16 33128800 0 33130576))
17:23
<
tankf33der >
R 33128752
17:23
<
tankf33der >
[mpech@lambda ~]$ pil21 t1.l
17:23
<
tankf33der >
(0 0 1 0 0)
17:23
<
tankf33der >
R 139940568306848
17:23
<
tankf33der >
((1041597160 21973 -1388986768 32766) (94374357994648 139940568306896 94374357992328 139940568159976))
17:23
<
tankf33der >
pil64 and pil21 are different
17:23
<
Regenaxer >
Seems I don't have t1.l
17:24
<
Regenaxer >
I've lost track ;)
17:24
<
tankf33der >
try on x64 too
17:26
<
Regenaxer >
I get the same in all three
17:26
<
Regenaxer >
(0 0 1 0 0)
17:26
<
tankf33der >
i gave up.
17:27
<
Regenaxer >
You still call with NIL
17:27
<
Regenaxer >
I asked above
17:27
<
Regenaxer >
NIL is the same as ""
17:27
<
Regenaxer >
thus a pointer to a NULL byte
17:27
<
Regenaxer >
is that correct?
17:28
<
Regenaxer >
Why not 0 (NULL pointer)?
17:28
<
tankf33der >
not 0 is my bad.
17:28
<
tankf33der >
now pil21 works.
17:29
<
tankf33der >
but pil64 with and without + prints different numbers.
17:29
<
Regenaxer >
With 0 I get:
17:29
<
Regenaxer >
(0 0 1 0 0)
17:29
<
Regenaxer >
R 524619214848
17:29
<
Regenaxer >
((0 10 1 6) (28 0 524619214896 524619215040))
17:29
<
tankf33der >
with same without +
17:30
<
Regenaxer >
Something must be garbage
17:30
<
Regenaxer >
+ or not + should not matter
17:30
<
Regenaxer >
just different memory layout
17:30
<
Regenaxer >
So something is not initialized
17:30
<
Regenaxer >
Results are random
17:31
<
Regenaxer >
I don't understand getaddrinfo
17:51
orivej has quit [Ping timeout: 264 seconds]
17:51
orivej_ has joined #picolisp
17:51
<
tankf33der >
so, udp client-server works too on pil21.
17:51
<
tankf33der >
enough for today.
17:52
<
Regenaxer >
ok, thx! :)
18:14
orivej_ has quit [Ping timeout: 256 seconds]
18:14
orivej has joined #picolisp
18:29
orivej_ has joined #picolisp
18:29
orivej has quit [Ping timeout: 272 seconds]
19:14
<
alexshendi >
Regenaxer: I have a problem with pil21 under NetBSD 9/aarch64. Files dec.l, flow
19:15
<
Regenaxer >
what happens?
19:16
<
tankf33der >
alexshendi: you should run my test suite on netbsd on pil21.
19:19
<
alexshendi >
Regenaxer: I have a problem with pil21 under NetBSD 9/aarch64. Files dec.l, flow.l and main.l reference setjmp/longjmp directly. Under NetBSD 9 these libc routines, but are called __setjmp14/__longjmp14. /usr/include/setjmp.h rectifies this by use of preprocessor magick. I just used sed to rename all instances of setjmp/longjmp, but this doesn't seem quit right to me. Should I dispatch on *Os?
19:21
<
alexshendi >
Regenaxer: I get a linker error setjmp /longjmp not defined.
19:25
<
alexshendi >
In previous versions of pil21, only lib.c used setjmp/longjmp so cpp magick worked.
19:27
<
Regenaxer >
So these functions must be moved to src/lib.c it seems
19:27
<
alexshendi >
This should be easy to fix, but I'm looking for a good solution :)
19:28
<
Regenaxer >
thats what I mean
19:28
<
Regenaxer >
all system stuff is in lib.c
19:28
<
Regenaxer >
C macros etc
19:28
<
Regenaxer >
hmm, no
19:28
<
Regenaxer >
difficult
19:29
<
alexshendi >
You could also check for *Os in the *.l files.
19:29
<
Regenaxer >
these two functions are special
19:29
<
Regenaxer >
No, I want to keep the .l files generic
19:29
<
Regenaxer >
Big problem
19:30
<
Regenaxer >
you cannot jump from a called function
19:31
<
alexshendi >
Building from the supplied *.bc files also never worked for that reason on netbsd 9.
19:32
<
Regenaxer >
only setjmp/longjmp or also other things?
19:34
<
alexshendi >
Only these two. On OpenBSD I haven't encountered such problems, but have only tested on amd64.
19:34
<
Regenaxer >
The CPU does not matter I think
19:34
<
Regenaxer >
it is the compiler
19:35
<
alexshendi >
I think it's really netbsd's fault, because these functions are kind of special...
19:35
<
Regenaxer >
Too bad, it really blows up my concept
19:36
<
Regenaxer >
ie isolate the "few" system dependent things into lib.c
19:36
<
alexshendi >
It's not the compilers fault, but libc's I think.
19:36
<
Regenaxer >
but setjmp/longjmp can't be done that way
19:36
<
Regenaxer >
yes, includes + libs
19:36
<
Regenaxer >
ie setjmp/longjmp being macros
19:38
<
alexshendi >
The solutions are all a bit hacky....
19:39
orivej_ has quit [Ping timeout: 260 seconds]
19:39
orivej has joined #picolisp
19:39
<
alexshendi >
Regenaxer: How long does misc/bigtest take to run?
19:39
<
Regenaxer >
It depends a lot on the hardware
19:40
<
Regenaxer >
less than an hour
19:40
<
Regenaxer >
you see the dots, 100 in total
19:41
<
alexshendi >
Hmm about 15 dots so far...
19:42
<
alexshendi >
The machine is a bit slow though
19:42
<
Regenaxer >
How many cores?
19:42
<
Regenaxer >
bigtest uses 3
19:43
<
Regenaxer >
well, 3 processes to be correct
19:46
<
alexshendi >
Quadcore Cortex-A53, but only at 1.1 Ghz.
23:16
Blukunfando has quit [*.net *.split]
23:16
root____ has quit [*.net *.split]
23:22
Blukunfando has joined #picolisp
23:22
root____ has joined #picolisp