00:30
catonano_ has joined #racket
00:33
catonano has quit [Ping timeout: 260 seconds]
00:33
catonano_ is now known as catonano
00:34
selimcan has quit [Remote host closed the connection]
00:36
selimcan has joined #racket
00:45
catonano has quit [Ping timeout: 240 seconds]
00:47
catonano has joined #racket
00:56
_whitelogger has joined #racket
01:21
aeth_ has joined #racket
01:22
aeth has quit [Disconnected by services]
01:22
aeth_ is now known as aeth
01:30
dddddd has quit [Ping timeout: 240 seconds]
01:39
dddddd has joined #racket
01:43
TCZ has quit [Quit: Leaving]
01:45
mirrorbird has quit [Quit: Leaving]
01:54
countvajhula has quit [Remote host closed the connection]
01:54
countvajhula has joined #racket
01:55
refpga has quit [Remote host closed the connection]
01:57
<
samth >
bremner: i believe the ppa is now updated
01:58
<
samth >
dustyweb: that is super-cool
01:59
countvajhula has quit [Remote host closed the connection]
01:59
countvajhula has joined #racket
02:03
countvajhula has quit [Remote host closed the connection]
02:04
countvajhula has joined #racket
02:05
selimcan has quit [Ping timeout: 240 seconds]
02:07
dmiles has joined #racket
02:25
acarrico has quit [Ping timeout: 272 seconds]
03:57
mirrorbird has joined #racket
04:43
<
dustyweb >
thanks samth :)
05:19
endformationage has quit [Quit: WeeChat 2.9]
05:30
narimiran has joined #racket
05:39
zacts has joined #racket
05:41
bocaneri has joined #racket
05:44
zacts has quit [Client Quit]
06:09
zacts has joined #racket
06:29
epony has quit [Quit: upgrades]
06:33
jellie has joined #racket
06:42
catonano has quit [Read error: Connection reset by peer]
06:42
catonano_ has joined #racket
06:45
mirrorbird has quit [Remote host closed the connection]
06:45
mirrorbird has joined #racket
06:45
Sgeo has quit [Read error: Connection reset by peer]
06:45
zacts has quit [Quit: leaving]
06:46
<
afidegnum >
can you please guide me? i'm a bit confused here. i'm drawing a 2d diagrams which should map to graphs, which should have mouse events features, what libraries do i need?
06:51
jellie has quit [Ping timeout: 260 seconds]
06:51
urbanslug has joined #racket
06:59
orivej has quit [Ping timeout: 265 seconds]
06:59
orivej has joined #racket
07:00
mirrorbird has quit [Quit: Leaving]
07:18
epony has joined #racket
07:21
mirrorbird has joined #racket
07:22
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:53
zacts has joined #racket
08:07
lavaflow has quit [Ping timeout: 272 seconds]
08:08
orivej has quit [Ping timeout: 260 seconds]
08:12
countvajhula has quit [Ping timeout: 260 seconds]
08:20
lavaflow has joined #racket
08:22
urbanslug has quit [Read error: Connection reset by peer]
08:23
urbanslug has joined #racket
08:27
aaaaaa has joined #racket
08:45
urbanslug has quit [Ping timeout: 258 seconds]
08:45
urbanslug has joined #racket
08:46
countvajhula has joined #racket
08:50
countvajhula has quit [Ping timeout: 244 seconds]
08:58
zacts has quit [Quit: leaving]
09:05
countvajhula has joined #racket
09:35
notzmv has quit [Ping timeout: 260 seconds]
09:48
urbanslug has quit [Read error: Connection reset by peer]
09:51
arpunk has quit [Read error: Connection reset by peer]
09:52
countvajhula has quit [Ping timeout: 244 seconds]
09:55
catonano has joined #racket
09:58
catonano_ has quit [Ping timeout: 240 seconds]
09:58
zacts has joined #racket
09:59
catonano has quit [Read error: Connection reset by peer]
10:04
<
afidegnum >
evdubs: yes,
10:05
<
afidegnum >
but i'm adding more functionalities though
10:06
<
afidegnum >
yes, i've look into it, i am also glancing through racket/pict draw and gui.
10:09
urbanslug has joined #racket
10:20
TCZ has joined #racket
10:21
countvajhula has joined #racket
10:23
jellie has joined #racket
10:23
urbanslug has quit [Ping timeout: 258 seconds]
10:25
countvajhula has quit [Ping timeout: 260 seconds]
10:27
sm2n has quit [Quit: Leaving]
10:29
narimiran has quit [Quit: leaving]
10:31
sm2n has joined #racket
10:33
jellie has quit [Read error: Connection reset by peer]
10:34
jellie has joined #racket
10:38
<
afidegnum >
is there a way i can visually identify elements of the GUI package ?
10:38
<
afidegnum >
package/libraryt
10:38
<
evdubs >
as in you want to see what a button% looks like?
10:39
<
afidegnum >
yes, and the interface hierarchy
10:40
<
afidegnum >
yes, i've seen it but it's not that clear and understandable
10:46
sputny has joined #racket
10:47
catonano has joined #racket
10:48
<
evdubs >
do you have a specific question about a GUI element and its hierarchy?
10:48
<
afidegnum >
it's seems i'm getting overwhelmed, i'm trying to sketch some layouts to to identify my requirements
10:49
<
evdubs >
are you able to get something small and simple to work?
10:50
<
afidegnum >
yes, i ran few tutorials and they worked,
10:57
jellie has quit [Ping timeout: 240 seconds]
10:58
jellie has joined #racket
11:00
countvajhula has joined #racket
11:02
<
evdubs >
i don't know how far along you are, but when i was connecting a gui to plot, i needed a `settable-snip-canvas%` that was not provided in the standard Racket GUI/plot libraries
11:05
<
afidegnum >
yes, i noticed i needed to import other utilities as well, such as pict and draw
11:05
countvajhula has quit [Ping timeout: 240 seconds]
11:08
<
afidegnum >
there is more than plot. i'm still drawing the layouts
11:08
<
evdubs >
ok - i have very little experience outside of gui and plot
11:16
narimiran has joined #racket
11:18
jellie has quit [Read error: Connection reset by peer]
11:19
jellie has joined #racket
11:27
jellie has quit [Ping timeout: 260 seconds]
11:40
countvajhula has joined #racket
11:47
countvajhula has quit [Ping timeout: 272 seconds]
11:57
jellie has joined #racket
12:03
jellie has quit [Ping timeout: 256 seconds]
12:09
jellie has joined #racket
12:13
countvajhula has joined #racket
12:17
countvajhula has quit [Ping timeout: 260 seconds]
12:23
arpunk has joined #racket
12:31
selimcan has joined #racket
12:33
countvajhula has joined #racket
12:34
jellie has quit [Ping timeout: 260 seconds]
12:37
jellie has joined #racket
12:37
countvajhula has quit [Ping timeout: 244 seconds]
12:43
jellie has quit [Read error: Connection reset by peer]
12:45
jellie has joined #racket
12:48
MetaHertz has joined #racket
12:50
jellie has quit [Ping timeout: 265 seconds]
12:54
nullman has quit [Ping timeout: 240 seconds]
12:59
jellie has joined #racket
13:04
orivej has joined #racket
13:12
acarrico has joined #racket
13:12
countvajhula has joined #racket
13:15
true-grue has joined #racket
13:16
bitmapper has quit [Quit: Connection closed for inactivity]
13:17
countvajhula has quit [Ping timeout: 240 seconds]
13:27
jellie has quit [Ping timeout: 256 seconds]
13:28
urbanslug has joined #racket
13:36
nullman has joined #racket
13:46
countvajhula has joined #racket
13:51
sputny has quit [Quit: sputny]
13:51
countvajhula has quit [Ping timeout: 260 seconds]
13:52
Sgeo has joined #racket
13:56
orivej has quit [Ping timeout: 264 seconds]
13:56
bitmapper has joined #racket
14:03
urbanslug has quit [Read error: Connection reset by peer]
14:04
urbanslug has joined #racket
14:13
urbanslug has quit [Ping timeout: 258 seconds]
14:13
DGASAU has quit [Read error: Connection reset by peer]
14:15
urbanslug has joined #racket
14:16
DGASAU has joined #racket
14:24
narimiran has quit [Ping timeout: 246 seconds]
14:27
countvajhula has joined #racket
14:28
urbanslug has quit [Read error: Connection reset by peer]
14:31
narimiran has joined #racket
14:31
countvajhula has quit [Ping timeout: 244 seconds]
14:39
jellie has joined #racket
14:51
phillbush has joined #racket
15:01
countvajhula has joined #racket
15:04
jellie has quit [Ping timeout: 260 seconds]
15:05
jellie has joined #racket
15:06
countvajhula has quit [Ping timeout: 246 seconds]
15:23
endobson has joined #racket
15:26
TCZ has quit [Quit: Leaving]
15:41
countvajhula has joined #racket
15:45
countvajhula has quit [Remote host closed the connection]
15:45
countvajhula has joined #racket
15:47
TCZ has joined #racket
15:49
countvajhula has quit [Remote host closed the connection]
15:49
countvajhula has joined #racket
15:50
jellie has quit [Read error: Connection reset by peer]
15:52
jellie has joined #racket
15:53
countvajhula has quit [Remote host closed the connection]
15:53
countvajhula has joined #racket
15:57
countvajhula has quit [Remote host closed the connection]
15:57
countvajhula has joined #racket
15:58
jellie has quit [Ping timeout: 256 seconds]
16:01
countvajhula has quit [Remote host closed the connection]
16:01
countvajhula has joined #racket
16:01
jellie has joined #racket
16:05
countvajhula has quit [Remote host closed the connection]
16:05
countvajhula has joined #racket
16:10
countvajhula has quit [Remote host closed the connection]
16:10
countvajhula has joined #racket
16:13
countvajhula has quit [Remote host closed the connection]
16:13
countvajhula has joined #racket
16:26
jellie has quit [Ping timeout: 264 seconds]
16:28
jellie has joined #racket
16:31
countvajhula has quit [Ping timeout: 272 seconds]
16:33
orivej has joined #racket
16:37
afidegnum has quit [Ping timeout: 260 seconds]
16:48
FreeFull has joined #racket
17:05
TCZ has quit [Quit: Leaving]
17:06
countvajhula has joined #racket
17:11
countvajhula has quit [Ping timeout: 260 seconds]
17:16
jellie has quit [Ping timeout: 264 seconds]
17:20
narimiran has quit [Ping timeout: 256 seconds]
17:22
Codaraxis__ has joined #racket
17:25
Codaraxis_ has quit [Ping timeout: 260 seconds]
17:32
wingsorc has joined #racket
17:42
countvajhula has joined #racket
17:48
jellie has joined #racket
17:57
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:02
endformationage has joined #racket
18:13
Ven`` has joined #racket
18:16
nisstyre has quit [Write error: Connection reset by peer]
18:17
nisstyre has joined #racket
18:23
bocaneri has quit [Read error: Connection reset by peer]
18:44
narodism has joined #racket
18:44
<
narodism >
hello I'm learning lisp
18:44
<
narodism >
enjoying it so far
18:44
<
narodism >
how can I turn an s exp into a list?
18:44
<
narodism >
I tried:
18:44
<
narodism >
(list '(1 2 3))
18:45
<
narodism >
(s-exp-to-list (1 2 3))
18:47
<
narodism >
and want to be able to write (fn (add) ((private x) (private y))) without needing (list (private x) ...)
18:49
<
dzoe >
narodism: What LISP dialect is this supposed to be?
18:50
<
dzoe >
Then maybe more explanation of what you are trying to achieve here might be required.
18:51
<
narodism >
I want to generate code using lisp
18:51
<
narodism >
so when I call (add x y) it will output a bunch of code with whatever is x and y
18:52
<
narodism >
almost like assembly instructions
18:52
<
dzoe >
Just generating the code or actually manipulating the code that is to be executed?
18:52
<
narodism >
generating the code, we use lisp to write it
18:53
<
dzoe >
Looking at your private macro, it seems to do the right thing.
18:54
<
narodism >
I mean the line at the bottom with list
18:54
<
narodism >
(fn (add) (list
18:54
<
narodism >
how can I get rid of that?
18:54
<
narodism >
(fn (add) ((private x) (private y)))
18:55
<
dzoe >
Ah, that is super easy one.
18:56
<
dzoe >
(define-syntax-rule (fn name body ...) (for ((line (list body ...))) (displayln line))) ; this should work
18:57
<
narodism >
that doesnt work unfortunately
18:57
<
narodism >
since I need to unpack the list
18:57
<
narodism >
(list (x y z)) when I want (list x y z)
18:57
<
dzoe >
I just tested it with your code and that worked ...
18:57
<
narodism >
but displayln looks super cool
18:57
<
narodism >
(private x private y private z)
18:58
<
narodism >
i get this output
18:58
<
dzoe >
And did you remove that list?
18:58
<
narodism >
what do you mean?
18:59
<
dzoe >
You said you want to get rid of that list, so it should look like (fn (add) (private x) (private y) (private z))
18:59
<
narodism >
I think (list (body)) creates a list with a single element (x y z) when I want a list with 3 elements
18:59
<
narodism >
now I get an error
18:59
<
narodism >
mine.rkt:17:0: fn: use does not match pattern: (fn name body)
18:59
<
narodism >
in: (fn (add) (private x) (private y) (private z))
18:59
<
narodism >
how can I capture multiple arguments?
19:00
<
dzoe >
And did you used the aforementioned syntax rule? It is NOT (fn name body), it is (fn name body ...)
19:00
<
dzoe >
Note those elipsis ...
19:01
<
narodism >
wow amazing
19:04
<
narodism >
thanks a lot
19:04
<
narodism >
thanks rudybot
19:06
Ven`` has joined #racket
19:08
Ven`` has quit [Client Quit]
19:13
Lowl3v3l has quit [Remote host closed the connection]
19:14
Lowl3v3l has joined #racket
19:14
Lowl3v3l has quit [Remote host closed the connection]
19:14
Lowl3v3l has joined #racket
19:15
Ven`` has joined #racket
19:16
TCZ has joined #racket
19:41
Lowl3v3l has quit [Remote host closed the connection]
19:41
Lowl3v3l has joined #racket
19:47
zacts has quit [Quit: leaving]
19:48
selimcan has quit [Ping timeout: 256 seconds]
19:52
<
narodism >
(define xx ((define y 10) 110))
19:53
<
narodism >
how can I do a recursive define?
19:54
<
narodism >
mine.rkt:74:12: define: not allowed in an expression context
20:00
selimcan has joined #racket
20:08
<
dzoe >
Again - not sure what is the expected behaviour.
20:18
afidegnum has joined #racket
20:19
<
narodism >
(define (ffoo y) ((let ([x 10]) (displayln x))))
20:19
<
narodism >
(ffoo 1)
20:19
<
narodism >
application: not a procedure;
20:19
<
narodism >
I'm trying to define variables inside my functions
20:20
<
narodism >
(define x 10)
20:24
<
afidegnum >
narodism: there is somehting wrong with the parens i believe
20:25
<
narodism >
aha thanks
20:27
sts-q has joined #racket
20:28
mirrorbird has quit [Ping timeout: 272 seconds]
20:29
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:30
narimiran has joined #racket
20:34
jellie has quit [Ping timeout: 260 seconds]
20:40
<
narodism >
how can I call a function in let??
20:40
<
narodism >
application: not a procedure;
20:40
<
narodism >
expected a procedure that can be applied to arguments
20:44
Sgeo_ has joined #racket
20:47
<
dzoe >
narodism: remember, the s-expressions are lists - there is no need to create nested lists.
20:47
Sgeo has quit [Ping timeout: 272 seconds]
20:48
<
dzoe >
(define (foo y) sexpr1 sexpr2 ... sexprN) is how it works.
20:48
<
dzoe >
Judging from your indentation style and the usage of parentheses, it looks like you are coming from non-LISP world.
20:49
<
dzoe >
The opening parenthesis at the end of line 8 (and matching closing one) does not make sense.
20:50
<
dzoe >
Remember, if the list gets evaluated, it is the first element that is applied.
20:50
sts-q has left #racket [#racket]
20:50
<
dzoe >
And you can always think in terms of more basic construct. Like (let ((x 1)) (displayln x)) is the same as ((lambda (x) (displayln x)) 1)
20:51
<
narodism >
yep (let ([x 1]) (displayln x)) works for me
20:51
<
narodism >
but if 1 is an expression then it doesn't work
20:52
<
narodism >
(create_local 110)
20:52
<
narodism >
(define (create_local x) 110)
20:53
<
narodism >
why can't I use that inside let?
20:53
<
narodism >
(let ([local (create_local 110)])
20:54
<
narodism >
omg it was because i was using the name local
20:57
<
narodism >
sorry it was because I'm wrapping the body in () but shouldn't be
20:57
srandon111 has joined #racket
20:59
<
narodism >
i'm getting this slowly :D
21:09
narimiran has quit [Ping timeout: 240 seconds]
21:12
mirrorbird has joined #racket
21:22
selimcan has quit [Ping timeout: 246 seconds]
21:23
selimcan has joined #racket
21:35
TCZ has quit [Quit: Leaving]
21:40
true-grue has quit [Read error: Connection reset by peer]
21:50
srandon111 has quit [Ping timeout: 260 seconds]
21:56
TCZ has joined #racket
22:04
countvajhula has quit [Ping timeout: 244 seconds]
22:07
countvajhula has joined #racket
22:10
aaaaaa has quit [Quit: leaving]
22:28
afidegnum has quit [Read error: No route to host]
22:30
MetaHertz has quit [Remote host closed the connection]
22:44
countvajhula has quit [Remote host closed the connection]
22:45
countvajhula has joined #racket
22:45
orivej has quit [Ping timeout: 264 seconds]
22:50
phillbush has quit [Quit: Leaving]
22:55
Steeve has joined #racket
22:55
Steeve has quit [Quit: end]
22:55
Steeve has joined #racket
22:56
selimcan has quit [Ping timeout: 256 seconds]
23:00
FreeFull has quit []
23:05
Steeve has quit [Quit: end]
23:19
selimcan has joined #racket
23:35
rj_ has joined #racket
23:36
TCZ is now known as simp_ai
23:38
simp_ai is now known as TCZ
23:42
Steeve has joined #racket
23:53
countvajhula has quit [Remote host closed the connection]
23:54
countvajhula has joined #racket
23:54
Steeve has quit [Quit: end]
23:55
Steeve has joined #racket
23:57
countvajhula has quit [Remote host closed the connection]
23:58
countvajhula has joined #racket