On Tuesday, August 18, 2015 at 1:24:38 AM UTC-4, Alex Knauth wrote:
> On Aug 18, 2015, at 1:18 AM, Brian Adkins wrote:
>
> > On Tuesday, August 18, 2015 at 1:13:16 AM UTC-4, Alex Knauth wrote:
> >> Is == what you're looking for?
> >> Or do you want a version of == that uses string=? ?
> >
> > I'
On Aug 18, 2015, at 1:18 AM, Brian Adkins wrote:
> On Tuesday, August 18, 2015 at 1:13:16 AM UTC-4, Alex Knauth wrote:
>> Is == what you're looking for?
>> Or do you want a version of == that uses string=? ?
>
> I'm not sure what you're suggesting. I basically want a way to inject the
> value
Very helpful, thank you. You're right that the #:methods spec was messing
up the original macro, too. Though it had some other problems after I got
beyond that hurdle.
Every time I think I am starting to understand macros I find out I don't.
Deren
On Tue, Aug 18, 2015 at 12:43 AM, Alexander D. K
On Tuesday, August 18, 2015 at 1:13:16 AM UTC-4, Alex Knauth wrote:
> Is == what you're looking for?
> Or do you want a version of == that uses string=? ?
I'm not sure what you're suggesting. I basically want a way to inject the value
of x into the pattern vs. using a literal such as "abc" since
Is == what you're looking for?
Or do you want a version of == that uses string=? ?
On Aug 18, 2015, at 12:55 AM, Brian Adkins wrote:
> Consider the following:
>
> (define x "abc")
> (match '(1 "abc")
> [ (list 1 y) #:when (string=? y x) #t ]
> [ _ #f ])
>
> Is there a way to accomplish the s
Consider the following:
(define x "abc")
(match '(1 "abc")
[ (list 1 y) #:when (string=? y x) #t ]
[ _ #f ])
Is there a way to accomplish the same thing more concisely by interpolating the
value of x into the pattern? For example (non-working syntax):
(define x "abc")
(match '(1 "abc")
[
Hi, folks. I'd like to implement an LPMUD-like multi-user programmable
environment in Racket. The idea is that an "object" would be a module plus
some state, similar to a gen_server in Erlang. Objects would each live in
their own sandbox and communicate with one another via message passing,
probabl
I'm not sure why that doesn't work, but I redid it with my define-struct-fields
macro factored out and this worked:
I'm not sure but I suspect the real difference comes from passing gen:printable
to the pstruct macro though, because that's what causes this to fail.
I also had to add the optional
Thanks for your help Alexander. I did have this much working alright in a
different manner. What I guess I wanted was that this syntax was introduced
per struct so that the same syntax worked for all interface-structs. That
is, if I
(interface-struct test (a b c)
[(define (some-interface-function
Are you looking for a macro like this:
#lang racket
(require syntax/parse/define (for-syntax racket/syntax))
(define-simple-macro (define-struct-fields struct:id (field:id ...) v:expr)
#:with s (generate-temporary #'struct)
#:with [struct-field ...]
(for/list ([field (in-list (syntax->list #'
Suppose I have a struct which implements a generic interface. I'll copy and
paste the interface from the guide for the example. What I'd like to do is
have automatically-introduced syntax which allows you to skip a lot of the
struct-accessor forms. So for instance, for a struct like
(struct test (a
Thank you, Jay. I'll try it.
2015年8月17日月曜日 23時45分07秒 UTC+9 Jay McCarthy:
> There's nothing experimental or especially teaching oriented in the
> API. It is as useful as PHP and Python's. I personally think it is
> more useful because of some special Racket-y things it does, but I'm
> obviously bia
In that case is it possible to have a version for HEAD, or at least the
latest nightlies, as those version numbers tend to change quite rapidly?
~Leif Andersen
On Mon, Aug 17, 2015 at 10:47 AM, Jay McCarthy
wrote:
> This is not currently a feature.
>
> Jay
>
> On Sun, Aug 16, 2015 at 11:09 AM,
Jack Firth wrote on 08/17/2015 03:21 PM:
From my limited experience with C, I've learned it's pretty much
impossible to expect any sane human to keep track of memory perfectly.
That's a helpful impression. C must be feared and respected, before it
can be tamed.
That said, I think it's feasi
On Monday, August 17, 2015 at 9:07:15 AM UTC-7, Matthew Flatt wrote:
> That's an especially basic mistake, and it slipped by because low-level
> locks are rarely allocated in the run-time system. Place channels are
> probably the simplest way to trigger new locks, but the test that
> checks for lea
Thank you Matthew.
On 17/08/15 17:07, Matthew Flatt wrote:
> That's an especially basic mistake, and it slipped by because low-level
> locks are rarely allocated in the run-time system. Place channels are
> probably the simplest way to trigger new locks, but the test that
> checks for leaks with p
The problem is in the clean-up of OS-level locks. A lock is allocated
using a combination of malloc() and pthread_mutex_init(), for example.
The clean up was usually missing the free() to go along with
pthread_mutex_destroy().
That's an especially basic mistake, and it slipped by because low-level
It sounds like you are on the right track. If you need help and can
provide a test case, then I'd be able to be more useful. I think the
function you're going to want to get out is something like:
http-conn-tunnel/ssl : http-conn [arguments to ports->ssl-ports] -> http-conn
where the input port i
I'm looking into this. I can confirm that the GC thinks there's no
leak, but the OS thinks there is.
Thanks for the example and info!
At Mon, 17 Aug 2015 16:09:00 +0100, Tim Brown wrote:
> Sam,
>
> I don’t see the leak with (display (current-memory-use)) -- sorry for
> leaving it in the example,
Sam,
I don’t see the leak with (display (current-memory-use)) -- sorry for
leaving it in the example, it’s misleading since your numbers behave
like mine did when I used that function.
I *do*, however, see the leak on my gnome-system-monitor; which looks
like something that’s invisible to the GC
This is not currently a feature.
Jay
On Sun, Aug 16, 2015 at 11:09 AM, Alexander D. Knauth
wrote:
> Is there a way to create a version exception for a range of versions, instead
> of for a single version?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rac
There's nothing experimental or especially teaching oriented in the
API. It is as useful as PHP and Python's. I personally think it is
more useful because of some special Racket-y things it does, but I'm
obviously biased.
Jay
On Mon, Aug 17, 2015 at 3:41 AM, wrote:
> Hi,
>
> I want to build my
On 17/08/15 15:15, Tim Brown wrote:
> To explain my need of insane numbers of places, I [...]
I mean place-channels, the population of places is fixed.
--
Tim Brown CEng MBCS
City Computing Limited · www.ci
Great! Thank you!
Best,
Marduk
--
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.
For more options, visit https://groups
On 17/08/15 15:02, Tim Brown wrote:
> I am observing a memory leak with place-channels. I have long-lived (or
> very busy server “places” ) which I think are exhausting VM memory and
> causing spectacular failures -- core dumps, spins and other fun I came
> to Racket to avoid. Please could someone
Folks,
I am observing a memory leak with place-channels. I have long-lived (or
very busy server “places”) which I think are exhausting VM memory and
causing spectacular failures -- core dumps, spins and other fun I came
to Racket to avoid. Please could someone more familiar with the code
take a lo
On Sun, Aug 16, 2015 at 6:40 AM, Marduk Bolaños wrote:
> Coming back to my original question. What is your advice for using
> Racket's draw and plot in other programs?
>
Hi, Marduk.
There was a discussion that is close to your purpose.
http://lists.racket-lang.org/users/archive//2014-January/061
Hi,
I want to build my web server in internet and make a simple blog page. Is the
racket's web server API useful as php or python, or experimental or for
teaching?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
28 matches
Mail list logo