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!
badkins has joined #racket
TCZ has quit [Quit: Leaving]
eli_oat has joined #racket
skapata has joined #racket
edrx has joined #racket
<edrx> hi all! this is a beginner question... someone mentioned this - https://docs.racket-lang.org/sicp-manual/SICP_Picture_Language.html - in another channel that I'm in, and I tried to run the demo that runs in a repl...
<edrx> but (require sicp-pict) gave this error: standard-module-name-resolver: collection not found
<edrx> and then I tried "raco pkg install sicp-pict", and it said "raco pkg install: cannot find package on catalogs"
<edrx> aha
<bremner> package: sicp
<edrx> I was just able to make these instructions work: https://docs.racket-lang.org/sicp-manual/SICP_Picture_Language.html
<edrx> bremner: thanks, that fixes a bug in my notes! "raco pkg install sicp" says "raco pkg install: package is already installed"
<edrx> =)
<edrx> but if I run something like this from a racket repl running in an emacs window
<bremner> start with #lang racket?
<edrx> the "(paint einstein)" says just "(object:image-snip% ...)"
<edrx> trying
<edrx> ; stdin:1:0: read-syntax: `#lang` not enabled [,bt for context]
<bremner> ah. Well, right, I always start by loading some definitions with #lang in them
<edrx> I'm running a "racket" with no command line options
<bremner> oh. So not emacs racket-mode?
<edrx> no, this, that is much more barebones: http://angg.twu.net/eepitch.html
<edrx> let me install racket-mode...
<bremner> hmm. Well, I don't know about graphics then. I know the graphics work in racket-mode (just tested)
<bremner> I just added #lang racket to the top of your file, and hit C-c C-c in a racket-mode buffer
<edrx> how do I get a racket-mode buffer like the one you're using?
<bremner> just open a racket file for me.
<bremner> Or M-x racket-mode, I guess
<edrx> worked!!! fantastic! thanks! =)
<edrx> does racket support multi-line comments?
<edrx> let me see if I can implement support for test blocks on racket...
<bremner> yes, several different ways.
<bremner> #| |# or #;( ) the latter for s-expression comments
badkins has quit [Remote host closed the connection]
<edrx> is there a command that I can issue to the repl to make it load or reload a file foo.rkt in the current directory?
badkins has joined #racket
<bremner> there commands like that in xrepl, not sure how well racket-mode supports that
<edrx> what is the command in xrepl?
<bremner> there is ,load ,require and ,require-reloadable
<edrx> trying!
badkins has quit [Ping timeout: 252 seconds]
<bremner> https://racket-mode.com/#racket_002drepl this suggests racket-mode may not be the best for that kind of thing
<bremner> there is also geiser, it might have more repl support
<edrx> I'm trying to start by the barebones eepitch repl
<bremner> fair enough
<edrx> and I'm trying to understand racket-mode's repl, and make eepitch use it
<edrx> but I need a few basic things before that
<bremner> geiser has functions like geiser-repl-import-module
<edrx> geiser is similar to a slime/sly, right?
<bremner> well, inspired by, but I would say less fancy
<edrx> ok
<edrx> do you know how to make racket-repl display the repl buffer in the current window?
FreeFull has quit []
<bremner> sorry, nope.
<edrx> np
<winny> you might be able to use the dynamic-rerequire feature of racket to achieve the reload without depending on a particular repl's featureset
<winny> it looks like you might be able to use defadvice to modify the racket-repl function's call to display-buffer. Or just override that procedure with your own.
<winny> check the github i feel like this has be have been asked previously
<winny> (if not greg might be interested)
<edrx> let me look at the repo...
even4void has quit [Quit: fBNC - https://bnc4free.com]
jeosol has quit [Ping timeout: 260 seconds]
<edrx> where can I find examples of racket generating drawings in 3D?
<edrx> anyway, I shouldn't be playing with this now... I should be rehearsing my video for the emacsconf 😕
<edrx> thanks! I'll be back soon-ish! =)
edrx has left #racket [Killed buffer]
jeosol has joined #racket
ur5us has quit [Ping timeout: 252 seconds]
xgqt has quit [Ping timeout: 260 seconds]
xgqt has joined #racket
skapata has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 256 seconds]
ev3n2 has joined #racket
ecraven- has joined #racket
runrin_ has joined #racket
runrin has quit [*.net *.split]
szkl has quit [*.net *.split]
kori has quit [*.net *.split]
sunarch has quit [*.net *.split]
ev3n has quit [*.net *.split]
ecraven has quit [*.net *.split]
runrin_ is now known as runrin
ev3n2 is now known as ev3n
jeosol has quit [Quit: Client closed]
jeosol has joined #racket
ecraven- is now known as ecraven
sunarch has joined #racket
szkl has joined #racket
kori has joined #racket
szkl has quit [Ping timeout: 263 seconds]
sunarch has quit [Ping timeout: 263 seconds]
szkl has joined #racket
sunarch has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
tumdum has joined #racket
codingquark has quit [Ping timeout: 265 seconds]
sxn has joined #racket
mason has quit [Ping timeout: 252 seconds]
mason has joined #racket
codingquark has joined #racket
ASau has quit [Read error: Connection reset by peer]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
ASau has joined #racket
skapata has joined #racket
TCZ has joined #racket
ec_ has quit [Remote host closed the connection]
ec_ has joined #racket
codaraxis has joined #racket
ec_ has quit [Remote host closed the connection]
ec_ has joined #racket
irc_user has joined #racket
skapata has quit [Remote host closed the connection]
d3mon has joined #racket
<d3mon> so I have a syntax object I want to evaluate according to some definitions
<d3mon> what's the best way to allow `eval` to see those definitions?
<d3mon> I'm currently getting myself in a muddle trying to figure out namespaces :S
sxn has quit [Ping timeout: 246 seconds]
tumdum has quit [Ping timeout: 252 seconds]
tumdum has joined #racket
<bremner> I guess using macros instead of eval is not the answer you are looking for
TCZ has quit [Quit: Leaving]
codaraxis has quit [Ping timeout: 256 seconds]
jeosol has quit [Quit: Client closed]
badkins has joined #racket
morte_ has joined #racket
codaraxis has joined #racket
<d3mon> bremner: not what I was thinking of but I guess I could do that
<d3mon> using macros looked harder at first
<bremner> d3mon: or just calling syntax-parse on the syntax objects. Depends what your goals are I guess.
ASau has quit [Read error: Connection reset by peer]
sxn has joined #racket
sxn has quit [Ping timeout: 256 seconds]
<d3mon> I have used the `brag` package to parse a source file in a very small 'language'
<d3mon> the `parse` function from that package gave me a syntax object
<d3mon> I'm now trying to evaluate that syntax object
<d3mon> the book Beautiful Racket which I'm sort of working from uses macros but I don't really understand how it's doing it
<d3mon> (plus, that book uses its own dialect of Racket, but I'm trying to use base Racket)
sxn has joined #racket
ASau has joined #racket
<d3mon> based on doing some further reading it looks like I might be better off using `syntax-parse`
<bremner> that's what I have done in the past with output from ragg (predecessor of brag)
irc_user has quit [Quit: Connection closed for inactivity]
skapata has joined #racket
FreeFull has joined #racket
sxn has quit [Remote host closed the connection]
wwalker has quit [Quit: leaving]
wwalker has joined #racket
codaraxis has quit [Ping timeout: 256 seconds]
badkins has quit [Remote host closed the connection]
irc_user has joined #racket
morte_ has quit [Ping timeout: 246 seconds]
morte_ has joined #racket
badkins has joined #racket
tumdum has quit [Ping timeout: 260 seconds]
morte_ has quit [Ping timeout: 256 seconds]
tumdum has joined #racket
badkins has quit [Remote host closed the connection]
morte_ has joined #racket
mason has left #racket [#racket]
ur5us has joined #racket
codaraxis has joined #racket
morte_ has quit [Ping timeout: 260 seconds]
codaraxis has quit [Ping timeout: 260 seconds]
codaraxis has joined #racket
codaraxis has quit [Remote host closed the connection]
jeosol has joined #racket
badkins has joined #racket
badkins has quit [Remote host closed the connection]
TCZ has joined #racket
TCZ has quit [Quit: Leaving]
badkins has joined #racket