quangluongtm
2021-9-12 07:50:54

@quangluongtm has joined the channel


joshua
2021-9-12 15:23:14

@joshua has joined the channel


joshua
2021-9-12 15:25:34

Hey Everyone! I was wondering if there was a way to run full swindle on the cli. I can configure drracket to run full swindle and on the cli I can put #lang swindle at the top of my file, but there’s still some things I can’t run on the cli. Is thee something I need to add in addition to this?


mflatt
2021-9-12 15:47:16

Does racket -I swindle do what you want?


joshua
2021-9-12 15:49:55

I appreciate the response mflatt! No, this doesn’t seem to fix it :confused:. I’m not familiar with racket (just started using it) and I can run most swindle files correctly as long as they’re identified by #lang swindle , but I just recently tried to run a file and it will only run if I select full swindle in drracket, it won’t run on the cli


mflatt
2021-9-12 15:51:01

Can you show in more detail what you’re trying and what you hoped would happen?


joshua
2021-9-12 15:51:57

Yea sure, this is for a cs class and all the files are public on the internet so I’m sure it’s fine to upload them here. I am trying to run this file from the command line:


mflatt
2021-9-12 15:53:46

Did you add that #lang swindle line yourself?


joshua
2021-9-12 15:54:08

Yes, I did


mflatt
2021-9-12 15:54:40

Using #lang means “this file is a module”, but the original program was meant to be a sequence of top-level forms. So, don’t add #lang swindle.


mflatt
2021-9-12 15:55:26

If you start Racket with racket -I swindle, then you can use (load "cs230.ps2.scm")


mflatt
2021-9-12 15:55:40

Or you can use racket -I swindle -f cs230.ps2.scm


joshua
2021-9-12 15:58:28

Thank you so much!! I’ve been struggling with this for a solid hour. Now I can do my assignment haha. If I get a good score I’ll make to lyk haha.


jfqueralt
2021-9-12 17:22:51

@jfqueralt has joined the channel


michaelrauh
2021-9-12 20:32:37

I am not familiar with one. I found this repository intriguing, but the only Racket in it is the scribble files: https://github.com/namin/propagators

The closest thing I can think of would be solver-aided programming which is very strongly supported in #lang rosette.

Do you have a use case in mind? I am working through Sussman’s book and am tempted to attempt creation of a propagator library in Racket, but I am not sure what it would support or how long that would take.


rokitna
2021-9-12 22:20:50

The use of syntax parameters makes it easy to write abstractions over anaphoric binding/usage macros that implicitly inherit those anaphoric interactions. Personally, when I write a macro that has anaphoric interactions, I want to be explicit about it, as seen in the examples the paper is correcting for. I think of syntax parameters as a source of abstraction leaks.