00:03
alexshendi has joined #picolisp
00:06
xkapastel has quit [Quit: Connection closed for inactivity]
00:41
ubLIX has quit [Quit: ubLIX]
01:26
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:31
xkapastel has joined #picolisp
02:29
freemint has joined #picolisp
02:31
freemint2 has quit [Ping timeout: 268 seconds]
02:32
shpx has joined #picolisp
03:07
freemint2 has joined #picolisp
03:08
freemint has quit [Ping timeout: 268 seconds]
05:20
xkapastel has quit [Quit: Connection closed for inactivity]
05:26
_whitelogger has joined #picolisp
06:24
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:16
alexshendi has quit [Read error: Connection reset by peer]
07:35
rob_w has joined #picolisp
07:51
freemint2 has quit [Ping timeout: 268 seconds]
08:05
freemint has joined #picolisp
08:34
CORDIC has quit [Ping timeout: 272 seconds]
08:44
alexshendi has joined #picolisp
09:15
ubLIX has joined #picolisp
09:17
freemint has quit [Ping timeout: 240 seconds]
09:18
freemint has joined #picolisp
09:36
freemint2 has joined #picolisp
09:37
freemint has quit [Ping timeout: 250 seconds]
09:45
ubLIX has quit [Quit: ubLIX]
09:54
xkapastel has joined #picolisp
10:12
<
tankf33der >
i've solved part 1 of day 4
10:13
<
alexshendi >
tankf33der: Congratulations!
10:23
<
tankf33der >
commited.
10:24
<
tankf33der >
part 2 is easy too after all.
10:30
<
Regenaxer >
Congrats tankf33der!
10:37
alexshendi has quit [Ping timeout: 252 seconds]
11:05
freemint2 has quit [Ping timeout: 250 seconds]
11:17
freemint has joined #picolisp
11:22
freemint has quit [Ping timeout: 250 seconds]
11:23
freemint has joined #picolisp
12:05
razzy` has quit [Remote host closed the connection]
12:05
razzy` has joined #picolisp
12:50
<
beneroth >
It's Looking Like The EXT4 Corruption Issue On Linux 4.19 Is Caused By BLK-MQ
12:50
<
beneroth >
is looking like it doesn't originate from within the EXT4 code at all.
13:42
alexshendi has joined #picolisp
13:46
alexshendi has quit [Ping timeout: 246 seconds]
14:02
alexshendi has joined #picolisp
14:08
alexshendi has quit [Ping timeout: 240 seconds]
14:27
<
tankf33der >
Regenaxer:
14:28
<
tankf33der >
how to delete first cC from (chop "dabAcCaCBAcCcaDA") ?
14:32
<
beneroth >
interesting task
14:34
<
tankf33der >
input 50K string
14:37
<
beneroth >
I think I would approach it with (pop), keeping a reference to the previous element to check 2 elements...
14:38
<
beneroth >
or well, (echo "cC") until first cC is found, after that continuing with (echo) without arguments
14:38
<
tankf33der >
pop is ok
14:39
<
tankf33der >
any lower or upper
14:39
<
beneroth >
(echo "cC" "Cc" "cc" "CC")
14:39
<
tankf33der >
i dont think so
14:39
<
tankf33der >
head of real input
14:39
<
tankf33der >
any chars
14:39
<
beneroth >
ah, in this input zZ should be filtered?
14:40
<
tankf33der >
problem how faster delete 4 and 5 from list (range 1 10)
14:40
<
beneroth >
yeah than pop
14:40
<
tankf33der >
pop cant delete
14:41
<
beneroth >
omit adding the 2 elements to your output
14:41
<
beneroth >
once you found them, you can stop iterating and add the rest with (chain)
14:41
<
beneroth >
(if you really only need to filter out the first instance of the pattern)
14:41
<
tankf33der >
or remove
14:42
<
beneroth >
for removal its probably about keeping the proper references (so two elements previous the current one, and one to the following element) and than use (conc) or so...
14:43
<
beneroth >
you're more experienced with that than me, I believe :)
14:50
<
tankf33der >
it looks like sieve
14:50
<
tankf33der >
finding sieve in range 1-50k
14:51
<
tankf33der >
(set S) sets to NIL and skip it on next loop
14:52
<
beneroth >
ah the (filter bool)
14:52
<
beneroth >
yeah I wondered about the set without an argument - elegant
14:53
<
beneroth >
though 2 iterations of the list. this could probably be optimized (with more complicated code)
14:53
<
tankf33der >
thats why 50k input.
14:53
<
beneroth >
but probably only worth for really long lists, else the more readable code is worth it.
14:54
<
beneroth >
great you found the Sieve :)
14:54
<
beneroth >
I didn't know it
15:01
shpx has joined #picolisp
15:23
rob_w has quit [Remote host closed the connection]
15:30
<
Regenaxer >
Wouldn't 'seek' be the best?
15:31
<
Regenaxer >
Destructive would be easier probably
15:31
<
tankf33der >
(setq Lst (seek bla-bla Lst))
15:31
<
tankf33der >
like this ?
15:35
<
Regenaxer >
(let Lst (chop "dabAcCaCBAcCcaDA")
15:35
<
Regenaxer >
(seek '((L) (match '(@ "c" "C" @) L)) Lst)
15:35
<
Regenaxer >
(con @ (cddr @))
15:35
<
Regenaxer >
Lst ) )
15:35
<
Regenaxer >
Then directly 'match is better ;)
15:35
<
Regenaxer >
even non-destructive
15:35
<
Regenaxer >
so simple :)
15:35
<
tankf33der >
any pairs
15:35
<
tankf33der >
any chars
15:36
<
tankf33der >
cC or Cc
15:36
<
tankf33der >
and so on
15:36
<
tankf33der >
from A to Z
15:36
<
Regenaxer >
(use (@A @Z) (and (match '(@A "c" "C" @Z) Lst) (append @A @Z]
15:37
<
Regenaxer >
(match (append '(@A) (myList) '(@Z)) ...
16:19
jibanes has quit [Ping timeout: 250 seconds]
16:21
jibanes has joined #picolisp
17:37
<
tankf33der >
failed, i will continue tomorrow
17:40
ubLIX has joined #picolisp
17:51
freemint2 has joined #picolisp
17:52
freemint has quit [Ping timeout: 268 seconds]
17:54
freemint2 has quit [Remote host closed the connection]
17:54
<
Regenaxer >
tankf33der, no worry
18:17
DKordic has joined #picolisp
19:12
shpx has quit [Ping timeout: 252 seconds]
19:42
<
tankf33der >
ive solved 5 day
19:43
<
tankf33der >
commited
23:47
permagreen has joined #picolisp
23:52
aw- has quit [Quit: Leaving.]