Jay McCarthy wrote at 09/17/2011 12:23 AM:
I'm currently in the process of doing this for the 65816 processor.
This is a 16-bit processor most popularly used in the Super Nintendo
Entertainment System.
Neat stuff, Jay. I was not aware of this.
p.s. Why the 65816? It's really simple to und
Unfortunately serve/servlet does not have a way to know when it's
ready. However, serve does provide a confirmation-channel argument
that sends back which port was opened, so you could listen to that.
That's kind of a pain in the neck, because even though you have
dispatch/servlet it's not very nic
On Fri, Sep 16, 2011 at 12:07 PM, Neil Van Dyke wrote:
> Maybe also a possibility is to use layers of Racket syntax transformers over
> a lower layer that simply writes out a conventional VHDL or whatever file.
> This would be a more convenient way to implement higher-level languages for
> FPGAs
Very cool, thanks for the ideas.
Daniel
On Fri, Sep 16, 2011 at 1:20 PM, Matthias Felleisen wrote:
>
> Yes, I was thinking of naming the register explicitly too.
>
> On Sep 16, 2011, at 4:17 PM, Daniel MacDougall wrote:
>
> > I suppose that would work. Sam suggested on #racket that I include the
Yes, I was thinking of naming the register explicitly too.
On Sep 16, 2011, at 4:17 PM, Daniel MacDougall wrote:
> I suppose that would work. Sam suggested on #racket that I include the name
> of the argument in the macro definition:
>
> (define-syntax-rule (foo bar form ...)
> ((lambda (ba
The following program should work. It uses a "syntax parameter" to
reserve the name bar, then redirects that name to the argument to the
lambda inside each use of foo. The reference material on syntax
parameters is at:
http://docs.racket-lang.org/reference/stxparam.html
#lang racket
(require r
I suppose that would work. Sam suggested on #racket that I include the name
of the argument in the macro definition:
(define-syntax-rule (foo bar form ...)
((lambda (bar) form ...) "ARG"))
Then you could say:
(foo bar
; Do stuff with bar here...
)
On Fri, Sep 16, 2011 at 1:12 PM, Matthias
Why not just store the arguments to lambda in some 'register' and ask for them?
On Sep 16, 2011, at 4:09 PM, Daniel MacDougall wrote:
> In this example it should return "ARG".
>
> On Fri, Sep 16, 2011 at 1:08 PM, Matthias Felleisen
> wrote:
>
>
> What should (foo bar) return?
>
>
> O
In this example it should return "ARG".
On Fri, Sep 16, 2011 at 1:08 PM, Matthias Felleisen wrote:
>
>
> What should (foo bar) return?
>
>
> On Sep 16, 2011, at 3:46 PM, Daniel MacDougall wrote:
>
> > Is there any way to define a macro that expands out to a lambda, and then
> access the arguments
What should (foo bar) return?
On Sep 16, 2011, at 3:46 PM, Daniel MacDougall wrote:
> Is there any way to define a macro that expands out to a lambda, and then
> access the arguments passed to that lambda from outside the macro in the
> calling context?
> Here's an example of what I mean:
>
Right so I just have to call set-uid once on the first start request,
because serve/servlet hangs. Is there a slicker way to have serve/servlet
call some given initialization function once after doing it's work and
before receiving any requests? I don't see anything for that in the
documentation, b
Is there any way to define a macro that expands out to a lambda, and then
access the arguments passed to that lambda from outside the macro in the
calling context?
Here's an example of what I mean:
#lang racket
(define-syntax-rule (foo form ...)
((lambda (bar) form ...) "ARG"))
(foo "Hello") ;
An hour ago, John Clements wrote:
>
> On Sep 16, 2011, at 11:03 AM, Jay McCarthy wrote:
>
> > I think you can use ffi-lib with #f because it is already attached.
>
> Yeah, okay, looks like this works:
>
> #lang racket
>
> (require ffi/unsafe)
>
> ;; return type is "gid_t". Safe to use int?
>
On Sep 16, 2011, at 1:42 PM, Greg Hendershott wrote:
> This is very helpful! Thank you for creating it.
>
> One tiny thing I noticed is that section 3 has comments that start
> with one semi-colon, but section 4.1 seems to recommend two?
Scribble does one semi-colon no matter how many you put
On Sep 16, 2011, at 11:03 AM, Jay McCarthy wrote:
> I think you can use ffi-lib with #f because it is already attached.
Yeah, okay, looks like this works:
#lang racket
(require ffi/unsafe)
;; return type is "gid_t". Safe to use int?
(define setuid
(get-ffi-obj "setuid" (ffi-lib #f)
David Blubaugh wrote at 09/16/2011 12:36 PM:
> Has Dr. Racket ever been utilized for FPGA development ???
That would be interesting.
Maybe one could put a Racket VM in FPGA.
Maybe also a possibility is to use layers of Racket syntax transformers
over a lower layer that simply writes out a conv
I think you can use ffi-lib with #f because it is already attached.
Jay
On Fri, Sep 16, 2011 at 11:58 AM, John Clements
wrote:
>
> On Sep 16, 2011, at 10:51 AM, Jay McCarthy wrote:
>
>> I've done it before, it's easy and works, but I can't seem to find the
>> code...
>
> Can you recall of the t
On Sep 16, 2011, at 10:51 AM, Jay McCarthy wrote:
> I've done it before, it's easy and works, but I can't seem to find the code...
Can you recall of the top of your head whether you can use ffi-lib on
libc.dylib? If so, no C code would be required at all.
John
>
> Jay
>
> On Fri, Sep 16, 20
I've done it before, it's easy and works, but I can't seem to find the code...
Jay
On Fri, Sep 16, 2011 at 11:31 AM, John Clements
wrote:
>
> On Sep 16, 2011, at 6:59 AM, Jeremy Kun wrote:
>
>> Oops, meant to reply-all
>>
>> Jeremy
>
> One other relevant thought; how hard would it be to throw ou
Thank you very much!
I now know I can use "values" as the identity function instead of
rolling my own each time.
On 09/14/2011 05:47 PM, Matthias Felleisen wrote:
For the past few months, I have been writing a style guide for new Racket
PLTers. The current draft is available at
http:/
This is very helpful! Thank you for creating it.
One tiny thing I noticed is that section 3 has comments that start
with one semi-colon, but section 4.1 seems to recommend two?
On Wed, Sep 14, 2011 at 8:47 PM, Matthias Felleisen
wrote:
>
>
> For the past few months, I have been writing a style g
On Sep 16, 2011, at 6:59 AM, Jeremy Kun wrote:
> Oops, meant to reply-all
>
> Jeremy
One other relevant thought; how hard would it be to throw out Apache and just
use setuid to demote racket's privileges after starting? I don't see a built-in
binding for setuid--presumably because it's comple
Has Dr. Racket ever been utilized for FPGA development ???
Has any one ever developed Dr. Racket for the meta-programming of FPGAS ???
David Blubaugh
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Oops, meant to reply-all
Jeremy
On Fri, Sep 16, 2011 at 8:59 AM, Jeremy Kun wrote:
> The redirects are hitting port 8080, via the rules verbatim from that FAQ.
> Literally, I have the following in my httpd.conf:
>
> RewriteEngine on
>
> RewriteRule ^(.*)$ http://localhost:8080/$1 [P,NE]
>
> So
I think I've seen that before and I thought it meant the redirect was
set up wrong, but it doesn't seem like you have done that.
What URL are the GETs to? What happens when you go to it directly?
Jay
On Thu, Sep 15, 2011 at 11:13 PM, Jeremy Kun wrote:
> I'm trying to set up Apache to redirect t
25 matches
Mail list logo