00:29
<
rick42 >
tankf33der: hehehe i'll check it out
00:29
<
rick42 >
sup, a-dub!
01:16
<
rick42 >
tankf33der: your patch works here too. thanks!
01:18
<
rick42 >
all tests pass \o/
02:43
ubLX has quit [Quit: ubLX]
03:12
orivej has quit [Ping timeout: 240 seconds]
04:49
<
aw- >
what did tankf33der fix?
04:49
<
aw- >
tankf33der: you also write pilAsm? cool!
05:29
alexshendi has quit [Ping timeout: 245 seconds]
05:59
_whitelogger has joined #picolisp
06:08
xkapastel has quit [Quit: Connection closed for inactivity]
06:41
<
tankf33der >
aw-: just a little
07:01
<
Regenaxer >
Cool tankf33der! Congratulations!!
07:02
<
Regenaxer >
Just a minor optim, as I wrote yesterday, 'nul4' check is a
*little* better I think
07:02
<
Regenaxer >
Let me change and release it
07:10
<
Regenaxer >
Can you test?
07:12
<
tankf33der >
not now but today
07:13
<
Regenaxer >
Great! Thanks!
07:13
<
Regenaxer >
And thanks rick42 again for finding this!
07:13
<
Regenaxer >
But what is
*really* frustrating is that nobody discovered it yet!!!
07:14
<
Regenaxer >
This means noone seems to have run the unit tests in the west
07:22
<
aw- >
Regenaxer: what was the bug?
07:23
<
Regenaxer >
The localtime structure contains 32bit numbers
07:23
<
Regenaxer >
but the ld4 instruction in pil64 loads an unsigned number
07:24
<
Regenaxer >
So instead of -18000 we get 4294949296 for the zone offset
07:25
<
Regenaxer >
So the sad thing is nobody in the US really uses PicoLisp
07:26
<
Regenaxer >
under Linux at least
07:26
<
aw- >
what function?
07:27
<
Regenaxer >
Check the irc log for yesterday's discussion
07:28
<
aw- >
just rgrepped all my code, seems I never used it
07:28
<
Regenaxer >
Me neither
07:28
<
aw- >
i know i use (time) and (date) quite a lot
07:28
<
Regenaxer >
but the unit tests do
07:28
<
aw- >
and (datSym) and all those variants
07:28
<
Regenaxer >
'tzo' would better have been implemented as a native call
07:29
<
aw- >
ok so, tzo isn't used except in unit tests, no harm done ;)
07:29
<
Regenaxer >
Yes, no harm
07:30
<
Regenaxer >
But the trouble is that the unit test complain
07:30
<
Regenaxer >
So nobody noticed and reported
07:30
<
aw- >
hmmm.. the unit tests fail?
07:30
<
Regenaxer >
Since around summer 2017
07:31
<
Regenaxer >
yes, immediately stop
07:31
<
aw- >
why wasn't it noticed?
07:31
<
Regenaxer >
See the irc log
07:31
<
Regenaxer >
That's the question
07:32
<
aw- >
all my computers/servers are in UTC
07:32
<
aw- >
i wouldn't notice any timezone issues
07:32
<
Regenaxer >
yes, and you are east of Greenwhich
07:32
<
Regenaxer >
like me or tankf33der
07:33
<
Regenaxer >
And most other users I know, India, Dubai, China
07:33
<
Regenaxer >
they all have positive tzo
07:34
<
Regenaxer >
Negative is only the Americas and some southern islands ;)
07:35
<
aw- >
interesting… i don't think we have any customers changing the timezone on their servers with pil
07:36
<
aw- >
could lead to weird bugs if they do change it though.. let me know when the bugfix is out
07:37
<
Regenaxer >
Out already
07:39
<
Regenaxer >
The fix was easy, I just did not know that it was wrong ;)
07:40
<
Regenaxer >
I dont use (tzo) in commercial projects, but in a few tool scripts here only
07:41
<
Regenaxer >
To fix file timestamps
07:42
<
aw- >
for my apps using timezone I force them to work in UTC with (date T)
07:45
<
Regenaxer >
But to see my current changes to files I prefer local time
07:47
<
Regenaxer >
As you know, I depend mentally a lot on time stamps. Thats why I don't like Git and other repositories
07:48
<
Regenaxer >
as they destroy this meta info
07:49
<
aw- >
ok well, glad you managed to fix it
07:50
<
Regenaxer >
yeah, and tankf33der's solution was correct too
07:50
<
Regenaxer >
I just had 'nul4' in mind to check for negative
07:50
<
Regenaxer >
BTW, did you get any feedback for your job offering?
08:03
orivej has joined #picolisp
09:15
alexshendi has joined #picolisp
09:30
alexshendi has quit [Ping timeout: 245 seconds]
09:31
alexshendi has joined #picolisp
09:38
<
Regenaxer >
During the last years, whenever I had package problems in Debian, it was due to the Python mess
09:38
<
Regenaxer >
Dependencies
09:39
<
Regenaxer >
Non-fixable problems in apt
09:58
juscur has joined #picolisp
10:37
razzy has joined #picolisp
10:54
<
Regenaxer >
No, I'm wrong. tankf33der's solution is correct, same as in 'native'
11:01
<
tankf33der >
ii want test your version
11:01
<
tankf33der >
lets see
11:01
<
Regenaxer >
it is wrong
11:02
<
Regenaxer >
I want to clean up both cases
11:02
<
tankf33der >
i want test to experience
11:05
<
Regenaxer >
ok, released :)
11:05
<
tankf33der >
yes, its wrong
11:05
<
Regenaxer >
needs 100000000 instead of 80000000
11:06
<
Regenaxer >
but 100000000 is not good on the machine level
11:06
<
tankf33der >
checking
11:06
<
Regenaxer >
So I changed all to the same as native and your version
11:06
<
tankf33der >
testing again both branches
11:06
<
Regenaxer >
thanks!
11:13
<
tankf33der >
works all ranges
11:13
<
tankf33der >
even UTC
11:13
<
Regenaxer >
Great! :)
11:13
<
tankf33der >
with 0 result
11:14
<
Regenaxer >
Which 0?
11:15
<
tankf33der >
works too
11:26
_whitelogger has joined #picolisp
11:39
xkapastel has joined #picolisp
12:08
juscur has quit [Ping timeout: 256 seconds]
12:29
ubLIX has joined #picolisp
12:34
razzy has quit [Remote host closed the connection]
12:35
razzy` has joined #picolisp
15:40
alexshendi has quit [Read error: Connection reset by peer]
15:42
razzy` has left #picolisp [#picolisp]
15:43
razzy has joined #picolisp
16:58
ubLIX has quit [Ping timeout: 240 seconds]
17:22
<
beneroth >
thanks Regenaxer and tankf33der
17:22
<
beneroth >
How new is (tzo) ?
17:22
<
beneroth >
the few instances where I need this information, I used some dirty hack
17:24
aw- has quit [Ping timeout: 244 seconds]
17:37
<
tankf33der >
tzo since jan2017
17:38
<
beneroth >
so, brand new :P ^^
18:18
<
Regenaxer >
In lib/form.l there is a matching one for the client side, "*TZO" global
18:18
<
Regenaxer >
I think it is older
18:56
alexshendi has joined #picolisp
19:17
<
rick42 >
hello pil people!
19:18
<
rick42 >
thanks for fixing issue
19:19
<
alexshendi >
rick42: do you mean the red pil people or the blue pil people?
19:20
<
rick42 >
Regenaxer: my issues with running tests is that I am
*not* on a linux system, but bsd systems; so the tzo test (which only ran on linux systems) never ran here. anyway that's my excuse :)
19:20
<
rick42 >
i was just fooling around with a voidlinux system yesterday ...
19:21
<
rick42 >
it was fun, but back to work!
19:21
<
rick42 >
alexshendi: lol
19:36
<
beneroth >
rick42, can you recommend voidlinux now?
19:39
<
rick42 >
well, not really, b/c i've only played with it for a few hours yesterday.
19:40
<
rick42 >
but, so far, I like it
19:40
<
rick42 >
the init system is simple and fast ... does that mean it can do whatever you want for your project's purposes? idk
19:43
<
tankf33der >
now i do all on voidlinux for monthes
19:44
<
tankf33der >
50ram usage after boot, cli only
19:44
<
rick42 >
tankf33der: ok. i didn't know that. i guess you like it so far?
19:44
<
tankf33der >
and monocypher tests runs faster
19:44
<
tankf33der >
i dont know why
19:45
<
tankf33der >
i like it, but failed install on xfs, failback to ext4
19:45
<
tankf33der >
who cares, right? :)
19:45
<
rick42 >
i used ext4 too
19:45
<
rick42 >
i didn't even try xfs :)
19:46
<
tankf33der >
very ok
19:46
<
tankf33der >
from irix ang SGI
19:47
<
rick42 >
in the installer when it asked for type of disk partitioning (like EFI), i was looking for MBR, but i only found "dos" so i picked that. :)
19:47
<
rick42 >
irix. wow. i havent used irix in more than a decade
19:50
<
tankf33der >
pil works out of box
19:50
<
tankf33der >
tests passed.
19:50
<
tankf33der >
check makefile of pil32
19:51
* rick42
goes off to check
19:52
<
rick42 >
what did you change? strip -f?
20:00
<
rick42 >
tankf33der: did you do the first irix port of picolisp?
20:03
<
rick42 >
oh alright, then, Regenaxer, you have to change the CREDITS file to add IRIX to the list already beside Mike's name
20:04
<
tankf33der >
AIX port was much harder.
20:05
<
tankf33der >
~20-30h in sum.
20:05
<
rick42 >
i'm sure. aix prolly 42% posix compliant? :D
20:07
<
tankf33der >
all fight was in makefile. insane.
20:08
<
rick42 >
did you need to add any #ifdefs into the code?
20:08
<
tankf33der >
known minimum.
20:09
<
tankf33der >
easy to grep to find out.
20:09
<
rick42 >
PICOLISP-FLAGS = -maix32 -Wl,-brtl -Wl,-bexpall
20:09
<
rick42 >
DYNAMIC-LIB-FLAGS = -maix32 -Wl,-G -shared -lm
20:10
<
rick42 >
you have to research all this ^^^
20:10
<
tankf33der >
dont try at home.
20:45
ubLIX has joined #picolisp
20:45
<
Regenaxer >
Yes rick42, I was aware that you are a BSD (and Mac?) user mainly
20:45
<
Regenaxer >
But in general nobody reported this
20:46
<
rick42 >
Regenaxer: why is tzo not tested on non-linux platforms?
20:48
<
Regenaxer >
I think the localtime() call is different
20:48
<
Regenaxer >
I added IRIX/Mihail to CREDITS
21:04
<
rick42 >
looks like the tm structure is the same between freebsd's libc and glibc
21:05
<
rick42 >
but i understand how you don't want/need to be checking this for every c lib
21:13
<
rick42 >
the tm_gmtoff field (offset from UTC in seconds) doesn't appear to be in the POSIX standard (I check the opengroup site quickly)
21:13
<
rick42 >
so, checking only on linux machines is ok
21:13
<
rick42 >
(it just so happened that freebsd libc supported tm_gmtoff also.)
21:19
<
rick42 >
netbsd too (openbsd probably inherited it from netbsd :)
21:28
xkapastel has quit [Quit: Connection closed for inactivity]
21:30
<
rick42 >
the #ifdef logic in musl time.h seems to indicate that tm_gmtoff (and tm_zone) are additions/extensions to tm to be found in BSDs and GNU C libs (only?)
21:31
<
rick42 >
those were "turned on" in my musl-based voidlinux box -- which is why localtime could return tm_gmtoff there
21:33
<
rick42 >
perhaps more than i (and you!) wanted to know about this :)
21:38
xkapastel has joined #picolisp
23:55
orivej has quit [Ping timeout: 268 seconds]