samth changed the topic of #racket to: Racket v7.6 has been released: https://blog.racket-lang.org/2020/02/racket-v7-6.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
efm has joined #racket
SGASAU has quit [Ping timeout: 265 seconds]
SGASAU has joined #racket
vraid has quit [Remote host closed the connection]
catonano_ has joined #racket
catonano has quit [Ping timeout: 250 seconds]
catonano_ is now known as catonano
libertyprime has joined #racket
tilpner has quit [Ping timeout: 256 seconds]
k_sze has quit [Quit: ZNC 1.7.5 - https://znc.in]
k_sze has joined #racket
tilpner has joined #racket
iyzsong has joined #racket
YuGiOhJCJ has joined #racket
libertyprime has quit [Read error: Connection reset by peer]
efm has quit [Quit: Konversation terminated!]
libertyprime has joined #racket
pilne has joined #racket
pilne has quit [Quit: Hello, 911? Yeah, it's caught in the window this time.]
ArthurStrong has joined #racket
FreeFull has quit [Quit: rebooting]
FreeFull has joined #racket
dddddd has quit [Ping timeout: 256 seconds]
narimiran has joined #racket
cpup has quit [Quit: Breaking stuff]
cpup has joined #racket
sauvin has joined #racket
catonano has quit [Quit: catonano]
libertyprime has quit [Read error: Connection reset by peer]
nullcone has quit [Quit: Connection closed for inactivity]
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
Fare has joined #racket
libertyprime has joined #racket
Codaraxis_ has quit [Ping timeout: 256 seconds]
libertyprime has quit [Ping timeout: 256 seconds]
FareTower has joined #racket
libertyprime has joined #racket
FareTower has quit [Remote host closed the connection]
catonano has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
Blkt has joined #racket
jellie has joined #racket
jellie has quit [Quit: WeeChat 2.8]
KDr22 has quit [Ping timeout: 250 seconds]
srandon111 has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
<srandon111> guys can somebody explain why here https://www.youtube.com/watch?v=x7f1j163LFU&list=PL6NenTZG6Krr0dFUqFm5IFOehFOmBrJwg&index=2 the professor introduces graphs by using the "shared" keyword? unluckily he does not give too much context... so when should i use it and why? is it necessary to build graphs ? or are there alternative ways ?
parsley936 has joined #racket
KDr22 has joined #racket
vraid has joined #racket
libertyprime has quit [Remote host closed the connection]
dddddd has joined #racket
vraid has quit [Remote host closed the connection]
vraid has joined #racket
Fare has quit [Ping timeout: 258 seconds]
jellie has joined #racket
Intensity has quit [Read error: Connection reset by peer]
Intensity has joined #racket
easyAnalyst has joined #racket
sword865 has joined #racket
vraid has quit [Ping timeout: 256 seconds]
rbarraud has quit [Remote host closed the connection]
vraid has joined #racket
<bremner> srandon111: 'shared' (or some similar thing) is needed if you don't want to use mutation
<bremner> specifically to make cycles
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
ArthurStrong has quit [Quit: leaving]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
jellie has quit [Ping timeout: 256 seconds]
<narimiran> complete beginner here. can i make `cond` to see outside variables? e.g. `cond [(< n 2) sum]`, where `n` and `sum` are arguments of a function where that `cond` is in
<bremner> narimiran: that's the default
<narimiran> oh, the problem was in `else` branch where i redefined `n`
<narimiran> i guess i could use `let` instead of `define` in the `else` branch?
<bremner> define doesn't sound like elisp
<bremner> oh sorry, wrong channel!
<narimiran> :)
<bremner> yes, let sounds reasonable
<bremner> or local if you prefer to keep using define
<srandon111> bremner, what kind of cycles?
<srandon111> i mean in what contexts other than graphs it is used ? bremner
<srandon111> also why not simply getting a list of adjancies for each node??
<narimiran> thanks bremner!
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
<bremner> srandon111: sometimes cyclic data structures are useful. E.g. for implementing recursion in an interpreter.
<bremner> as far as adjacency lists goes, the key point is about binding of names. You can try it with let and letrec and see why they don't work
sword865 has quit [Quit: Connection closed for inactivity]
jellie has joined #racket
keep_learning has quit [Quit: This computer has gone to sleep]
efm has joined #racket
samlamamma has joined #racket
<srandon111> bremner, i can't understand... i mean also why is it called "shared" and what is something similar in other languages?
<srandon111> i mean so that maybe i can understand?
<srandon111> also bremner if a language does not support recursion i think it will likely not support cyclic data structures
<srandon111> bremner, also what do you mean by "as far as adjancency lists goes" ... that they can work withouut shared?
<srandon111> or that they still need "shared" ?
<samth> srandon111: very few other languages have a feature like `shared`
<samlamamma> What is this shared thing?
<samth> rudybot: init racket
<samth> rudybot: require (racket/shared)
<rudybot> samth: your sandbox is ready
<rudybot> samth: you'll also need to require racket/set yourself, as sandboxes are not shared
<samth> rudybot: (require (racket/shared))
<rudybot> samth: error: eval:1:9: racket/shared: not a require sub-form <NEWLINE> in: (racket/shared)
<samth> rudybot: (require racket/shared)
<rudybot> samth: Done.
<samth> rudybot: doc shared
<rudybot> samth: http://docs.racket-lang.org/reference/shared.html#(form._((lib._racket%2Fshared..rkt)._shared))
<samth> samlamamma: ^^
<samlamamma> Cool
nullcone has joined #racket
nullcone has quit [Excess Flood]
jellie has quit [Ping timeout: 256 seconds]
nullcone has joined #racket
nullcone has quit [Max SendQ exceeded]
nullcone has joined #racket
<bremner> srandon111: most languages don't make much effort to avoid recursion
<bremner> sorry, to avoid mutation
<bremner> srandon111: yeah, my example of writing an interpreter is probably too niche.
easyAnalyst has quit [Quit: Leaving]
SGASAU has quit [Ping timeout: 250 seconds]
msiism has joined #racket
jellie has joined #racket
<samth> note that `shared` will use mutation where appropriate. it's really just that most languages don't have a little language feature for making circular data easy to construct
<bremner> yeah. I guess "avoiding mutation" is not really right, more like "controlling mutation"
<msiism> Is there a certain policy concerning backward compatibility in Racket? I've just read https://racket-lang.org/new-name.html, which says Racket tools generally still support older Scheme standards. That's nice. But what about Racket itself?
<samth> msiism: we work very hard to maintain backwards compatibility. programs that previously worked on Racket continue to work, with few exceptions.
<msiism> Ok, that sounds good.
<msiism> samth: Is this codified in some way? Like, some projects introduce no breaking changes within the same major version number. Or they provide x years of long-term support for every major version they put out and such.
<srandon111> bremner, i stilll don't get why i can't create a graph with an adjancency matrix
<srandon111> like a hashmap
<srandon111> every key is a node
<srandon111> and every value is a list of connected nodes
<srandon111> what's wrong with this? bremner
<samth> srandon111: you certainly can, but you need to work out the node->number mapping in your head, or do something like `shared`
<bremner> that ^
<bremner> i.e. your solution has an extra layer of indirection
<samth> msiism: Racket doesn't provide long-term support for old versions, but in general we try very hard to avoid backward-incompatible changes at all.
<msiism> samth: Ok, thanks.
<bremner> srandon111: your method is perfectly fine for most algorithms working explicitely with graphs. But when performance matters, it can be desirable to have the data structure use pointers/references for edges
<jshap> there's no way in racket to wrap a string onto the next line without having a newline in it, right? the equiv of: (string-append \n "I am still" \n "on one line")
<jshap> but without the explicit string-append
<jshap> ... wait can you really just have a backslash?
<jshap> wow that was easy
msiism has quit [Ping timeout: 256 seconds]
msiism has joined #racket
efm has quit [Ping timeout: 264 seconds]
endformationage has joined #racket
efm has joined #racket
isposdef has joined #racket
Fare has joined #racket
edmoore has quit [Ping timeout: 272 seconds]
edmoore has joined #racket
SGASAU has joined #racket
hoek has quit [Ping timeout: 272 seconds]
aidalgol has quit [Ping timeout: 250 seconds]
tazjin has quit [Ping timeout: 272 seconds]
hoek has joined #racket
tazjin has joined #racket
ephemera_ has quit [Quit: No Ping reply in 180 seconds.]
conjunctive has quit [Ping timeout: 265 seconds]
ephemera_ has joined #racket
conjunctive has joined #racket
jellie has quit [Ping timeout: 265 seconds]
jellie has joined #racket
rmnull has joined #racket
msiism has left #racket [#racket]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
Fare has quit [Ping timeout: 260 seconds]
Fare has joined #racket
sauvin has quit [Read error: Connection reset by peer]
izh_ has joined #racket
samlamamma has quit [Ping timeout: 240 seconds]
true-grue has joined #racket
nebunez has joined #racket
acarrico has joined #racket
parsley936 has quit [Remote host closed the connection]
corpix has quit [Quit: corpix]
corpix has joined #racket
efm has quit [Read error: Connection reset by peer]
izh_ has quit [Quit: Leaving]
pilne has joined #racket
narimiran has quit [Ping timeout: 256 seconds]
aidalgol has joined #racket
nebunez has quit [Ping timeout: 256 seconds]
nikita` has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
jellie has quit [Ping timeout: 264 seconds]
efm has joined #racket
efm has quit [Client Quit]
true-grue has quit [Read error: Connection reset by peer]
cpup has quit [Quit: Breaking stuff]
cpup has joined #racket
orivej has quit [Ping timeout: 265 seconds]
cpup has quit [Quit: Breaking stuff]
cpup has joined #racket
nebunez has joined #racket
vraid has quit [Ping timeout: 256 seconds]
keep_learning has joined #racket
newnix has quit [Quit: WeeChat 2.5]