Fernando-Basso has quit [Remote host closed the connection]
hjek has joined #racket
hjek has quit [Client Quit]
hjek has joined #racket
mzan has left #racket [#racket]
hjek has quit [Quit: Leaving.]
pierpal has joined #racket
enderby has quit [Ping timeout: 252 seconds]
lavaflow has quit [Read error: Connection reset by peer]
lavaflow has joined #racket
lockywolf has joined #racket
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #racket
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
Sgeo__ has quit [Ping timeout: 245 seconds]
lockywolf has joined #racket
lockywolf has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
lockywolf has joined #racket
g00s has quit [Ping timeout: 252 seconds]
pierpa has quit [Quit: Page closed]
keep_learning has joined #racket
lockywolf has quit [Ping timeout: 260 seconds]
g00s has joined #racket
Sgeo has joined #racket
lockywolf has joined #racket
_whitelogger has joined #racket
lavaflow has quit [Ping timeout: 246 seconds]
lavaflow has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 252 seconds]
jao has quit [Ping timeout: 240 seconds]
Lowl3v3l has joined #racket
lockywolf has joined #racket
lockywolf_ has quit [Ping timeout: 268 seconds]
lockywolf has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
lockywolf has quit [Ping timeout: 240 seconds]
DGASAU has quit [Ping timeout: 244 seconds]
vraid has joined #racket
ubLIX has joined #racket
g00s has quit [Quit: Textual IRC Client: www.textualapp.com]
ym has joined #racket
ZombieChicken has quit [Ping timeout: 256 seconds]
libertyprime has joined #racket
bor0 has joined #racket
ubLIX has quit [Quit: ubLIX]
orivej has quit [Ping timeout: 268 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
pierpal has quit [Ping timeout: 252 seconds]
pierpal has joined #racket
iyzsong has joined #racket
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #racket
mzan has joined #racket
m4110c has joined #racket
<m4110c> Hi, I have a short question. Let's say I have a list of structs (list str1 str2 str3), now I need to create a list depending on how many structs are in the first list, that contains a 1 for each struct. So the final list in our case should be (list 1 1 1).
<m4110c> So 3 structs -> (list 1 1 1), 5 structs -> (list 1 1 1 1 1)
<m4110c> Does anyone have an idea how I could achieve this with foldr or map or so?
<bor0> is this what you mean? (map (lambda (x) 1) list)
<m4110c> aahhh, I tried with this:
<m4110c> (map (lambda (x) (+1)) list)
<m4110c> (map (lambda (x) (1)) list)
<m4110c> with both
<bor0> remember (1) is a procedure call
<m4110c> but now I understand, it's not callable
<m4110c> :-D
<m4110c> thank you!
dddddd has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
m4110c has quit [Ping timeout: 250 seconds]
m4110c has joined #racket
libertyprime has quit [Ping timeout: 272 seconds]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
dmiles has joined #racket
bor0 has quit [Quit: Leaving]
hs0ucy has joined #racket
m4110c has quit [Ping timeout: 264 seconds]
m4110c has joined #racket
sleepnap has joined #racket
<hs0ucy> Hello,
jao has joined #racket
<hs0ucy> Am I the only one experiencing slower behaviours in emacs racket-mode.
<hs0ucy> slower than the other modes in Emacs
<hs0ucy> Using "racket minimal" <http://ports.su/lang/racket-minimal> on OpenBSD 6.3
<greghendershott> hs0ucy: Changes in recent months should make it faster not slower.
<greghendershott> hs0ucy: I'm jammed on a work project now and can't debug realtime here right now.
<hs0ucy> greghendershott: Hello, you're the creator of the racket-mode, right?
<greghendershott> hs0ucy: But if you open issue at https://github.com/greghendershott/racket-mode/issues I'd be happy to discuss/diagnose with you later
<greghendershott> hs0ucy: Maybe I am? :) Yes.
<hs0ucy> greghendershott: Haha, first, thanks for your work!
Lowl3v3l has quit [Quit: Leaving.]
<greghendershott> hs0ucy: You're welcome. If you M-x racket-bug-report and put that in an issue at https://github.com/greghendershott/racket-mode/issues let's discuss more there later?
* greghendershott has to dive back into something with deadline today
<hs0ucy> greghendershott: Yes, perfect thanks ... and good chance with your deadline.
<greghendershott> Thanks and don't mean to be unfriendly; look forward to chatting latter
<hs0ucy> greghendershott: I underdtand, no problems :)
<hs0ucy> i'm not on that "machine" right now anyway
YuGiOhJCJ has joined #racket
dbmikus has joined #racket
vraid has quit [Quit: Leaving]
sleepnap has quit [Ping timeout: 252 seconds]
sixbitproxywax has joined #racket
orivej has joined #racket
jao has quit [Ping timeout: 268 seconds]
confusedwanderer has joined #racket
bogdanp has joined #racket
<bogdanp> AFAICT by reading its source, the web-server lib seems to support streaming, but I can't get it to work. My request handler looks like this: http://pasterack.org/pastes/44913
<bogdanp> Am I doing something obviously wrong here? Requests stall until they time out and that's when they finally print all the output at once. I thought it might be a buffering issue which is why I threw that `flush-output` in there but I don't think it should be necessary.
<bogdanp> Output from curl: http://pasterack.org/pastes/70849
<bogdanp> It's not clear from the curl output, but the response really only starts after about 60s, which is when curl seems to time out the request.
DGASAU has joined #racket
tilpner has quit [Remote host closed the connection]
<bogdanp> I think I figured it out. The web-server doesn't flush after every chunk it sends to the client so the data is likely being buffered within the socket. https://github.com/racket/web-server/blob/master/web-server-lib/web-server/http/response.rkt#L119
xuanrui has quit [Read error: Connection reset by peer]
tilpner has joined #racket
remix2000 has quit [Quit: WeeChat 2.2-dev]
<bogdanp> Yep. That was it. Patching that loop to flush-output after every iteration fixed the problem.
bogdanp has quit [Quit: Page closed]
orivej_ has joined #racket
orivej has quit [Read error: Connection reset by peer]
DGASAU has quit [Ping timeout: 264 seconds]
tilpner has quit [Remote host closed the connection]
tilpner has joined #racket
mzan has left #racket [#racket]
DGASAU has joined #racket
mahmudov has joined #racket
Lowl3v3l has joined #racket
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
eagleflo has quit [Ping timeout: 246 seconds]
nitrowheels has joined #racket
buyfn has joined #racket
pera has joined #racket
siel has quit [Ping timeout: 252 seconds]
pierpal has quit [Read error: Connection reset by peer]
siel has joined #racket
nitrowheels has quit [Quit: Leaving]
eli has joined #racket
dddddd has quit [Ping timeout: 246 seconds]
dddddd has joined #racket
pera has quit [Ping timeout: 268 seconds]
ubLIX has joined #racket
iclon has joined #racket
buyfn has quit [Quit: buyfn]
YuGiOhJCJ has quit [Remote host closed the connection]
Fernando-Basso has joined #racket
pera has joined #racket
libertyprime has joined #racket
confusedwanderer has quit [Remote host closed the connection]
groovy2shoes has quit [Quit: moritura te salutat]
g00s has joined #racket
ZombieChicken has joined #racket
jao has joined #racket
Diagon has joined #racket
Fernando-Basso has quit [Remote host closed the connection]
<lavaflow> Given a list of arbitrary contents of length n, what's the fastest way to make a string of format "?,?,?,..." with n '?' characters?
<lavaflow> something like (string-join (map (λ (x) "?") l) ",")
<lavaflow> but that seems like it's probably not an efficient way of doing it.
<lavaflow> I guess it really doesn't matter, that's so fast it's hard to measure.
m4110c has quit [Quit: m4110c]
dbmikus has quit [Ping timeout: 245 seconds]
sixbitproxywax has quit [Quit: leaving]