samth changed the topic of #racket to: Racket v7.8 has been released: https://blog.racket-lang.org/2020/08/racket-v7-8.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
catonano_ has joined #racket
catonano has quit [Ping timeout: 260 seconds]
catonano_ is now known as catonano
selimcan has quit [Remote host closed the connection]
selimcan has joined #racket
catonano has quit [Ping timeout: 240 seconds]
catonano has joined #racket
_whitelogger has joined #racket
aeth_ has joined #racket
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
dddddd has quit [Ping timeout: 240 seconds]
dddddd has joined #racket
TCZ has quit [Quit: Leaving]
mirrorbird has quit [Quit: Leaving]
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
refpga has quit [Remote host closed the connection]
<samth> bremner: i believe the ppa is now updated
<samth> dustyweb: that is super-cool
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
selimcan has quit [Ping timeout: 240 seconds]
dmiles has joined #racket
acarrico has quit [Ping timeout: 272 seconds]
mirrorbird has joined #racket
<dustyweb> thanks samth :)
endformationage has quit [Quit: WeeChat 2.9]
narimiran has joined #racket
zacts has joined #racket
bocaneri has joined #racket
<dzoe> Awesome!
zacts has quit [Client Quit]
zacts has joined #racket
epony has quit [Quit: upgrades]
jellie has joined #racket
catonano has quit [Read error: Connection reset by peer]
catonano_ has joined #racket
mirrorbird has quit [Remote host closed the connection]
mirrorbird has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
<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?
jellie has quit [Ping timeout: 260 seconds]
urbanslug has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #racket
mirrorbird has quit [Quit: Leaving]
epony has joined #racket
mirrorbird has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has joined #racket
lavaflow has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 260 seconds]
countvajhula has quit [Ping timeout: 260 seconds]
lavaflow has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
aaaaaa has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
urbanslug has joined #racket
countvajhula has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: leaving]
countvajhula has joined #racket
notzmv has quit [Ping timeout: 260 seconds]
urbanslug has quit [Read error: Connection reset by peer]
arpunk has quit [Read error: Connection reset by peer]
countvajhula has quit [Ping timeout: 244 seconds]
catonano has joined #racket
catonano_ has quit [Ping timeout: 240 seconds]
zacts has joined #racket
catonano has quit [Read error: Connection reset by peer]
<afidegnum> evdubs: yes,
<afidegnum> but i'm adding more functionalities though
<evdubs> so you've looked at https://docs.racket-lang.org/plot/ ?
<afidegnum> yes, i've look into it, i am also glancing through racket/pict draw and gui.
urbanslug has joined #racket
TCZ has joined #racket
countvajhula has joined #racket
jellie has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
countvajhula has quit [Ping timeout: 260 seconds]
sm2n has quit [Quit: Leaving]
narimiran has quit [Quit: leaving]
sm2n has joined #racket
jellie has quit [Read error: Connection reset by peer]
jellie has joined #racket
<afidegnum> is there a way i can visually identify elements of the GUI package ?
<afidegnum> package/libraryt
<evdubs> as in you want to see what a button% looks like?
<afidegnum> yes, and the interface hierarchy
<afidegnum> yes, i've seen it but it's not that clear and understandable
sputny has joined #racket
catonano has joined #racket
<evdubs> do you have a specific question about a GUI element and its hierarchy?
<afidegnum> it's seems i'm getting overwhelmed, i'm trying to sketch some layouts to to identify my requirements
<evdubs> are you able to get something small and simple to work?
<afidegnum> yes, i ran few tutorials and they worked,
jellie has quit [Ping timeout: 240 seconds]
jellie has joined #racket
countvajhula has joined #racket
<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
<afidegnum> yes, i noticed i needed to import other utilities as well, such as pict and draw
countvajhula has quit [Ping timeout: 240 seconds]
<evdubs> here's a racket gui/plot project i worked on https://github.com/evdubs/chart-simulator - are you looking to do something much more complex than that?
<afidegnum> there is more than plot. i'm still drawing the layouts
<evdubs> ok - i have very little experience outside of gui and plot
narimiran has joined #racket
jellie has quit [Read error: Connection reset by peer]
jellie has joined #racket
jellie has quit [Ping timeout: 260 seconds]
countvajhula has joined #racket
countvajhula has quit [Ping timeout: 272 seconds]
jellie has joined #racket
jellie has quit [Ping timeout: 256 seconds]
jellie has joined #racket
countvajhula has joined #racket
countvajhula has quit [Ping timeout: 260 seconds]
arpunk has joined #racket
selimcan has joined #racket
countvajhula has joined #racket
jellie has quit [Ping timeout: 260 seconds]
jellie has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
jellie has quit [Read error: Connection reset by peer]
jellie has joined #racket
MetaHertz has joined #racket
jellie has quit [Ping timeout: 265 seconds]
nullman has quit [Ping timeout: 240 seconds]
jellie has joined #racket
orivej has joined #racket
acarrico has joined #racket
countvajhula has joined #racket
true-grue has joined #racket
bitmapper has quit [Quit: Connection closed for inactivity]
countvajhula has quit [Ping timeout: 240 seconds]
jellie has quit [Ping timeout: 256 seconds]
urbanslug has joined #racket
nullman has joined #racket
countvajhula has joined #racket
sputny has quit [Quit: sputny]
countvajhula has quit [Ping timeout: 260 seconds]
Sgeo has joined #racket
orivej has quit [Ping timeout: 264 seconds]
bitmapper has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
urbanslug has quit [Ping timeout: 258 seconds]
DGASAU has quit [Read error: Connection reset by peer]
urbanslug has joined #racket
DGASAU has joined #racket
narimiran has quit [Ping timeout: 246 seconds]
countvajhula has joined #racket
urbanslug has quit [Read error: Connection reset by peer]
narimiran has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
jellie has joined #racket
phillbush has joined #racket
countvajhula has joined #racket
jellie has quit [Ping timeout: 260 seconds]
jellie has joined #racket
countvajhula has quit [Ping timeout: 246 seconds]
endobson has joined #racket
TCZ has quit [Quit: Leaving]
countvajhula has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
TCZ has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
jellie has quit [Read error: Connection reset by peer]
jellie has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
jellie has quit [Ping timeout: 256 seconds]
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
jellie has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
jellie has quit [Ping timeout: 264 seconds]
jellie has joined #racket
countvajhula has quit [Ping timeout: 272 seconds]
orivej has joined #racket
afidegnum has quit [Ping timeout: 260 seconds]
FreeFull has joined #racket
TCZ has quit [Quit: Leaving]
countvajhula has joined #racket
countvajhula has quit [Ping timeout: 260 seconds]
jellie has quit [Ping timeout: 264 seconds]
narimiran has quit [Ping timeout: 256 seconds]
Codaraxis__ has joined #racket
Codaraxis_ has quit [Ping timeout: 260 seconds]
wingsorc has joined #racket
countvajhula has joined #racket
jellie has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endformationage has joined #racket
Ven`` has joined #racket
nisstyre has quit [Write error: Connection reset by peer]
nisstyre has joined #racket
bocaneri has quit [Read error: Connection reset by peer]
narodism has joined #racket
<narodism> hello I'm learning lisp
<narodism> enjoying it so far
<narodism> how can I turn an s exp into a list?
<narodism> I tried:
<narodism> (list '(1 2 3))
<narodism> (s-exp-to-list (1 2 3))
<narodism> and want to be able to write (fn (add) ((private x) (private y))) without needing (list (private x) ...)
<dzoe> narodism: What LISP dialect is this supposed to be?
<narodism> racket
<dzoe> Then maybe more explanation of what you are trying to achieve here might be required.
<narodism> I want to generate code using lisp
<narodism> so when I call (add x y) it will output a bunch of code with whatever is x and y
<narodism> almost like assembly instructions
<dzoe> Just generating the code or actually manipulating the code that is to be executed?
<narodism> generating the code, we use lisp to write it
<dzoe> Looking at your private macro, it seems to do the right thing.
<narodism> I mean the line at the bottom with list
<narodism> (fn (add) (list
<narodism> how can I get rid of that?
<narodism> (fn (add) ((private x) (private y)))
<dzoe> Ah, that is super easy one.
<dzoe> (define-syntax-rule (fn name body ...) (for ((line (list body ...))) (displayln line))) ; this should work
<narodism> that doesnt work unfortunately
<narodism> since I need to unpack the list
<narodism> (list (x y z)) when I want (list x y z)
<dzoe> I just tested it with your code and that worked ...
<narodism> but displayln looks super cool
<narodism> (private x private y private z)
<narodism> i get this output
<dzoe> And did you remove that list?
<narodism> what do you mean?
<dzoe> You said you want to get rid of that list, so it should look like (fn (add) (private x) (private y) (private z))
<narodism> I think (list (body)) creates a list with a single element (x y z) when I want a list with 3 elements
<dzoe> That works.
<narodism> now I get an error
<narodism> mine.rkt:17:0: fn: use does not match pattern: (fn name body)
<narodism> in: (fn (add) (private x) (private y) (private z))
<narodism> how can I capture multiple arguments?
<dzoe> And did you used the aforementioned syntax rule? It is NOT (fn name body), it is (fn name body ...)
<dzoe> Note those elipsis ...
<narodism> ok
<narodism> wow amazing
<dzoe> Maybe look at the pattern rules: https://docs.racket-lang.org/reference/stx-patterns.html?q=define-syntax-rule#%28form._%28%28lib._racket%2Fprivate%2Fstxcase-scheme..rkt%29._syntax-case%29%29
<narodism> thanks a lot
<narodism> thanks rudybot
Ven`` has quit [Quit: Textual IRC Client: www.textualapp.com]
Ven`` has joined #racket
Ven`` has quit [Client Quit]
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
Ven`` has joined #racket
TCZ has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
zacts has quit [Quit: leaving]
selimcan has quit [Ping timeout: 256 seconds]
<narodism> (define xx ((define y 10) 110))
<narodism> how can I do a recursive define?
<narodism> mine.rkt:74:12: define: not allowed in an expression context
selimcan has joined #racket
<dzoe> Again - not sure what is the expected behaviour.
afidegnum has joined #racket
<narodism> (define (ffoo y) ((let ([x 10]) (displayln x))))
<narodism> (ffoo 1)
<narodism> application: not a procedure;
<narodism> I'm trying to define variables inside my functions
<narodism> (define x 10)
<afidegnum> narodism: there is somehting wrong with the parens i believe
<narodism> aha thanks
sts-q has joined #racket
mirrorbird has quit [Ping timeout: 272 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
narimiran has joined #racket
jellie has quit [Ping timeout: 260 seconds]
<narodism> how can I call a function in let??
<narodism> application: not a procedure;
<narodism> expected a procedure that can be applied to arguments
Sgeo_ has joined #racket
<dzoe> narodism: remember, the s-expressions are lists - there is no need to create nested lists.
Sgeo has quit [Ping timeout: 272 seconds]
<dzoe> (define (foo y) sexpr1 sexpr2 ... sexprN) is how it works.
<dzoe> Judging from your indentation style and the usage of parentheses, it looks like you are coming from non-LISP world.
<dzoe> The opening parenthesis at the end of line 8 (and matching closing one) does not make sense.
<dzoe> Remember, if the list gets evaluated, it is the first element that is applied.
sts-q has left #racket [#racket]
<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)
<narodism> yep (let ([x 1]) (displayln x)) works for me
<narodism> but if 1 is an expression then it doesn't work
<narodism> (create_local 110)
<narodism> (define (create_local x) 110)
<narodism> why can't I use that inside let?
<narodism> (let ([local (create_local 110)])
<narodism> omg it was because i was using the name local
<narodism> wait no
<narodism> sorry it was because I'm wrapping the body in () but shouldn't be
srandon111 has joined #racket
<narodism> i'm getting this slowly :D
narimiran has quit [Ping timeout: 240 seconds]
mirrorbird has joined #racket
selimcan has quit [Ping timeout: 246 seconds]
selimcan has joined #racket
TCZ has quit [Quit: Leaving]
true-grue has quit [Read error: Connection reset by peer]
srandon111 has quit [Ping timeout: 260 seconds]
TCZ has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
countvajhula has joined #racket
aaaaaa has quit [Quit: leaving]
afidegnum has quit [Read error: No route to host]
MetaHertz has quit [Remote host closed the connection]
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
orivej has quit [Ping timeout: 264 seconds]
phillbush has quit [Quit: Leaving]
Steeve has joined #racket
Steeve has quit [Quit: end]
Steeve has joined #racket
selimcan has quit [Ping timeout: 256 seconds]
FreeFull has quit []
Steeve has quit [Quit: end]
selimcan has joined #racket
rj_ has joined #racket
TCZ is now known as simp_ai
simp_ai is now known as TCZ
Steeve has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket
Steeve has quit [Quit: end]
Steeve has joined #racket
countvajhula has quit [Remote host closed the connection]
countvajhula has joined #racket