00:06
moldybits has joined #racket
00:21
orivej has joined #racket
00:35
mzan has quit [Quit: Leaving]
00:37
acarrico has joined #racket
00:51
libertyprime has quit [Ping timeout: 268 seconds]
00:53
libertyprime has joined #racket
00:54
orivej has quit [Ping timeout: 265 seconds]
00:54
Fare has joined #racket
01:15
FreeFull has quit []
01:15
sword865 has joined #racket
01:30
libertyprime has quit [Ping timeout: 268 seconds]
01:32
libertyprime has joined #racket
01:39
Sgeo_ has quit [Read error: Connection reset by peer]
01:41
Sgeo has joined #racket
01:47
libertyprime has quit [Ping timeout: 250 seconds]
01:49
libertyprime has joined #racket
01:50
orivej has joined #racket
01:52
jao has quit [Ping timeout: 268 seconds]
02:26
efm has quit [Read error: Connection reset by peer]
02:28
notzmv has quit [Remote host closed the connection]
02:35
efm has joined #racket
02:50
libertyprime has quit [Ping timeout: 268 seconds]
03:01
libertyprime has joined #racket
03:03
sagax has joined #racket
03:09
pera has quit [Ping timeout: 268 seconds]
03:10
fiddlerwoaroof has quit [Quit: Gone.]
03:11
fiddlerwoaroof has joined #racket
03:11
pera has joined #racket
03:18
analogue has quit [Quit: Leaving]
03:30
libertyprime has quit [Ping timeout: 240 seconds]
03:58
libertyprime has joined #racket
04:02
orivej has quit [Ping timeout: 240 seconds]
04:03
pera has quit [Quit: leaving]
04:16
lockywolf__ has joined #racket
04:43
manualcrank has quit [Quit: WeeChat 1.9.1]
05:32
endformationage has quit [Quit: WeeChat 2.6]
05:35
orivej has joined #racket
05:44
DGASAU has joined #racket
05:44
Sgeo_ has joined #racket
05:48
Sgeo has quit [Ping timeout: 250 seconds]
06:17
mfiano has quit [Remote host closed the connection]
06:22
mfiano has joined #racket
06:56
libertyprime has quit [Ping timeout: 240 seconds]
07:00
dddddd has quit [Read error: Connection reset by peer]
07:04
mfiano is now known as mfiano|alt
07:05
mfiano|alt is now known as mfiano
07:11
libertyprime has joined #racket
07:17
johnjay has quit [Ping timeout: 240 seconds]
07:23
orivej has quit [Ping timeout: 240 seconds]
07:35
mzan has joined #racket
07:44
mfiano has left #racket ["WeeChat 2.6"]
07:45
mfiano has joined #racket
07:49
mfiano is now known as mfiano2
07:49
mfiano2 is now known as mfiano
08:02
ym has joined #racket
08:11
Fare has quit [Quit: Leaving]
08:22
pie_ has joined #racket
08:25
Sgeo__ has joined #racket
08:26
pie__ has quit [Ping timeout: 246 seconds]
08:28
Sgeo_ has quit [Ping timeout: 240 seconds]
08:56
ym has quit [Read error: Connection reset by peer]
09:52
m1dnight_ has quit [Quit: WeeChat 2.4]
09:53
m1dnight_ has joined #racket
09:57
pmatos has joined #racket
10:07
pmatos has quit [Ping timeout: 265 seconds]
10:18
fanta1 has joined #racket
10:27
iyzsong has joined #racket
10:32
lockywolf__ has quit [Ping timeout: 240 seconds]
10:37
pmatos has joined #racket
10:39
hoek has joined #racket
10:44
iyzsong has quit [Remote host closed the connection]
10:46
iyzsong has joined #racket
11:12
ng0 has joined #racket
11:24
mzan has quit [Quit: Leaving]
11:24
Sgeo__ has quit [Read error: Connection reset by peer]
11:25
Sgeo__ has joined #racket
11:36
lockywolf__ has joined #racket
11:52
mzan has joined #racket
11:54
fanta1 has quit [Quit: fanta1]
11:56
fanta1 has joined #racket
12:20
ArthurStrong has joined #racket
12:28
rgherdt has joined #racket
12:55
fanta1 has quit [Quit: fanta1]
12:57
lockywolf__ has quit [Remote host closed the connection]
12:57
lockywolf__ has joined #racket
12:58
lockywolf__ has quit [Read error: Connection reset by peer]
13:23
Sgeo__ has quit [Read error: Connection reset by peer]
13:23
Sgeo__ has joined #racket
14:06
badkins has joined #racket
14:34
Fare has joined #racket
14:35
sword865 has quit [Quit: Connection closed for inactivity]
15:06
efm has quit [Quit: Konversation terminated!]
15:09
efm has joined #racket
15:15
ng0 has quit [Quit: Alexa, when is the end of world?]
15:16
ng0 has joined #racket
15:35
dddddd has joined #racket
15:49
badkins has quit [Ping timeout: 268 seconds]
15:50
Fare has quit [Ping timeout: 240 seconds]
15:50
fanta1 has joined #racket
15:59
ym has joined #racket
16:03
ziyourenxiang_ has quit [Ping timeout: 250 seconds]
16:11
jao has joined #racket
16:29
jao has quit [Remote host closed the connection]
16:36
badkins has joined #racket
16:54
endformationage has joined #racket
16:57
sagax has quit [Ping timeout: 268 seconds]
16:57
orivej has joined #racket
17:09
jao has joined #racket
17:13
fanta1 has quit [Quit: fanta1]
17:16
FreeFull has joined #racket
17:30
Codaraxis has joined #racket
17:31
fanta1 has joined #racket
17:34
pera has joined #racket
17:34
Fare has joined #racket
17:52
badkins_ has joined #racket
17:55
badkins has quit [Ping timeout: 264 seconds]
18:12
Fare has quit [Ping timeout: 240 seconds]
18:17
pera has quit [Ping timeout: 240 seconds]
18:22
Trieste has quit [Ping timeout: 268 seconds]
18:24
Trieste has joined #racket
18:24
ArthurStrong has quit [Quit: leaving]
18:26
efm has quit [Ping timeout: 268 seconds]
18:30
efm has joined #racket
18:35
badkins_ has quit [Ping timeout: 265 seconds]
18:37
efm has quit [Read error: Connection reset by peer]
18:39
efm has joined #racket
18:44
pmatos has quit [Quit: WeeChat 2.4]
18:58
Fare has joined #racket
19:17
kolontaev has joined #racket
19:17
<
kolontaev >
Hi all. Is there something like re.findall in Python? I want to parse Apache log files, actually
19:17
<
kolontaev >
Can I say, "get all substring limited by [...], "...", or just strings"
19:18
<
kolontaev >
s/substring/substrings
19:20
<
kolontaev >
Oh, found regexp-match*
19:20
* kolontaev
should use google before
19:25
efm has quit [Ping timeout: 268 seconds]
19:28
efm has joined #racket
19:37
Codaraxis has quit [Read error: Connection reset by peer]
19:43
<
kolontaev >
(require...?
19:44
badkins has joined #racket
19:45
fanta1 has quit [Quit: fanta1]
19:46
travishinkelman has joined #racket
20:03
<
bremner >
kolontaev: did you try (require srfi/19) ?
20:04
<
bremner >
oh hmm. that seems to be in the package "srfi-lite-lib"
20:09
<
kolontaev >
Thanks!
20:09
<
kolontaev >
Now the thing I can't get. A have a list of 4-item lists. I.e., list of tuples. Can I apply a function to a second item of each tuple in list?
20:10
<
kolontaev >
I can write a function which takes 4-item tuple, modifies second and returns 4-item tuple
20:10
<
kolontaev >
Is it a right solution...?
20:12
<
bremner >
tuples aren't really a native racket thing (they are in typed/racket). Do you mean lists? You certainly can work with lists that way, although you might find vectors or hash-tables more convenient
20:13
<
kolontaev >
(list (list a b c d) (list 1 2 3 4))
20:13
<
kolontaev >
I want to apply function to "b" and 2
20:14
<
bremner >
and replace them in-place?
20:14
<
kolontaev >
bremner: yes
20:16
<
bremner >
you need to do a bit of list operations, it's a bit clunky (lambda (lst) (list (first lst) (f (second lst)) (third lst) (fourth lst)))
20:16
<
kolontaev >
bremner: yes, this is what I'm doing and wondering, if there is a simpler solution
20:17
Fare has quit [Ping timeout: 265 seconds]
20:18
<
erkin >
kolontaev: map
20:18
<
bremner >
rudybot: eval (vector-set (vector 1 2 3 4) 2 5)
20:18
<
rudybot >
bremner: your sandbox is ready
20:18
<
rudybot >
bremner: error: vector-set: undefined; <NEWLINE> cannot reference an identifier before its definition <NEWLINE> in module: 'program
20:18
<
bremner >
rudybot: eval (vector-set! (vector 1 2 3 4) 2 5)
20:18
<
rudybot >
bremner: Done.
20:19
<
bremner >
double oops. Anyway, if you want to mutate, you can use vectors
20:19
<
kolontaev >
bremner: OK, thanks for the idea
20:20
<
erkin >
(map (λ (func val) (func val)) (list func0 func1) (list val0 val1))
20:20
<
erkin >
map can function like zipWith of Haskell
20:20
<
kolontaev >
erkin: hmmm
20:21
<
kolontaev >
In docs: "Creates a mutable hash table that holds keys strongly."
20:21
<
kolontaev >
what does "strongly" means?
20:21
<
kolontaev >
This is about (make-hash)
20:23
<
erkin >
Strong hashes are 99% of the time what you're looking for.
20:23
<
kolontaev >
erkin: what "strong" means here?
20:23
<
erkin >
As opposed to weak hashes, whose elements can be garbage collected.
20:23
<
kolontaev >
why anyone would use hash table if its elements are collected?
20:24
<
erkin >
For caching.
20:32
<
kolontaev >
I've been reading about "a-lists" in some LISP book. These are just lists of cons cells, each cell has key and value. This is like cheap map or dict. What is used in Racket for this?
20:33
<
bremner >
you can use alists in racket. See Dictionaries
20:34
<
bremner >
although I'm not sure when they'd be preferable to (immutable) hash tables
20:34
<
kolontaev >
bremner: yes, probably should use hash
20:35
sagax has joined #racket
20:38
<
kolontaev >
here: (hash-ref! hash key to-set) <- can I use (make-hash) in place of "to-set", right?
20:38
<
bremner >
no, I don't think so
20:38
<
kolontaev >
I want nested hash
20:38
<
bremner >
oh, OK, then yes
20:50
casaca has quit [Ping timeout: 265 seconds]
20:51
casaca has joined #racket
21:14
<
kolontaev >
bremner: thanks
21:22
<
kolontaev >
what do you use for set? is there a hash with only keys, without values?
21:22
casaca has quit [Ping timeout: 240 seconds]
21:23
casaca has joined #racket
21:25
<
kolontaev >
erkin: thanks
21:25
<
erkin >
No problem.
21:31
teardown has quit [Ping timeout: 276 seconds]
21:34
<
kolontaev >
How to suppress unwanted output when I run (map func list)?
21:44
lavaflow has quit [Ping timeout: 265 seconds]
21:46
acarrico has quit [Ping timeout: 265 seconds]
21:49
Codaraxis has joined #racket
21:59
rgherdt has quit [Ping timeout: 252 seconds]
22:00
mfiano has left #racket ["WeeChat 2.6"]
22:03
efm has quit [Ping timeout: 240 seconds]
22:18
AMDphreak has joined #racket
22:20
<
AMDphreak >
does anyone know where I can find mflatt?
22:20
<
AMDphreak >
(on irc)
22:26
lavaflow has joined #racket
22:37
<
erkin >
He hasn't been on IRC for quite a while.
22:50
lavaflow has quit [Ping timeout: 240 seconds]
23:01
AMDphreak has quit [Ping timeout: 265 seconds]
23:04
libertyprime has quit [Ping timeout: 240 seconds]
23:11
ermo has joined #racket
23:13
AMDphreak has joined #racket
23:20
<
AMDphreak >
@erkin thanks.
23:20
<
erkin >
Try e-mail.
23:22
teardown has joined #racket
23:27
libertyprime has joined #racket
23:32
kolontaev has quit [Quit: leaving]
23:32
ng0 has quit [Ping timeout: 260 seconds]
23:37
ng0 has joined #racket
23:39
FreeFull has quit []
23:44
acarrico has joined #racket
23:47
ng0 has quit [Quit: Alexa, when is the end of world?]
23:51
lavaflow has joined #racket
23:53
libertyprime has quit [Ping timeout: 268 seconds]