Re: [racket-users] Surprising but convenient

2021-12-19 Thread Sage Gerard
If I understand this correctly, there's a difference between deleting a reference to 50 GB (like an inode), and actually writing 50 GB. When you write to an output port, you are writing to a buffer in memory. This prevents the slow downs you've witnessed, because storage mediums are comparably

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2021-12-18 Thread Matthias Felleisen
+2! And many thanks. (I was personally spared this spam until very recently. No clue why) — Matthias > On Dec 18, 2021, at 2:55 PM, Robby Findler wrote: > > +1! Thank you. > > Robby > > On Sat, Dec 18, 2021 at 1:43 PM Matthew Flatt > wrote: > The "members"

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2021-12-18 Thread Robby Findler
+1! Thank you. Robby On Sat, Dec 18, 2021 at 1:43 PM Matthew Flatt wrote: > The "members" option sounds right to me. Thanks for tracking down a way > to improve the situation! > > At Sat, 18 Dec 2021 19:35:23 +, Sage Gerard wrote: > > Core team, > > > > Sam asked me to issue bans for a

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2021-12-18 Thread Matthew Flatt
The "members" option sounds right to me. Thanks for tracking down a way to improve the situation! At Sat, 18 Dec 2021 19:35:23 +, Sage Gerard wrote: > Core team, > > Sam asked me to issue bans for a troublesome spammer. I've done so, even > just today. I understand I need quorum for larger

Re: [racket-users] Possible options for stopping spam

2021-12-15 Thread Hendrik Boom
On Wed, Dec 15, 2021 at 12:54:30PM -0500, George Neuner wrote: > > Is there a way to whitelist / trust posters.  One of the other groups I > follow is moderated, but is set up so that messages from trusted posters go > straight through.  The moderator(s) only have to look at posts coming from >

Re: [racket-users] Possible options for stopping spam

2021-12-15 Thread George Neuner
Is there a way to whitelist / trust posters.  One of the other groups I follow is moderated, but is set up so that messages from trusted posters go straight through.  The moderator(s) only have to look at posts coming from untrusted sources and decide whether new posters can be trusted.

Re: [racket-users] Beginner's question

2021-12-15 Thread Cyrille DEUSS
As usual I didn't read the manual which is a little bit cryptic for a non native speaker. The signature of fodl is ('a -> 'b -> 'b) -> 'b -> 'a list -> 'b I was used to the signature of List.fold_left of OCaml where the signature is : ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a The arguments are

Re: [racket-users] Possible options for stopping spam

2021-12-14 Thread Sage Gerard
> Wouldn't people asking to be invited be pretty much the same moderation > burden as option 3, but with less support? I guess that's a way of saying I > lean to option 3. I see what you mean. I saw "invite-only" as the option with the most discretionary effort when volunteers are scarce,

Re: [racket-users] Possible options for stopping spam

2021-12-14 Thread David Bremner
Sage Gerard writes: > All, > > I've gained administrative privileges over this list to address the spammer. > I want to hear from others before I touch anything. > Thanks for putting effort into this. > I've been informed that an invite-only approach might not be appropriate, but > without

Re: [racket-users] Beginner's question

2021-12-14 Thread David Storrs
Jens answered your question, but I'll note two convenient shorthands: > #lang racket > (require racket/format) racket/format is provided by #lang racket, so you can skip that. This: (define fp (lambda (s n) (string-append (pp_number n) " + " s))) is the same as this: (define (fp s n)

Re: [racket-users] Beginner's question

2021-12-14 Thread Jens Axel Søgaard
Try reversing the order for arguments for both fp and f. /Jens Axel Den tir. 14. dec. 2021 kl. 19.48 skrev Cyrille DEUSS < cyrille.de...@gmail.com>: > #lang racket > (require racket/format) > > (define pp_number > (lambda (n) > (~a n #:width 6 #:align 'right #:left-pad-string "0"))) > >

Re: [racket-users] Re: inflate/deflate

2021-12-11 Thread Stephen De Gabrielle
On Fri, 10 Dec 2021 at 22:29, reilithion wrote: > > > On Friday, January 13, 2017 at 5:32:51 AM UTC-8 Tony Garnock-Jones wrote: > >> On 01/12/2017 11:32 PM, Lehi Toskin wrote: >> > P.S. I didn't see an implementation of ADLER32 anywhere, so I had to >> write my own, which took a little longer

Re: [racket-users] Re: inflate/deflate

2021-12-10 Thread reilithion
On Friday, January 13, 2017 at 5:32:51 AM UTC-8 Tony Garnock-Jones wrote: > On 01/12/2017 11:32 PM, Lehi Toskin wrote: > > P.S. I didn't see an implementation of ADLER32 anywhere, so I had to > write my own, which took a little longer than expected, but oh well. > > Oh, cool. That'd probably

Re: [racket-users] Discourse - Mailing list mode

2021-12-10 Thread Laurent
Would it be possible to allow only sending to racket+nos...@discoursemail.com and filtering out those sent to just racket@...? Maybe that could avoid *some* spam. Not sure how effective that would be though. On Fri, 10 Dec 2021, 14:58 Stephen De Gabrielle, wrote: > Thanks to Sam you can now

Re: [racket-users] Discourse - Mailing list mode

2021-12-10 Thread Stephen De Gabrielle
Thanks to Sam you can now post to discourse via email with the address rac...@discoursemail.com You do need to use the address you signed up with. if you use addresses like myaddress+te...@gmail.com ... I'm not sure - I don't have a quick way to test sending with this sort of address. Stephen

Re: [racket-users] Discourse - Mailing list mode

2021-12-09 Thread 'John Clements' via Racket Users
I just tried it, from a new account that wasn’t associated with an account, and it looks like it went through … which is actually kind of frightening. Can’t a random spammer just send email to this address? I considered doing it as a stunt, but decided it would be nicer to ask about it first.

Re: [racket-users] Formal semantics of PLT Redex

2021-12-09 Thread Mallku Ernesto Soldevila Raffa
Thanks a lot for the info! If I found any mismatches, I'll report it. Regards, Mallku El miércoles, 8 de diciembre de 2021 a las 23:32:25 UTC-3, Robby Findler escribió: > I'm sorry, my sentence was ambiguous! I'm saying that I don't know of any > other work that is specifically focused on the

Re: [racket-users] Discourse - Mailing list mode

2021-12-09 Thread Sam Tobin-Hochstadt
It appears that enabling this is quite simple. I believe I have set it up so that emailing racket+uncategorize...@discoursemail.com should create a new topic in the Uncategorized category. Feel free to test it out. Sam On Thu, Dec 9, 2021 at 8:27 AM Stephen De Gabrielle wrote: > > > it’s

Re: [racket-users] Discourse - Mailing list mode

2021-12-09 Thread Stephen De Gabrielle
> it’s becoming apparent to me that setting up posting via email is frankly difficult; I think that monitoring the list using mailing-list mode is plausible, but posting, at this point, is not. I had a chat with a Discourse consultant and they thought posting by email was possible if you self

Re: [racket-users] Formal semantics of PLT Redex

2021-12-08 Thread Robby Findler
I'm sorry, my sentence was ambiguous! I'm saying that I don't know of any other work that is specifically focused on the semantics of Redex. (Of course, there may be work I'm not aware of.) The paper is still a good match, I believe, yes. You're right that the syntactic checks for well-formed

Re: [racket-users] Formal semantics of PLT Redex

2021-12-08 Thread Mallku Ernesto Soldevila Raffa
I beg your pardon!, I'm not understanding the answer, what is it that might be specific of Redex? I suspect that the answer is that there isn't some recent work on formal semantics specifically about Redex. In that case, does anybody know if the already mentioned paper [1] is still a good

Re: [racket-users] Looking for system admin help for the package system

2021-12-08 Thread James Platt
Hi Sam, I've got some pretty good general sysadmin skills. I would have to get up to speed with some of the specific technologies but that should not be a problem. I'm pretty much booked up to the end of the year, with lots to do but, come January, I should be in much better shape. James

Re: [racket-users] Formal semantics of PLT Redex

2021-12-08 Thread Robby Findler
I think that might be it specifically about redex, I am sorry to say. Robby On Wed, Dec 8, 2021 at 5:28 PM Mallku Ernesto Soldevila Raffa < mallkuerne...@gmail.com> wrote: > Hi community!, > I'm interested in understanding the semantics of PLT Redex, since we are > working on a tool > to

Re: [racket-users] Re: Discourse - Mailing list mode

2021-12-08 Thread James Platt
> If you had continued reading, you would have seen my comment that NOT ALL > news groups support list distribution or posting via email. NNTP is not > email. Usenet group moderators[*] can choose how to make their groups > available: the default is via list distribution and NNTP both, but

Re: [racket-users] Discourse - Mailing list mode

2021-12-08 Thread 'John Clements' via Racket Users
Your points are well taken, and moving away from a traditional mailing list is not a decision that we took lightly; the fact is that we were simply *failing* when it came to moderating the mailing list as run by google groups, and running one through mailman was even worse. It appears that

Re: [racket-users] Re: Discourse - Mailing list mode

2021-12-08 Thread George Neuner
On 12/8/2021 12:34 PM, James Platt wrote: On Dec 8, 2021, at 10:45 AM, George Neuner wrote: > It's a big deal if you are (or were) following multiple groups. I don't understand. Why is this an issue? I find it very convenient to filter each group into it's own folder in email. If this

Re: [racket-users] Re: Discourse - Mailing list mode

2021-12-08 Thread James Platt
On Dec 8, 2021, at 10:45 AM, George Neuner wrote: > It's a big deal if you are (or were) following multiple groups. I don't understand. Why is this an issue? I find it very convenient to filter each group into it's own folder in email. If this were a non-technical group, you wouldn't

Re: [racket-users] Looking for system admin help for the package system

2021-12-07 Thread Sage Gerard
Can assist, but am biased to my own tools and designs. Is there a way to volunteer from that angle? Sent from ProtonMail mobile Original Message On Dec 7, 2021, 4:43 PM, Jacob Jozef wrote: > Hi > > I have no experience with system admin, web servers, the Racket web server, >

RE: [racket-users] Looking for system admin help for the package system

2021-12-07 Thread Jacob Jozef
HiI have no experience with system admin, web servers, the Racket web server,AWS, Docker, but may be there are simple things I can do, for example adjust documentation.Jos   From: Sam Tobin-HochstadtSent: martes, 7 de diciembre de 2021 21:31To: Racket UsersSubject: [racket-users] Looking for

RE: [racket-users] question: make-parameter and prop:custom-write

2021-12-03 Thread Jacob Jozef
and tests on GitHub. Thanks again, Jos   From: Sam Tobin-HochstadtSent: viernes, 3 de diciembre de 2021 20:15To: Jacob JozefCc: Racket UsersSubject: Re: [racket-users] question: make-parameter and prop:custom-write Lots of things have happened since 7.2 that might be relevant, rangingfrom the switch

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-12-01 Thread Aidan Gauland
I am on Fastmail, which uses SpamAssassin (their methodology is detailed here ), and after many many months of training it on this loon's spam messages, it is finally /mostly/ filtering correctly.  Very few legitimate

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-12-01 Thread George Neuner
On 12/1/2021 1:30 PM, Nathaniel W Griswold wrote: > On Nov 30, 2021, at 8:22 AM, Laurent wrote: > > The last 10 spams have all these words in common: > https://pastebin.com/BB0arV63 > and many more (which I won't copy here for obvious reasons). > > So you could create a dedicated spam

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-12-01 Thread Nathaniel W Griswold
>> >>> On Nov 30, 2021, at 8:22 AM, Laurent wrote: >>> >>> The last 10 spams have all these words in common: >>> https://pastebin.com/BB0arV63 >>> and many more (which I won't copy here for obvious reasons). >>> >>> So you could create a dedicated spam filter that looks for *any* of (not:

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-12-01 Thread Nathaniel W Griswold
> On Dec 1, 2021, at 12:30 PM, Nathaniel W Griswold wrote: > > > >> On Nov 30, 2021, at 8:22 AM, Laurent wrote: >> >> The last 10 spams have all these words in common: >> https://pastebin.com/BB0arV63 >> and many more (which I won't copy here for obvious reasons). >> >> So you could

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-12-01 Thread Nathaniel W Griswold
> On Nov 30, 2021, at 8:22 AM, Laurent wrote: > > The last 10 spams have all these words in common: > https://pastebin.com/BB0arV63 > and many more (which I won't copy here for obvious reasons). > > So you could create a dedicated spam filter that looks for *any* of (not: all > of) these

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-30 Thread Nathaniel W Griswold
Ok. Well i don't often get Italian emails so maybe i will make a special "Italian" Inbox =) Nate > On Nov 30, 2021, at 8:41 AM, George Neuner wrote: > > > On 11/30/2021 9:22 AM, Laurent wrote: >> The last 10 spams have all these words in common: >> https://pastebin.com/BB0arV63 >> and many

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-30 Thread George Neuner
On 11/30/2021 9:22 AM, Laurent wrote: The last 10 spams have all these words in common: https://pastebin.com/BB0arV63 and many more (which I won't copy here for obvious reasons). So you could create a dedicated spam filter that looks for *any* of (not: all of) these words. Unfortunately,

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-30 Thread Laurent
The last 10 spams have all these words in common: https://pastebin.com/BB0arV63 and many more (which I won't copy here for obvious reasons). So you could create a dedicated spam filter that looks for *any* of (not: all of) these words. On Tue, Nov 30, 2021 at 2:10 PM George Neuner wrote: >

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-30 Thread George Neuner
On 11/30/2021 6:57 AM, Stephen De Gabrielle wrote: I’m using gmail for racket-users, but the normally reliable spam filtering fails - despite numerous attempts to train - it still classifies real mail as spam and the spam as real. S. I'm convinced that Google does that on purpose ... I

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-30 Thread Stephen De Gabrielle
I’m using gmail for racket-users, but the normally reliable spam filtering fails - despite numerous attempts to train - it still classifies real mail as spam and the spam as real. S. On Tue, 30 Nov 2021 at 03:38, George Neuner wrote: > > On 11/29/2021 6:45 PM, Nathaniel Griswold wrote: > >

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-29 Thread George Neuner
On 11/29/2021 6:45 PM, Nathaniel Griswold wrote: It’s getting through my filters, neither rspamd or my local client can catch on to it. Is there a good simple filter? Nate Something has changed very recently because until this last week I rarely saw it (even marked AS spam) ... maybe a

Re: [racket-users] Anyone successfully filtering Italian spam?

2021-11-29 Thread 'William J. Bowman' via Racket Users
My spamassassin catches most of it, but also sometimes catches real list emails because it has stopped trusting racket-users. Some combination of bayes and txrep plugins are doing the heavy lifting, I think. -- William J. Bowman On Mon, Nov 29, 2021 at 05:45:37PM -0600, Nathaniel Griswold

Re: [racket-users] Let over lambda and location information

2021-11-29 Thread Sorawee Porncharoenwase
If you simply want the source location to be the macro call site, one approach is finding where the source location currently is (in this case, it’s the lambda inside make-keyword-procedure). Then, you simply need to thread syntax/loc through macros to put the source location there. Here’s an

Re: [racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Erich Rast
It's fixed. The problem was the configuration of Firefox's default applications. It was set to use Caja for opening files. I changed it to use Firefox itself and it works now, although it opens every link in a new tab. On Thursday, November 25, 2021 at 1:14:55 PM UTC laurent...@gmail.com

Re: [racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Laurent
Maybe: raco setup --doc-index On Thu, Nov 25, 2021 at 11:28 AM Stephen De Gabrielle < spdegabrie...@gmail.com> wrote: > My first guess would be to use raco to rebuild the docs - but I can’t > remember the exact command. It’s probably in raco pkg > > > On Thu, 25 Nov 2021 at 10:08, Erich Rast

Re: [racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Stephen De Gabrielle
My first guess would be to use raco to rebuild the docs - but I can’t remember the exact command. It’s probably in raco pkg On Thu, 25 Nov 2021 at 10:08, Erich Rast wrote: > On Linux Mint I installed Racket 8.3 as usual in local folder > /home/nemo/racket. Now when I try to access the help in

Re: [racket-users] Racket Discourse

2021-11-23 Thread Damien Mattei
i apologize ,the confirmation mail was in the spam folder, everything is fine now thanks Damien On Tue, Nov 23, 2021 at 6:46 PM John Clements wrote: > I’m sorry to hear that! Several things to check/try > > 1) I see the confirmation email coming from “rac...@discoursemail.com”, > with subject

Re: [racket-users] Racket Discourse

2021-11-23 Thread 'John Clements' via Racket Users
I’m sorry to hear that! Several things to check/try 1) I see the confirmation email coming from “rac...@discoursemail.com”, with subject line "[Racket Discussions] Confirm your new account” Maybe it’s in your junk folder? 2) You can always ignore the given url and just go to

Re: [racket-users] Racket Discourse

2021-11-22 Thread Sage Gerard
Thanks! On 11/22/21 9:58 AM, Sam Tobin-Hochstadt wrote: > On Mon, Nov 22, 2021 at 9:52 AM Sage Gerard wrote: >> Thanks for checking on this. I'd expect something like a CoC more than a ToS >> in this case, but terms are terms :) > The discourse site is hosted by the people who make/run

Re: [racket-users] Racket Discourse

2021-11-22 Thread Sage Gerard
Gotcha, thanks. As long as we were warned! I thought I remembered Sam mentioning something along the lines of an "AWS grant," but my memory is unreliable here. On 11/22/21 9:57 AM, John Clements wrote: > Good questions: > > 1) Yes, Sam mentioned the discourse group at RacketCon, and there was

Re: [racket-users] Racket Discourse

2021-11-22 Thread 'John Clements' via Racket Users
Good questions: 1) Yes, Sam mentioned the discourse group at RacketCon, and there was some “hallway” discussion about it. 2) No, no sponsor was involved. Yikes! Indeed, I’m not aware that Racket *has* any sponsors currently, aside from the research and infrastructure grants that are being

Re: [racket-users] Racket Discourse

2021-11-22 Thread Sage Gerard
Thanks for checking on this. I'd expect something like a CoC more than a ToS in this case, but terms are terms :) If you don't mind, I have a couple of follow up questions. - Were "rank-and-file" Racket contributors alerted to this change in advance? Say, in a RacketCon speech? I may have

Re: [racket-users] Racket Discourse

2021-11-22 Thread 'John Clements' via Racket Users
I’m actually very heartened to see the boilerplate here; it sounds like this is something we can edit, and not something imposed by Discourse. If that’s the case, then it certainly seems likely that we can find some language (or, more importantly, *lack* of language) that makes more of us

Re: [racket-users] Racket Discourse

2021-11-22 Thread Norman Gray
Greetings. On 22 Nov 2021, at 4:24, Sage Gerard wrote: > But I have to ask, who wrote the ToS? Who is "the company" in its > > context? Discord? One of the Racket team's universities? A sponsor? I'm not sure who 'the company' is, either, but they appear to be called 'company_name'

Re: [racket-users] Racket Discourse

2021-11-22 Thread Stephen De Gabrielle
Hi Sage, It looks like the same text, and has the same last updated date, as the Haskell Discourse TOS. I think it is the default text provided by Discourse for the free hosting. I don't think anyone has the time or expertise to rewrite it, but I'm sure specific items could be looked at if they

Re: [racket-users] Racket Discourse

2021-11-21 Thread 'John Clements' via Racket Users
Many thanks for your thoughts. I appreciate that your time and inbox space is at a premium, and I’ll try to be careful about posting things to more than one forum. Best, John Clements > On Nov 21, 2021, at 22:53, Sorawee Porncharoenwase > wrote: > > My personal opinion is that, if we want

Re: [racket-users] Racket Discourse

2021-11-21 Thread Sage Gerard
Also: Apologies. That came off as rude. No offense intended. But I have to ask, who wrote the ToS? Who is "the company" in its context? Discord? One of the Racket team's universities? A sponsor? On 11/21/21 11:20 PM, Sage Gerard wrote: > Thanks for letting us know. When should people expect to

Re: [racket-users] Racket Discourse

2021-11-21 Thread Sage Gerard
Thanks for letting us know. When should people expect to unsubscribe? I read the ToS, privacy policy, and thoughts. Hard pass. On 11/21/21 1:09 PM, 'John Clements' via Racket Users wrote: > TL;DR: Go to > > https://racket.discourse.group/invites/okLTSrQw1T > > and sign up for Racket

Re: [racket-users] Racket Discourse

2021-11-21 Thread Sorawee Porncharoenwase
My personal opinion is that, if we want Discourse to be a replacement of the mailing list, then we should treat it like one. Right now, it’s a combination of the mailing list, wiki, FAQ site, and whatnot. And I don’t want one more email in my inbox when someone decides to add an entry to the FAQ.

Re: [racket-users] Racket Discourse

2021-11-21 Thread Philip McGrath
I've long been in the basically-content-with-the-mailing-list camp, but I've recently come around to the view that the status quo is untenable. I looked into it after Racket 'Con and discovered the mailing list had shrunk especially much for me, because the Google Groups spam filters were letting

Re: [racket-users] Racket Discourse

2021-11-21 Thread 'John Clements' via Racket Users
Wait, you think that’s high traffic? Gee whiz, the mailing list *has* shrunk, hasn’t it? Okay, that was not an entirely serious reply, but I do think that in contrast to the discord & slack channels, the discourse is likely to be searchable and at least lightly curated six months from now.

Re: [racket-users] Racket Discourse

2021-11-21 Thread Sorawee Porncharoenwase
I could be in the minority here, but as an early proponent of Discourse to replace the mailing list (even before RacketCon), I feel reluctant to join it after observing it for a while. It has a very high traffic, with almost 100% of the contents being cross-posted everywhere else (and vice versa)

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Alain De Vos
Check if the distance from (0,0) is "small enough" ? On Friday, November 19, 2021 at 9:32:23 PM UTC+1 Stephen Chang wrote: > I dont want to fully support complex numbers. I just want to do the > minimum so that programs that dont use them are not blocked by the > lack of support > > On Fri, Nov

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Stephen Chang
I dont want to fully support complex numbers. I just want to do the minimum so that programs that dont use them are not blocked by the lack of support On Fri, Nov 19, 2021 at 3:30 PM Sorawee Porncharoenwase wrote: > > Yeah, I was about to reply that I don't think there's a workaround, too. > >

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Sorawee Porncharoenwase
Yeah, I was about to reply that I don't think there's a workaround, too. What is your goal, though? Do you intend to support complex numbers properly right now? In particular, that problematic code is random generation from contracts, which is rarely invoked anyway. Intuitively, there's no reason

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Stephen Chang
Sorry, the "workaround" was in regard to complex numbers. How to support them in a minimal way so that programs that dont use them are not blocked by lack of full support. On Fri, Nov 19, 2021 at 3:20 PM Sam Tobin-Hochstadt wrote: > > On Fri, Nov 19, 2021 at 3:13 PM Stephen Chang wrote: > > > >

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Stephen Chang
Lol I read that page and still didn't get it. Any opinion for a potential workaround? On Fri, Nov 19, 2021 at 3:08 PM Sorawee Porncharoenwase wrote: > > I had this exact same question when I looked at the RacketScript issue lol. > > The answer is

Re: [racket-users] confusion about real vs not real zero

2021-11-19 Thread Sorawee Porncharoenwase
I had this exact same question when I looked at the RacketScript issue lol. The answer is https://docs.racket-lang.org/reference/numbers.html: a complex number with an exact zero imaginary part is a real number. Since 0.0 is not exact, 0.0i is not a real number. On Fri, Nov 19, 2021 at 11:59

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

2021-11-17 Thread David Storrs
Ah, that looks right. Thanks, Siddhartha. On Wed, Nov 17, 2021 at 1:59 PM Siddhartha Kasivajhula wrote: > 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

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] Best way to append an element to a list?

2021-11-16 Thread David Storrs
Cool, thank you. On Tue, Nov 16, 2021 at 2:15 PM Sage Gerard wrote: > I get these timings on x86_64 GNU/Linux using the following profile > program. > > ; A: cpu time: 7444 real time: 7445 gc time: > 716 > ; B: cpu time: 9227 real time: 9228 gc time: 884 > > (module profile racket/base >

Re: [racket-users] Best way to append an element to a list?

2021-11-16 Thread Sage Gerard
I get these timings on x86_64 GNU/Linux using the following profile program. ; A: cpu time: 7444 real time: 7445 gc time: 716 ; B: cpu time: 9227 real time: 9228 gc time: 884 (module profile racket/base (define target-length #e5e4) (define (A current-list new-element) (append current-list (list

Re: [racket-users] Ubuntu PPA now updated to v8.1

2021-11-14 Thread Stephen De Gabrielle
thanks Asumu I've cross-posted to reddit, discourse, discord and the racket discourse https://racket.discourse.group/t/racket-version-8-3-is-also-now-available-from-the-ubuntu-ppa/129?u=spdegabrielle s. On Thu, May 27, 2021 at 12:44 AM Asumu Takikawa wrote: > On 2021-05-05 16:39:14 +,

Re: [racket-users] What are the most used Racket libraries, applications and languages?

2021-11-14 Thread Stephen De Gabrielle
I've posed the results at https://racket.discourse.group/t/what-are-the-most-used-packages/108/6?u=spdegabrielle s. On Sunday, November 14, 2021 at 8:22:45 PM UTC Stephen De Gabrielle wrote: > Hi, > My apologies, I should have mentioned that. > > You can use the package manager in DrRacket

Re: [racket-users] What are the most used Racket libraries, applications and languages?

2021-11-14 Thread Stephen De Gabrielle
Hi, My apologies, I should have mentioned that. You can use the package manager in DrRacket or `raco pkg show`. hth Stephen Last login: Sun Nov 14 17:01:54 on ttys001 spdegabrielle@Miriams-MacBook-Pro ~ % raco pkg show Installation-wide: Package Checksum Source main-distribution

Re: [racket-users] What are the most used Racket libraries, applications and languages?

2021-11-14 Thread Hendrik Boom
On Fri, Nov 12, 2021 at 11:46:02PM +, Stephen De Gabrielle wrote: > What are the most used Racket libraries, applications and languages? > > I’ll admit I’m guilty of going whole releases without installing anything > because the distribution has so much included. > > If you reply with what

RE: [racket-users] future question

2021-11-12 Thread Jacob Jozef
@googlegroups.comSubject: Re: [racket-users] future question Hi, you are looking for make-fsempahore[1] and related: ===#lang racket (define sema (make-fsemaphore 1)) (define (make-th i) (λ ()   (let loop ((a 0))(when (zero? (modulo a #e1e6)) (fsemaphore-wait sema) "do what you have to do without distu

Re: [racket-users] future question

2021-11-12 Thread Dominik Pantůček
Hi, you are looking for make-fsempahore[1] and related: === #lang racket (define sema (make-fsemaphore 1)) (define (make-th i) (λ () (let loop ((a 0)) (when (zero? (modulo a #e1e6)) (fsemaphore-wait sema) "do what you have to do without disturbing other futures"

Re: [racket-users] How to learn the *core* of Racket?

2021-11-12 Thread Daniel Prager
An alternative answer to the implied question: "How do I learn the core of the language-oriented features of Racket?" Check out Beautiful Racket: https://beautifulracket.com - Dan On Fri, Nov 12, 2021 at 2:03 PM Philip McGrath wrote: > On Thu, Nov 11, 2021 at 9:20 PM Yushuo Xiao wrote: >

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread Philip McGrath
On Thu, Nov 11, 2021 at 9:20 PM Yushuo Xiao wrote: > Thank you very much! I didn't know the set is not fixed. And thinking of > them as an IR really helps. > > On Friday, November 12, 2021 at 12:15:39 AM UTC+8 johnbclements wrote: > >> That’s a true statement… but that set is by no means fixed.

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread Yushuo Xiao
Yes, you are right! I'm not trying to achieve anything. I just want to get a better understanding of how Racket works. I generally want to know how things work at the lowest possible level, just as learning assembly helps me understand C. And sometimes I have trouble learning things under a

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread James Platt
... and from there it's turtles all the way down. On Nov 11, 2021, at 9:46 AM, David Storrs wrote: > Sure, that's as good a definition as any. > > On Thu, Nov 11, 2021, 6:04 AM Yushuo Xiao wrote: > Thank you for your comprehensive answer! It helps a lot. I also read more > about Racket after

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread David Storrs
Out of curiosity, what is it that you're trying to achieve here? You're not going to program in the fully-expanded language, you're going to program in something higher level. Is this purely a "learning assembly code is good because it gives you a better understanding of machine architecture"

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread 'John Clements' via Racket Users
> On Nov 11, 2021, at 03:04, Yushuo Xiao wrote: > > Thank you for your comprehensive answer! It helps a lot. I also read more > about Racket after I posted the question and now I think that the few special > forms (as stated in "fully expanded program") are the core. All languages > built in

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread David Storrs
Sure, that's as good a definition as any. On Thu, Nov 11, 2021, 6:04 AM Yushuo Xiao wrote: > Thank you for your comprehensive answer! It helps a lot. I also read more > about Racket after I posted the question and now I think that the few > special forms (as stated in "fully expanded program")

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread Yushuo Xiao
Thank you for your comprehensive answer! It helps a lot. I also read more about Racket after I posted the question and now I think that the few special forms (as stated in "fully expanded program") are the core. All languages built in Racket will parse and convert their syntax into syntax

Re: [racket-users] Adding keybindings to debug

2021-11-08 Thread James Zollinger
I don't have the time to attempt modifications to DrRacket right now. Instead I've moved to emacs, which (to the question posed earlier by Robby Findler) does have keyboard shortcuts for running the debugger. I'm still using racket via emacs' racket-mode but trying to click on the very small

Re: [racket-users] How to learn the *core* of Racket?

2021-11-06 Thread David Storrs
Hi Yushuo, On Sat, Nov 6, 2021 at 5:33 AM Yushuo Xiao wrote: > I've learned some Racket, and can comfortably program in it, but I only > learned it as an ordinary language, much like Scheme. I know Racket is much > more than that, for its "language-oriented" features. Languages become a >

Re: [racket-users] Adding keybindings to debug

2021-11-03 Thread James Zollinger
Your explanation of "lambda _" jogged my memory. I'm remembering long ago Haskell learnings where the underscore is used in much the same way. I'll take a look at the two references you shared. This is a really useful starting point. Thank you again, Laurent. On Tue, Nov 2, 2021 at 5:35 AM

Re: [racket-users] Adding keybindings to debug

2021-11-02 Thread Laurent
On Mon, Nov 1, 2021 at 11:14 PM James Zollinger wrote: > Thanks for the info, Laurent. I tried the trick outlined in the link you > sent me on Debian 11 versions of Gnome 3.38.5 (just to test this) and MATE > 1.24.1-2 (my preferred environment) without any success. > I haven't tried myself. For

Re: [racket-users] Adding keybindings to debug

2021-11-01 Thread James Zollinger
Thanks for the info, Laurent. I tried the trick outlined in the link you sent me on Debian 11 versions of Gnome 3.38.5 (just to test this) and MATE 1.24.1-2 (my preferred environment) without any success. My LISP/scheme/racket skills are maturing but I'm not quite ready to tackle:

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

2021-10-31 Thread Brian Beckman
Thanks very much, Matt. This is helpful. I understand macros in a general way (I'm an old [very old] Scheme hand, plus I use Mathematica every day, and it's almost nothing but macros). However, the particulars of Racket's hygienic macro system are new to me, and I will read-up on all the

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

2021-10-31 Thread Matt Jadud
Hi Brian, In some ways, you did get a very good answer to your first question. You were able to see the properties of a *syntax object*. But syntax objects were, I think, only part of the picture you were looking for. The questions "what does the *struct* form in Racket do, what bindings does it

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

2021-10-31 Thread Brian Beckman
Hi, Matt ... I'll try your ideas in a little while. Regarding "why," I want the ability, from a module or a REPL, to quickly dump the attributes of an instance without having to look things up. The need arose when I was barnstorming and trying to explain syntax objects to someone, and he

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

2021-10-31 Thread Brian Beckman
works :) after 'raco install struct-plus-plus' tyvm On Sunday, October 31, 2021 at 7:03:14 AM UTC-7 david@gmail.com wrote: > The actual accessor functions are in there as well, not just the names. > > On Sun, Oct 31, 2021, 9:58 AM Jens Axel Søgaard > wrote: > >> A quick example: >> >>

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

2021-10-31 Thread David Storrs
The actual accessor functions are in there as well, not just the names. On Sun, Oct 31, 2021, 9:58 AM Jens Axel Søgaard wrote: > A quick example: > > #lang racket > (require racket/require) > (require (filtered-in (λ (name) (regexp-replace #rx"struct[+][+]" name > "struct")) >

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

2021-10-31 Thread Jens Axel Søgaard
A quick example: #lang racket (require racket/require) (require (filtered-in (λ (name) (regexp-replace #rx"struct[+][+]" name "struct")) struct-plus-plus)) (struct horse (breed color legs)) (define beauty (horse 'arabian 'black 4)) (define info (force (struct-ref

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

2021-10-31 Thread David Storrs
On Sun, Oct 31, 2021, 7:49 AM Jens Axel Søgaard wrote: > Hi Brian, > > A few random thoughts: > > > I would like, given only the symbol foo referring to the struct type > itself, > > to discover (at least) the list of procedures foo?, foo-a, foo-b, plus > > anything else the author of foo (the

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

2021-10-31 Thread Jens Axel Søgaard
Hi Brian, A few random thoughts: > I would like, given only the symbol foo referring to the struct type itself, > to discover (at least) the list of procedures foo?, foo-a, foo-b, plus > anything else the author of foo (the type) wants me to see. When you want to look this up, is it in the repl

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

2021-10-31 Thread Matt Jadud
Hi Brian, Does this help move you forward? It has been a while since I've stared at macros in Racket, so this might be easier... Also, make sure you're executing this code in a module. If you're working in a REPL, I suspect all bets are off. It is certainly the case that you could combine

<    1   2   3   4   5   6   7   8   9   10   >