Re: [racket-users] Re: Detecting broken inbound TCP connections

2022-07-01 Thread George Neuner
Hi Jeff, Note that most network problems result in an exception ... which your code is not catching and which you might have missed seeing in the output.  You need to catch *exn:fail:network* and examine the *errno* field to figure out what happened. * errno* is a cons: *( integer . symbol )

[racket-users] Re: Why does a module need an inside scope?

2022-06-08 Thread George Neuner
On Wed, 1 Jun 2022 01:14:46 -0700 (PDT), "sym...@gmail.com" wrote: >Hi, why does a module need an inside scope in addition to the outside >scope? What will break if the inside scope is removed? Hi, Most discussion of Racket has moved to the discourse group. https://racket.discourse.group/ T

[racket-users] Re: Surprising but convenient

2021-12-19 Thread George Neuner
On Sun, 19 Dec 2021 17:50:11 +0100, Jacob Jozef wrote: >I start a thread printing a file. When the file will be very long (say >50 GB) the thread takes too much time and I kill it when it takes >more time than I want to permit. Outside the thread I clean up. >Closing the output-port before deleti

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. Cave

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

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

2021-12-08 Thread George Neuner
On Tue, 7 Dec 2021 17:56:38 -0500, James Platt wrote: > I notice that Discourse has a "mailing list mode" which you can set > in the preferences. I haven't had a chance to evaluate it much yet > but, what I'm hoping for is that this will allow me to use the forum > pretty much the same way as I

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 filt

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, th

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 beli

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 fe

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

2021-11-22 Thread George Neuner
On 11/22/2021 11:19 AM, Philip McGrath wrote: It appears that some Gmail spam filter has decided that racket-users@googlegroups.com is a suspicious email address. It seems like roughly half of the legitimate traffic on the list is never reaching me and being marked as spam (at one of two or

Re: [racket-users] hash->list with try-order? (like hash-map)

2021-10-21 Thread George Neuner
On 10/20/2021 5:53 PM, unlimitedscolobb wrote: I have two main use cases for producing an ordered list from a hash table: 1. A canonical way to pretty print a hash table: In my projects, I carry around and print out hash tables a lot, so I like the elements to appear in the same order all the

[racket-users] Re: Escape continuations for fussy code

2021-10-20 Thread George Neuner
On Wed, 20 Oct 2021 09:44:42 -0700 (PDT), Ryan Kramer wrote: > : >The other feature of let++ is that it also supports let-values. (Having to >nest "let, then let-values, then let again" was another reason my code >would get too indented for my taste.) > : Possibly a stupid question, but ... W

Re: [racket-users] hash->list with try-order? (like hash-map)

2021-10-13 Thread George Neuner
On 10/12/2021 7:01 PM, unlimitedscolobb wrote: I wrote myself this little function: (define (hash->ordered-list h)   (hash-map h cons #t)) which uses the try-order? argument of hash-map. Is there a reason for hash->list not have an optional argument try-order?  Or perhaps having such a stan

Re: [racket-users] hash->list with try-order? (like hash-map)

2021-10-13 Thread George Neuner
On 10/12/2021 7:01 PM, unlimitedscolobb wrote: I wrote myself this little function: (define (hash->ordered-list h)   (hash-map h cons #t)) which uses the try-order? argument of hash-map. Is there a reason for hash->list not have an optional argument try-order?  Or perhaps having such a stan

Re: [racket-users] racket/gui/base in sandboxes in places

2021-10-03 Thread George Neuner
On 10/3/2021 4:04 PM, 'William J. Bowman' via Racket Users wrote: I'm trying to run sandboxes in places, but when the sandboxes need access to racket/gui (such as through 2htdp/universe), they get `cannot instantiate racket/gui/base' a second time`. I've tried initing racket/gui once in the

Re: [racket-users] Looking to trigger the end of a loop by the creation of a file.

2021-10-02 Thread George Neuner
On 10/2/2021 7:25 PM, Don Green wrote: Looking to trigger the end of a loop by the creation of a file. Is this possible? Is this advisable? Currently using: a 'for' loop with a 'for' loop guard expression to test for the existence of a file. Tried file-exists? but that does not seem appropriate

Re: [racket-users] Re: jest...@gmail.com Trouble installing DrRacket

2021-09-13 Thread George Neuner
On 9/13/2021 10:34 PM, Matthew Flatt wrote: Just to clarify: Racket runs on a number of ARM variants when running Linux and other Unix-like operating systems, but we have not yet ported to Windows on ARM. Matthew Is there a list somewhere of which chips have successfully run Racket? Or a defi

Re: [racket-users] Re: jest...@gmail.com Trouble installing DrRacket

2021-09-13 Thread George Neuner
On 9/13/2021 1:02 PM, Nathan Philippon wrote: It's a Samsung GalaxyBook On Monday, September 13, 2021 at 12:48:06 p.m. UTC-4 jest...@gmail.com wrote: Yeah, I don't think Racket supports windows on arm devices. I'm guessing this is a chromebook or something? HP? Dell? On Monday, S

Re: [racket-users] Is there an easy way to disable a GUI element?

2021-09-02 Thread George Neuner
On 9/2/2021 5:39 PM, Ryan Kramer wrote: I see that button% has an `enabled` field, but I'm not seeing anything for slider%, text-field%, and choice%. If I want to disable these elements, do I have to roll my own enable/disable logic? Also, is there a way to change a button's `enabled` status

Re: [racket-users] problem of gui layout using side-by-side frames

2021-08-12 Thread George Neuner
On 8/12/2021 2:52 PM, Jens Axel Søgaard wrote: Den tor. 12. aug. 2021 kl. 20.44 skrev George Neuner mailto:gneun...@comcast.net>>: If I understand correctly, Don seems to want menus in his side-by-side "panels". Are we talking menu bar menus or contextual menu

Re: [racket-users] problem of gui layout using side-by-side frames

2021-08-12 Thread George Neuner
On 8/12/2021 1:39 PM, kamist...@gmail.com wrote: I think instead of fidgeting around with OS dependent stuff to align frames side by side, I would take another approach (inspired by other applications): 1. per default the application is just a big window with multiple sections divided with pan

Re: [racket-users] problem of gui layout using side-by-side frames

2021-08-12 Thread George Neuner
On 8/11/2021 10:44 PM, Don Green wrote: When I specify 2 frames to be side-by-side using racket/gui, I believe I would have no problem if all my prospective client platform did not have a vertical Operating System taskbars. Since I do have such a taskbar I must use code that takes the width

Re: [racket-users] frame width and (get-display-size) ...

2021-08-06 Thread George Neuner
I have no idea what this code will do on MacOS, but it works on Windows ... at least for the limited window tilings I tried. YMMV. - #lang racket (require racket/gui) (define-values (w h) (get-display-size #:monitor 0)) (printf "screen: ~a ~a~n" w h) (set!

Re: [racket-users] Equivalent of exec

2021-08-03 Thread George Neuner
On 8/3/2021 1:03 PM, Norman Gray wrote: On 3 Aug 2021, at 17:38, George Neuner wrote: Racket is multi-platform and tries to present a common API for dealing with underlying operating systems.  Windows is an important platform, but Windows does not have the concept of fork/exec ... so

Re: [racket-users] Equivalent of exec

2021-08-03 Thread George Neuner
On 8/3/2021 12:14 PM, Norman Gray wrote: Greetings. I can't find a way of doing something equivalent to exec in Racket.  Is this Hard, or am I just missing it? By 'exec', I mean the equivalent of replacing the process with a new image, as distinct from `system` (and friends) or `process` (a

Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-17 Thread George Neuner
On 7/17/2021 1:10 AM, Alexis King wrote:    :   a complex, possibly error-prone, way to front-end class method dispatch    : This brings me to my question: is there any simpler way to do this? And are there any hidden gotchas to my technique? I'm still trying to understand how it works.  8-)

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread George Neuner
On 7/13/2021 10:13 AM, joseph turco wrote: Hello, Im am looking at learning a programming language, and have been bouncing around with scheme/racket/dyalog APL/squeak. upon investigation of scheme and racket, i found that in regards to racket, there really isn't a "Beginners book" that teach

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread George Neuner
On 7/1/2021 2:36 PM, David Storrs wrote: What is the best way to pass a function into a child `place`? 1.  just define the functions in a context the place can see 2.  send the name of a local file for the recipient to dynamic-require 3.  send the definition file for the recipient to save loc

Re: [racket-users] Why would writing to a pipe fail?

2021-06-18 Thread George Neuner
Hi Matthew, Sorry for the delay in replying. On 6/17/2021 7:08 PM, Matthew Flatt wrote: At Wed, 16 Jun 2021 17:33:56 -0400, George Neuner wrote: > > Dumb question ... why should non-blocking I/O worry about "flush" at > all.  Why not behave like native I/O where writes

Re: [racket-users] Why would writing to a pipe fail?

2021-06-16 Thread George Neuner
Forgot to mention this is using  CS 8.1 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on t

Re: [racket-users] Why would writing to a pipe fail?

2021-06-16 Thread George Neuner
On 6/16/2021 7:01 PM, Shu-Hung You wrote: Out of curiosity, I wrapped David's code in a loop and tried to write 509 bytes in each iteration. From the output, it looks like CS doesn't implement pipes using a fixed-size buffer. I'm also not sure how many different buffers there are. I think this ha

Re: [racket-users] Why would writing to a pipe fail?

2021-06-16 Thread George Neuner
On 6/16/2021 3:45 PM, Matthew Flatt wrote: At Wed, 16 Jun 2021 14:25:40 -0400, George Neuner wrote: > It looks like the problem > is that "flush" is not defined ... Yes, "returns without blocking after writing as many bytes as it can immediately flush"

Re: [racket-users] Why would writing to a pipe fail?

2021-06-16 Thread George Neuner
On 6/16/2021 2:16 PM, David Storrs wrote: Damn.  Sorry, I posted out of sync versions of code and output.  This is correct: (define bstr (make-shared-bytes 509 5)) (define rx-pipe-size 16777216) (define-values (rx-in rx-out) (make-pipe rx-pipe-size)) (define (room-in-rx-pipe? bstr)   (define

Re: [racket-users] Why would writing to a pipe fail?

2021-06-16 Thread George Neuner
On 6/16/2021 1:19 PM, David Storrs wrote: I'm getting bytes off the wire and attempting to write them to a port.  I have a check in place to verify that the pipe has free space but when I attempt to reports that yes, there is space, and then it writes and fails regardless and I'm not sure why.

[racket-users] Re: Embedded Racket reimplementation for constrained hardware?

2021-06-08 Thread George Neuner
On Sun, 6 Jun 2021 07:26:09 -0700 (PDT), "schle...@gmail.com" wrote: >I think in such an environment I would like to control memory usage myself, >or maybe have a #lang that allows very fine grained and low level control >over resources. (outputting lowerlevel code than racket/base). >If you n

[racket-users] Re: Embedded Racket reimplementation for constrained hardware?

2021-06-05 Thread George Neuner
On Sat, 5 Jun 2021 06:45:44 -0700 (PDT), dbohdan wrote: >Has anyone tried making a small embedded implementation of Racket? I mean >"embedded" not in the sense of 8-bit microcontrollers but more powerful yet >still constrained devices, like routers with 64 MB RAM running Linux or the >PlaySta

Re: [racket-users] Sharing scope in setup/cleanup for dynamic-wind?

2021-05-19 Thread George Neuner
Coming late to this ... On 5/19/2021 11:31 AM, David Storrs wrote: On Tue, May 18, 2021 at 4:09 PM Philip McGrath mailto:phi...@philipmcgrath.com>> wrote: On Tue, May 18, 2021 at 3:52 PM Sam Tobin-Hochstadt mailto:sa...@cs.indiana.edu>> wrote: I think the key question is what

Re: [racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-10 Thread George Neuner
On 5/10/2021 8:16 PM, Don Green wrote: From Racket doc: "File permissions are transferred from src to dest; on Windows, the modification time of src is also transferred to dest." Is the above line meant to imply that a unix/linux version of Racket will NOT preserve file attributes using copy

Re: [racket-users] Running user-supplied code in a place

2021-04-07 Thread George Neuner
On 4/7/2021 5:34 PM, David Storrs wrote: I'm trying to expand a task manager to optionally use places and I'm having some trouble understanding the issue. ; test.rkt #lang racket (provide start) (define (start thnk) (sync (place ch (place-channel-put ch (thnk) ; x.rkt #lang racket (r

Re: [racket-users] "Unbound Identifier" (Lists)

2021-02-24 Thread George Neuner
Hi, Presumably you are using 'head' to get the first element of a list.   However, there is no function 'head' for lists. see:  https://docs.racket-lang.org/reference/pairs.html Try using 'first' and 'rest' instead of 'head' and 'tail'. George On 2/24/2021 3:55 PM, IF Karona wrote: Hi eve

Re: [racket-users] Unsafe structs

2021-01-21 Thread George Neuner
On 1/20/2021 1:53 AM, Sorawee Porncharoenwase wrote: However, ‘struct-field-info-list’ returns only fields defined by the actual type and does not include fields that were inherited. What I don’t see is any simple way to get at the struct’s inheritance hierarchy —- it seems

Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-09 Thread George Neuner
On 1/9/2021 3:20 AM, Dominik Pantůček wrote: > Maybe a stupid question ... > > Is  "close-icon" the name of the bitmap or a function that creates a > bitmap? I am using images/icons/misc: https://docs.racket-lang.org/images/Icons.html?q=close-icon#%28def._%28%28lib._images%2Ficons%2Fmisc..r

Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-08 Thread George Neuner
On 1/6/2021 2:56 PM, Dominik Pantůček wrote: When a button is created like: (new button% (label "&Quit") ...) everything works as expected. The #\q key becomes a keyboard shortcut that triggers the callback correctly. But when the string label is given in the list of icon and label like: (n

Re: [racket-users] Unsafe structs

2020-12-21 Thread George Neuner
On 12/20/2020 3:34 PM, Dominik Pantůček wrote: Hello Racketeers, there were some discussions about structs' introspection on the IRC lately and one of the questions that arose was how to get field index for arbitrary struct's arbitrary field. Not that it is possible... But the general discuss

[racket-users] Re: I want to find the width of this image, why it says unbound identifier?

2020-12-05 Thread George Neuner
On Sat, 5 Dec 2020 19:26:30 -0800 (PST), Yi Chen wrote: > #lang slideshow > (define cat ) > (image-width (cat)) There is no function "image-width" in slideshow. see: https://docs.racket-lang.org/search/index.html?q=image-width To use "image-width" you must require one of these library modules

Re: [racket-users] named let ...

2020-11-26 Thread George Neuner
On 11/26/2020 11:22 PM, Tim Meehan wrote: I was trying to turn one of Knuth's random number sampling without replacement algorithms. It seems to be working, but when it comes time to return my prize ... nothing :( I thought that since I was returning from inside of the named let, that I'd ge

Re: [racket-users] executables

2020-11-24 Thread George Neuner
On 11/24/2020 7:34 PM, Tim Meehan wrote: Some Schemes allow you to compile to a (self-hosting?) executable (Chicken {via C}, Chez, Racket, others?). Some do not (Guile, others?), but compile to bytecode. Why would a group of developers choose one over the other? Or is the end result not that

Re: [racket-users] read-line-evt question

2020-11-18 Thread George Neuner
On 11/18/2020 9:43 AM, Javier Vivanco wrote: I have a question about a read-line-evt 's behaviour. Is this normal this ? > (sync (read-line-evt (current-input-port)) 1234 "" I want to use a timeout in read-line via sync/timeout but it always gives me the first character You are seeing

Re: [racket-users] Regarding collections and racket versions...

2020-11-02 Thread George Neuner
On 11/2/2020 1:08 PM, infodeveloperdon wrote: All of my programming code is in a single collection: ~/.plt-scheme/4.2.1/collects/ even when I have installed newer versions of Racket.    : I appreciate any comments or advice regarding collections in general, or my use of the single collection

Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner
On 11/1/2020 9:20 PM, Sam Tobin-Hochstadt wrote: On Sun, Nov 1, 2020, 9:11 PM George Neuner <mailto:gneun...@comcast.net>> wrote: On 11/1/2020 6:50 PM, Shu-Hung You wrote: > Using the command-line instruction `raco setup` will update all > obsolete bytecodes. If

Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner
On 11/1/2020 6:50 PM, Shu-Hung You wrote: Using the command-line instruction `raco setup` will update all obsolete bytecodes. If you are looking for a programmable interface, `compiler/cm` is a good starting point. Note that "raco setup" rebuilds *only* Racket's own modules and installed ext

Re: [racket-users] Which action should I take: (a) go back to using Racket v.7.7 or (b) resolve issues.

2020-11-01 Thread George Neuner
On 11/1/2020 5:10 PM, infodeveloperdon wrote: I'm nervous. After installing racket version 7.8 on linux (Ubuntu) at a time when I really should not have done only because I'm in the middle of development and would much prefer to change the version at a later date.  The installation did not go

Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner
On 11/1/2020 4:37 PM, infodeveloperdon wrote: How do I avoid the auto-creation of the 'compiled' directory which currently occurs every time I create a module? If you're using DrRacket, it's an option:  under "Language -> Choose Language ..." Select the Racket language and press "Show Detail

Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner
On 11/1/2020 4:45 PM, Robby Findler wrote: It is true that running just "racket x.rkt" will not notice some situations where your .zo files are wrong and thus lead to the bad behavior George describes below but I find it quite handy to use .zo files during development, as they can speed thing

Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner
On 11/1/2020 11:34 AM, infodeveloperdon wrote: so that when I run Racket it recreates the 'compiled' directories using the latest compiler. Or is there a better way? Yeah ... don't use 'compiled' directories for development - they can get out of sync and screw up your debugging. They real

Re: [racket-users] Where to specify a previously installed racket version or...

2020-11-01 Thread George Neuner
On 11/1/2020 11:15 AM, infodeveloperdon wrote: Where to specify a previously installed racket version or... is the only way to change back from version 7.8 to 7.7 to re-install version 7.7? You can install multiple versions in parallel as long as they are kept aprat in separate directory hi

[racket-users] Re: Help implementing an early return macro

2020-11-01 Thread George Neuner
On Sat, 31 Oct 2020 03:25:32 -0700 (PDT), "jackh...@gmail.com" wrote: >Wow, these are a lot of great responses. First of all, *awesome* job Ryan. >That implementation is exactly what I needed to figure out. I'm definitely >starting there first. > >> Are you looking for `let/ec`? > >I'd forgotte

Re: [racket-users] Contracts for (partially) specifying dictionary key -> value-predicates

2020-10-30 Thread George Neuner
On 10/30/2020 3:08 PM, William J. Bowman wrote: Let me aid this discussion by copying in the ~10 lintes of code in question: > (define-syntax (dictof syn) > (syntax-parse syn > [(_ (k:id pred?) ...) > (quasisyntax/loc syn >(dictof/proc `((k . ,pred?) ...)))])) > > (define (

Re: [racket-users] Contracts for (partially) specifying dictionary key -> value-predicates

2020-10-30 Thread George Neuner
On 10/30/2020 1:14 PM, William J. Bowman wrote: Thanks! One follow-up: > 1. make these functions, not macros The main implementation is a procedure, but I think I need a macro to get the syntactic interface I want. Is there some reason to avoid macros? You certainly can use macros in the im

Re: [racket-users] Clearer code in DrRacket?

2020-10-09 Thread George Neuner
On 10/9/2020 10:11 AM, Adam El Mazouari wrote: An example is this: (define (square-all lst) (if (null? lst) '() (cons (square (car lst)) (square-all (cdr lst) As you can see, you've got: * methods included by default (define, cons) * booleans (null?) * user-introduced vars (lst)

Re: [racket-users] Pattern Matching

2020-10-06 Thread George Neuner
On 10/6/2020 10:41 AM, Beatriz Moreira wrote: Hello, Yes, my idea is to check the type of the parameters. I still have to add the types to my code, but I was trying to see if I could do it without them (just pattern matching), as the functions of type *f* are in the declaration of the contra

Re: [racket-users] Pattern Matching

2020-09-28 Thread George Neuner
On 9/28/2020 10:50 AM, Beatriz Moreira wrote: Hello, I would like to know how do I match multiple variables to a regular expression. My idea is to match every *f* variables (f...) to an *f* in ((contract C ((T x) ...) ((T f)) ...) ... ). I am trying to implement a core language for smart contr

Re: [racket-users] Why is get-impure-port* slower than a system call to curl?

2020-09-16 Thread George Neuner
On 9/16/2020 5:59 PM, Alex Harsanyi wrote: On Windows at least, "localhost" resolves to two IP addresses (in this order): "::1" (IPv6) and "127.0.0.1".  The Racket `tcp-connect` function will try the fist one first, and since you probably don't bind your web server to the IPv6 address, the co

[racket-users] Re: Why is get-impure-port* slower than a system call to curl?

2020-09-16 Thread George Neuner
On Wed, 16 Sep 2020 08:14:11 -0700, Stephen Foster wrote: >Turns out it's largely a "my system thing": requests to "localhost" are >slow, but 127.0.0.1 are fast. On Chrome and curl, both were fast, which is >why I assumed the slowdown was in some Racket package. It's more likely a >DNS issue.

Re: [racket-users] question about places and main thread gc

2020-09-13 Thread George Neuner
On 9/13/2020 4:12 PM, Nate Griswold wrote: Sorry, i forgot to mention this would be interfacing on the main thread from c does this still hold true? Like if a c call returns does it kill the places? Nate I'm not really sure what you are asking:  it sounds like you are wanting to embed Ra

Re: [racket-users] question about places and main thread gc

2020-09-13 Thread George Neuner
On 9/13/2020 3:55 AM, Nate Griswold wrote: I am making an app that basically spawns two racket places and i want to be able to communicate with them from c code. Will gc happen in the two racket places if i don't keep the main thread (the one that spawned the places) running? Exiting the

Re: [racket-users] package manager woes on Windows 10?

2020-09-10 Thread George Neuner
On 9/10/2020 10:06 AM, Philip McGrath wrote: Also, this is happening over encrypted HTTPS: no one is sniffing the User-Agent header. While it may not be the issue here, you need to understand that appliance firewalls CAN and routinely DO examine data inside encrypted connections. George

Re: [racket-users] package manager woes on Windows 10?

2020-09-10 Thread George Neuner
On 9/10/2020 7:37 AM, Hendrik Boom wrote: On Thu, Sep 10, 2020 at 12:49:25AM -0400, George Neuner wrote: > > I don't know if DrRacket even sends a "user agent" string. If DrRacket can send a user agent string, so can malware. So it's not really reliable to filte

Re: [racket-users] package manager woes on Windows 10?

2020-09-09 Thread George Neuner
On 9/9/2020 10:05 PM, Shriram Krishnamurthi wrote: Thank you. Can you imagine why the proxy would affect DrRacket but not the Web browser? DrRacket and the browser can be configured independently ... at least for a known proxy.    DrRacket's setting is in preferences under "browser".  Howev

Re: [racket-users] package manager woes on Windows 10?

2020-09-09 Thread George Neuner
From the error message, it looks like a firewall/proxy issue. It definitely is not the package itself:  I'm still on Racket 7.7, but it works for me.  I tried both with 64 and 32 bit BC on Win10 1909 - the package and its dependencies install for me without errors  [but I don't know how to t

Re: [racket-users] GUI zoom and normal-control-font

2020-08-19 Thread George Neuner
On 8/19/2020 1:37 PM, James Platt wrote: > > On 8/18/2020 12:31 PM, James Platt wrote: >> I'm looking at implementing a zoom contents (not zoom window) feature in a GUI with lots of elements and I'm wondering about the best way to do this. Most, if not all, standard GUI widgets in Racket can

Re: [racket-users] GUI zoom and normal-control-font

2020-08-18 Thread George Neuner
On 8/18/2020 12:31 PM, James Platt wrote: I'm looking at implementing a zoom contents (not zoom window) feature in a GUI with lots of elements and I'm wondering about the best way to do this. Most, if not all, standard GUI widgets in Racket can be resized by changing the font size of their

Re: [racket-users] Strange performance behavior

2020-08-08 Thread George Neuner
On 8/9/2020 1:20 AM, wanp...@gmail.com wrote: One more thing which bothers me is if I put a (collect-garbage) in front of the testing, I got gc time: 0 if not I got gc time: 9. Why can't 1 gc reclaim all memory during execution while it can before executes? Those numbers show *time* spent

Re: [racket-users] Re: Strange performance behavior

2020-08-08 Thread George Neuner
On 8/8/2020 9:45 AM, Matthew Flatt wrote: At Sat, 8 Aug 2020 03:32:57 -0400, George Neuner wrote: > > On 8/8/2020 1:55 AM, Sorawee Porncharoenwase wrote: > > I even saw people doing `collect-garbage` three times, just to be safe > > I guess. And yet theoretically it

Re: [racket-users] Re: Strange performance behavior

2020-08-08 Thread George Neuner
On 8/8/2020 1:55 AM, Sorawee Porncharoenwase wrote: I even saw people doing `collect-garbage` three times, just to be safe I guess. And yet theoretically it's not guaranteed that things will be claimed back properly. Honestly, there should be a function that does this `collect-garbage` unti

[racket-users] Re: Strange performance behavior

2020-08-07 Thread George Neuner
On Fri, 7 Aug 2020 06:23:52 -0700 (PDT), "'Joel Dueck' via Racket Users" wrote: >On Wednesday, August 5, 2020 at 10:44:21 AM UTC-5 Sam Tobin-Hochstadt wrote: > >> Here's a benchmark of your two functions that takes long enough to run >> that it avoids some of these issues, and also runs a GC bef

[racket-users] Re: Strange performance behavior

2020-08-06 Thread George Neuner
On Wed, 5 Aug 2020 08:21:07 -0700 (PDT), "wanp...@gmail.com" wrote: >I was working on a exercism problem named Raindrops. > > : > >I thought version 1 would be faster, but it turned out to be wrong. Running >with raco test got following timing information. > >version 1 >cpu time: 9 real time:

Re: [racket-users] Re: Racket CS release plan

2020-08-01 Thread George Neuner
On 8/1/2020 3:48 PM, Sam Tobin-Hochstadt wrote: Note that Matthew's point was not about bytecode, but about the machine code in the Racket BC executable vs the machine code in the Chez kernel plus boot files. Especially if you look pre-7.0, there is very little bytecode in the Racket BC execu

Re: [racket-users] Re: Racket CS release plan

2020-08-01 Thread George Neuner
Hi Matthew, On 8/1/2020 2:01 PM, Matthew Flatt wrote: At Sat, 01 Aug 2020 03:56:36 -0400, George Neuner wrote: > On Fri, 31 Jul 2020 20:20:05 -0700 (PDT), > "wanp...@gmail.com" > wrote: > > >I noticed that the size of the CS version is 244% compare to BS > &g

[racket-users] Re: Racket CS release plan

2020-08-01 Thread George Neuner
On Fri, 31 Jul 2020 20:20:05 -0700 (PDT), "wanp...@gmail.com" wrote: >I noticed that the size of the CS version is 244% compare to BS >version. Wondering why it became so large. Does that mean Chez Scheme >runtime/vm 100 MB larger than the original one? > >Racket Mac OS X > 64-bit Intel 11

Re: [racket-users] “If you could have a wish granted, what would you like to see next in Racket?”

2020-07-23 Thread George Neuner
ct can be reached outside of the `with-limits` scope, it's not counted. On Thu, Jul 23, 2020 at 5:42 PM George Neuner <mailto:gneun...@comcast.net>> wrote: Limits on resources used by individual VMs.  ulimit works only at the process level (so only indirectly a

Re: [racket-users] “If you could have a wish granted, what would you like to see next in Racket?”

2020-07-23 Thread George Neuner
On 7/23/2020 8:30 AM, Stephen De Gabrielle wrote: “If you could have a wish granted, what would you like to see next in Racket?” https://www.reddit.com/r/Racket/comments/hwe49b/if_you_could_have_a_wish_granted_what_would_you/?utm_source=share&utm_medium=ios_app&utm_name=iossmf or [original

Re: [racket-users] reading s-expressions from a file

2020-07-17 Thread George Neuner
On 7/17/2020 8:19 PM, Hendrik Boom wrote: Yes, I know the functino for reading s-expressions seems to be (read [in]). I want a loop that reads S-expressions and does something to each one, until there are no more to be found in a file. Now of course that's absurdly easy to do with a tail-rec

Re: [racket-users] Best data structure for ordered data set with insertion and reordering?

2020-07-16 Thread George Neuner
Hi David, On 7/16/2020 11:44 AM, David Storrs wrote: On Thu, Jul 16, 2020 at 10:09 AM George Neuner <mailto:gneun...@comcast.net>> wrote: The problem seems under-specified.  Can you say more about the real purpose? Basic version:  It's a peer-to-peer encrypted swarme

Re: [racket-users] Best data structure for ordered data set with insertion and reordering?

2020-07-16 Thread George Neuner
On 7/16/2020 4:29 AM, David Storrs wrote: tl;dr Can anyone recommend a data structure that is ordered and supports efficient reordering, insertion at arbitrary location, and deletion? Long form: I'm working on an operation-log reconciliation problem, where each operation is one of:   Fil

[racket-users] Re: Are Regular Expression classes Unicode aware?

2020-07-09 Thread George Neuner
On Thu, 9 Jul 2020 14:43:03 -0400, Philip McGrath wrote: >On Thu, Jul 9, 2020 at 10:32 AM Sorawee Porncharoenwase < >sorawee.pw...@gmail.com> wrote: > >> Racket REPL doesn’t handle unicode well. If you try (regexp-match? >> #px"^[a-zA-Z]+$" "héllo") in DrRacket, or write it as a program in a file

Re: [racket-users] Layout + styling in racket/gui

2020-07-06 Thread George Neuner
On 7/6/2020 5:54 PM, Travis Kiefer wrote: Hello all! I'm coming from the background of building web apps that are wrapped in a headless browser and would like to take the app development experience and bring it to the racket ecosystem. As an html / css / javascript engineer I'm finding the

Re: [racket-users] Creating .dmg for a GUI application

2020-07-06 Thread George Neuner
On 7/6/2020 12:48 PM, Travis Kiefer wrote: Hello all! Relatively new to the Racket ecosystem and trying to figure out how to create an "app" from the GUI library. Has anyone written a tutorial on this or have suggestions on where to start to generate this? For context, I'm used to the Javas

Re: [racket-users] Wills, plumbers, and checking if a port is closed

2020-06-30 Thread George Neuner
On 6/30/2020 4:27 PM, David Storrs wrote: I have a port that (my current theory says) is being closed when it shouldn't, but I'm having trouble isolating exactly where and when.  I thought maybe I could do something Rackety to say "as soon as this port gets closed, run this function".  I went

Re: [racket-users] Why does this counter behave differently in different runtimes?

2020-06-17 Thread George Neuner
Sorry for the noise:  it behaves as you say returning "!", "2", ...    Somehow I paths screwed up and was running CS when I thought I was running regular (bytecode) Racket. Sigh! George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To un

Re: [racket-users] Why does this counter behave differently in different runtimes?

2020-06-17 Thread George Neuner
It seems to work ... i.e. returns # ... in Windows.  I tried it in 7.6 and 7.7,  both 32 and 64 bit versions.   Not near my Linux machine to try it there. The expansion in all cases is the same and seems reasonable: (module count racket   (#%module-begin    (module configure-runti

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-09 Thread George Neuner
On 6/9/2020 8:11 AM, Jon Zeppieri wrote: On Tue, Jun 9, 2020 at 7:59 AM Bogdan Popa wrote: > > I think we'd need to also set `SO_REUSEPORT', which is not available on > all platforms, to support multiple processes listening on the same port > without reusing file descriptors. And even where i

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-09 Thread George Neuner
On 6/9/2020 7:59 AM, Bogdan Popa wrote: George Neuner writes: > Multiple Racket applications *should* all be able to listen on the > same port without having been spawned from the same ancestor process. > If that isn't working now, something has gotten hosed. I don't kno

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-09 Thread George Neuner
On 6/9/2020 3:02 AM, Bogdan Popa wrote: Alex Harsanyi writes: > Question 1: Based on this benchmark, is there any reason to chose anything > else but "drogon"? Even if one chooses the second best on that list, which > is "actix", they already loose about 6% performance and things degrade > qu

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-01 Thread George Neuner
On 6/1/2020 4:21 PM, Bogdan Popa wrote: George Neuner writes: > But Python's DB pool is threaded, and Python's threads are core > limited by the GIL in all the major implementations (excepting > Jython). Python's Postgres pooling does not[1] use POSIX threads unde

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-01 Thread George Neuner
On 6/1/2020 3:40 PM, Sam Tobin-Hochstadt wrote: I'm skeptical both of the DB explanation and the multi-core explanation. As you say, the difference between something like Django and Racket is much too large to be explained by that. For example, on the "plaintext" benchmark, Racket serves about

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-01 Thread George Neuner
On 6/1/2020 1:40 PM, Bogdan Popa wrote: I replied earlier today off of my Phone, but, for whatever reason (caught in the moderation queue?), it's not showing up in this thread. Here's what it said: The reason for poor performance relative to the other langs/frameworks is that there is

Re: [racket-users] Re: [racket] Web Framework Benchmarks

2020-06-01 Thread George Neuner
On 6/1/2020 11:12 AM, Sam Tobin-Hochstadt wrote: I think the biggest thing is that no one has looked at optimizing these benchmarks in Racket. If you tried out running one of these benchmarks and ran the profiler it would probably show something interesting. Sam The code[1] itself isn't bad. 

Re: [racket-users] Function that potentially can return more than one value

2020-05-27 Thread George Neuner
On 5/27/2020 1:50 PM, Jens Axel Søgaard wrote: Den ons. 27. maj 2020 kl. 19.27 skrev George Neuner mailto:gneun...@comcast.net>>: On 5/27/2020 6:34 AM, Jens Axel Søgaard wrote: > > In standard Racket an application doesn't communicate how many values

  1   2   3   4   5   6   >