sorawee
2020-4-15 10:15:48

Ah, the answer is that they have different error-print-width


samth
2020-4-15 14:06:17

You can’t do that with plain structs. You might be interested in classes with mixins and/or traits, as well as the swindle language.


wanpeebaw
2020-4-15 16:43:16

I found one minor bug. If you keep DrRacket open on MacOS, when the system theme change from Light Mode to Dark Mode or vise-versa, the text color will be wrong.


samth
2020-4-15 16:44:41

wanpeebaw
2020-4-15 16:46:43

:ok_hand:


sorawee
2020-4-15 16:51:54

So, I reported this before


samth
2020-4-15 16:53:25

@greg racket-open-require-path or whatever it’s called doesn’t work if the file that’s open is in a directory that no longer exists


sorawee
2020-4-15 16:57:57

The issue seems to be that you need to restart DrRacket fully for it to work


sorawee
2020-4-15 16:58:12

Otherwise, it won’t, and it seems to be a “won’t fix” bug


wanpeebaw
2020-4-15 17:14:35

Just add a comment on the issue. Don’t know if it would affect the “won’t fix” state. https://github.com/racket/drracket/issues/235#issuecomment-614165347


greg
2020-4-15 17:27:25

“the file that’s open” = which exactly? Do you mean you’re in a buffer visiting /path/to/foo.rkt, but move foo.rkt and rmdir /path/to, then use M-x racket-open-require-path? OR, are you talking about one of the files that the command finds?


samth
2020-4-15 17:27:44

the former


greg
2020-4-15 17:30:42

OK I’ll take a look, including seeing if this is problem with Dr Racket (if drracket find-module-path-completions can return relative pathnames, so, current-directory is presumed, this might need to be something where it errors sooner with a better message. as opposed to being fixed per se. But I’ll take a look.)


wlbberman
2020-4-15 18:28:03

If memory serves, I had read somewhere that swindle should be avoided for some reason or another, but I’ll take a look.


samth
2020-4-15 18:29:13

Swindle is very old and I wouldn’t use it for new code, but then again I never wanted to use it in the first place ;)


wlbberman
2020-4-15 18:32:23

Ha!


deactivateduser60718
2020-4-15 22:38:13

Style question: exn->string is documented as accepting (or/c exn? any/c). Is there a reason why it can’t just be any/c?


jestarray
2020-4-15 23:54:49

is chez scheme ready for prime time this release ?


jestarray
2020-4-16 00:12:56

does anyone here use pollen? so i have an index.ptree that keeps track of all the pages in a list, and i want to pull that into another file. I’m unsure how to do so though….


mflatt
2020-4-16 00:40:29

Racket CS is ready for many purposes, but it still will not be the default in v7.7. Some DrRacket CS users are reporting leaks, and I think the GC probably needs to work better for large heaps (like DrRacket’s even when it doesn’t leak).


jestarray
2020-4-16 01:32:49

so i have a nested list (list (list 1 2 3) (list 4 5 6) ) and i want to spread them out, but flatten removes all dimensions. I want the end result to be unwrapped (list 1 2 3) (list 4 5 6) without manually taking the car and (car (cdr))


samth
2020-4-16 01:57:21

It could be, that would be equivalent. I think the docs are just being suggestive of how the behavior is different in those two cases.


sorawee
2020-4-16 02:12:04

For this particular case, there’s first and second.

> (first (list (list 1 2 3) (list 4 5 6))) '(1 2 3) > (second (list (list 1 2 3) (list 4 5 6))) '(4 5 6) You can also use match to extract the values inside if there will be only two elements:

> (match-define (list a b) (list (list 1 2 3) (list 4 5 6))) > a '(1 2 3) > b '(4 5 6) In general (for more than 2 items), there’s list-ref:

> (list-ref (list (list 1 2 3) (list 4 5 6)) 0) '(1 2 3) > (list-ref (list (list 1 2 3) (list 4 5 6)) 1) '(4 5 6)


sorawee
2020-4-16 02:13:38

I think you got an answer from the mailing list already re: Pollen?


deactivateduser60718
2020-4-16 06:38:50

I don’t know what it is about syntax objects that I’m just not getting, so please bear with me. Here’s a boiled down reader submodule that just dumps into an anonymous racket/base submodule under a couple of requires. When I use this module as a #lang, my implicit forms are still missing (#%app, etc).

#lang racket/base (module reader racket/base (provide (rename-out [read+ read] [read-syntax+ read-syntax])) (require racket/port racket/function (for-syntax racket/base)) (define (read+ in) (syntax->datum (read-syntax+ #f in))) (define (read-syntax+ src in) (with-syntax ([(code ...) (map namespace-syntax-introduce (port->list (curry read-syntax src) in))]) #'(module anonymous racket/base (require unlike-assets/resolver racket/runtime-path) code ...)))) So I threw in that (map namespace-syntax-introduce ...). That didn’t work. Then I composed it with strip-context. Then I put in a (for-syntax racket/base) under the anonymous submodule.

Part of me suspects that with-syntax is coercing the plain list in a way that is working against me, but I hit my pain threshold. What am I missing?