samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
lockywolf has joined #racket
lockywolf has quit [Ping timeout: 248 seconds]
libertyprime has joined #racket
efm has joined #racket
YuGiOhJCJ has joined #racket
vraid has quit [Ping timeout: 264 seconds]
dustyweb has quit [Remote host closed the connection]
dustyweb has joined #racket
lockywolf has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
q9929t has joined #racket
q9929t has quit [Client Quit]
orivej has quit [Ping timeout: 244 seconds]
FreeFull has quit []
orivej has joined #racket
Lowl3v3l has quit [Ping timeout: 245 seconds]
lockywolf has quit [Ping timeout: 245 seconds]
lavaflow_ is now known as lavaflow
sauvin has joined #racket
lockywolf has joined #racket
teardown has joined #racket
Sgeo__ has joined #racket
endformationage has quit [Quit: WeeChat 2.5]
Sgeo_ has quit [Ping timeout: 268 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 244 seconds]
zipper has joined #racket
sauvin has quit [Ping timeout: 248 seconds]
zipper has quit [Ping timeout: 244 seconds]
sauvin has joined #racket
zipper has joined #racket
zipper has quit [Ping timeout: 272 seconds]
pie_ has quit [Ping timeout: 245 seconds]
dddddd has joined #racket
zipper has joined #racket
ng0 has joined #racket
ng0 has quit [Client Quit]
DGASAU has quit [Remote host closed the connection]
DGASAU has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 248 seconds]
evdubs_ has joined #racket
evdubs has quit [Ping timeout: 276 seconds]
vraid has joined #racket
afidegnum has joined #racket
<afidegnum> can anyone please clarify this for me, `#lang racket` vs i.e `#lang racket/gui` are those language having different libraries ?
zipper has quit [Ping timeout: 246 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 244 seconds]
soegaard has joined #racket
zipper has joined #racket
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #racket
lockywolf has quit [Ping timeout: 268 seconds]
zipper has quit [Ping timeout: 245 seconds]
Sgeo__ has joined #racket
ng0 has joined #racket
Sgeo_ has quit [Ping timeout: 272 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 272 seconds]
mSSM has joined #racket
<kd7ixo> afidegnum: i believe racket/gui is `racket` + `racket/gui/base` and `racket/draw`
<kd7ixo> where `racket` is the set listed in the 2nd beige box on https://docs.racket-lang.org/reference/index.html
zipper has joined #racket
<evdubs_> afidegnum, if you're trying to decide which to choose, you may consider `#lang racket` and `(require racket/gui)`
evdubs_ is now known as evdubs
dimitarvp has joined #racket
<afidegnum> ok, thanks,
dimitarvp has quit [Quit: Bye]
davidl has quit [Quit: WeeChat 2.1]
orivej has quit [Ping timeout: 272 seconds]
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
<afidegnum> hello, i m trying to build an HTML builder in a graphical way, so far i have read about the GUI toolkit and the racket/draw but i need more suggestion on how to go about it. I want to draw a rectangle which will generate a div layout containing css property of the size of that rectangle, and also a way to finally preview the output
<afidegnum> i m trying to build an HTML builder in a graphical way, so far i have read about the GUI toolkit and the racket/draw but i need more suggestion on how to go about it. I want to draw a
<afidegnum> sorry for the repetition, my mouse
orivej has joined #racket
pie_ has joined #racket
orivej has quit [Ping timeout: 268 seconds]
iyzsong has joined #racket
<zipper> Sorry how did you guys say I can get a tuple in racket?
<soegaard> vector
<zipper> I'm trying to write functions like dequeue and pop which means I want to return a value and an updated list
<zipper> soegaard: vector?
<soegaard> well, depends on your definition of a tuple :-)
<zipper> A pair of things
<zipper> In this case a value and the updated list
<zipper> if I try this with cons I just prepend the value
<soegaard> (struct tuple (value list)) is one option that gives you accessors tuple-value and tuple-list
<soegaard> (list value updated-list) is also an option - the accessors is first and second
<soegaard> Finally if the issue is that you have a function that returns two values, then you can return two values directly without wrapping them.
<soegaard> (values v l) will return the two values v and l
soegaard has quit [Quit: soegaard]
<zipper> The problem with values is it's hard to use repeatedly
<zipper> I'll use the tuple struct
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 244 seconds]
davidl has joined #racket
ZombieChicken has quit [Quit: WeeChat 2.5]
ubLIX has joined #racket
efm has quit [Read error: Connection reset by peer]
orivej has joined #racket
efm has joined #racket
Sgeo__ has joined #racket
manualcrank has joined #racket
Sgeo_ has quit [Ping timeout: 272 seconds]
Lowl3v3l has joined #racket
iyzsong has quit [Ping timeout: 252 seconds]
Sgeo_ has joined #racket
endformationage has joined #racket
ziyourenxiang_ has quit [Ping timeout: 272 seconds]
Sgeo__ has quit [Ping timeout: 244 seconds]
efm has quit [Quit: Konversation terminated!]
euhmeuh has left #racket [#racket]
zipper has quit [Ping timeout: 272 seconds]
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 245 seconds]
efm has joined #racket
zipper has joined #racket
zipper has quit [Ping timeout: 245 seconds]
ubLIX has quit [Quit: ubLIX]
ubLIX has joined #racket
afidegnum has quit [Ping timeout: 246 seconds]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
soegaard has joined #racket
vraid has quit [Quit: Leaving]
zipper has joined #racket
FreeFull has joined #racket
ubLIX has quit [Quit: ubLIX]
<zipper> What's the difference between macros and hygenic macros?
* ermo muses that the offensive answer must be "cleanliness"
<soegaard> It's easy to shoot your self in the foot if you are using a macro system without hygiene.
<ermo> "Hygienic macros are macros whose expansion is guaranteed not to cause the accidental capture of identifiers." says wikipedia.
<technomancy> is a macro system that disallows non-gensym'd symbols used as identifiers considered "semi-hygenic" or ... how would you describe that?
<soegaard> Yes, in short a system that supports hygienic macros makes it possible to write macros whose bindings are lexical.
<zipper> Okay idk what hygiene is in this context
<soegaard> In other words if a macro insert an identifier, the meaning of the identifer can be infered from the bindings where the macro is defined - not where the macro is used.
<zipper> By lexical bindings you mean the definitions are going to exist in the scope and the enclosed scope
<zipper> hmmm
<zipper> An identifier is what is umm created with define, right?
<technomancy> or let or match or ...
<zipper> Okay cool :)
<soegaard> The first two pages of https://www.cs.indiana.edu/~dyb/pubs/bc-syntax-case.pdf has a nice example.
<zipper> and I have no macros expereince
<zipper> but I've written quite a bit of LISP
<zipper> but hoping I can follow from racket
<soegaard> Haven't watched the videos, but Byrd knows his stuff.
<soegaard> So does his special guests :-)
tfb has quit [Ping timeout: 258 seconds]
tfb has joined #racket
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 244 seconds]
<deeglaze> Yosef: which c++ standard are you compiling with
Sgeo__ has joined #racket
efm has quit [Quit: Konversation terminated!]
Sgeo_ has quit [Ping timeout: 246 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
sauvin has quit [Ping timeout: 272 seconds]
<nisstyre> soegaard: except for this talk https://www.youtube.com/watch?v=bmpu1N2yf-k
<nisstyre> (he had to give it when someone else couldn't make it)
<nisstyre> still a great talk though
<zipper> what is #' or syntax in racket exactly?
<nisstyre> zipper: syntax object I believe
<zipper> nisstyre: heh, what is a syntax object?
<zipper> Something that can be evaluated?
<soegaard> ' means quote and 'datum produces a datum which is prints as datum
<soegaard> #' is syntax-quote and produces a syntax object representing a datum which prints as datum
<soegaard> You can think of a syntax object as a piece of (input) syntax along with information of lexical context and source location information.
<zipper> I was reading fear of macros
<zipper> I guess I'll try the racket guide first
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 258 seconds]
efm has joined #racket
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
zipper has quit [Quit: WeeChat 2.5]
zipper has joined #racket
ubLIX has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
soegaard has quit [Quit: soegaard]
notzmv has quit [Remote host closed the connection]
soegaard has joined #racket
ubLIX has quit [Quit: ubLIX]
Fernando-Basso has joined #racket
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 248 seconds]
Sgeo has joined #racket
Sgeo__ has quit [Ping timeout: 246 seconds]
ziyourenxiang_ has joined #racket
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 244 seconds]
Sgeo has joined #racket
Sgeo_ has quit [Ping timeout: 245 seconds]
mSSM has quit [Ping timeout: 244 seconds]
YuGiOhJCJ has joined #racket
Diagon has joined #racket
Fernando-Basso has quit [Ping timeout: 272 seconds]
Diagon has quit [Quit: Leaving]
soegaard has quit [Quit: soegaard]
Sgeo_ has joined #racket