00:03
Fernando-Basso has quit [Remote host closed the connection]
00:33
hjek has joined #racket
00:35
hjek has quit [Client Quit]
00:48
hjek has joined #racket
01:03
mzan has left #racket [#racket]
01:11
hjek has quit [Quit: Leaving.]
01:17
pierpal has joined #racket
01:22
enderby has quit [Ping timeout: 252 seconds]
01:59
lavaflow has quit [Read error: Connection reset by peer]
02:00
lavaflow has joined #racket
02:02
lockywolf has joined #racket
02:03
lockywolf has quit [Remote host closed the connection]
02:03
lockywolf has joined #racket
02:04
lockywolf has quit [Remote host closed the connection]
02:06
lockywolf has joined #racket
02:07
lockywolf has quit [Read error: Connection reset by peer]
02:40
Sgeo__ has quit [Ping timeout: 245 seconds]
02:44
lockywolf has joined #racket
02:45
lockywolf has quit [Remote host closed the connection]
02:46
dddddd has quit [Remote host closed the connection]
02:46
lockywolf has joined #racket
03:02
g00s has quit [Ping timeout: 252 seconds]
03:08
pierpa has quit [Quit: Page closed]
04:08
keep_learning has joined #racket
04:26
lockywolf has quit [Ping timeout: 260 seconds]
04:27
g00s has joined #racket
04:28
Sgeo has joined #racket
04:38
lockywolf has joined #racket
05:11
_whitelogger has joined #racket
05:13
lavaflow has quit [Ping timeout: 246 seconds]
05:14
lavaflow has joined #racket
05:42
lockywolf_ has joined #racket
05:43
lockywolf has quit [Ping timeout: 252 seconds]
05:48
jao has quit [Ping timeout: 240 seconds]
05:58
Lowl3v3l has joined #racket
06:00
lockywolf has joined #racket
06:03
lockywolf_ has quit [Ping timeout: 268 seconds]
06:44
lockywolf has quit [Read error: Connection reset by peer]
06:45
lockywolf has joined #racket
07:01
lockywolf has quit [Ping timeout: 240 seconds]
07:41
DGASAU has quit [Ping timeout: 244 seconds]
08:34
vraid has joined #racket
08:52
ubLIX has joined #racket
09:05
ym has joined #racket
09:17
ZombieChicken has quit [Ping timeout: 256 seconds]
09:41
libertyprime has joined #racket
09:58
bor0 has joined #racket
09:59
ubLIX has quit [Quit: ubLIX]
10:19
orivej has quit [Ping timeout: 268 seconds]
10:46
pierpal has quit [Quit: Poof]
10:46
pierpal has joined #racket
10:53
pierpal has quit [Ping timeout: 252 seconds]
10:54
pierpal has joined #racket
11:09
iyzsong has joined #racket
11:18
iyzsong has quit [Remote host closed the connection]
11:21
iyzsong has joined #racket
12:00
mzan has joined #racket
12:10
m4110c has joined #racket
12:12
<
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).
12:12
<
m4110c >
So 3 structs -> (list 1 1 1), 5 structs -> (list 1 1 1 1 1)
12:13
<
m4110c >
Does anyone have an idea how I could achieve this with foldr or map or so?
12:14
<
bor0 >
is this what you mean? (map (lambda (x) 1) list)
12:15
<
m4110c >
aahhh, I tried with this:
12:15
<
m4110c >
(map (lambda (x) (+1)) list)
12:15
<
m4110c >
(map (lambda (x) (1)) list)
12:15
<
bor0 >
remember (1) is a procedure call
12:16
<
m4110c >
but now I understand, it's not callable
12:16
<
m4110c >
thank you!
12:17
dddddd has joined #racket
12:20
pierpal has quit [Quit: Poof]
12:20
pierpal has joined #racket
13:09
m4110c has quit [Ping timeout: 250 seconds]
13:14
m4110c has joined #racket
13:21
libertyprime has quit [Ping timeout: 272 seconds]
13:31
dmiles has joined #racket
13:53
bor0 has quit [Quit: Leaving]
14:26
hs0ucy has joined #racket
14:43
m4110c has quit [Ping timeout: 264 seconds]
14:45
m4110c has joined #racket
14:45
sleepnap has joined #racket
14:49
jao has joined #racket
14:49
<
hs0ucy >
Am I the only one experiencing slower behaviours in emacs racket-mode.
14:50
<
hs0ucy >
slower than the other modes in Emacs
14:52
<
greghendershott >
hs0ucy: Changes in recent months should make it faster not slower.
14:52
<
greghendershott >
hs0ucy: I'm jammed on a work project now and can't debug realtime here right now.
14:53
<
hs0ucy >
greghendershott: Hello, you're the creator of the racket-mode, right?
14:53
<
greghendershott >
hs0ucy: Maybe I am? :) Yes.
14:54
<
hs0ucy >
greghendershott: Haha, first, thanks for your work!
14:54
Lowl3v3l has quit [Quit: Leaving.]
14:55
* greghendershott
has to dive back into something with deadline today
14:55
<
hs0ucy >
greghendershott: Yes, perfect thanks ... and good chance with your deadline.
14:56
<
greghendershott >
Thanks and don't mean to be unfriendly; look forward to chatting latter
14:57
<
hs0ucy >
greghendershott: I underdtand, no problems :)
14:58
<
hs0ucy >
i'm not on that "machine" right now anyway
15:00
YuGiOhJCJ has joined #racket
15:20
dbmikus has joined #racket
15:27
vraid has quit [Quit: Leaving]
15:36
sleepnap has quit [Ping timeout: 252 seconds]
16:04
sixbitproxywax has joined #racket
16:21
orivej has joined #racket
16:46
jao has quit [Ping timeout: 268 seconds]
16:59
confusedwanderer has joined #racket
17:00
bogdanp has joined #racket
17:01
<
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
17:01
<
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.
17:04
<
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.
17:08
DGASAU has joined #racket
17:30
tilpner has quit [Remote host closed the connection]
17:32
xuanrui has quit [Read error: Connection reset by peer]
17:34
tilpner has joined #racket
17:37
remix2000 has quit [Quit: WeeChat 2.2-dev]
17:38
<
bogdanp >
Yep. That was it. Patching that loop to flush-output after every iteration fixed the problem.
17:38
bogdanp has quit [Quit: Page closed]
17:41
orivej_ has joined #racket
17:42
orivej has quit [Read error: Connection reset by peer]
17:45
DGASAU has quit [Ping timeout: 264 seconds]
17:46
tilpner has quit [Remote host closed the connection]
17:53
tilpner has joined #racket
18:01
mzan has left #racket [#racket]
18:03
DGASAU has joined #racket
18:07
mahmudov has joined #racket
18:15
Lowl3v3l has joined #racket
18:16
DGASAU has quit [Read error: Connection reset by peer]
18:16
DGASAU has joined #racket
18:17
eagleflo has quit [Ping timeout: 246 seconds]
18:24
nitrowheels has joined #racket
18:29
buyfn has joined #racket
18:41
pera has joined #racket
18:55
siel has quit [Ping timeout: 252 seconds]
18:56
pierpal has quit [Read error: Connection reset by peer]
18:56
siel has joined #racket
19:09
nitrowheels has quit [Quit: Leaving]
19:24
eli has joined #racket
19:28
dddddd has quit [Ping timeout: 246 seconds]
19:42
dddddd has joined #racket
19:43
pera has quit [Ping timeout: 268 seconds]
19:46
ubLIX has joined #racket
19:47
iclon has joined #racket
19:49
buyfn has quit [Quit: buyfn]
19:52
YuGiOhJCJ has quit [Remote host closed the connection]
19:55
Fernando-Basso has joined #racket
20:00
pera has joined #racket
20:21
libertyprime has joined #racket
20:32
confusedwanderer has quit [Remote host closed the connection]
20:36
groovy2shoes has quit [Quit: moritura te salutat]
20:49
g00s has joined #racket
21:05
ZombieChicken has joined #racket
21:52
jao has joined #racket
21:56
Diagon has joined #racket
22:13
Fernando-Basso has quit [Remote host closed the connection]
22:15
<
lavaflow >
Given a list of arbitrary contents of length n, what's the fastest way to make a string of format "?,?,?,..." with n '?' characters?
22:16
<
lavaflow >
something like (string-join (map (λ (x) "?") l) ",")
22:16
<
lavaflow >
but that seems like it's probably not an efficient way of doing it.
22:23
<
lavaflow >
I guess it really doesn't matter, that's so fast it's hard to measure.
23:03
m4110c has quit [Quit: m4110c]
23:36
dbmikus has quit [Ping timeout: 245 seconds]
23:42
sixbitproxywax has quit [Quit: leaving]