samth changed the topic of #racket to: Racket v7.4 has been released: https://blog.racket-lang.org/2019/08/racket-v7-4.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
moldybits has joined #racket
orivej has joined #racket
mzan has quit [Quit: Leaving]
acarrico has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]
libertyprime has joined #racket
orivej has quit [Ping timeout: 265 seconds]
Fare has joined #racket
FreeFull has quit []
sword865 has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]
libertyprime has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo has joined #racket
libertyprime has quit [Ping timeout: 250 seconds]
libertyprime has joined #racket
orivej has joined #racket
jao has quit [Ping timeout: 268 seconds]
efm has quit [Read error: Connection reset by peer]
notzmv has quit [Remote host closed the connection]
efm has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]
libertyprime has joined #racket
sagax has joined #racket
pera has quit [Ping timeout: 268 seconds]
fiddlerwoaroof has quit [Quit: Gone.]
fiddlerwoaroof has joined #racket
pera has joined #racket
analogue has quit [Quit: Leaving]
libertyprime has quit [Ping timeout: 240 seconds]
libertyprime has joined #racket
orivej has quit [Ping timeout: 240 seconds]
pera has quit [Quit: leaving]
lockywolf__ has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
endformationage has quit [Quit: WeeChat 2.6]
orivej has joined #racket
DGASAU has joined #racket
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 250 seconds]
mfiano has quit [Remote host closed the connection]
mfiano has joined #racket
libertyprime has quit [Ping timeout: 240 seconds]
dddddd has quit [Read error: Connection reset by peer]
mfiano is now known as mfiano|alt
mfiano|alt is now known as mfiano
libertyprime has joined #racket
johnjay has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
mzan has joined #racket
mfiano has left #racket ["WeeChat 2.6"]
mfiano has joined #racket
mfiano is now known as mfiano2
mfiano2 is now known as mfiano
ym has joined #racket
Fare has quit [Quit: Leaving]
pie_ has joined #racket
Sgeo__ has joined #racket
pie__ has quit [Ping timeout: 246 seconds]
Sgeo_ has quit [Ping timeout: 240 seconds]
ym has quit [Read error: Connection reset by peer]
m1dnight_ has quit [Quit: WeeChat 2.4]
m1dnight_ has joined #racket
pmatos has joined #racket
pmatos has quit [Ping timeout: 265 seconds]
fanta1 has joined #racket
iyzsong has joined #racket
lockywolf__ has quit [Ping timeout: 240 seconds]
pmatos has joined #racket
hoek has joined #racket
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #racket
ng0 has joined #racket
mzan has quit [Quit: Leaving]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
lockywolf__ has joined #racket
mzan has joined #racket
fanta1 has quit [Quit: fanta1]
fanta1 has joined #racket
ArthurStrong has joined #racket
rgherdt has joined #racket
fanta1 has quit [Quit: fanta1]
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
lockywolf__ has quit [Read error: Connection reset by peer]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
badkins has joined #racket
Fare has joined #racket
sword865 has quit [Quit: Connection closed for inactivity]
efm has quit [Quit: Konversation terminated!]
efm has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #racket
dddddd has joined #racket
badkins has quit [Ping timeout: 268 seconds]
Fare has quit [Ping timeout: 240 seconds]
fanta1 has joined #racket
ym has joined #racket
ziyourenxiang_ has quit [Ping timeout: 250 seconds]
jao has joined #racket
jao has quit [Remote host closed the connection]
badkins has joined #racket
endformationage has joined #racket
sagax has quit [Ping timeout: 268 seconds]
orivej has joined #racket
jao has joined #racket
fanta1 has quit [Quit: fanta1]
FreeFull has joined #racket
Codaraxis has joined #racket
fanta1 has joined #racket
pera has joined #racket
Fare has joined #racket
badkins_ has joined #racket
badkins has quit [Ping timeout: 264 seconds]
Fare has quit [Ping timeout: 240 seconds]
pera has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 268 seconds]
Trieste has joined #racket
ArthurStrong has quit [Quit: leaving]
efm has quit [Ping timeout: 268 seconds]
efm has joined #racket
badkins_ has quit [Ping timeout: 265 seconds]
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
pmatos has quit [Quit: WeeChat 2.4]
Fare has joined #racket
kolontaev has joined #racket
<kolontaev> Hi all. Is there something like re.findall in Python? I want to parse Apache log files, actually
<kolontaev> Can I say, "get all substring limited by [...], "...", or just strings"
<kolontaev> ?
<kolontaev> s/substring/substrings
<kolontaev> Oh, found regexp-match*
* kolontaev should use google before
efm has quit [Ping timeout: 268 seconds]
efm has joined #racket
Codaraxis has quit [Read error: Connection reset by peer]
<kolontaev> how to load functions from https://docs.racket-lang.org/srfi/srfi-std/srfi-19.html
<kolontaev> ?
<kolontaev> (require...?
badkins has joined #racket
fanta1 has quit [Quit: fanta1]
travishinkelman has joined #racket
<bremner> kolontaev: did you try (require srfi/19) ?
<bremner> oh hmm. that seems to be in the package "srfi-lite-lib"
<kolontaev> Thanks!
<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?
<kolontaev> I can write a function which takes 4-item tuple, modifies second and returns 4-item tuple
<kolontaev> Is it a right solution...?
<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
<kolontaev> OK
<kolontaev> (list (list a b c d) (list 1 2 3 4))
<kolontaev> I want to apply function to "b" and 2
<bremner> and replace them in-place?
<kolontaev> bremner: yes
<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)))
<kolontaev> bremner: yes, this is what I'm doing and wondering, if there is a simpler solution
Fare has quit [Ping timeout: 265 seconds]
<erkin> kolontaev: map
<bremner> rudybot: eval (vector-set (vector 1 2 3 4) 2 5)
<rudybot> bremner: your sandbox is ready
<rudybot> bremner: error: vector-set: undefined; <NEWLINE> cannot reference an identifier before its definition <NEWLINE> in module: 'program
<bremner> oops
<bremner> rudybot: eval (vector-set! (vector 1 2 3 4) 2 5)
<rudybot> bremner: Done.
<bremner> double oops. Anyway, if you want to mutate, you can use vectors
<kolontaev> bremner: OK, thanks for the idea
<erkin> (map (λ (func val) (func val)) (list func0 func1) (list val0 val1))
<erkin> map can function like zipWith of Haskell
<kolontaev> erkin: hmmm
<kolontaev> In docs: "Creates a mutable hash table that holds keys strongly."
<kolontaev> what does "strongly" means?
<kolontaev> This is about (make-hash)
<erkin> Strong hashes are 99% of the time what you're looking for.
<kolontaev> erkin: what "strong" means here?
<erkin> As opposed to weak hashes, whose elements can be garbage collected.
<kolontaev> why anyone would use hash table if its elements are collected?
<erkin> For caching.
<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?
<bremner> you can use alists in racket. See Dictionaries
<bremner> although I'm not sure when they'd be preferable to (immutable) hash tables
<kolontaev> bremner: yes, probably should use hash
sagax has joined #racket
<kolontaev> here: (hash-ref! hash key to-set) <- can I use (make-hash) in place of "to-set", right?
<bremner> no, I don't think so
<kolontaev> I want nested hash
<bremner> oh, OK, then yes
<kolontaev> aha
casaca has quit [Ping timeout: 265 seconds]
casaca has joined #racket
<bremner> kolontaev: one more suggestion: https://docs.racket-lang.org/guide/define-struct.html
<kolontaev> bremner: thanks
<kolontaev> what do you use for set? is there a hash with only keys, without values?
casaca has quit [Ping timeout: 240 seconds]
casaca has joined #racket
<kolontaev> erkin: thanks
<erkin> No problem.
teardown has quit [Ping timeout: 276 seconds]
<kolontaev> How to suppress unwanted output when I run (map func list)?
<erkin> for-each
<kolontaev> aha
lavaflow has quit [Ping timeout: 265 seconds]
acarrico has quit [Ping timeout: 265 seconds]
Codaraxis has joined #racket
rgherdt has quit [Ping timeout: 252 seconds]
mfiano has left #racket ["WeeChat 2.6"]
efm has quit [Ping timeout: 240 seconds]
AMDphreak has joined #racket
<AMDphreak> does anyone know where I can find mflatt?
<AMDphreak> (on irc)
lavaflow has joined #racket
<erkin> He hasn't been on IRC for quite a while.
lavaflow has quit [Ping timeout: 240 seconds]
AMDphreak has quit [Ping timeout: 265 seconds]
libertyprime has quit [Ping timeout: 240 seconds]
ermo has quit [Quit: ZNC 1.7.5 - https://znc.in]
ermo has joined #racket
AMDphreak has joined #racket
<AMDphreak> @erkin thanks.
<erkin> Try e-mail.
teardown has joined #racket
libertyprime has joined #racket
kolontaev has quit [Quit: leaving]
ng0 has quit [Ping timeout: 260 seconds]
ng0 has joined #racket
FreeFull has quit []
acarrico has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
lavaflow has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]