tonyg changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://gather.town/app/wH1EDG3McffLjrs0/racket-users -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with (Dr)Racket. Remember to wait around for an answer!
justsomeguy has joined #racket
justsomeguy has quit [Quit: WeeChat 3.6]
notzmv has quit [Ping timeout: 252 seconds]
thegeekinside has quit [Ping timeout: 246 seconds]
thegeekinside has joined #racket
jeosol has joined #racket
monkey_ has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
thegeekinside has quit [Ping timeout: 248 seconds]
thegeekinside has joined #racket
libertyprime has quit [Ping timeout: 248 seconds]
badkins has quit [Remote host closed the connection]
monkey_ has quit [Ping timeout: 252 seconds]
notzmv has joined #racket
libertyprime has joined #racket
thegeekinside has quit [Ping timeout: 260 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 252 seconds]
skapata has quit [Remote host closed the connection]
vancz has quit [*.net *.split]
runrin has quit [*.net *.split]
Ekho has quit [*.net *.split]
mzan has quit [*.net *.split]
gnomon has quit [*.net *.split]
Lulu has quit [*.net *.split]
Lulu has joined #racket
vancz has joined #racket
mzan has joined #racket
gnomon has joined #racket
runrin has joined #racket
Ekho has joined #racket
ur5us has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 248 seconds]
szkl has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 252 seconds]
ttree has quit [Ping timeout: 260 seconds]
libertyprime has quit [Quit: leaving]
jao has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
TCZ has joined #racket
msiism has joined #racket
szkl has joined #racket
<msiism> Up until now, I used to have a "GLOBAL CONSTANTS" section at the top of my Racket programs that was divided into two subsections: "Literal" and "Computed".
<msiism> Now, I've learned that none of this makes good sense.
<msiism> But then, not all of the global parameters I define at the beginning of a program are "of the same type" (in my mental model).
<msiism> Some of them are not meant to ever be chnaged during execution, while others are.
<msiism> Now I'm looking for the right term to make that clear in the comments. Maybe there are some well-established terms already.
<msiism> Here's an example of what I used to do: https://git.sr.ht/~msi/rpack/tree/current/item/rpack.rkt#L34
<msiism> I'd go with "GLOBAL PARAMETERS" for the top-level comment (heading). Not sure what to call the sub-sections, though.
<winny> msiism: This might be of interest to you https://docs.racket-lang.org/guide/parameterize.html
<tonyg> Mind candy, for those of you with an afternoon to spare for thinking about real numbers and their representation in computers: https://posithub.org/docs/Posits4.pdf
<msiism> winny: I've looked at this a bit already. But I'm still not sure about the actual benefit over setting things up with `define`.
<msiism> I mean, as far as I've read, using a Racket parameter does not guard against a value being reset.
<msiism> Err.. I mean a variable being reset.
<winny> I'm not sure about the tradeoffs. The parameterize technique seems to make it easier to write tests (because the environment is scoped to the tests [using continuations]). I'm not quite sure if it's possible to use a binding (using "bare" `define`) across racket module boundaries (between files for example)
<winny> s/to use/to update/
<winny> It's certainly a pretty unique idiomatic technique to racket.... Envisioning there should be an article comparing and contrasting various techniques to track global configuration
<msiism> As far as I've seen, you can't `set!` a parameter initialized with `define` that comes from a module (which is good, IMHO).
<msiism> Just re-checked HTDP and it introduces `define` as a way to define "global constants".
<msiism> But that's in BSL.
<msiism> I mean, my idea of a constant is that a name is assigned to a value (or vice versa) and that that assignment cannot be altered after the initial definition.
proportions has joined #racket
TCZ has quit [Ping timeout: 252 seconds]
<msiism> Well, the constant is actually the value itself.
jeosol has quit [Quit: Client closed]
morte_ has joined #racket
xgqt has quit [Remote host closed the connection]
xgqt has joined #racket
msiism has left #racket [Konversation vaporized.]
proportions has quit [Quit: Leaving]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
badkins has joined #racket
wwalker has quit [Quit: leaving]
wwalker has joined #racket
jeosol has joined #racket
jeosol has quit [Quit: Client closed]
codingquark has quit [Ping timeout: 260 seconds]
ec_ has quit [Remote host closed the connection]
ec_ has joined #racket
morte_ has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
codingquark has joined #racket
skapata has joined #racket
morte_ has joined #racket
<samth> tonyg: note this critique: https://hal.inria.fr/hal-01959581v2 my sense is that posits are potentially interesting in some places but not really a big change
<tonyg> samth: thanks for that link! very interesting
ec_ has quit [Remote host closed the connection]
ec_ has joined #racket
szkl has quit [Quit: Connection closed for inactivity]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
ttree has joined #racket
badkins has joined #racket
jeosol has joined #racket
morte_ has quit [Ping timeout: 268 seconds]
morte_ has joined #racket
jeosol has quit [Quit: Client closed]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 255 seconds]
ur5us has joined #racket
ec_ has quit [Ping timeout: 255 seconds]
ec_ has joined #racket
jeosol has joined #racket
morte_ has quit [Remote host closed the connection]
ec_ has quit [Ping timeout: 255 seconds]
ec_ has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
jeosol has quit [Quit: Client closed]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
ec_ has quit [Remote host closed the connection]
badkins has joined #racket
ec_ has joined #racket
disruptek has quit [Read error: Software caused connection abort]
disruptek has joined #racket
badkins has quit [Remote host closed the connection]
monkey_ has joined #racket
monkey_ has quit [Remote host closed the connection]
badkins has joined #racket