l, but it's not something you'd want to do if the lists could
> ever be huge. And I'd say it's not really idiomatic Racket for purposes of
> your learning exercise.
>
> Remember that Racket is an imperative language; Racket is not Haskell, nor is
> Racket a mathema
On Jul 12, 2014, at 6:19 PM, Daniel Prager wrote:
> Hi Brian
>
> r >= 0 && r <= 4 && c >= 0 && c <= r
>
>
> implies
>
> 0 <= c <= r <= 4
>
>
> Or using prefix and the variable-arity of <=:
>
> (define (is-pos r c)
> (<= 0 c r 4))
>
>
> which I think works well for clarity, concision, an
On Jul 12, 2014, at 6:17 PM, Asumu Takikawa wrote:
> On 2014-07-12 16:18:55 -0400, Brian Adkins wrote:
>> 1) It's odd to me to specify the l argument, and then never refer to it.
>> 2) The syntax of the former seems less "noisy".
>
> I agree that the
I need to parse date strings '("2014-07-14" "7/14/2014" "7/14/14"). I found the
racket/date library, but while it has a date->string function, I didn't find a
string->date function.
I then checked the packages repository & clicked on the date link which
displayed a single package: stardate - I'
I haven't looked into the Racket web server much yet, so I'd like to understand
the implications of this.
My experience is with stateless http app servers (primarily with Unicorn Ruby
servers at the moment), so firing up a number of worker processes and having
something like nginx proxy to the
really have a
> "parent" and aren't really in a "session". There's not necessarily a
> connection between one continuation and another.
>
> Jay
>
> On Thu, Jul 17, 2014 at 10:33 AM, Brian Adkins wrote:
>> Jay:
>>
>> Can you clarify
nd less than 100 lines to implement the
> continuation manager and the place-based worker setup. (This is based
> on the normal server setup just being 127 lines and the manager
> interface being implemented in as little as 40 lines.) This might be
> worth it.
>
> Jay
>
>
&
d all the
> continuations in a single place. Session affinity doesn't really make
> a lot of sense in the continuation context, fwiw.
>
> My guess is that you could spend less than 100 lines to implement the
> continuation manager and the place-based worker setup. (This is based
Python's solution may be able to take
advantage of the copy-on-write aspect of forking.
Is that not the case with Places? If so, what was the rationale in not
utilizing copy-on-write?
Thanks,
Brian
On Jul 17, 2014, at 10:49 AM, Brian Adkins wrote:
> [forgot *again* to reply-all an
On Jul 17, 2014, at 1:26 PM, Matthew Flatt wrote:
>> Is that not the case with Places? If so, what was the rationale in not
>> utilizing copy-on-write?
>
> Do you mean copy-on-write via processes and fork(), or somehow by
> itself?
Yes, separate processes w/ separate virtual memory but sharing s
On Jul 17, 2014, at 2:05 PM, Brian Adkins wrote:
> On Jul 17, 2014, at 1:26 PM, Matthew Flatt wrote:
>> We wanted to avoid multiple processes because OSes don't provide great
>> facilities for managing them and communicating between them.
>
> Maybe I'm confused.
Does this seem like a bug? I'm running DRRacket 6.0.1 on Mac OSX 10.6.8.
Given:
(define (valid? a b)
(< a b))
Case 1 - works fine:
(define/contract (foo a b)
(->i ([x (z) (curry valid? z)] [z any/c]) any)
(+ a b))
Case 2 (adding a 3rd arg) - results in:
"z10: unbound identifier;
al
On Jul 22, 2014, at 8:03 PM, Brian Adkins wrote:
> Does this seem like a bug? I'm running DRRacket 6.0.1 on Mac OSX 10.6.8.
>
> Given:
>
> (define (valid? a b)
> (< a b))
>
> Case 1 - works fine:
>
> (define/contract (foo a b)
> (->i ([x (z)
loped. There aren't a lot of languages that have
both the features that are important to me *and* an active community.
--
Brian Adkins
Lojic Technologies, LLC
http://lojic.com/
On Jul 22, 2014, at 11:44 PM, Robby Findler wrote:
> Yes, that's a bug. I've pushed a fix. Thanks for th
A sincere "thank you" to everyone who was involved in creating Racket Week
2019 as well as to the other participants who helped make the week an
amazing experience!
I had high expectations, and they were all exceeded - by far. I'll be
returning home tomorrow with fond memories of my time here i
l result in both the loss of
existing users and the gain of new users, and it's not at all clear to me
which will be greater.
However, I can't *unsee* what I've seen with language oriented programming
(and the downsides to running on the JVM are too great ;), so I'm happily
One thing that's still bothering me is the admission that if Racket
was already popular enough we wouldn't be considering the syntax
change. This was an answer to a question in a live setting, and I am
prone to mis-interpreting/understanding, so I very much want to cut
Matthew some slack since he o
On Thursday, July 18, 2019 at 3:47:51 PM UTC-4, Justin Zamora wrote:
>
> On Thu, Jul 18, 2019 at 1:48 PM Brian Adkins > wrote:
> > I think more people (both existing users and new users) could get
> > excited about Racket2 if it was primarily about making Racket
> >
This may seem like a nitpick, but I think there would be a *huge* shift in
attitudes if the suggestion for an infix syntax was framed in a similar
manner to Typed Racket as opposed to Racket 2. The latter seems to imply a
premature conclusion, where the former proposes a question to be answered
On Monday, July 22, 2019 at 9:53:35 AM UTC-4, Greg Hendershott wrote:
>
> > Improved tooling also seems high-effort -- medium-risk --
> > medium-reward. I'll defer to those who concentrate more on tools,
> > including the author of Racket mode for Emacs, to suggest a priority
> > for this one.
On Monday, July 22, 2019 at 1:07:21 PM UTC-4, Caleb Allen wrote:
>
> As an additional data point, I can share my very fast introduction into
> Racket and the community. You asked for experiences where the community may
> have made people feel unwelcome, but mine is a positive experience. I share
On Monday, July 22, 2019 at 6:17:47 PM UTC-4, Zelphir Kaltstahl wrote:
>
> I just want to give one thought as input to this discussion and will
> admit, that I did not read every (but some) of the posts above.
>
> When I write code in Racket or Scheme, I mostly like the parentheses, as
> they mak
With the Racket on Chez Scheme implementation, how interoperable are Racket
and Chez? Is it possible for Racket functions to call Chez functions (or
vice versa) directly w/o using a FFI? If so, can you point me to some
documentation? If not, how difficult would it be to make this happen?
Thanks
On Tuesday, July 23, 2019 at 12:55:40 PM UTC-4, Greg Hendershott wrote:
>
> Although I'm still skeptical that changing the surface syntax will be a
> sufficiently big net gain, and ought to be the next, highest priority?
> I'm running with that idea for the following.
>
> It seems like there are
On Tuesday, July 23, 2019 at 8:52:36 PM UTC-4, Matthew Flatt wrote:
>
> At Tue, 23 Jul 2019 17:14:56 -0700 (PDT), Brian Adkins wrote:
> > With the Racket on Chez Scheme implementation, how interoperable are
> Racket
> > and Chez? Is it possible for Racket functions to ca
On Tuesday, July 23, 2019 at 9:28:53 PM UTC-4, Alex Harsanyi wrote:
>
>
> On Wednesday, July 24, 2019 at 12:55:40 AM UTC+8, Greg Hendershott wrote:
>>
>> Although I'm still skeptical that changing the surface syntax will be a
>> sufficiently big net gain, and ought to be the next, highest priority
On Wednesday, July 24, 2019 at 5:26:55 PM UTC-4, David Storrs wrote:
>
> There have been multiple threads going around about this change, so maybe
> this has been answered and I've just missed it; if so, apologies. Still, I
> would love the answer to this:
>
>What value are we trying to capt
I'm curious about the process that resulted in selecting Chez Scheme as the
runtime for Racket.
I know Chez had a reputation for being a fast implementation - was
performance the main criteria? Were other Scheme implementations considered
& rejected? If so, why? Were there other factors, in ad
On Thursday, July 25, 2019 at 12:45:36 PM UTC-4, Matthew Flatt wrote:
>
> Reordered slightly:
>
> At Thu, 25 Jul 2019 09:04:29 -0700 (PDT), Brian Adkins wrote:
> > I know Chez had a reputation for being a fast implementation - was
> > performance the main criteria?
&
I found Andy Keep's 2013 talk about writing a nanopass compiler super
interesting:
https://www.youtube.com/watch?v=Os7FE3J-U5Q
Brian
--
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
implement them, and with a more idiomatic Racket style,
but they should provide some nice exposure into various Rackety things.
I'm happy to update them with better code, and now that I've been using
rackunit daily, I may go back and add a bunch of tests which could be
instructive.
Br
;s
fine w/ me. Does anyone have a good idea of how participation is
distributed across this mailing list, reddit, slack, etc.? I'd prefer to
focus my efforts on one channel of communication.
Brian Adkins
--
You received this message because you are subscribed to the Google Groups
"R
On Monday, August 12, 2019 at 10:50:03 AM UTC-4, Neil Van Dyke wrote:
>
> Robby, I'm still not certain we all have a shared understanding of some
> of the concerns and where we all stand, so please let me try to get at
> that some of that:
>
> > As for adopting-new-syntax vs backwards-compatibil
se of us who
have invested much in a #lang racket codebase can make an informed decision
about how to proceed.
Thanks,
Brian Adkins
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop rece
The current Racket example for Synchronous Concurrency seems a little
verbose and overly complicated:
https://rosettacode.org/wiki/Synchronous_concurrency#Racket
What do you think of the following example instead?
Brian Adkins
--- snip ---
(define (reader)
(for ([line (in-lines (open-input
sting entry re: using channels.
Brian Adkins
>
>
--
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 vi
On Friday, August 16, 2019 at 6:46:14 PM UTC-4, Brian Adkins wrote:
>
> I went ahead and added my version to the Racket section w/ some subtle
> changes from my original post. I'm happy to edit it if necessary.
>
> https://rosettacode.org/wiki/Synchronous_concurrency#Racke
On Saturday, August 17, 2019 at 6:56:29 AM UTC-4, Stephen De Gabrielle
wrote:
>
> Thanks Brian
> This is great!
>
> Stephen
>
>
My pleasure. By the way, here are unimplemented tasks for Racket if people
want to contribute solutions:
http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_R
k it's
probably the wrong approach. If there are examples of this sort of thing,
I'd love to see them.
Thanks,
Brian Adkins
(define-syntax (routes stx)
(syntax-parse stx
[ (routes (route:string
handler:id
(~alt (
On Monday, August 19, 2019 at 3:35:00 PM UTC-4, Brian Adkins wrote:
>
> I'm working on a macro to allow the following:
>
> (routes
> ("/foo" foo-handler #:method put)
> ("/bar" bar-handler #:methods (put update))
> ("/baz" baz-handler))
(define-syntax (routes stx)
(syntax-parse stx
[ (routes (element ...) ...)
(with-syntax ([ name (format-id stx "axio-routes") ])
#'(define name (list (route-element element ...) ...)))]))
(define-syntax (route-element stx)
(syntax-parse stx
[ (route-element route:string
On Monday, August 19, 2019 at 5:48:29 PM UTC-4, Sorawee Porncharoenwase
wrote:
>
> You could use (splicing) syntax class to help with normalization:
>
> #lang racket
>
> (require syntax/parse/define
> (for-syntax syntax/parse
> racket/syntax))
>
> (begin-for-syntax
>
t;) (number "5552121")
So that it would appear to the phone-numbers macro as if the user had
actually typed:
(phone-numbers
(number "5551212")
(number "5552121")
(number "1234"))
Is it possible to do this w/o the explicit cooperation o
On Tuesday, August 20, 2019 at 8:43:07 PM UTC-4, Sorawee Porncharoenwase
wrote:
>
>
>1. You will need a cooperation of phone-numbers macro. There are two
>ways I am aware of
>1.1 You could hard code in phone-numbers to deal with add-prefix
>directly.
>1.2 A more general appro
On Tuesday, August 20, 2019 at 9:11:54 PM UTC-4, Brian Adkins wrote:
>
> On Tuesday, August 20, 2019 at 8:43:07 PM UTC-4, Sorawee Porncharoenwase
> wrote:
>>
>>
>>1. You will need a cooperation of phone-numbers macro. There are two
>>ways I am aware of
:)
Since my post (referenced above), I have decided to not wait for the Racket
project leadership, and have gone "all in" with #lang racket, and I plan on
continuing with that attitude for the foreseeable future. I expect to be
able to add some new packages to the great set we already have b
nd I would prefer to also use
Postgres for the persistence of the job queue to avoid introducing
something new (e.g. Redis) to my server setup. Amazon RDS provides great
multi-site availability, so I want to continue to leverage that.
Thanks,
Brian Adkins
--
You received this message because you a
I'm posting a file to my web app using the following form:
...
I use a simple function to create a hashtable of attributes:
(define (form-values req)
(for/hash ([ b (in-list (request-bindings/raw req)) ])
(cond [ (binding:form? b) (values
(bytes->string/utf
racket-lang.org/doc/web-server-internal/dispatch-server-unit.html#%28part._safety-limits%29
>
>
> To get these changes ahead of the release, you should be able to install
> an updated version of `web-server-lib' from the package server or from
> git.
>
> Hope
r-unit.html#%28part._safety-limits%29
>
>
> To get these changes ahead of the release, you should be able to install
> an updated version of `web-server-lib' from the package server or from
> git.
>
> Hope that helps!
>
> - Bogdan
>
> Brian Adkins writes:
just approved a message from you (that I was
> alerted to only this morning). Was that the message?
>
> Robby
>
> On Thu, Feb 13, 2020 at 2:57 PM Brian Adkins > wrote:
> >
> > I tried replying earlier today, but somehow the post got deleted -
> could
On Monday, December 3, 2018 at 10:49:40 AM UTC-5, Jay McCarthy wrote:
>
> > I don't know if the Racket web server (or related libraries) currently
> provide a way to stream data in the response, but that is something I'll
> definitely need relatively soon (primarily for streaming large CSV/JSON
I was able to write a simple wrapper around smtp-send-message and get it
working through SendGrid in a few minutes (see below), but I wasn't able to
find any examples of sending emails containing both a plain text version
and HTML version. Can anyone point me to some examples?
Thanks,
On Wednesday, April 8, 2020 at 1:46:43 PM UTC-4, gneuner2 wrote:
>
>
> On 4/8/2020 12:54 PM, Brian Adkins wrote:
> > I was able to write a simple wrapper around smtp-send-message and get
> > it working through SendGrid in a few minutes (see below), but I wasn't
> &
On Wednesday, April 8, 2020 at 6:09:14 PM UTC-4, Brian Adkins wrote:
>
> On Wednesday, April 8, 2020 at 1:46:43 PM UTC-4, gneuner2 wrote:
>>
>>
>> On 4/8/2020 12:54 PM, Brian Adkins wrote:
>> > I was able to write a simple wrapper around smtp-send-message and get
On Thursday, April 9, 2020 at 8:47:09 AM UTC-4, Matthew Flatt wrote:
>
> At Wed, 8 Apr 2020 21:28:11 -0400, George Neuner wrote:
> > There's nothing in Racket for MIME that I'm aware of
>
> There's a `net/mime` library.
>
> I'm replying with an attachment so you can see what it generates, since
On Saturday, May 2, 2020 at 3:03:01 PM UTC-4, johnbclements wrote:
>
> Racket version 7.7 is now available from
[...]
>
The following people contributed to this release:
>
> Alexander Shopov, Ben Greenman, Benjamin Yeung, Brian Adkins, Brian
> Wignall, Chongkai Zhu,
On Saturday, May 16, 2020 at 3:16:18 PM UTC-4, Norman Gray wrote:
>
> [...]
> The exception is thrown inside the 'output' procedure
> that's provided as the last argument to the 'response' constructor (I
> belatedly realise this is probably a bad idea).
> [...]
> But (a) what should I be doing?
I spent many years developing in Ruby before switching to Racket, so I
understand the appeal of a "batteries included" language. Python excels in
this area. If you're weighting the "batteries included" aspect very high,
then Racket may not be suitable for you at this time, but in that case, I
e
Sorry - missed the fact that you already found the cookie library :)
On Sunday, May 17, 2020 at 5:08:32 PM UTC-4, Brian Adkins wrote:
>
> I spent many years developing in Ruby before switching to Racket, so I
> understand the appeal of a "batteries included" language. Pytho
I may look into this in more detail later, but I ran a simple benchmark
comparison on my modest AWS EC2 server (ApacheBench can behave poorly on
MacOS).
1) I ran ApacheBench w/ 6 processes to fetch a simple "hello world" static
html file using only nginx. I got roughly 650 requests per second.
On Thursday, June 4, 2020 at 1:45:30 AM UTC-4, Neil Van Dyke wrote:
>
> I'm now leading engineering at a startup with an established Python &
> Flask infrastructure, and happen to urgently need an additional dynamic
> Web&database service backend that's separate from the rest of our
> infrastruc
On Wednesday, June 17, 2020 at 4:50:44 AM UTC-4, Alex Harsanyi wrote:
>
>
> I am trying to speed up an algorithm using futures, but I am getting some
> unexpected results (and no real speed improvements), and I was wondering if
> someone more experienced could have a look a the code and tell me w
On Wednesday, June 17, 2020 at 4:50:44 AM UTC-4, Alex Harsanyi wrote:
>
>
> I am trying to speed up an algorithm using futures, but I am getting some
> unexpected results (and no real speed improvements), and I was wondering if
> someone more experienced could have a look a the code and tell me w
On Thursday, April 30, 2020 at 8:57:45 AM UTC-4, Jay McCarthy wrote:
>
> If you do so, and if your users need to pin themselves to particular
> versions there are broadly two techniques. First, you can create your
> own package catalog. Most users typically use two catalogs: the "big"
> one on p
On Friday, June 19, 2020 at 8:09:04 AM UTC-4, Neil Van Dyke wrote:
>
> For an important production system, you probably want the source of any
> third-party packages on which you depend to be in Git (or another SCM
> system) that you control.
>
> You might also want to audit those packages yours
On Friday, June 19, 2020 at 3:36:55 PM UTC-4, Hendrik Boom wrote:
>
> On Fri, Jun 19, 2020 at 07:54:29AM -0700, Brian Adkins wrote:
> > On Friday, June 19, 2020 at 8:09:04 AM UTC-4, Neil Van Dyke wrote:
> > >
> > > For an important production system, you prob
On Saturday, June 20, 2020 at 11:35:32 AM UTC-4, Simon Schlee wrote:
>
>
> What I'd like to do is to create a personal catalog that represents the
>> packages I currently have installed, but it doesn't appear there's a super
>> easy `raco pkg` command to do that - I still need to research a bit.
201 - 268 of 268 matches
Mail list logo