rokitna
2020-11-10 09:19:57

If there’s a way to do this that plays nicely with compilation, I bet it would involve syntax-local-lift-expression so that the counter initialization code can execute once at module initialization time.


laurent.orseau
2020-11-10 12:36:59

Is there a particular reason ~r raises an exception when given +inf.0?


laurent.orseau
2020-11-10 12:37:33

(I always have to write a wrapper or deal with special cases inline)


greg
2020-11-10 14:35:36

@phanthero It’s not really set up for that. If you change racket-program to an ssh link, can emacs make-process run that remote and pipe input/output? I don’t know.


greg
2020-11-10 14:37:25

Oh, also, the Racket back end will be trying to open various files, and if it’s getting tramp ssh links it won’t know what to do with them.


greg
2020-11-10 14:39:52

There are a couple customization vars, racket-path-from-emacs-to-racket-function, and vice versa. I’d added them to support a scenario of using Windows Racket.exe from a WSL linux Emacs. But they might help here.


greg
2020-11-10 14:41:31

Like, maybe you could define a function that strips the tramp ssh prefix.


greg
2020-11-10 14:42:35

I guess the TL;DR is that currently this is an “off-label use” of Racket Mode. Maybe you could get it to work but I’m not sure.


greg
2020-11-10 14:43:44

If you want to open a feature request issue on GitHub, I’d be glad to look at it in a month or two when I might have more bandwidth. Or if you figure out it works with XY change to Racket mode, I’d be happy to look at a pull request.


capfredf
2020-11-10 15:09:02

Do we have a github repo that collects #lang/slideshow presentations?


spdegabrielle
2020-11-10 15:17:49

@capfredf A repo is a great idea! I’ve collected some resources at the wiki https://github.com/racket/racket/wiki/Slideshow - but a repo would be much better. Suggestion: 1. create an organisation in github e.g. racketslideshow 2. fork public slideshow repos to it. (start with the ones on the wiki page) 3. Add any contributors as admins to the organisation. 4. give it a nice logo (optional - maybe use the slideshow logo) let me know if you need any help.


phanthero
2020-11-10 16:08:08

Okay, thank you so much for the great extension and advice.


greg
2020-11-10 16:12:59

Have any Racket on Windows users seen a problem running Racket.exe or Raco.exe when the current directory is quite long (but AFAICT still within the Windows max path len)?


greg
2020-11-10 16:13:19

greg
2020-11-10 16:15:11

samth
2020-11-10 16:31:46

I feel like there were some changes that might be relevant recently, so testing a new version might be worthwhile


gknauth
2020-11-10 16:55:38

I’m happy to test. My work laptop is Win10. I run Emacs 28 and Racket 7.9 BC.


gknauth
2020-11-10 16:59:35

Win ha ha of the day, it made the first directory, but complained about having to display it. mkdir xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Exception setting "WindowSize": "Window cannot be wider than 170. Parameter name: value.Width Actual value was 200." At line:1 char:281 + ... { $rawui.BufferSize = $bufsize; $rawui.WindowSize = $winsize; } else ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException + FullyQualifiedErrorId : ExceptionWhenSetting Directory: C:\Users\knauthg Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 11/10/2020 11:58 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


gknauth
2020-11-10 17:01:42

oh, it never actually made the first directory cd xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ 11/10/2020 12:00:46 KNAUTHG-SB ~\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS> pwd Path ---- C:\Users\knauthg\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


laurent.orseau
2020-11-10 17:17:41

That’s a good lead, thanks @rokitna


gknauth
2020-11-10 17:25:43

Didn’t get any output at all. Left comment on github.


greg
2020-11-10 17:53:19

Thanks @gknauth. I’m juggling a couple of laptops today and already a few git branches for Racket Mode, so, although I can/will get around to updating Racket.exe on that laptop, it was really nice of you to try that and report back.


gknauth
2020-11-10 17:54:54

No problem. Continuing conversation (for now) on github thread. I’m “accu-knauthg” there because I’m a different person when I’m at work (but not really :slightly_smiling_face: ).


capfredf
2020-11-10 21:17:07

#lang racket (define a 10) (match 'hi [(? a) 1] [(? number?) 2]) Currently, match doesn’t report which clause or which clause’s LHS is problematic. @mflatt is it possible to improve match so we can get more specific error messages?


mflatt
2020-11-10 21:21:19

Since even errortrace doesn’t give more specific information than the match form, probably the match macro needs to provide more source locations in its generated code.


mflatt
2020-11-10 22:05:15

I’ve pushed a repair; it was a really dumb buffer-allocation mistake.

As penance, I updated Racket CS to handle the Windows 259-character limit on traditional-form paths by converting to \\?\ form, like BC does. And I discovered a wonderful new twist, which is that a path used as a directory is limited to 247 characters, not 259.



phanthero
2020-11-10 23:25:47

Ok, so this is made by some japanese people for <http://vim-jp.org\|vim-jp.org>, which also has a slack: https://github.com/vim-jp/slacklog-generator


phanthero
2020-11-10 23:26:04

This allows even free tier slack to be generated and stored to HTML Thought it might be useful for a community like this. There have been some similar things made by the English speaking community but I’m not sure if they work


phanthero
2020-11-11 00:04:13

Yep, it seems all the archives for every month of each channel is located at this site: https://vim-jp.org/slacklog/

I was wondering if someone here more experienced with Go, Make, Python etc could create something similar for us :slightly_smiling_face:


capfredf
2020-11-11 01:28:54

@spdegabrielle I am confused. Why makes this image special?


samth
2020-11-11 01:42:44

Yeah, there is presumably an application created by the ? form that should get the source location of the a


gknauth
2020-11-11 07:36:02

Thank you! This is what broken windows policing should have been.