> calling port-closed? in a loop. Neither method succeeds in detecting
> the broken TCP connection.
>
> Thanks for any help.
>
> Regards,
>
>
> Jeff Henrikson
>
>
> #lang racket
>
> ;; Tony Garnock-Jones,
> https://groups.google.com/g/racket-user
Hi Jeff,
On Thursday, June 30, 2022 at 8:34:44 PM UTC+2 Jeff Henrikson wrote:
> How do I accept an inbound TCP connection so that once I am processing
> it, if the connection is broken by the client or network, my program
> promptly finds out?
>
You can use `tcp-listen` and `tcp-accept` [0]
Hi Winston,
I've submitted a suggested improvement to interactive REPLish behaviour
around read-char and read-line here:
https://github.com/racket/racket/pull/4007
Please let me know if it improves the situation for you. And of course, if
anyone else has comments about this kind of thing,
Hi all,
I just registered the Racket project on irc.libera.chat with ownership of
#racket and #racket-*.
Would those who have served as chanops on freenode who are willing to also
do the same for libera.chat please email me privately to let me know your
nick etc.?
Thanks!
Tony
--
You
https://web.archive.org/web/20210520002957/http://kline.sh/ is a good starting
point.
On 20 May 2021, 15:12, at 15:12, David Storrs wrote:
>What happened with Freenode?
>
>On Thu, May 20, 2021 at 8:12 AM Tony Garnock-Jones <
>to...@leastfixedpoint.com> wrote:
>
>>
On 5/20/21 1:28 PM, Paulo Matos wrote:
Tony Garnock-Jones writes:
With the recent damage to the Freenode IRC network, a new `#racket` has
been founded on irc.libera.chat.
Is this to become the canonical IRC chat room for Racket?
¯\_(ツ)_/¯
I'd be in favour of moving off Freenode, myself
Just a heads up,
With the recent damage to the Freenode IRC network, a new `#racket` has
been founded on irc.libera.chat.
I've moved over there (nick `tonyg` still) and deleted my Freenode account
(such as it was).
Cheers,
Tony
--
You received this message because you are subscribed to
Hi Roger,
On Wed, 24 Feb 2021 at 15:55, Roger Keays wrote:
> I was just thinking along the lines of adding a "name" field to the table
> with the user/login data. If it is set, then it is displayed instead of the
> email. You should be able to search by this field too of course.
>
That sounds
No, but it's an interesting thought. It might be quite a lot of design work
to come up with something that made sense, but would you like to sketch out
a proposal here to make the idea a little more concrete? I can't promise
anything, but it'd be good to know the kinds of requirements that
Hi Danny,
It should work now! Please give it a try. If it doesn't work, please email
me directly (to...@leastfixedpoint.com).
Tony
On Sunday, January 31, 2021 at 3:55:57 AM UTC+1 dann...@gmail.com wrote:
> Hi everyone,
>
> Unfortunately, it looks like the password on my account (
>
We should* eventually decouple email from account-identity, so that after
an *initial* introduction to the system, changing one's email address is
straightforward to do. But we haven't done that yet and I don't have time
to do it anytime soon, I'm afraid. So I think Jay's offer of a manual
Hi all,
Just to let you know I updated the package server to have a slightly
different flow for password resets and account registrations, for spam
prevention reasons. Please reply here or email me directly at
to...@leastfixedpoint.com if you have any trouble.
Regards,
Tony
--
You
On Mon, 14 Sep 2020 at 14:18, Hendrik Boom wrote:
> I would, ideally, only use hashcons on those cons-cells which had
> themselves
> been hashconsed, so eq? would suffice.
>
The challenge is checking to see whether a new allocation is required.
Checking `eq?` of the cdr suffices, but seldom is
On Sunday, September 13, 2020 at 12:41:15 AM UTC+2 hen...@topoi.pooq.com
wrote:
> True, but that would require rewriting list, and quasiquote, ans
> others like that to use the hashcons.
>
> Not impossible.
>
One potentially useful trick is to write a function `canonicalize` which
deeply
I think the package name system is case-insensitive (??) but
case-preserving (definitely), and certainly objects to trying to create two
packages that differ only in case.
So renaming from FOO to foo won't work, because it considers this an
attempt to overwrite an existing package. I think. We
If you've not already seen and considered it,
https://github.com/tonyg/racket-packet-socket might be worth a look.
Regards,
Tony
--
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,
On Sunday, October 6, 2019 at 3:26:13 PM UTC+1, Bogdan Popa wrote:
>
> I feel like that was me. Sorry!
>
It was :-) No apologies please! There was nothing wrong with your packages;
it was the package indexer at fault here.
One thing I'd like to do is formalise and then check the contracts
Hi Gary,
On Saturday, October 5, 2019 at 11:22:30 PM UTC+1, gfb wrote:
>
> 1. What's wrong with the package server's indexing of updated packages, so
> my students can proceed.
>
Thanks for the report, and sorry for the delay in responding.
I've made a change that ought to resolve the issue
On Tue, 6 Aug 2019 at 21:15, George Neuner wrote:
> Sockets belonging to the crashed program are in a "half-closed" state -
> unable to send, but still able to receive. If you look in netstat you'll
> find their status is stuck in TIME_WAIT or in SYN or SYN/ACK. There is a
> delay in cleaning
On Tuesday, August 6, 2019 at 6:27:51 PM UTC+1, David Storrs wrote:
>
> I should mention that the reason I'm looking into this is because I have
> UDP sockets that are not getting closed. They are managed by custodians,
> but the custodians are not releasing them; I take this to mean that the
On Sunday, July 21, 2019 at 3:57:56 PM UTC+1, Tony Garnock-Jones wrote:
>
> Recent threads have reminded me I never properly announced "#lang
> something", an experiment from back in 2016.
>
I forgot to mention I also made a recording of #lang something/shell in
acti
Hi everyone,
Recent threads have reminded me I never properly announced "#lang
something", an experiment from back in 2016.
The main idea is S-expressions, but with usually-implicit parentheses
and support for prefix/infix/postfix operators. Indentation for grouping
is explicitly represented in
Hi all,
Just a quick note to let anyone interested know I've built some Racket 7.2
docker images: one "full" and one "minimal", from the respective source
tarballs, and for both "x86_64" and "aarch64". I'm still working on armhf.
There's also a manifest set up against tags "latest" (for full)
I suspect it will be slow because sets are generics, and generics are slow.
For my application, it has worked well to replace set/seteq with
hash/hasheq mapping to #t; this only works when you have total control over
set representation as an implementation detail, of course! But for me it
sped
%20Daemons
On Thu, 29 Nov 2018 at 15:19, Brian Adkins wrote:
> Just out of curiosity, why do you feel using daemon(3) is not a great
> idea? I'm not disagreeing, just curious about your reasons.
>
> On Thursday, November 29, 2018 at 5:54:42 AM UTC-5, Tony Garnock-Jones
> wrote:
17 -0800 (PST), Brian Adkins
> wrote:
>
> >Just out of curiosity, why do you feel using daemon(3) is not a great
> idea?
> >I'm not disagreeing, just curious about your reasons.
> >
> >On Thursday, November 29, 2018 at 5:54:42 AM UTC-5, Tony Garnock-Jones
> >wrot
IMO using daemon(3) is not a great idea. Instead, I like to use djb's
daemontools https://cr.yp.to/daemontools.html to supervise my processes.
For example, see the `README` and the `run` script in
https://github.com/tonyg/racket-reloadable-example.
Tony
On Thursday, November 29, 2018 at
On Wednesday, November 28, 2018 at 2:43:26 AM UTC, Matthew Flatt wrote:
>
> The compilers in both cases know some facts about how `cons` relates to
> other primitives, but they also know how structure constructors and
> accessors relate, so it's not as big a difference at that level.
>
There
king with
> upstream. Until then, Racket-Minimal contents is a great start.
>
> A volunteer who wants to join the Alpine Linux guild, learn their
> rituals and secret handshakes, and represent Racket well, would do a
> great service.
>
>
> Tony Garnock-Jones wrote on 11/14/18 6:19
I recently experimented with Alpine packages for Racket 7.x, minimal and
full, but ran out of steam when I realised I didn't know whether "minimal"
and "full" even make sense in context. Is there a need for an "ultra
minimal"?
Anyway, APKBUILD etc (partially cribbed from Jakub Jirutka's Racket
On 11/28/2017 11:58 PM, Jack Firth wrote:
> What if the configuration file was the main module of your app, instead
> of something imported by your app?
I've tried this, and it works well. I haven't used a custom config #lang
yet, but even with regular old Racket, it works very well.
For
Would it make sense to have a `let-immutable` form that was just like
`let` but that forbade use of `set!` with introduced variables?
I'm thinking it could be handy for authors of libraries that introduce a
lot of bindings in DSLs where mutability has to be strictly controlled.
I think it is
Not yet parameterised or extracted for separate use, but:
raco pkg install tabular
https://github.com/tonyg/racket-tabular/blob/29e91c9475407da4c5bee03abc2e6043693b3ff6/tabular/main.rkt#L681-L765
Example output:
Welcome to Racket v6.10.1.1.
> (require (submod tabular test))
> (require
I have a library for uPNP and NAT-PMP:
https://github.com/tonyg/racket-nat-traversal. It's not on the package
server for lack of round tuits, but it might be of interest. Certainly a
lot nicer not to have to go for an FFI when a Racket library might be
able to do the job.
Cheers,
Tony
On
Thanks, Philip -- I've restarted the server. We need better monitoring
for it, but I don't have the time to fix it at the moment.
It'd also be great for Racket in general to have better visibility into
running programs to see what's going wrong with them in situations like
this.
All I could
On 06/17/2017 08:02 PM, Matthew Flatt wrote:
> As a `require` form, a `submod`'s binding context is taken from the
> parenthesis around the `submod`. With options (A) and (B), the context
> of those parentheses is macro-introduced.
Thanks!
So this `submod` binding context is being used to mark
#lang racket
;;
;; Hi all (Matthew in particular I imagine :-) ),
;;
;; Why does option (C) work, but options (A) and (B) do not?
;;
;; They fail with:
;;
;; t.rkt:31:2: v1: unbound identifier in module
;; in: v1
;; context...:
;;standard-module-name-resolver
;;
;; -- Tony
(require
On 06/02/2017 02:05 PM, David Storrs wrote:
> Suppose I have the following:
> [...]
One possible option is http://pkgs.racket-lang.org/package/struct-defaults:
~$ racket
Welcome to Racket v6.6.0.4.
> (require struct-defaults)
> (struct my-exn exn:fail ())
> (define-struct-defaults mk-my-exn
On 4/30/17 11:51 PM, James wrote:
> I think we want standard TLS. I know enough about cryptography to
> know that I really don't want to roll my own. So I guess OpenSSL is
> what we'll use but then, maybe, something else for local file
> cryptography and signing. We might even use OpenPGP as a
Hi James,
On 4/28/17 1:13 PM, James wrote:
> https://github.com/mgorlick/CRESTaceans/tree/master/bindings/libsodium
> https://github.com/tonyg/racl/tree/master
I'm the author of racl. I've not used mgorlick's code, but one thing to
bear in mind is that it uses libsodium, where racl uses plain
Thanks, Philip -- that could well be a bug in the catalog UI. I can't
check it out until after the OOPSLA deadline, so I've filed
https://github.com/tonyg/racket-pkg-website/issues/42 to keep track of
it until then.
Regards,
Tony
On 04/11/2017 01:21 PM, Philip McGrath wrote:
> I recently
Hi Erich,
On 01/31/2017 08:23 AM, Erich Rast wrote:
> Related to that, does application-quit-handler capture signals on
> Linux, and if so, which ones, and/or is there a way to install signal
> handlers in Racket?
There's a package, https://pkgn.racket-lang.org/package/unix-signals,
that
On 01/12/2017 11:32 PM, Lehi Toskin wrote:
> `number->bytes`, is a function I made; its definition is
> (define (number->bytes num)
> (define hex (number->string num 16))
> ; from file/sha1
> (hex-string->bytes (if (even? (string-length hex)) hex (string-append "0"
> hex
You might be
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 be a useful thing for Racket's
net/git-checkout module, which has a piece of code in
Hi Lehi,
On 01/12/2017 06:17 PM, Lehi Toskin wrote:
> Now that I think about it, it's probably naive of
> me to simple add those two bytes and expect everything to actually be
> working as expected [...] I'm assuming the Z_BUF_ERROR is being
> reported because it's not as flexible and the
On 10/30/2016 10:54 AM, Ken MacKenzie wrote:
> So what is the best way to read keypress or character by character
> input in racket. For now dealing with a CLI/terminal interface to
> keep it simple as I work to test and refine my methods.
Try the "ansi" package,
On 10/28/2016 08:21 PM, David Storrs wrote:
> Is it possible to take (e.g.) a procedure object and decompose it back
> into its original source code?
I don't believe this is possible without murky unsafe programming, but...
> One (bad) idea that came to mind was to simply shove some Racket code
On 10/21/2016 01:21 AM, 'John Clements' via Racket Users wrote:
> I thought hard about scribble and JSON (and xml, yecch), but I think
> that YAML and sexps are the two viable candidates, and I’m guessing
> that if non-programmers have to edit it, they’ll be less likely to
> botch the YAML one.
On 10/18/2016 12:27 AM, David Storrs wrote:
> On Mon, Oct 17, 2016 at 8:39 PM, Sam Tobin-Hochstadt
> > wrote:
> I think the `integer->integer-bytes` function is probably what you want.
>
> Thanks Sam, that does the trick.
You might also
On 09/30/2016 04:07 PM, Tony Garnock-Jones wrote:
> On 09/30/2016 03:38 PM, Jay McCarthy wrote:
>> This could mean a few things...
>> - "basic" still uses "simulator.rkt" and not "tablet.rkt"
>
> I haven't checked, but all I did was take the c
On 09/29/2016 08:05 PM, Jay McCarthy wrote:
> The build system that Byron Davies and I implemented for deploying
> full-screen OpenGL Android apps is available here:
>
> https://github.com/jeapostrophe/racket-android
This is great!
I'm trying a build now on debian stretch. I've sent a pull
On 09/06/2016 02:40 PM, 'John Clements' via Racket Users wrote:
> Obvious fixes that I don’t like:
>
> 1) stop using google cloud storage, starting using Amazon S3.
> 2) use the old PLaneT version instead of the shiny new pkg version.
>
> Any other suggestions?
3) maybe there's a "google API"
On 08/02/2016 04:27 PM, Robby Findler wrote:
> 2htdp/images can be 0xN or Nx0 just fine. If you wish to render them
> to a bitmap, does the file/convertible library not work for you?
For me? No, I needed a bitmap% object rather than a file.
Tony
--
You received this message because you are
On 07/29/2016 12:26 PM, George Neuner wrote:
> I don't see any obvious utility in being allowed to create a zero
> sized bitmap. Likewise a widget or a canvas.
It is useful when writing code that handles images generically. For
example, and this is a real example where the zero-size-bitmap error
Hi all,
Can I rely on the truth of the following:
(implies (and (fixnum? x) (fixnum? y) (= x y))
(eq? x y))
?
I know I can rely on something similar for symbols.
What other sorts of values can I rely on eq? being an appropriate
equivalence predicate for?
Tony
--
You received
If your "insert" is idempotent, and you have some means of measuring
tree size, you can eliminate i, c and x:
(define tree4
(do ([tree null (insert tree (random 10))])
[(>= (tree-size tree) 5) tree]))
I arrived at this by considering doing something similar for sets:
(define tree4
(do
On 10/07/2015 10:19 AM, Brian Adkins wrote:
> If I instead call: (atanh (number->float-complex -2)) I do get a
> complex result.
I was surprised to see that (atanh (make-rectangular -2 0)) => +nan.0.
--
You received this message because you are subscribed to the Google Groups
"Racket Users"
On 10/06/2015 03:12 PM, George Neuner wrote:
> My (maybe wrong) understanding is that the response/* functions only
> package the response data for the send/* functions to transmit.
They construct a `response` struct which includes an `output` procedure
which, given a port, is to write the
On 10/06/2015 12:43 AM, George Neuner wrote:
> I don't know where to put an error handler to deal with reset conditions
> at the end of a request. Maybe Jay has an idea?
It feels like exceptions are something that response/full,
response/xexpr and similar procedures could deal with, since they
On 09/10/2015 01:21 PM, Jack Firth wrote:
> Has anyone implemented a RabbitMQ client in racket? Is anyone working
> on it and partway there? I'm trying to set up a distributed task
> system like Celery in Python which needs the workers to be in
> Racket.
I recommend implementing STOMP rather than
On 08/14/2015 11:16 AM, Robby Findler wrote:
The color of a television, tuned to a dead channel.
Bright, pure, sky blue? What an unusual grey.
https://twitter.com/DJSundog/status/629659761902948352
--
You received this message because you are subscribed to the Google Groups
Racket Users
On 08/07/2015 03:19 PM, Jukka Tuominen wrote:
=ERROR REPORT 7-Aug-2015::22:00:25 ===
Channel error on connection 0.5764.4 ([client-ip]:59326 -
[server-ip]:61613, vhost: '/', user: 'device7'), channel 1:
{amqp_error,access_refused,
access to queue
On 08/06/2015 02:03 PM, Jukka Tuominen wrote:
From a generic STOMP documentation I’ve understood that I should send a
”reply-to” header item with a temporary queue value, but I’m not sure
about the format I should use in racket-stomp. I tried...
#:headers `((receipt ,receipt)(persistent
Hi all,
I'm going through a library I wrote, trying to find all (transitive)
callers of a certain group of functions.
Is there any tool that will help me in this?
I'm thinking of something akin to a hybrid between racket/trace and the
profiler, where you mark the functions (like you do with
On 07/03/2015 01:11 PM, William G Hatch wrote:
I would also love to see a new emacs based on Racket. Is rmacs by Tony
Garnock-Jones intended to be a small project or is he meaning for it to
grow to be a serious contender with emacs, vim, etc?
At the moment, it's just for my own edification
On 07/01/2015 01:13 PM, Neil Toronto wrote:
There's every chance that Typed Racket's union types, singleton symbol
types, and occurrence typing will make it fairly easy to type an
s-expression-based wire protocol; e.g.
(define-type Command (List 'command-name arg-types ...)
(define-type
On 06/12/2015 03:15 AM, Michael Titke wrote:
In my understanding the pseudo random number generator is deterministic.
That means for the same input seed /random/ will always return the same
value. This is why one usually has to set a new state for each call of
random.
If you're generating
On 05/25/2015 11:16 AM, Greg Hendershott wrote:
Should there maybe be a parameter to control whether exn-string
returns anything interesting? And, should it be #f by default?
That's an interesting idea. I know of examples where Racket error
reports have disclosed sensitive information. Such
Hi all,
I've updated racket-explorer (https://github.com/tonyg/racket-explorer)
to handle cyclic (and mutable) data by lazily (and repeatedly) unfolding
children only when the triangle next to an item is opened (and every
time it is opened).
If you've tried it before and been discouraged at its
On 2015-05-02 2:29 PM, Neil Van Dyke wrote:
What's the current viability of running Racket on a small OpenWRT
device? (Anything new, such as due to the recent modularization of the
core?)
Nothing that I know of since 2011ish. The smaller core might make it a
little easier to assemble a
On 2015-05-03 2:50 PM, Neil Van Dyke wrote:
128 RAM and 128 NAND flash, albeit with a different SoC with lower
CPU clock rate. I don't want to rely on USB Storage for this
project.
I should mention also that I couldn't do anything useful with Racket 5.x
(as it was at the time) on the
71 matches
Mail list logo