[racket-users] terminal emulator

2015-06-03 Thread William G Hatch
Hello racketeers, I'm pretty new to racket, so to get some experience with it I've been writing a terminal emulator. It's coming along nicely (it is one control code away from being able to nicely run vim), and is at https://github.com/willghatch/rackterm for your browsing pleasure. I have

Re: [racket-users] terminal emulator

2015-06-04 Thread William G Hatch
On Thu, Jun 04, 2015 at 07:20:27AM -0600, Matthew Flatt wrote: At Wed, 3 Jun 2015 16:46:09 -0600, William G Hatch wrote: Its main problem currently is that it spends a lot of time drawing. I am using a canvas% and I override its dc%'s on-paint to get the contents and then draw them on screen

Re: [racket-users] help please on git/github pull request

2015-07-03 Thread William G Hatch
On Fri, Jul 03, 2015 at 12:38:26PM -0400, Greg Hendershott wrote: Being git, there are probably a variety of ways to go about this. What I might try (but haven't verified first-hand): One-time setup: - On master, `git pull --ff-only upstream`. - On master, create from master a new branch named

Re: [racket-users] Emacs Lisp as a Racket Language?

2015-07-03 Thread William G Hatch
I would also love to see a new emacs based on Racket. Is rmacs by Tony Garnock-Jones intended to be a small project or is he meaning for it to grow to be a serious contender with emacs, vim, etc? I agree with Greg that the ecosystem and momentum around emacs is its strongest point. I've

Re: [racket-users] help please on git/github pull request

2015-07-03 Thread William G Hatch
On Fri, Jul 03, 2015 at 12:38:26PM -0400, Greg Hendershott wrote: Being git, there are probably a variety of ways to go about this. What I might try (but haven't verified first-hand): One-time setup: - On master, `git pull --ff-only upstream`. - On master, create from master a new branch named

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-23 Thread William G Hatch
On Fri, Oct 23, 2015 at 02:58:30PM -0400, Anthony Carrico wrote: On 10/23/2015 11:30 AM, Greg Hendershott wrote: If you touch type you use both left and right shift keys O_o. ...but only the right shift key in dvorak For greater keyboard layout awareness, here is a more complete assessment

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-16 Thread William G Hatch
On Fri, Oct 16, 2015 at 03:24:06PM +0200, Konrad Hinsen wrote: Matthias Felleisen writes: > > For me the strongest point of Racket is that it encourages linguistic > > diversity while maintaining (nearly enforcing) interoperability. My > > dream language environment would go one step further

Re: [racket-users] Racket Shell

2016-08-21 Thread William G Hatch
I've looked over the scsh docs at various times, though I've never actually used it -- it's never been pre-packaged for distros I've used, and every time I've tried to build it I've run into errors. Perhaps I should try again. As far as the process syntax goes, a little bit of macros over my

[racket-users] Racket Shell

2016-08-20 Thread William G Hatch
Hello everyone, Being obsessed with shells and wanting very badly to have a racket shell, I've spent a good chunk of time over the last couple of weeks working on shell-related stuff for Racket. First is a library for shell pipelines (that may also contain racket functions). The interface is

Re: [racket-users] Racket Shell

2016-08-20 Thread William G Hatch
Is this at all related to Vincent's work? [1] [1]: https://github.com/stamourv/rash I had no idea that existed. (in my defense, I did google "racket shell", "racket rash", etc before starting this) I'll have to look at it as well. -- You received this message because you are subscribed to

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread William G Hatch
On Sun, Sep 25, 2016 at 01:50:51PM -0700, Dupéron Georges wrote: If I understand you well, the intended use of your nested delimiters can be more or less described as syntactic sugar for #reader, with auto-detection of where the string ends: (filter foo? (python-ish-list-comprehend

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread William G Hatch
On Sun, Sep 25, 2016 at 05:10:27AM -0400, Eli Barzilay wrote: To be clear, no offense taken That's good. After I read "Eli bait" my mind took the rest as having an annoyed tone, probably from reading too many online flame wars. It's hard to tell people's emotions in text. I think ultimately

[racket-users] udelim package -- more parens than you can shake a stick at

2016-09-24 Thread William G Hatch
Hello everybody, I'm announcing another little package I've written to get comments on it: udelim. Udelim is a library for adding extra parens and string delimiters to your language. For many years, before ever coming to racket, I've wanted nestable string delimiters. Especially when working

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-26 Thread William G Hatch
On Mon, Sep 26, 2016 at 01:54:35AM -0400, Eli Barzilay wrote: But I'm guessing that I lost you again, so none of this would move you. All I can do at this point is sigh and hope that you'll end up at the best case of re-implementing @-expressions with the slightly more verbose syntax that you

Re: [racket-users] Re: udelim package -- more parens than you can shake a stick at

2016-09-25 Thread William G Hatch
One note about the docs: when you write: (open-input-string "«this is a string with nested «string delimiters.» No \n escape interpreting.»") the "\n" is already escaped by the "…" fed into open-input-string I think, so what udelim parses in that example is a raw newline, not the \

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread William G Hatch
First of all, I really didn't mean any offense. I think the at-reader and my nestable string delimiters are trying to solve slightly different problems, and I didn't really convey that well. I didn't mean for it to be "Eli bait". Let me explain my use case a little, and maybe my earlier mail

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread William G Hatch
On Sat, Sep 24, 2016 at 05:33:18PM -0400, Alex Knauth wrote: The way racket already does this is with a 'paren-shape syntax property, which you can ignore if you want to use 「」 as a normal visually distinctive paren type *without* needing a special macro with a weird name. I hadn't thought

Re: [racket-users] Printing Quickly

2017-08-01 Thread William G Hatch
On Fri, Jul 28, 2017 at 11:55:14PM -0700, Lehi Toskin wrote: On Tuesday, July 25, 2017 at 9:07:14 AM UTC-7, Jens Axel Søgaard wrote: The Interaction Window in DrRacket supports snips, picts etc., so it is reasonable that is slower than a terminal. But ... maybe it is possible to let the user

Re: [racket-users] Boot To Racket

2017-07-08 Thread William G Hatch
I would love to see a Racket unikernel, and be able to essentially run a modern Lisp machine. That seems like a really big project, but I guess I have no real understanding of how big it would be, or what parts you could use off the shelf (eg. from OS-kit. I understand this was done before in

Re: [racket-users] Replacing multiple characters in a string?

2017-07-08 Thread William G Hatch
Or, arguably, not Rackety enough, until it's possible to embed one #lang within another (submodules at least, but hey why not lambdas?) I've been exploring this more and more. It is related to my shell project (rash, which does allow embedding at the expression level), and I've been thinking

Re: [racket-users] Forwarding syntax or srcloc

2017-07-05 Thread William G Hatch
The reason why you are getting the source location from b.rkt is that in `mk-data` you are getting the info from `stx`. In this case, `stx` is the filled-in template you get from `simple-data` in b.rkt. The pattern variables `name` and `x` are filled in with `unlucky` and `262`, which do have

Re: [racket-users] Re: Readers and Namespaces

2017-08-22 Thread William G Hatch
On Thu, Aug 17, 2017 at 10:11:12PM -0700, Alexis King wrote: Generally, my recommendation is to essentially define your language in two passes: a direct translation to s-expressions, followed by a phase of macroexpansion. The first phase is what your reader interacts with. Give the primitives

Re: [racket-users] Readtable extensions and syntax coloring in DrRacket

2017-05-01 Thread William G Hatch
I would also like to know about this. For what it's worth, I also have an extension for literal strings (the udelim package, and I've been behind using «guillemets» as nestable literal string quotes), and I haven't figured out how to extensibly change the coloring either. One of my more

Re: [racket-users] GUI for ffmpeg and mrlib/terminal

2017-08-30 Thread William G Hatch
On Wed, Aug 30, 2017 at 09:57:01AM -0400, David Storrs wrote: Still, I'm also interested in the original question: if I wanted an interactive GUI terminal in Racket, what's the best way to do it? Another thing you can look at is my Rackterm package[1]. It is currently an undocumented mess

Re: [racket-users] Rackterm error

2017-09-06 Thread William G Hatch
On Tue, Sep 05, 2017 at 05:07:41PM -0400, James wrote: I'm trying out Rackterm for the purpose of running commands put together from a GUI but it looks like the thread is crashing as soon as I try to create a terminal canvas. Is it something I am not doing right or is there a bug? I am able

Re: [racket-users] Plumbum for racket

2017-10-24 Thread William G Hatch
I wrote a couple of libraries that address this. As was mentioned, there's Rash, which lets you swap back and forth between normal racket and a more bash-like syntax for running pipelines. There's also the shell-pipeline package, which provides the runtime functions behind rash and lets you run

Re: [racket-users] Re: preferences file

2017-11-02 Thread William G Hatch
Recent discussion thread: https://groups.google.com/forum/#!topic/racket-users/6hn9J-r0Nek Since we're discussing dotfiles and I missed the previous thread, I'm going to shamelessly promote my basedir package[1], which provides functions for conveniently reading/writing config files according

Re: [racket-users] switching to an alternate syntax using a lang extension: binding issues

2017-11-10 Thread William G Hatch
On Thu, Nov 09, 2017 at 11:23:47PM -0800, Vincent Nys wrote: Hi, I have a domain-specific language with a non-parenthesis-based-syntax and running programs written in this DSL sometimes leads to the creation of some fairly large data structures. By "large" I mean that it is still feasible to