This url http://localhost:8000/servlets/standalone.rkt?test=%ff
causes server to close connection whereas
http://localhost:8000/servlets/standalone.rkt?test=%23 does not , and
works as expected.
I suppose this is caused by use of net/url library, right?
On Fri, Aug 12, 2011 at 11:43 PM, Jay McCar
Since server part expects escaped data based on rfc 1738 , I "assume"
that it will not be able to interpret the data as base64 encoding.
As per bittorrent spec , the get request to tracker must have
info_hash(20 byte sha) escaped along with others.
Is there any other way to insert query part in url
On Fri, Aug 12, 2011 at 9:00 PM, Robby Findler
wrote:
> I'm not following exactly-- are you saying that removing the
> scribblings field causes fewer files to be compiled?
Yes. We're running into this situation when installing version 1.6 of tracer:
http://planet.racket-lang.org/display.ss?pack
I'm not following exactly-- are you saying that removing the
scribblings field causes fewer files to be compiled?
Robby
On Fri, Aug 12, 2011 at 6:27 PM, Danny Yoo wrote:
> It appears that compile-omit-paths doesn't prevent a scribble file
> from being compiled, which is problematic if the scribb
On Fri, Aug 12, 2011 at 19:19, Matthew Flatt wrote:
> The problem seems to be that __sync_bool_compare_and_swap() is
> available only when the compiler knows that its generating code for
> i486 or up, and it's not available when compiling for i386.
>
> The Racket headers files try to use C pre-pr
It appears that compile-omit-paths doesn't prevent a scribble file
from being compiled, which is problematic if the scribble file
requires another module that includes image snips. We're seeing that
when we PLaneT install a package, that during compilation, we see this
error message:
raco set
The problem seems to be that __sync_bool_compare_and_swap() is
available only when the compiler knows that its generating code for
i486 or up, and it's not available when compiling for i386.
The Racket headers files try to use C pre-processor tests to decide
whether to use __sync_bool_compare_and_
2011/8/12 Racket Noob :
> It's a sad thing that I cannot find a book or text as clear as PG's "On
> Lisp" that covers Racket's hygienic macros in such detailed manner. :(
Be sure to read TSPL's section on syntax-rules and syntax-case and
work through all of the problems.
_
I have a macro that restructures `let' binding lists, and I would like
to have it play nice with Check Syntax.
Here's an example:
(let ([x 1.2+3.4i])
body ...)
is expanded to:
(let ([x-real 1.2]
[x-imag 3.4])
body ...)
with references to `x' replaced by references to `x-real' and `x
On Saturday, Eric Hanchrow wrote:
> I would like to put in a plug for my dear friend Rudybot, written
> partly by Eli but mostly by me, now playing on #racket and #scheme
> on Freenode:
>
> https://github.com/offby1/rudybot
It's written completely by Eric! -- My contribution was mostly in
helpin
Hello,
I checked that the version of GCC in the machine is way too old.
GCC's website tells that GCC 4.4.6 is the oldest maintained release series.
So maybe it's better to don't invest any time in "fixing" anything.
I have a possibility to migrate to a newer server at Webfaction with newer
GCC.
On 08/12/2011 12:08 PM, Sam Tobin-Hochstadt wrote:
On Fri, Aug 12, 2011 at 1:58 PM, Ryan Culpepper wrote:
On 08/12/2011 11:37 AM, Sam Tobin-Hochstadt wrote:
On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoowrote:
In which the first three lines are coming from compile-time, and I see
that my li
That's what the Web Server stuffers do
http://docs.racket-lang.org/web-server/stateless.html#(part._stuffers)
On Fri, Aug 12, 2011 at 11:38 AM, Danny Yoo wrote:
> The library already does some URL encoding for you, as "%" is an
> illegal character in a query string, since that's the escape chara
On Fri, Aug 12, 2011 at 1:58 PM, Ryan Culpepper wrote:
> On 08/12/2011 11:37 AM, Sam Tobin-Hochstadt wrote:
>>
>> On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoo wrote:
>>>
>>> In which the first three lines are coming from compile-time, and I see
>>> that my lift-to-toplevel macro is firing off, even
On 08/12/2011 11:37 AM, Sam Tobin-Hochstadt wrote:
On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoo wrote:
In which the first three lines are coming from compile-time, and I see
that my lift-to-toplevel macro is firing off, even though I placed it
in the stop-list of local-expand.
What's happening
Darn it, I declared victory too soon, as usual. :)
I'm still running into the same problem even switching out with
#%plain-module-begin. Here's where I am now:
;
;;; small-lang.rkt
#lang racket
(provide (except-ou
On Fri, Aug 12, 2011 at 1:39 PM, Danny Yoo wrote:
> On Fri, Aug 12, 2011 at 1:37 PM, Sam Tobin-Hochstadt
> wrote:
>> On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoo wrote:
>>>
>>> In which the first three lines are coming from compile-time, and I see
>>> that my lift-to-toplevel macro is firing off,
On Fri, Aug 12, 2011 at 1:37 PM, Sam Tobin-Hochstadt wrote:
> On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoo wrote:
>>
>> In which the first three lines are coming from compile-time, and I see
>> that my lift-to-toplevel macro is firing off, even though I placed it
>> in the stop-list of local-expand
The library already does some URL encoding for you, as "%" is an
illegal character in a query string, since that's the escape character
itself for arbitrary bytes, "%25" gets translated down to...
;;;
> (integer->char (string->number "25" 16
On Fri, Aug 12, 2011 at 1:25 PM, Danny Yoo wrote:
>
> In which the first three lines are coming from compile-time, and I see
> that my lift-to-toplevel macro is firing off, even though I placed it
> in the stop-list of local-expand.
What's happening here is that the `#%module-begin' binding from
I'm having some difficulty using local-expand with regards to stop
lists. Here's what I'm trying:
;;;
;; small-lang.rkt
#lang racket
(provide (except-out (all-from-out racket)
#%module-begin)
>> I like how you show one way of converting a match to an object, and then
>> show a better way. What I did not like very much is how the first way is
>> really verbose and made me question whether to read on, and in
>> retrospect the way using match isn't much less verbose. Wouldn't a
>> simple (
Hello,
Is there a way to encode/escape binary data in query part of url.
For example :
(require net/url)
(define (escape-bytes bites)
"%ff%ff")
(define hash (bytes 255 255))
(define a-url (string->url "http://www.example.com/";))
(set-url-query! a-url (list (cons 'test (escape-bytes hash
2011/8/12 Racket Noob :
> Thank you, beautiful people!
>
> I'll take a look at Dybvig's article.
Also:
http://blog.racket-lang.org/2011/04/writing-syntax-case-macros.html
Hmmm... we need some consolidation. This material belongs in the Guide.
__
Thank you, beautiful people!
I'll take a look at Dybvig's article. And, i hope that upcoming book, "Realm of
Racket", will contain non-trivial chapter about "racket-way" macros.
By the way, when will "RoR" be published? I'm so eager to see it! :)
Racket Noob
> Date: Fri, 12 Aug 2011 11:05:
On Fri, Aug 12, 2011 at 10:44 AM, Danny Yoo wrote:
> Kent Dybvig's tutorial on syntax case was helpful for me:
>
> http://www.cs.indiana.edu/~dyb/pubs/tr356.pdf
>
I second that recommendation. It was a huge help to me when learning
to write macros in Racket.
__
> Oh, that's my problem: i obviously don't understand what's the places where
> macro expansion happens.
> I ended up writing "classical" lisp non-hygienic macro instead.
>
> It's a sad thing that I cannot find a book or text as clear as PG's "On
> Lisp" that covers Racket's hygienic macros in suc
Neil Van Dyke writes:
> (Pardon the writing in enumerations, but someone erroneously put caf
> coffee in the decaf coffee carafe.)
Say *that* ten times fast.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
On Fri, Aug 12, 2011 at 11:06, Matthew Flatt wrote:
> We've made some repairs in that area since 5.1.2, but I don't know if
> we've solved the problem that you're seeing. Which version of gcc are
> you using?
>
>
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
On Fri, Aug 12, 2011 at 9:22 AM, Neil Van Dyke wrote:
> 1. Without trying it, I'm pretty sure this particular syntax transformation
> can be done in "syntax-rules", but I'm not certain it can be done using only
> the power of "..." in "syntax-rules", without a helper macro. Your life
> might be e
Thank you, Neil.
I really appreciate your answer. I've just started programming with
syntax-rules and I see now that I have lot to learn further about these
scheme-way macros.
Unfortunately, i'm currently unable to produce this macro with syntax-rules or
syntax-case.
But i have done it in c
1. Without trying it, I'm pretty sure this particular syntax
transformation can be done in "syntax-rules", but I'm not certain it can
be done using only the power of "..." in "syntax-rules", without a
helper macro. Your life might be easier if you do this particular
transformation in "syntax-c
We've made some repairs in that area since 5.1.2, but I don't know if
we've solved the problem that you're seeing. Which version of gcc are
you using?
At Fri, 12 Aug 2011 03:01:54 -0300, Rodolfo Carvalho wrote:
> Hello,
>
> I was trying to compile Racket Textual from source in a Webfaction's shar
Racket/Scheme language designers sometimes ask navel-gazing questions
like "What does it really mean to return a value?" -- asked
intelligently, not under the influence of psychoactives -- and this kind
of thinking soon leads to greater insight and to more powerful
programming language features
Oh, that's my problem: i obviously don't understand what's the places where
macro expansion happens.
I ended up writing "classical" lisp non-hygienic macro instead.
It's a sad thing that I cannot find a book or text as clear as PG's "On Lisp"
that covers Racket's hygienic macros in such deta
At Tue, 26 Jul 2011 00:37:41 -0300, Diogo F. S. Ramos wrote:
> Is there a documented way to extend the racket/gui language with widgets
> already present in Gtk?
>
> For now, I'm particularly interested in using GtkSpinButton.
>
> I'm using Ubuntu and Racket v5.1.2.3.
[Sorry for the delay in ans
On Fri, Aug 12, 2011 at 7:49 AM, Casey Klein
wrote:
> On Fri, Aug 12, 2011 at 7:39 AM, Robby Findler
> wrote:
>> Unfortunately, that position in a 'case' expression is not a place
>> where macro expansion happens. You can, however, use a 'cond' instead
>> of 'case'.
>>
>
> But you still can't use
On Fri, Aug 12, 2011 at 7:39 AM, Robby Findler
wrote:
> Unfortunately, that position in a 'case' expression is not a place
> where macro expansion happens. You can, however, use a 'cond' instead
> of 'case'.
>
But you still can't use a macro like `process-state' to generate an
entire `cond' claus
Unfortunately, that position in a 'case' expression is not a place
where macro expansion happens. You can, however, use a 'cond' instead
of 'case'.
Robby
On Fri, Aug 12, 2011 at 7:33 AM, Casey Klein
wrote:
> On Fri, Aug 12, 2011 at 7:26 AM, Jay McCarthy wrote:
>> 2011/8/11 Racket Noob :
>>>
>>>
On Fri, Aug 12, 2011 at 7:26 AM, Jay McCarthy wrote:
> 2011/8/11 Racket Noob :
>>
>> (define-syntax automaton
>> (syntax-rules (: -> END)
>> [(_ init-state
>> (state : transition ...)
>> ...)
>> (letrec ([curr-state empty]
>> [state
>> (lambd
2011/8/11 Racket Noob :
> Hi all!
>
> I want to create macro for creating a DFA automaton (similar to
> one described
> here: http://www.cs.brown.edu/~sk/Publications/Papers/Published/sk-automata-macros/paper.pdf )
>
> My desire is that, for example, this form
>
> (automaton init
> (init : (c ->
dynamic-wind is the proper way to express 'finally' in Racket.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Hi all!
I want to create macro for creating a DFA automaton (similar to one described
here:
http://www.cs.brown.edu/~sk/Publications/Papers/Published/sk-automata-macros/paper.pdf
)
My desire is that, for example, this form
(automaton init
(init : (c -> more))
(more : (a -> more)
Sam Phillips writes:
>
> Hi All,
>
> I understand using call-with-exception-handler/with-handlers/etc. to
> catch exceptions in a block of code, but I'm at a loss to what the best
> way to do a "finally" or cleanup action after a block of code. My
> intuition is to use dynamic-wind, but I figu
Sam Phillips writes:
>
> On Fri, Oct 8, 2010 at 4:40 PM, Jay McCarthy wrote:
> > I use dynamic-wind for this. If there is something better, I don't
> > know what it is. dynamic-wind is a little bit funny though because if
> > you capture continuations then the in/out handlers can run multiple
>
45 matches
Mail list logo