Re: the end of the [racket-users] mailing list and the migration to Discourse as a forum for Racket

2021-11-22 Thread Siddhartha Kasivajhula
That first email reads like a cross between a mathematical proof and some kind of satire. Good stuff :) The broad communication needs seem to be: (1) a bulletin board / a channel for announcements (2) a forum / a channel for discussions (3) chat / a realtime channel. (4) a knowledge base (5) a

Re: [racket-users] racket-mode / paredit combine closing parens

2021-11-17 Thread Siddhartha Kasivajhula
Was curious about this feature so I went looking. It might be lispy-tab . On Wed, Nov 17, 2021 at 10:35 AM David Storrs wrote: > In Emacs, I've seen a demonstration where one keystroke can pull all > closing parens together, transforming this (point/cursor

Re: [racket-users] How to discover a struct's interface without Dr Racket?

2021-10-29 Thread Siddhartha Kasivajhula
I was able to find this interface , but it doesn't quite provide the same information. E.g. (struct-type-info struct:foo) The ability to "introspect" values in a shell (or in the

Re: [racket-users] Having trouble getting documentation to generate

2021-10-08 Thread Siddhartha Kasivajhula
Looks like the try-catch package docs still aren't showing up . This might be a broader issue with the package index and docs, since I just renamed one of my packages that already had docs, and the docs now no longer exist on the package index

[racket-users] The Animated Guide to Symex (for Emacs users)

2021-09-26 Thread Siddhartha Kasivajhula
Hi all, I posted this on Reddit but I'm not sure if anyone noticed it there, so I'm reposting it here since I think it could be useful to fellow Emacs / Racket Mode users. This is an animated guide to a Lisp structural editing package for Emacs (that I authored) similar to paredit and lispy, but

Re: [racket-users] [ANN] Introducing "social" contracts

2021-08-25 Thread Siddhartha Kasivajhula
On Mon, Aug 16, 2021 at 4:58 PM Siddhartha Kasivajhula wrote: > Hi David, > Yes, both ->* and ->i are supported. The forms in social-contract expand > to flat or arrow contracts, which, since these work within ->* and ->i > there shouldn't be any issues there. > > The

Re: [racket-users] [ANN] Introducing "social" contracts

2021-08-16 Thread Siddhartha Kasivajhula
can always provide its subforms to C3PO individually, so it can still help with the migration even if we can't quite "set it and forget it." On Mon, Aug 16, 2021 at 1:46 PM David Storrs wrote: > Hi Siddhartha, > > Will this package handle ->* and ->i, either now or in the f

[racket-users] [ANN] Introducing "social" contracts

2021-08-14 Thread Siddhartha Kasivajhula
Fellow Scheming Racketeers, When you've written a function that takes an integer and returns another one, you may write a contract for it as (-> integer? integer?). I want to tell you about the social-contract package which allows you to

Re: [racket-users] Re: A language for command line interfaces

2021-07-25 Thread Siddhartha Kasivajhula
Good call, I'll add a note to the effect. Btw in case it wasn't clear from my response, using #lang cli shouldn't affect the existing workflows that you mentioned, although, you would probably want to define the command line component of your code as a separate #lang cli module, rather than in a

Re: [racket-users] Re: A language for command line interfaces

2021-07-25 Thread Siddhartha Kasivajhula
Right, thank you for bringing that up. I should have mentioned that the #lang provides all of racket/base at the module level, so you can write normal Racket code (including `require`), and any imports at the module level would be available within the `program` body since it compiles down to a

Re: [racket-users] A language for command line interfaces

2021-07-24 Thread Siddhartha Kasivajhula
essage ---- > On Jul 24, 2021, 1:14 PM, Siddhartha Kasivajhula < skasi...@gmail.com> > wrote: > > > Hello folks, > If you ever have a need to write a command line script in Racket, you may > be interested in the package I've just put up. Normally you'd write such > scri

[racket-users] A language for command line interfaces

2021-07-24 Thread Siddhartha Kasivajhula
Hello folks, If you ever have a need to write a command line script in Racket, you may be interested in the package I've just put up. Normally you'd write such scripts using Racket's built-in command-line

Re: [racket-users] Re: [ANN] megaparsack 1.4 — support for user-defined parser state

2021-07-05 Thread Siddhartha Kasivajhula
The lookahead feature you've added is precisely what I was missing when I tried megaparsack, although I was able to work around the need for it with some

Re: [racket-users] An Apology

2021-06-21 Thread Siddhartha Kasivajhula
I just want to add my words on behalf of the silent majority. I think it is important to look for ways to empower people like Matthew Butterick who have contributed significantly to the community and done much to raise the profile of the Racket language. While his code contributions are evident,

Re: [racket-users] Package install conflicts on the Racket package catalog

2021-05-05 Thread Siddhartha Kasivajhula
Siddhartha Kasivajhula wrote: > Thank you, that helped me understand the issue. I've made the appropriate > changes so hopefully that'll do it. > > This is reminding me that in python package distribution land, you are > able to explicitly indicate which files make it into the pa

Re: [racket-users] Package install conflicts on the Racket package catalog

2021-05-05 Thread Siddhartha Kasivajhula
vate" > or "my-collection/tests/private" as the name. > > Robby > > > On Wed, May 5, 2021 at 4:38 PM Siddhartha Kasivajhula > wrote: > >> That makes sense. Is there a recommended way to exclude test paths from >> being part of the package modules? I

Re: [racket-users] Package install conflicts on the Racket package catalog

2021-05-05 Thread Siddhartha Kasivajhula
gt; define names which would be similar to what mischief defines. > > > > That's puzzling. > > > > - > > Sergiu > > > > On Wednesday, May 5, 2021 at 9:16:14 PM UTC+2 Siddhartha Kasivajhula > wrote: > >> > >> Hi, > >> I'd l

Re: [racket-users] Package install conflicts on the Racket package catalog

2021-05-05 Thread Siddhartha Kasivajhula
Hi, I'd like to report that I'm seeing conflicts being reported on my packages as well. I haven't made recent changes to these packages so the conflicts seem to have appeared spontaneously. Here is one example: https://pkgs.racket-lang.org/package/lazytree Clicking into the "conflicts" results in

Re: [racket-users] Moving a Rust/Haskell abstract algebra library to Racket?

2021-01-20 Thread Siddhartha Kasivajhula
Depending on what you're trying to accomplish, you may find the relation/composition module (which I authored) to be of interest. It doesn't model algebraic structures explicitly but uses them to generalize common composition

[racket-users] "Beyond Vim and Emacs"

2020-12-03 Thread Siddhartha Kasivajhula
Fellow Racketeers, If you're a Vim or Emacs user, or generally interested in user interfaces, you may enjoy my presentation from EmacsConf a few days ago: https://emacsconf.org/2020/talks/07/ Racket and racket-mode make a cameo appearance somewhere midway through. Enjoy, -Sid -- You received

Re: [racket-users] How to change package name on the package index?

2020-06-05 Thread Siddhartha Kasivajhula
package. I think. We could probably change > that? > > But here's a trick: try renaming FOO to FOO-x, and then to foo. That might > work. > > > On Friday, June 5, 2020 at 5:59:03 AM UTC+2, Siddhartha Kasivajhula wrote: >> >> ...@Alexis King , let's say I ad

Re: [racket-users] How to change package name on the package index?

2020-06-04 Thread Siddhartha Kasivajhula
. At that point, how would the documentation server handle the fact that two packages provide identical top-level collections? Would that be OK? Not sure if it matters that this is a top-level collection name. On Thu, Jun 4, 2020 at 8:32 PM Siddhartha Kasivajhula wrote: > OK, that's a good idea

Re: [racket-users] How to change package name on the package index?

2020-06-04 Thread Siddhartha Kasivajhula
/481> following discussions including this one <https://github.com/rubygems/rubygems.org/issues/378>. On Thu, Jun 4, 2020 at 7:41 PM Alexis King wrote: > On Jun 4, 2020, at 21:23, Siddhartha Kasivajhula > wrote: > > I'd prefer to avoid that since (1) it would lose the packag

[racket-users] How to change package name on the package index?

2020-06-04 Thread Siddhartha Kasivajhula
A little while ago I uploaded a package to the package index and entered a Titlecase name for it. I've since learned that this becomes the identifier for the package that will be used by raco from that point on (as opposed to being used only on the package description page, as I assumed then). I'd

[racket-users] Generators vs streams (incl. new library)

2020-04-28 Thread Siddhartha Kasivajhula
Hi folks, Here is a by-no-means definitive, and yet hopefully useful library for working with generators: https://docs.racket-lang.org/generator-util/index.html In writing this library, I thought about the cases in which one might use a generator vs a stream in practice. Since Racket provides

[racket-users] Lightweight, lazy trees (new package)

2020-04-21 Thread Siddhartha Kasivajhula
Hi folks, Here is a new package providing lightweight, general purpose utilities for working with tree-structured data: https://docs.racket-lang.org/lazytree/ It allows you to take any data exhibiting tree structure and lazily construct a stream representation of it using functions that

Re: [racket-users] how to adapt BC code for Racket CS?

2020-04-17 Thread Siddhartha Kasivajhula
I've been regularly running "smoke" benchmarks for the relation library, and just updated from Racket 7.5 (BC) to Racket CS 7.6. In case the data is useful to anybody, here are the before/after times. These benchmarks exercise

Re: [racket-users] Re: Organizing tests in project

2020-04-15 Thread Siddhartha Kasivajhula
installer and the current catalog, all > packages were re-built and re-tested. > > At Wed, 15 Apr 2020 12:14:31 -0700, Siddhartha Kasivajhula wrote: > > This morning I find that the package referenced above no longer > > <https://pkgs.racket-lang.org/package/Relation> indic

[racket-users] Re: Organizing tests in project

2020-04-15 Thread Siddhartha Kasivajhula
s long) interval. Does anyone know if this is normal? This section <https://docs.racket-lang.org/pkg/getting-started.html#%28part._register-at-catalog%29> of the docs appears to suggest that the docs are built daily. On Fri, Apr 10, 2020 at 11:07 AM Siddhartha Kasivajhula wrote: > Hi, I

[racket-users] Re: Organizing tests in project

2020-04-10 Thread Siddhartha Kasivajhula
t the server builds packages nightly -- any idea why it hasn't rebuilt yet? Or if it has, is there a way to get updated error output? On Mon, Apr 6, 2020 at 3:27 PM Siddhartha Kasivajhula wrote: > FTR I fixed this by using the `compile-omit-paths` flag: > https://docs.racket-lang.org/ra

[racket-users] Re: Organizing tests in project

2020-04-06 Thread Siddhartha Kasivajhula
FTR I fixed this by using the `compile-omit-paths` flag: https://docs.racket-lang.org/raco/setup-info.html E.g. in info.rkt: (define compile-omit-paths '("tests")) On Tue, Mar 17, 2020 at 12:25 PM Siddhartha Kasivajhula wrote: > Hi, > I'm attempting to organize tes

Re: [racket-users] Re: Best way to handle different versions of Racket?

2020-04-04 Thread Siddhartha Kasivajhula
These sound like three different, alternative ways to do it! Nice to know there are options which presumably each have their merits. @Greg I'm using your Makefile template already :) On Fri, Apr 3, 2020 at 6:54 AM Greg

Re: [racket-users] Best way to handle different versions of Racket?

2020-03-30 Thread Siddhartha Kasivajhula
else, or > define your add1 with another name. The first approach would be something > like: > > (require (only-in racket [add1 @add1])) > (define add1 (compose @add1 @add1)) > > and the second approach would be something like: > > (define @add1 (compose add1 add1)) &

Re: [racket-users] Best way to handle different versions of Racket?

2020-03-30 Thread Siddhartha Kasivajhula
append-immutable). You might want to do something like this >> instead: >> >> (define @string-append-immutable ... now you can use string-append-immutable >> here ...) >> (provide (rename-out [@string-append-immutable string-append-immutable])) >> >> >&g

[racket-users] Best way to handle different versions of Racket?

2020-03-30 Thread Siddhartha Kasivajhula
Hi there, Is there a standard/recommended way to handle multiple versions of Racket in library code? For instance, this handy utility was added in a recent version of Racket:

[racket-users] Organizing tests in project

2020-03-17 Thread Siddhartha Kasivajhula
Hi, I'm attempting to organize tests in my package into subfolders/modules instead of having them in a giant main.rkt test submodule, but am running into some issues and was hoping for some advice on the best way to do it. I think the primary issue is related to source compilation order in raco,

[racket-users] New generic relations package

2019-12-06 Thread Siddhartha Kasivajhula
Hi folks, Hope everyone's having a relaxing start to the holiday season. I've written a package dealing with generic relations and types, just announcing it here in case anyone finds it useful. https://docs.racket-lang.org/relation/index.html The package provides generic versions of order

Re: [racket-users] Re: Reason why char=? accepts only one argument?

2019-11-26 Thread Siddhartha Kasivajhula
s of the original set wherein every element is "not equal" to every other, so that could be why they seem similar in some way. Can't comment on the decision to exclude /= since I'm not a member of the development team :) On Mon, Nov 25, 2019 at 8:15 AM George Neuner wrote: > On M

Re: [racket-users] Reason why char=? accepts only one argument?

2019-11-25 Thread Siddhartha Kasivajhula
Another way to think of it could be to interpret the operator as asking, "do the arguments supplied form an equivalence class ?" If only one argument is supplied, then it trivially forms such a class. On Sun, Nov 24, 2019 at 10:27 PM George Neuner

Re: [racket-users] Symex: a DSL for symbolic expressions

2019-08-01 Thread Siddhartha Kasivajhula
> > > generalization of modal user interfaces that has a "language-oriented > > programming" flavor. > Applying traditionally-sexp structural-based editing to non-sexp > languages seems relevant to non-sexp Racket2 syntax (e.g., Honu), and > other non-sexp languages. The generalization I'm

[racket-users] Symex: a DSL for symbolic expressions

2019-07-29 Thread Siddhartha Kasivajhula
Hi folks, I've been lurking in these here forums for a little while now. Over the years I've looked for the perfect language to implement toy projects in and nothing seemed quite right. It wasn't until I found Racket a few months ago that I felt I'd finally come home. Racket seems like an

Re: [racket-users] Haskell

2019-05-16 Thread Siddhartha Kasivajhula
This may be of interest: https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours Though, as others have said, this sounds like a more typical usecase for racket. On Tue, May 14, 2019 at 8:23 AM Josh Rubin wrote: > It just occurred to me that Haskell could be a powerful way to

[racket-users] Unexpected behavior with (in-set)?

2019-05-04 Thread Siddhartha Kasivajhula
Hi there, I was surprised by this behavior, but it's entirely possible there's a good reason for it. Bringing it up to understand what that might be. In using (in-set) or (in-mutable-set) in a for loop, it seems that if the loop is removing and adding elements to the set it is iterating over, the