#racket

/

      • pierpal has quit
      • longshi has quit
      • styx joined the channel
      • xkapastel joined the channel
      • Sgeo joined the channel
      • sagax has quit
      • rain1 joined the channel
      • pierpal joined the channel
      • pierpal has quit
      • pierpal joined the channel
      • pierpal has quit
      • slemonide joined the channel
      • nckx joined the channel
      • thblt has quit
      • SenasOzys joined the channel
      • SenasOzys__ has quit
      • nckx joined the channel
      • Sgeo_ joined the channel
      • nckx joined the channel
      • slemonide has quit
      • pierpal joined the channel
      • damke joined the channel
      • lexi-lambda
        willghatch[m]: ping
      • damke has quit
      • SenasOzys joined the channel
      • pierpal has quit
      • willghatch[m]
        lexi-lambda: yes?
      • lexi-lambda
        willghatch[m]: if I’m interested in trying rash as my shell, what is the recommended way to actually use it interactively? can I set rash-repl as my login shell?
      • willghatch[m]
        I've never tried to set it as my login shell, but you probably could. I've set it as the shell that comes up when I start a terminal with my default keyboard shortcut.
      • Notably if you make it your login shell it won't source any /etc/profile stuff.
      • But if you start it from a shell that has already done that, you'll get all those environment variables.
      • I haven't gone so far because I just launch my working copy, which is often broken when I'm working on it. So I keep a less interesting but more stable shell as my login shell to be sure that I can always get into something that works. Eventually I'm sure I'll switch, some time in the future when Rash is more stable and I keep a stable copy as well as the working copy.
      • pierpal joined the channel
      • slemonide joined the channel
      • Let me know how it goes, and give me any feedback you have about it.
      • slemonide has quit
      • lexi-lambda
        willghatch[m]: Okay, that makes sense. I tried setting it as my login shell and again as a command to execute when I open a new shell (in iTerm2 on macOS), but it takes a very long time to start up (as in, many seconds). I’m not sure why, since it starts up quickly when I run rash-repl from inside my shell, but I’m not sure if this is really rash-related or something else.
      • pierpal has quit
      • willghatch[m]
        Hmm... the startup time isn't great, but I can't imagine why it would take extra time when opening a new terminal. It takes ~1.4 seconds to start up on my phone, so taking many seconds on a laptop seems strange. I only have such slow startups if I'm running it without compiling first.
      • lexi-lambda
        Somehow I broke it, and I’m not sure what I did. :) Upon evaluating anything, I get “#(struct:exn:fail namespace mismatch: bulk bindings not found in registry for module: #<resolved-module-path:"/private/main.rkt"> #<continuation-mark-set>)”. Maybe raco setup will help…
      • Nope, somehow now everything fails, even if I spawn rash-repl from inside my usual shell. :(
      • willghatch[m]
        Maybe you upgraded the Rash package without updating its dependencies?
      • lexi-lambda
        I just installed it for the first time, so it isn’t that, and I also just tried uninstalling and reinstalling it and all of its dependencies, and I’m still getting the error. Which is odd. Maybe I’ll try Racket 6.12 instead of Racket 7. :)
      • willghatch[m]
        Ah, maybe I'd better install it on Racket 7...
      • apogza joined the channel
      • (I occasionally try it on Racket 7 and have it work, but I don't use 7 from day to day while editing Rash...)
      • lexi-lambda
        It’s probably for the best that I don’t run my default shell on top of a release of Racket that I might sometimes accidentally break, anyway…
      • It still seems to take a long time to start up if I set it as my shell or default command, and interestingly it also takes a long time to start up nested uses of rash-repl spawned that way, so maybe something isn’t in the environment that needs to be for some reason? I’m not sure what that could be.
      • It takes less time to startup if I use the Racket 6.12 version (versus the Racket 7 version), though, so that’s interesting.
      • willghatch[m]
        Does it take a different amount of time to start a nested one for Racket 6.12 or just Racket 7?
      • lexi-lambda
        It takes longer to start up nested uses of rash-repl in Racket 6.12 as well, but that’s only for the case in which the parent process was set as my login shell.
      • Nested uses of rash-repl work fine if the parent process is bash.
      • (Unrelated, but is the #{} syntax for subshells still current? I get “#%hash-braces: undefined; cannot reference an identifier before its definition”.)
      • dustyweb
        lexi-lambda: could probably make two launchers, one for bash and one for rash, to make launching your fallback easy
      • I've been meaning to try rash myself
      • morgan and I considered using it in our workshops but haven't tried doing so yet
      • willghatch[m]
        Oh... for now run `(require rash/demo/setup)`... I have a fear of commitment to putting things in the actual main provides even though I warn that it's unstable.
      • dustyweb
        willghatch[m]: I forget, does rash have drracket integration?
      • manualcrank joined the channel
      • willghatch[m]
        Also, as you use it please opine on what should be provided.
      • lexi-lambda
        dustyweb: I have actually used fish for a number of years, and I like a lot of what it does, but I’ve finally gotten fed up with its nonsensical quoting rules (as with every other shell, apparently…).
      • dustyweb
        lexi-lambda: I'm still using bash here... but bash troubles me greatly
      • every time I do a for loop in bash I hit enter then hide under my desk hoping nothing bad happened
      • so that's probably a good case for me to not continue using bash :P
      • well... one reason I also use bash still
      • is "guix environment"
      • which sets up little shell development environments for me
      • apogza has quit
      • willghatch[m]
        dustyweb: yes and no. You can definitely edit it and run it in drracket, but the highlighting is poor. Also if you use the interactions pane when you have #lang rash at the top it is a rash repl, but if it has an odd number of pipe characters it refuses to accept input. I need to change something about drracket's lexing stuff, but I don't know how and haven't gotten around to learning.
      • dustyweb
        willghatch[m]: gotcha
      • willghatch[m]: the reason I asked is that it might be one less thing to ask students to have to learn/do
      • "install rash, then just select this thing from the drrracket menu to enter some commands"
      • eg if we eventually teach them git, which is in morgan's plan if she were to run this as a semester-long class or something
      • willghatch[m]
        dustyweb: Yes, I definitely intend to improve the drracket integration, but it hasn't been a priority for me yet. And I don't actually use drracket from day to day...
      • dustyweb
        yeah I don't use drracket day to day either
      • I mostly live in emacs...