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 )
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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!
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
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
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-)
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
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
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
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
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
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"
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 (
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
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)
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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 - 100 of 581 matches
Mail list logo