On Tuesday, April 7, 2015 at 7:55:38 AM UTC-4, Robby Findler wrote:
> If you have a recent snapshot build then you can say "raco pkg update
> drracket". It should also be in today's snapshots (I think it made the
> deadline).
Ah, OK. I'll try that.
Before reading this, I got so far as "raco pkg
On Monday, April 6, 2015 at 6:46:35 PM UTC-4, Robby Findler wrote:
> I've just pushed a change to DrRacket to do that. Thanks for the
> prompting; it helped me realize a better approach than what was there
> before.
>
> The way it now works is less accurate than it was before but I think a
> win o
In DrRacket, is there any way to get the blue info box in the top-right corner
to show up for unfinished forms? As it is now, it only seems to show up once
the syntax checks. Which makes it basically useless as an aid to the beginner
writing code.
I *thought* it might be useful when I was readi
his code we use the "square" function. In mit-scheme it's ok, in Racket
> it's not defined
>
> Should I import any module ?
>
> Are common functions named as in mit-scheme ? Or are we gonna run into
> compatibility issues ?
>
> Thanks for any
edures take an extra argument or two
(continue and restart).
//JT
--
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
Racket Users list:
http://lists.racket-lang.org/users
Hey all,
Anyone know how to get Racket's db to write to a uuid column in Postgres? I
keep getting "unsupported type". The documentation suggests casting as a
workaround, but the example is a select - I doubt that will work as well for an
insert...?
tp://docs.racket-lang.org/reference/define.html
arg = arg-id | [arg-id default-expr] | keyword arg-id | keyword
[arg-id default-expr]
much clearer.
Thanks, and sorry for the noise!
On Mon, Jun 23, 2014 at 9:29 AM, Tony Garnock-Jones wrote:
> On 06/23/2014 09:21 AM, Joshua TAYLOR wrote
based on the syntax given in the documentation, but the system's still
accepting it, and with varying behaviors.
//JT
[1] http://stackoverflow.com/q/24365591/1281433
--
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
Racket Users list:
http://lists.racket-lang.org/users
Say you have a struct.
struct my_c_struct {};
my_c_struct *ptr = 0; // uninitialised pointer
You need to prototype the function with a pointer to a pointer
void my_func(my_c_struct **pptr);
void my_func(my_c_struct **pptr)
{
*ptr = new my_c_struct;
if (!*ptr) printf ("error no memory\n");
implementations of the above that
are not recursive and you will see what I mean.
I hope that helps.
Joshua Ewulo
On 6 June 2012 11:17, Ronald Reynolds wrote:
> Is it correct to say that when I call a function inside of it's own
> definition I am just making it repeat loop?
> (define<h
Party out of a desire to be explicit, but mosty because no polynomial
to be multiplied will ever need the zero position. I found working
with hashtables less awkward than vectors had been, for this reason.
My latest hash-based version also calculates 300 multiplications in
around 4 seconds. Not
Heh... I guess that information would be relevant. :)
Not looking for any particular performance numbers, just that it could finish
without sucking up all the RAM and thrashing about the swap. I've been
feeding it up to 1000 deg-6 polynomials to multiply as tests. The imperative
versions (Perl
On Wed, May 02, 2012 at 05:12:50PM -0400, Danny Yoo wrote:
>
> In the functional version of poly-mul, why doesn't it call poly-simp?
> I'm concerned that if you leave the simplification up to the very end,
> it might not be as effective as if it were being done all the time.
>
I wondered also
Your version works far better than my original, functional version.
It can multiply 300 polynomials of degree 6 without issue.
It's about 1/3 as fast as my dirty, mutable version, for numbers that great.
tk
On Wed, May 02, 2012 at 11:09:02PM +0200, Jens Axel Søgaard wrote:
> I believe the pro
You're right; your version is easier on the eyes.
Starting from 1 instead of 0 was deliberate, however.
DZ's method involves multiplying N polynomials of degree X, where X is the
number of sides on a die and N is the number of dice.
So, 2d6 would be like this:
(x^1 + x^2 + x^3 + x^4 + x^5 + x^6
Hey all,
Been playing around with some code to multiply polynomials to calculate dice
probabilities.
Is based on a paper by Doron Zeilberger that I read years ago and can't find at
the moment.
My first attempt represented polynomials as lists of coefficient/exponent pairs.
I tried to make it c
Jay,
Ha! I was just about to write you guys back about this. I think I found the
problem(s).
1) Too many database connections.
I had the max_connections on the postgres pool set to like 60 or something.
The Racket
server would happily accept a bunch of connections, blow up the database wit
Hi Im expecting an important email at the moment but I need to disconnect
from the racket-mailing list so the message does not get lot in spam. How
can I do this?
Racket Users list:
http://lists.racket-lang.org/users
Looks like I'm running v5.2.1.
TK
On Thu, Apr 12, 2012 at 12:24:49PM -0600, Jay McCarthy wrote:
> I'm interested in the answers to the other questions posed, but
> additionally, I'd be curious what version of Racket you are using.
>
> I recently (in the last three-ish months) fixed a problem
Right, just from the command line. I don't tend to use Dr. Racket, much. I'm
a vim geek, and this is all on my server.
Thanks for the advice. I'll check out the profiler. Your SCGI implementation
looks cool, too; I'll definitely give it a look.
TK
On Thu, Apr 12, 2012 at 08:41:45AM -040
I tested each against the invoice URL for the stats I included, but I've had
similar results from the customer and product lists.
It should be the same JSON data every time. I didn't want to post the actual
URI for fear that my server would suddenly get
pounded by an 'ab -c 20 -n 100' flood. C
Racketeers,
I'm new to the language, and loving it. I'm having trouble getting good
performance out of my little toy web app, however.
I wrote this fake billing app to play with some new languages (like Racket) and
some other webdev ideas I've had (like client-side
templating with jQuery and
Hi, I am new to comptuer programming and wish to learn it. I downloaded
Racket and when I use it, it looks exactly like command prompt for Windows!
>From the descriptions provided and screenshots of Racket, I think there is
something wrong. Also, when I launch DrRacket, I cannot type and it tells
m
23 matches
Mail list logo