Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread 'John Clements' via Racket Users
> On Feb 19, 2017, at 14:40, Matthias Felleisen wrote: > > >> On Feb 18, 2017, at 11:12 PM, 'John Clements' via Racket Users >> wrote: >> >> (cc:ak) >> >> Okay, this sounds just crushingly obvious now that I say it, but honestly, I >>

Re: [racket-users] Can raco distribute produce a single executable?

2017-02-20 Thread Shu-Hung You
https://docs.racket-lang.org/raco/exe.html Is raco exe in this page what you want? Just type > raco exe q.rkt And this command will produce a single executable. Now we can now run > ./q q: expects 1 on the command line, given 0 arguments Best, Shu-Hung On Mon, Feb 20, 2017 at 1:12 PM, lu

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread Matthias Felleisen
> On Feb 20, 2017, at 2:27 PM, Sam Tobin-Hochstadt wrote: > > Maybe that's true, but I haven't wanted to do that in my Racket code > using either `check-expect` in class or `check-equal` in Rackunit (or > at least, not enough to define a new abstraction for it). Have you >

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread 'John Clements' via Racket Users
> On Feb 20, 2017, at 11:06, Sam Tobin-Hochstadt wrote: > > I don't think `check-expect` is doing something that's > module-relative. For example, this program: > > #lang racket > (require test-engine/racket-tests) > (struct x (a)) > (check-expect (x 1) (x 1)) >

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread Matthias Felleisen
> On Feb 20, 2017, at 1:53 PM, John Clements wrote: > > No, I don’t think you missed anything, but from the standpoint of those > teaching early classes in either Java or Python (a standpoint that I > understand you are generally and mercifully not compelled to

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread Sam Tobin-Hochstadt
On Mon, Feb 20, 2017 at 2:23 PM, 'John Clements' via Racket Users wrote: > >> On Feb 20, 2017, at 11:06, Sam Tobin-Hochstadt wrote: >> >> I don't think `check-expect` is doing something that's >> module-relative. For example, this program: >>

[racket-users] Can raco distribute produce a single executable?

2017-02-20 Thread lu
Hi all, I have this little toy project[1] to help me learn the language. I would like to produce a single portable executable that can be executed without reliance on racket installation. `raco distribute` does produce a "package" folder. But for small utility tool like this, I would prefer a

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread Sam Tobin-Hochstadt
I don't think `check-expect` is doing something that's module-relative. For example, this program: #lang racket (require test-engine/racket-tests) (struct x (a)) (check-expect (x 1) (x 1)) (run-tests) (display-results) fails its test. `equal?` in Racket checks structural equality in a deep way,

Re: [racket-users] intensional equality and unit tests

2017-02-20 Thread 'John Clements' via Racket Users
> On Feb 20, 2017, at 11:02, Matthias Felleisen wrote: > > >> On Feb 20, 2017, at 1:53 PM, John Clements wrote: >> >> No, I don’t think you missed anything, but from the standpoint of those >> teaching early classes in either Java or Python

Re: [racket-users] Can raco distribute produce a single executable?

2017-02-20 Thread lu
On Monday, February 20, 2017 at 11:24:50 AM UTC-8, Shu-Hung You wrote: > Sorry, I saw that you're already using raco exe and raco distribute. > So is the problem related to some DLL issue on Windows? > > Best, > Shu-Hung > > On Mon, Feb 20, 2017 at 1:19 PM, Shu-Hung You >

Re: [racket-users] Can raco distribute produce a single executable?

2017-02-20 Thread Shu-Hung You
Sorry, I saw that you're already using raco exe and raco distribute. So is the problem related to some DLL issue on Windows? Best, Shu-Hung On Mon, Feb 20, 2017 at 1:19 PM, Shu-Hung You wrote: > https://docs.racket-lang.org/raco/exe.html > Is raco exe in this

[racket-users] Re: Can raco distribute produce a single executable?

2017-02-20 Thread Alex Harsanyi
On Tuesday, February 21, 2017 at 3:12:50 AM UTC+8, lu wrote: > Hi all, I have this little toy project[1] to help me learn the language. I > would like to produce a single portable executable that can be executed > without reliance on racket installation. `raco distribute` does produce a >

Re: [racket-users] Programming paradigms

2017-02-20 Thread Rusi Mody
On Thursday, February 16, 2017 at 9:46:53 PM UTC+5:30, David K. Storrs wrote: > I find PP to be a useful tool for thinking about programming, but not > terribly significant in everyday use -- my code will typically end up as a > mixture of functional, declarative, procedural, and OO.  The fact

[racket-users] get-file-list filter

2017-02-20 Thread Lehi Toskin
In `get-file-list` there is a filter argument that can be passed to the function such that when going through a directory it'll only list directories and those files in the filter (separated by a semicolon). This can get rather unruly when the filter is rather large. At current count, I have a

[racket-users] Re: get-file-list filter

2017-02-20 Thread Alex Harsanyi
On Tuesday, February 21, 2017 at 11:52:49 AM UTC+8, Lehi Toskin wrote: > In `get-file-list` there is a filter argument that can be passed to the > function such that when going through a directory it'll only list directories > and those files in the filter (separated by a semicolon). This can