[racket] Guard Plugin for Racket Rackunit tests

2014-03-08 Thread Chad Albers
ation instructions. The gem is hosted at rubygems.org: https://rubygems.org/gems/guard-rackunit. If anyone needs assistance in using it, please feel free to reach out to me directly. Here's hoping that someone finds this useful too. -- Chad Albers Racket Users li

[racket] Debugging a seg fault

2013-10-24 Thread Chad Albers
I working on a small test program using Jay McCarthy's zmq FFI bindings. I'm getting a segfault with this message: SIGSEGV MAPERR si_code 1 fault on addr 0x285 Is there any guidance on how to spot the cause? Here's what I have done so far run racket with gdb - as gdb racket In the gdb console.

Re: [racket] Feature Request: Repository Links in Planet Pages

2013-10-11 Thread Chad Albers
Sweet! Thanks for the link. -- Chad Albers On Sat, Oct 12, 2013 at 9:36 AM, Jay McCarthy wrote: > The new package system supports this much more directly because > packages are often hosted directly in repositories. Take a look at: > > http://pkg.racket-lang.org/#[zeromq] > >

[racket] Do I have a memory leak?

2013-10-11 Thread Chad Albers
process to keep growing and growing? I've even managed to get it to crash. -- Chad Albers Racket Users list: http://lists.racket-lang.org/users

[racket] Feature Request: Repository Links in Planet Pages

2013-10-11 Thread Chad Albers
Hi, It would be really convenient there were links to source repositories for Planet pages such as this: http://planet.racket-lang.org/display.ss?package=zeromq.plt&owner=jaymccarthy There are several advantages to this: It encourages others to contribute to those projects; it allows users to vie

Re: [racket] Macro Assistance

2013-08-28 Thread Chad Albers
Thanks for everyone's advice. I think I will take it and find another solution. Thanks! -- Chad Albers On Wed, Aug 28, 2013 at 12:00 AM, Gustavo Massaccesi wrote: > Generally these kinds of macros are not a good idea, because it's > difficult to combine them with other macro

[racket] Macro Assistance

2013-08-27 Thread Chad Albers
I'm still trying to grok macros - which are amazing, but hard. I'd like to know if it is possible capture part of the following expression (display (+ 2 (bar (+ 1 2 if "bar" is a literal in the macro, I would like to capture body0 as (+ 1 2) and body1 as (display (+ 2 ...)). This is a total

Re: [racket] running test-suites in module+ tests

2013-08-26 Thread Chad Albers
ts failed. And then depending on the verbosity setting of (run-test), I get even more output. If I decide to automate my test suite, that adds a new layer of complication. I'm still working out my guard-rackunit plans (if I have any). Chad -- Chad Albers On Sun, Aug 25, 2013 at 11:47 AM,

[racket] running test-suites in module+ tests

2013-08-24 Thread Chad Albers
Hi, I'm exploring rolling my tests into the source files they cover using the (module+ test...) form. Can I include (test-suite ...) statements in the module, and if so, how do I get it to work? I've haven't managed to get it to work with raco test. Thanks, -- Chad Racket

Re: [racket] Rackunit best practices

2013-08-22 Thread Chad Albers
27;m going to try to come up with something Racket users can use outside of Dr. Racket - because I don't think I can support it using an existing framework like guard. If I'm successful, I'll open-source release it. Thanks, Chad -- Chad Albers On Fri, Aug 23, 2013 at 2:48 PM, Laur

[racket] Rackunit best practices

2013-08-21 Thread Chad Albers
As a Ruby engineer, we have a wonderful tool called "guard" that automatically runs our unit-tests every time a test-case changes or every-time a source file changes. I have written a guard plugin that performs the same task for Racket's rackunit. Currently, it pretty primitive - guard runs all t

Re: [racket] Exception Stack Trace Troubles

2012-07-01 Thread Chad Albers
et both add their own context tracking > independent of the way that Racket is compiled, but that context is not > reflected via `continuation-mark-set->context'.) > > At Tue, 26 Jun 2012 16:37:13 +0900, Chad Albers wrote: >> I'm using Debian Linux. >> -- >> C

Re: [racket] Exception Stack Trace Troubles

2012-06-27 Thread Chad Albers
add a certain overhead to executing a program. I'm just not used to a language, not supporting stack traces by default. Is that just the way that Racket works? -- Chad Albers On Wed, Jun 27, 2012 at 11:20 PM, Robby Findler wrote: > By 64 bit architecture, I assume it is an intel/amd c

Re: [racket] Exception Stack Trace Troubles

2012-06-27 Thread Chad Albers
Debian bug reports on racket, and nothing similar has been reported. Thanks again for your help, Chad -- Chad Albers On Wed, Jun 27, 2012 at 2:00 AM, Eli Barzilay wrote: > > Two days ago, Michael Wilber wrote: > > If I understand correctly, by default, Racket doesn't

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Chad Albers
It doesn't produce a stack trace of DrRacket. Also, it doesn't produce a stack trace if I include the errortrace on the command line. :( -- Chad Albers On Mon, Jun 25, 2012 at 2:29 AM, Michael Wilber wrote: > If I understand correctly, by default, Racket doesn't provide

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Chad Albers
I'm using Debian Linux. -- Chad Albers On Sun, Jun 24, 2012 at 10:08 PM, Matthew Flatt wrote: > What platform are you using? > > If it's Win64, the problem is likely Racket's weak support for getting > a backtrace on that platform (when the JIT is enabled). >

Re: [racket] Exception Stack Trace Troubles

2012-06-24 Thread Chad Albers
n 24, 2012 at 2:08 PM, Eli Barzilay wrote: > A few minutes ago, Chad Albers wrote: >> Hi, >> >> Is there some sort of 'secret' to acquiring the stack trace of an >> exception?  It is my understanding that when an exception is raised >> with the 'erro

[racket] Exception Stack Trace Troubles

2012-06-23 Thread Chad Albers
Hi, Is there some sort of 'secret' to acquiring the stack trace of an exception? It is my understanding that when an exception is raised with the 'error' procedure in creates a exn:fail structure that has a message field and a continuation-marks field. Presumably the stack trace is in the conti

Re: [racket] Rationale behind missing string-trim

2012-05-26 Thread Chad Albers
Thanks Eli! -- Chad Albers On Thu, May 24, 2012 at 2:19 PM, Eli Barzilay wrote: > About two weeks ago, Chad Albers wrote: >> Thanks Eli.  I'm happy you recognize the issue. >> >> I did write my own string-trim-both function using Racket's regexp as >> follo

Re: [racket] Architecture advice for new project

2012-05-16 Thread Chad Albers
e).) > > My $0.02, > Robby > > On Tuesday, May 15, 2012, Chad Albers wrote: >> >> Hi, >> >> I'm working on project to port the Ruby Rack framework to Racket scheme. >> If you're not familiar with Rack,  it creates a layer to manage the http &

Re: [racket] Architecture advice for new project

2012-05-15 Thread Chad Albers
revent key collisions. I would like to avoid that. Just wondering if anyone had an alternative suggestion. -- Chad Albers On Tue, May 15, 2012 at 1:47 PM, Danny Yoo wrote: > > > In the Rack middleware in the chain, each piece of the middleware > > receives a > > hash

[racket] Architecture advice for new project

2012-05-15 Thread Chad Albers
Hi, I'm working on project to port the Ruby Rack framework to Racket scheme. If you're not familiar with Rack, it creates a layer to manage the http response/requests, and a level of abstraction to build a chained list of middle ware clients - each calling the next in chain. Switching from from

Re: [racket] Rationale behind missing string-trim

2012-05-09 Thread Chad Albers
On Wed, May 9, 2012 at 11:42 AM, Eli Barzilay wrote: > 30 minutes ago, Chad Albers wrote: > > I'm having a long running discussion with my colleagues about the > > practically of scheme. I've argued that it is, and using Racket > > Scheme to prove my point

Re: [racket] Rationale behind missing string-trim

2012-05-09 Thread Chad Albers
27;s string API and is srfi 13. -- Chad Albers On Wed, May 9, 2012 at 11:26 AM, Laurent wrote: > What conflict do you have? > > The following works for me: > > #lang racket > (require srfi/13) ; comment me > (string->list "auie") > > whether or not y

[racket] Rationale behind missing string-trim

2012-05-09 Thread Chad Albers
Hi, I'm having a long running discussion with my colleagues about the practically of scheme. I've argued that it is, and using Racket Scheme to prove my point. However, on the other side of the debate, I've noticed that Racket's string API is missing what I consider to be a extremely practical

Re: [racket] Unit Testing Best Practice in Racket

2012-05-01 Thread Chad Albers
. Thanks again, -- Chad Albers On Mon, Apr 30, 2012 at 7:05 PM, Eli Barzilay wrote: > 20 minutes ago, Chad Albers wrote: > > Hi, > > > > As a Ruby dev, I really like unit testing. I've been using RackUnit > > to suits my needs. I was wondering, though, about how p

[racket] Unit Testing Best Practice in Racket

2012-04-30 Thread Chad Albers
Hi, As a Ruby dev, I really like unit testing. I've been using RackUnit to suits my needs. I was wondering, though, about how people go about writing their tests for Racket. Many of the functions that I write will not be part of the public API that a want to share from a module. I can test the

Re: [racket] Example of using a struct as a port

2012-04-21 Thread Chad Albers
Interesting...that worksbut in this case, the struct is purely a port, since it has no other fields. an-i is not really an instance of a struct i, but a definition that returns the value of an instance of a struct that takes as its sole field value a port. IOW, it doesn't take as its only fi

Re: [racket] Example of using a struct as a port

2012-04-21 Thread Chad Albers
27;s impossible, then I'm trying to understand why structs could be treated like ports, but then the data in the port doesn't really have access to the field-values in the struct. Thanks for your help, -- Chad On Sat, Apr 21, 2012 at 12:35 PM, Matthias Felleisen wrote: > > On Apr

[racket] Example of using a struct as a port

2012-04-21 Thread Chad Albers
Hi, I'm looking for an example of treating a struct like a port, which appears to be possible: http://docs.racket-lang.org/reference/portstructs.html?q=struct#(def._((quote._~23~25kernel)._prop~3ainput-port)) Apparently, this is a lot easier that using make-custom-port. What I would like to do

Re: [racket] My toy web app's performance: Racket vs Perl vs Ruby

2012-04-21 Thread Chad Albers
Hi, Great project and benchmarks. I, too, want to use Racket Scheme for more serious projects, and even have my company's go ahead to incorporate it into our service architecture. I'm pursuing the mongrel2 option, and I just produced a beta mongrel2 racket adapter in pursuit of that goal. https

[racket] Racket Mongrel2 adapter source release

2012-04-17 Thread Chad Albers
Hi, To teach myself Racket scheme (which I now Iove), I wrote an adapter to the mongrel2 webserver. I just open-sourced the code on github. Once I add unit testing and scribble documentation, I might try have it accepted into planet racket, if anyone thinks it would be of interest. http://git