!LWeFyHFMHOGSzzpoxN:matrix.org

rash-lang

36 Members
Rash: The Reckless Racket Shell3 Servers

Load older messages


SenderMessageTime
26 Mar 2021
@willghatch:matrix.orgwillghatch No I wasn't familiar with it. I'll make a note of it in my plans to discuss jq in a tutorial. 17:53:48
@willghatch:matrix.orgwillghatch Although we probably need Racket parsers for EDN and Transit to show a good tutorial replacing jet with racket functions. I hadn't heard of the Transit format previously. 17:54:37
@piegames:matrix.orgpiegames joined the room.20:00:28
@piegames:matrix.orgpiegames left the room.20:22:05
27 Mar 2021
@piegames:matrix.orgpiegames joined the room.19:19:32
@piegames:matrix.orgpiegamesHi, can you please add some more examples of typical shell scripts in rash to the documentation? I'm evaluating whether this could become my new main scripting language. However, I know neither Bash nor Racket really well, and I'm having trouble getting started with simple programs.19:21:21
28 Mar 2021
@willghatch:matrix.orgwillghatch I plan on writing a new guide with lots of examples and comparisons soon. By "soon", I mean within the next several months. I'm afraid I'mm too busy with other things to promise much time, though once I wrap up some things for grad school, Rash is my highest priority project. 01:02:43
@piegames:matrix.orgpiegamesI am also collection similar projects for comparison, I already found Guix Shell and Scheme Shell. Do you know some more? I also once found a Scheme or Scala interpreter in pure Bash that was worth a look, but I sadly can't find it anymore.18:06:09
@willghatch:matrix.orgwillghatchThere is a partial list of related shells in the Rash paper (linked in the documentation), IE shells or shell-related libraries embedded in various programming languages. The Oil Shell wiki has a good list of "alternative shells". I would argue that many are miscategorized a bit (including Rash), especially since it's recently been split into multiple pages. The list is here: https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell and here: https://github.com/oilshell/oil/wiki/Alternative-Shells though only some of the alternative shells are really related to Rash.20:01:45
@willghatch:matrix.orgwillghatchIs Guix Shell something other than a way to run a shell in an environment with certain Guix packages, similar to nix-shell?20:02:49
@willghatch:matrix.orgwillghatchAnyway, Rash is unique among shells embedded in general-purpose programming languages largely because it has 1: a syntax designed for convenient interactive use and 2: tight integration with the host language. The one that comes closest is maybe Xonsh, which despite being much more polished for interactive use has much weaker integration of the shell and python parts (eg. you can't recursively nest shell and python code in it).20:05:53
@willghatch:matrix.orgwillghatchAnd Rash is also uniquely extensible, malleable, and seamless to combine with the host language compared to its competitors.20:06:47
@willghatch:matrix.orgwillghatchHowever, Rash also just has me working on it, which at the moment means fairly little because I'm too busy with other things, while some others like Xonsh have become popular enough that there are several people who work on them.20:08:12
@piegames:matrix.orgpiegames
In reply to @willghatch:matrix.org
Is Guix Shell something other than a way to run a shell in an environment with certain Guix packages, similar to nix-shell?

As far as I can tell, it is more than that, but there are many projects that work together and are difficult to tell apart as an outsider. What I have seen from the Guix project so far:

  • A nix-shell equivalent
  • A POSIX-shell implementation in Guix for bootstrapping
  • A Guix implementation of all needed shell functionality to replace shell scripting in many places.
20:08:53
@piegames:matrix.orgpiegames
In reply to @piegames:matrix.org
I am also collection similar projects for comparison, I already found Guix Shell and Scheme Shell. Do you know some more? I also once found a Scheme or Scala interpreter in pure Bash that was worth a look, but I sadly can't find it anymore.
I finally found it again, it's Fleck. But on the way, I've also found babashka and Clojure Shell. Thanks for the links to the Oil wiki, they were really helpful!
20:23:30
@nojyuum:matrix.orgYuumkansaj🤔💭20:40:49
29 Mar 2021
@github:maunium.netGitHub [willghatch/racket-rash] octplane commented on issue #82: Relicensing Rash:

I, Pierre Baillet, give permission to license my contributions to Rash under MIT/Apache 2. I've used the email address pierre@baillet.name.

08:13:19
4 Apr 2021
@ifs:matrix.orgifs joined the room.23:20:20
5 Apr 2021
@pmatos:igalia.compmatos changed their display name from pmatos (holidays - back April 5) to pmatos.07:33:44
12 Apr 2021
@github:maunium.netGitHub [willghatch/racket-rash] singpolyma commented on issue #78: Ctrl-C handling:

Is readline eating ^C before rash can bind it, then? It's very nice that rash uses readline so all my custom inputrc keys "just work" but this papercut bites me as well.

00:31:49
@github:maunium.netGitHub [willghatch/racket-rash] singpolyma opened issue #83: Allow comment with # in repl

This allows eg the readline vi mode move <esc># to effectively save current line to history without running it as it would in bash.

00:37:21
@github:maunium.netGitHub [willghatch/racket-rash] singpolyma opened issue #84: terminal title with current directory

I'm currently doing this:

(define old-prompt (current-prompt-function))
(define (my-prompt #:last-return-value [last-ret #f]
 #:last-return-index [last-ret-n 0])
	(printf "\033]0;~a\007" (path->string (current-directory)))
	(old-prompt)
)

(current-prompt-function my-prompt)
01:34:22
@github:maunium.netGitHub [willghatch/racket-rash] singpolyma opened issue #85: Tab completion does not quote

I know the answer to every filing on the repl is "the line editor needs work", I'm just filing this so it's documented. Maybe I'll even fix it (no promises, though).

When you tab-complete a filename in rash-repl that contains spaces, it does not get wrapped in double quotes and so executing the result is likely to cause a confusing error in most cases.

18:56:05
16 Apr 2021
@rookderby:matrix.orgrookderby joined the room.18:40:17
2 May 2021
@ormaaj:matrix.orgormaaj joined the room.19:13:26
3 May 2021
@github:maunium.netGitHub [willghatch/racket-rash] Gavinok opened issue #86: ls causes issues with history-delete

when I run the ls command in rash I get the following error

history-delete: index out of history range, -7 - 6
 context...:
 /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:126:0: history-delete
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:67:0: add-to-history
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:137:0: do-multiline-chunk
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:168:11
00:34:22
10 May 2021
@ormaaj:matrix.orgormaaj set a profile picture.01:56:57
@github:maunium.netGitHub [willghatch/racket-rash] willghatch commented on issue #86: ls causes issues with history-delete:

Sorry for the delayed reply. Busy...

This looks like, as with so many other issues on the tracker, an issue with the readline library (or rather Racket's FFI wrapper for it). I doubt this is specific to ls. Does this happen with every command you run?

At any rate, the real solution, like most other issues in the tracker, is that I need to write a better line editor. Some day I'll get to that...

On Sun, May 02, 2021 at 05:34:34PM -0700, Gavinok wrote:

when I run the ls command in rash I get the following error

history-delete: index out of history range, -7 - 6
 context...:
 /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:126:0: history-delete
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:67:0: add-to-history
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:137:0: do-multiline-chunk
 /usr/share/racket/pkgs/readline-lib/readline/pread.rkt:168:11

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/willghatch/racket-rash/issues/86

16:56:11
12 May 2021
@xgqt:matrix.orgxgqt changed their profile picture.19:37:38
15 May 2021
@github:maunium.netGitHub [willghatch/racket-rash] xlambein commented on issue #86: ls causes issues with history-delete:

I have the same error. It happens every time I run ls, but it doesn't seem to be an issue with other commands. I've tried out cat, ps & git.

10:22:21

There are no newer messages yet.


Back to Room List