Re: [racket-users] Re: OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-22 Thread Scott
Yes - it was (of course) "pilot error"! I had installed racket some years ago, and forgot I had env variables set, and that they would be under PLT*. Thanks for everyone's time and the folks over @ racket.slack.com! -- You received this message because you are subscribed to the Google Groups "

[racket-users] You Are a Programmer Now HtDP2e

2018-08-01 Thread Scott
The end of the Prologue to HtDP2e ends with a section titled You Are a Programmer Now. If you have read it you know what it contains (if you haven't read it then you are not likely able to respond intelligently to this question). My question is: in that section are the authors describing "progr

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-01 Thread Scott
up in the face of Sussman's perspective? Does one need the lessons of HtDP if all one is doing is stitching together libraries and APIs? On Wednesday, August 1, 2018 at 3:43:59 PM UTC-4, Matthias Felleisen wrote: > > > > On Aug 1, 2018, at 2:52 PM, Scott > > wrote: >

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Scott
en my experience. On Wednesday, August 1, 2018 at 2:52:55 PM UTC-4, Scott wrote: > > The end of the Prologue to HtDP2e ends with a section titled You Are a > Programmer Now. If you have read it you know what it contains (if you > haven't read it then you are not likely able to respond in

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Scott
Felleisen wrote: > > > > On Aug 2, 2018, at 9:27 AM, Scott > > wrote: > > > > Thank you. I am not technically sufficient to add much to your response. > Will the core curriculum become available online? > > > I am not sure what you mean by “

[racket-users] 2HTDP "Mice and Characters/Keys" link broken

2018-11-07 Thread Scott
The online version has a broken link to recommended reading. -- 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

[racket-users] Re: 2HTDP "Mice and Characters/Keys" link broken

2018-11-08 Thread Scott
Is there another location for the information I assume resided within the broken link? Thanks! On Wednesday, November 7, 2018 at 4:58:14 PM UTC-5, Scott wrote: > > The online version has a broken link to recommended reading. > -- You received this message because you are subscrib

Re: [racket] the current package submission system is a mess

2014-11-06 Thread scott
d like the correct url for a github repo is not git: but github:, and it needed the branch name tacked on at the end. I managed to get my package listed, and I don't mean to complain. Just thought I'd mention it in case it revealed some particular bug with the website. Cheers,

[racket] Setting Decimal Number for Defaults for DrRacket

2011-09-21 Thread Scott Hickey
e for command line racket, but it didn't work for DrRacket. Thanks, Scott Hickey _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] submitting bug reports

2012-04-05 Thread Scott Markwell
Like this? http://bugs.racket-lang.org/ On Thu, Apr 5, 2012 at 9:57 PM, David T. Pierson wrote: > It'd be nice if there was a way to submit bug reports via > racket-lang.org. Or perhaps there is and I don't see it? Or perhaps > there was and it attracted too much spam. > > Regardless, it woul

[racket] RacketCon 2012?

2012-05-15 Thread Scott Hickey
Are there any plans for a RacketCon 2012? Scott Hickey Racket Users list: http://lists.racket-lang.org/users

[racket] Unexpected results with impersonators and make-keyword-procedure

2015-03-06 Thread Scott Moore
when impersonated. I have included a small module that demonstrates the issue below. I expect that the two checks at the bottom should succeed. Thanks, Scott #lang racket (require rackunit) (define-values (prop:my-prop my-prop? my-prop-accessor) (make-impersonator-property 'my-prop)) (define (ma

Re: [racket] Unexpected results with impersonators and make-keyword-procedure

2015-03-09 Thread Scott Moore
Hi Matthew, Thanks for working on this so quickly! Unfortunately, It looks like there is a bug in the fix that causes segfaults when checking impersonator properties on keyword procedures that are not impersonators. I’ve included a small test case below. Thanks again, Scott #lang racket

[racket-users] Fully-expanding a define form in its definition context

2015-05-04 Thread Scott Moore
ist, it tries to fully-expand but dies complaining that define-values is not in a definition context). I think I'm probably misreading the documentation. Can anyone suggest a correct solution? Thanks, Scott #lang racket (require (for-syntax syntax/parse syntax/parse

Re: [racket-users] Macro-introducing macros with inter-macro communication channel

2015-06-23 Thread Scott Moore
al context. The downside is that your macro will need to work correctly in this "staged" fashion where things run as the expander gets to them. Hope this helps. Cheers, Scott On Tue, Jun 23, 2015 at 2:23 PM, Sam Tobin-Hochstadt wrote: > Based on the documentation, I thought th

[racket-users] Diagnosing a segfault in production

2015-07-08 Thread Scott Bell
can modify the build we use in production, but can't afford more than a minor (<15%) decrease in performance. Scott -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails f

Re: [racket-users] Diagnosing a segfault in production

2015-07-08 Thread Scott Bell
On Wednesday, July 8, 2015 at 3:48:22 PM UTC-7, neil wrote: > Does adding the executable pathname to the `gdb` command line (i.e., > format `gdb EXECUTABLE-FILE CORE-FILE`) give you the symbols? Ah, of course. Yes, now we're getting somewhere: #0 0x00080146b6ca in thr_kill () from /lib/

Re: [racket-users] Diagnosing a segfault in production

2015-07-08 Thread Scott Bell
On Wednesday, July 8, 2015 at 4:05:20 PM UTC-7, Scott Bell wrote: > On Wednesday, July 8, 2015 at 3:48:22 PM UTC-7, neil wrote: > > Does adding the executable pathname to the `gdb` command line (i.e., > > format `gdb EXECUTABLE-FILE CORE-FILE`) give you the symbols? > > Ah

Re: [racket-users] Diagnosing a segfault in production

2015-07-09 Thread Scott Bell
On Thursday, July 9, 2015 at 12:27:26 AM UTC-7, Matthew Flatt wrote: > At Wed, 8 Jul 2015 18:23:32 -0700 (PDT), Scott Bell wrote: > > On Wednesday, July 8, 2015 at 4:05:20 PM UTC-7, Scott Bell wrote: > > > On Wednesday, July 8, 2015 at 3:48:22 PM UTC-7, neil wrote: >

Re: [racket-users] Diagnosing a segfault in production

2015-07-09 Thread Scott Bell
On Wednesday, July 8, 2015 at 8:05:47 PM UTC-7, neil wrote: > Scott Bell wrote on 07/08/2015 09:23 PM: > [...] > >> ... > >> #6 0x00080153e004 in strlen () from /lib/libc.so.7 > >> #7 0x000800a72bf3 in scheme_make_byte_string_without_copying ()

Re: [racket-users] Diagnosing a segfault in production

2015-07-10 Thread Scott Bell
On Friday, July 10, 2015 at 12:05:55 AM UTC-7, Matthew Flatt wrote: > At Thu, 9 Jul 2015 10:08:53 -0700 (PDT), Scott Bell wrote: > > On Thursday, July 9, 2015 at 12:27:26 AM UTC-7, Matthew Flatt wrote: > > > At Wed, 8 Jul 2015 18:23:32 -0700 (PDT), Scott Bell wrote: > >

Re: [racket-users] Capability security in Racket?

2015-08-19 Thread Scott Moore
(shill-lang.org). You can find a short description of how we did this in section 3.1 of the paper ( http://shill.seas.harvard.edu/shill-osdi-2014.pdf). Cheers, Scott On Tue, Aug 18, 2015 at 12:48 AM, Sean Lynch wrote: > Hi, folks. I'd like to implement an LPMUD-like multi-user prog

[racket-users] Strange garbage collection behavior with closures

2015-10-21 Thread Scott Moore
compiler transformation or a subtlety in the reachability analysis? Or a bug? Thanks, Scott -- 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-user

Re: [racket-users] Strange garbage collection behavior with closures

2015-10-21 Thread Scott Moore
hen you end up with a non-empty closure (i.e., allocated at run time) due to the reference to `box`, and so you get `#f` at the end as you expect. I don't know why PasteRack produces #f, but it must not hold onto the namespace. At Wed, 21 Oct 2015 21:07:52 -0400, Scott Moore wrote:

Re: [racket-users] let/define

2015-11-03 Thread Scott Moore
5])   (display y)   (define y 10)   y) On November 3, 2015 at 8:51:38 AM, Éric Tanter (etan...@dcc.uchile.cl) wrote: Thanks all! This is helpful — the mental model of begin that I presented to my students was too simple to account for defines. -- Éric On Nov 2, 2015, at 10:00 PM, Scott Moore

Re: [racket-users] Reliable equality testing of procedures

2015-11-04 Thread Scott Moore
One place where this can go wrong is with contracts. Contracts are implemented using chaperones and impersonators (depending on the particular contract) http://docs.racket-lang.org/reference/chaperones.html?q=chaperone#%28tech._chaperone%29. Because of how chaperones and impersonators work, a p

Re: [racket-users] macro stepper

2016-02-11 Thread Scott Moore
Yes, around 80% of the time if I disable macro hiding, and sometimes even with macro hiding if I’m moving back and forth through a long sequence of steps. I had been meaning to file a report... On February 11, 2016 at 11:27:21 AM, Matthias Felleisen (matth...@ccs.neu.edu) wrote: ... has anyone

Re: [racket-users] Unicode subscripts in code and scribble

2016-03-10 Thread Scott Moore
Whoops left off the mailing list... On March 10, 2016 at 2:48:49 PM, Scott Moore (sdmo...@fas.harvard.edu) wrote: On March 10, 2016 at 2:41:53 PM, Leif Andersen (l...@leifandersen.net) wrote: On the other hand, I'm all down for making a `literal` or `exact`  scribble form that spits ou

Re: [racket-users] dynamic-require

2016-03-20 Thread Scott Moore
If the definitions are saved as “test.rkt”, the following works:  #lang racket  (module a racket/base (displayln "hello"))  (dynamic-require '(submod "test.rkt" a) #f)  On March 16, 2016 at 12:13:46 PM, Jos Koot (jos.k...@gmail.com) wrote: Hi,   The following example of dynamic-require in the r

[racket] Looking for feedback on code style

2010-09-08 Thread Scott Hickey
list-ref sorted-list middle-position)              (list-ref sorted-list (+ 1 middle-position)))           2 Thanks for any feedback - hopefully I'm not going to ignite a war about formatting. I just like to see my coding style mature from beginner to advanced beginner :)

[racket] running web app from DrRacket versus command line

2010-09-10 Thread Scott Hickey
Is there a file somewhere I should be looking at to understand what I'm doing wrong? Thanks, Scott Hickey _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Central typed-scheme information?

2010-10-01 Thread Scott McLoughlin
Is there a central Web page describing what typed-scheme wrapper modules exist, their location (or inclusion in the Racket distribution) and general type-scheme status? Mucho thanks in advance. Scott _ For list-related administrative tasks

[racket] How can I add new keywords (for syntax highlighting) to DrRacket ?

2010-10-03 Thread Scott McLoughlin
"if" just for example. I'm not asking about a lecture on the wisdom of doing so. I'm just asking how. Thanks a million in advance. Scott _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] How can I add new keywords (for syntax highlighting) to DrRacket ?

2010-10-03 Thread Scott McLoughlin
oversight. But I imagine there is some configuration option that I have not yet discovered. All real, authoritative knowledge on this issue greatly appreciated. Scott On 10/3/2010 8:51 AM, Robby Findler wrote: What do you mean by highlighting, precisely? I assume clicking "check syntax"

Re: [racket] How can I add new keywords (for syntax highlighting) to DrRacket ?

2010-10-05 Thread Scott McLoughlin
Any suggestions ,based on individual's own configurations, in which columns to "best" add various excluded keywords - if, the new struct, any others, etc.? Thanks! Scott On 10/3/2010 10:32 AM, Robby Findler wrote: Edit|Preferences, Editing, Indenting. Add "if" to one

[racket] Typed syntax (macros) for typed/racket?

2010-10-05 Thread Scott McLoughlin
I'm curious if there is a capability to define typed macros, ideally catching errors at the macro "call site" instead of within the expansion. If not, is there any interest in such a facility? Scott _ For list-related administrati

[racket] typed racket and SRFI 42 ?

2010-10-07 Thread Scott McLoughlin
I'm wondering if SRFI 42 (eager comprehensions) is available within typed racket. I tried (require typed/srfi/42) and received an error, but I'm hoping I did something wrong or that some typed racket interface may be available by some other means. Thanks very much in advance

Re: [racket] typed racket and SRFI 42 ?

2010-10-08 Thread Scott McLoughlin
Thanks for reminding me of Racket's native comprehensions. I totally forgot. Thanks! Scott On 10/8/2010 1:32 AM, Noel Welsh wrote: You know Typed Racket supports Racket's native comprehensions, right? N. On Fri, Oct 8, 2010 at 3:21 AM, Scott McLoughlin wrote: I'm wonde

[racket] Seeking examples of Scribble "4.5 In-Source Documentation" for Racket (typed/racket ?) source files

2010-10-11 Thread Scott McLoughlin
e. 3) How I can easily process the Scribble documentation external to the source file, and without modifying the source, using some tool for batch processing via a make file (or similar tool). I'm sure I'll get this eventually. Thanks much in advance! Scott __

[racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-13 Thread Scott McLoughlin
configuration and or code structuring and interactive evaluation tactics. Any and all advice greatly appreciated! Thanks much in advance! - Scott _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-17 Thread Scott McLoughlin
ime-prose.rkt:27:0 C:\Program Files\Racket\collects\racket\private\misc.rkt:74:7 The same definition and a following expression - (Foo 10) - type-check, compile and evaluate perfectly well in DrRacket using #lang typed/scheme and just clicking the 'Run' button. Thanks much for any and all

Re: [racket] How to use typed/racket within Emacs and scheme top level ???

2010-10-17 Thread Scott McLoughlin
The Web site at the URL you name still claims that the Quack available for download is from "2009-10-14" - a year old. Is there some reason the new version you mention is not available for download? Thanks much! - Scott On 10/14/2010 1:39 AM, Neil Van Dyke wrote: I think probably y

[racket] Quick question - use of ". -> ." synatx

2010-12-24 Thread Scott McLoughlin
Couldn't find docs on this syntax form using regular docs search. Many thanks in advance. -Scott _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] wescheme app running on moby

2010-12-31 Thread Scott Hickey
using Moby will be appreciated. Thanks, Scott Hickey _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] wescheme app running on moby

2011-01-05 Thread Scott Hickey
se for #f Thanks in advance for any suggestions on what I'm doing wrong here. Scott Hickey On Sun, Jan 2, 2011 at 12:46 AM, Danny Yoo wrote: >> I was looking at the ping pong app >> http://www.wescheme.org/openEditor?publicId=beech-hoops-whirl-route-slept >> >> an

[racket] Racket workshop for users still being considered?

2011-02-01 Thread Scott Hickey
ll be appreciated, thanks. Scott Hickey _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Testing cmdline argument processing within DrRacket?

2011-04-28 Thread Scott M
I'm using racket/cmdline to process command line arguments for my program. Is there a way to enter "pseudo" command line arguments to one's program within DrRacket? I recall this feature was available way back in the '80-90s era Turbo* language IDE days. Much thanks in advance for any and all advi

[racket] DrScheme and Version Control Integration

2011-07-07 Thread Scott McLoughlin
Is there any way to integrate DrScheme with SVN, I suppose in some manner similar to Emacs or via some other type of interface? Many thanks. - Scott _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket-users] OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-18 Thread Scott Watson
Here's what I see... any ideas? I've been running it under dtruss/dtrace to try and spot what is different, but so far no luck. If run the IDE it also works! bash-3.2$ racket Welcome to Racket v6.11. standard-module-name-resolver: collection not found for module path: (submod (lib "racket/in

[racket-users] Re: OSX racket install problem - "sudo racket" works, but running as a user fails...

2018-01-18 Thread Scott Watson
Also, I've tried both: brew cask install racket and brew install racket On Thursday, January 18, 2018 at 1:38:54 PM UTC-8, Scott Watson wrote: > > Here's what I see... any ideas? > > I've been running it under dtruss/dtrace to try and spot what is > differe

[racket-users] FUSE filesystem package

2016-10-11 Thread Scott Moore
munication protocol with the kernel and filesystem API does not reuse libfuse functionality, and this dependency will be removed in a future release. The FUSE API is huge and I've only done very limited testing, so there are likely bugs. If you encounter some, please file an issue! Cheers, Scott -

[racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
On October 12, 2016 at 12:15:38 PM, Dupéron Georges (jahvascriptman...@gmail.com) wrote: This is great! Thumbs up, and thanks for writing this library. I have a couple of filesystems in my "TODO" list, hopefully this package will motivate me to actually write them one of these days :) .  Awesome

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
On October 12, 2016 at 2:35:37 PM, Vincent St-Amour (stamo...@eecs.northwestern.edu) wrote: On Wed, 12 Oct 2016 16:31:46 -0500,  Scott Moore wrote:  >  > PS: is the documentation for use-once/c somewhere?  >  > I’ll add it to the docs when I get a chance. You can see the defini

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
4:53 PM, Scott Moore wrote: > On October 12, 2016 at 2:35:37 PM, Vincent St-Amour > (stamo...@eecs.northwestern.edu) wrote: > > On Wed, 12 Oct 2016 16:31:46 -0500, > Scott Moore wrote: >> >> PS: is the documentation for use-once/c somewhere? >>

Re: [racket-users] Contract on a parameter’s value as a function precondition?

2016-11-23 Thread Scott Moore
parameter implementation), or to just provide a standalone combinator. I would need to refresh my memory to see what exactly would need to be done for either. Cheers, Scott On November 23, 2016 at 7:35:32 AM, Robby Findler (ro...@eecs.northwestern.edu(mailto:ro...@eecs.northwestern.e

Re: [racket-users] Contract on a parameter’s value as a function precondition?

2016-11-28 Thread Scott Moore
which I’m not sure that chaperone-procedure’s existing API would support. Would this require modification of procedure chaperones to support parameters directly, or is there some way to implement it separately? > On Nov 23, 2016, at 10:51 AM, Scott Moore wrote: > > Yes, we worke

Re: [racket-users] ->i applies contract projections multiple times?

2016-12-14 Thread Scott Moore
Robby beat me to it. For a longer discussion, see Christos, Robby, Cormac and Matthias’ paper: http://www.ccs.neu.edu/racket/pubs/popl11-dfff.pdf on the difference between dependent (->d) and indy-dependent contracts (->i). A contrived example of why this is better is: (define/contract (foo x y)

[racket-users] Racket with UWP

2017-04-06 Thread Scott Gudeman
Has anyone tried/started getting racket up and running as the back end embedded into a universal windows platform app? Aka using xaml to layout the gui and using racket for all the thinking bits -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] Racket with UWP

2017-04-06 Thread Scott Gudeman
Unfortunately that's exactly what I'm trying to avoid as while that will work just fine for desktop windows as I can separate the processes easily enough there and just have them talk via any of the many protocols(you guys mentioned) for conversing between 2 separate binary's on the same system

Re: [racket-users] Setting parameters between files does not work as expected

2017-04-24 Thread Scott Moore
Parameters are thread local, and from reading the docs of virtual-connection and connection-pool, I think they create new threads to handle the connections. These threads are probably created before you parameterize, and thus see the original values. Try replacing the virtual-connection stuff w

Re: [racket-users] Re: Proper non-tail recursion?

2017-04-27 Thread Scott Moore
On the other hand, if I recall correctly SML has the same behavior as racket. I think the implementation uses a chain of "stacklets" that are heap allocated. On Apr 27, 2017, 8:07 PM -0400, Jon Zeppieri , wrote: > On Thu, Apr 27, 2017 at 8:05 PM, Hendrik Boom wrote: > > On Thu, Apr 27, 2017 at 0

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Scott Moore
Hijacking this thread a little, but a pet peeve: ‘(1 2 3) is not short for (list 1 2 3), it just happens to evaluate to that… (let ([x 0]) (list x x)) -> (list 0 0) (let ([x 0]) ‘(x x)) -> (list ‘x ‘x) Perhaps the reader should implement #l(, which inserts an explicit `list` at the beginning of

Re: [racket-users] Self evaluating Racket Interpreter

2017-05-01 Thread Scott Moore
quotation once too many times. ;) On May 1, 2017, 2:04 PM -0400, Scott Moore , wrote: > Hijacking this thread a little, but a pet peeve: ‘(1 2 3) is not short for > (list 1 2 3), it just happens to evaluate to that… > > (let ([x 0]) (list x x)) -> (list 0 0) > (let ([x 0]) ‘(x

[racket] How to view source code of procedures? MIT scheme "pp" equivalent?

2013-12-27 Thread Scott Klarenbach
tion involves some type of beta reduction and/or argument constraints, but I'm just looking for a nudge in the right direction. Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V

Re: [racket] How to view source code of procedures? MIT scheme "pp" equivalent?

2013-12-28 Thread Scott Klarenbach
n. > It would be really nice to print the source code of a known procedure on the repl, in order to get a quick view of what it does. Or, the "pa" function which prints out the arguments of a procedure is even more useful. On Fri, Dec 27, 2013 at 4:35 PM, Matthias Felleisen wrote: &g

Re: [racket] How to view source code of procedures? MIT scheme "pp" equivalent?

2013-12-29 Thread Scott Klarenbach
ket-mode/blob/master/defn.rkt I'll look into that code of yours. On Sun, Dec 29, 2013 at 7:32 AM, Greg Hendershott wrote: > On Sat, Dec 28, 2013 at 2:01 PM, Scott Klarenbach > wrote: > > It would be really nice to print the source code of a known procedure on > the > >

Re: [racket] How to view source code of procedures? MIT scheme "pp" equivalent?

2013-12-29 Thread Scott Klarenbach
posted, most likely via random SOS pings to this list :). Thanks. On Sun, Dec 29, 2013 at 10:16 AM, Matthias Felleisen wrote: > > On Dec 28, 2013, at 2:01 PM, Scott Klarenbach wrote: > > I'm playing around with the idea of a sort of "Language Integrated Query" > lik

[racket] Macros With Multiple Ellipsis

2014-01-08 Thread Scott Klarenbach
ing a simple mistake? Or am I resigned to manually parsing out the single test-expr into multiple forms in the template? Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V3

Re: [racket] Macros With Multiple Ellipsis

2014-01-08 Thread Scott Klarenbach
) > (print 'test2)) > (define-values (x y z) (values 10 20 30)) > (my-fn x y z) > > => 102030'test1'test2 > > On Wed, Jan 8, 2014 at 2:58 PM, Scott Klarenbach > wrote: > > I have a macro that modifies define to perform some additional > processing. >

[racket] module+ test... (require rackunit) results in unbound identifier when used in macro

2014-01-08 Thread Scott Klarenbach
missing? Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V3 ___ To iterate is human; to recur, divine Racket Us

Re: [racket] module+ test... (require rackunit) results in unbound identifier when used in macro

2014-01-08 Thread Scott Klarenbach
;> (require rackunit) >> (test-case id-str >> new-test-body ...])) >> >> (define/test (my-fn a b c) >> (print a) >> (print b) >> (print c) >> #:test >> (check-true #t)

Re: [racket] module+ test... (require rackunit) results in unbound identifier when used in macro

2014-01-08 Thread Scott Klarenbach
) body ...) (module+ test (require ru-require) (test-case id-str test-body ...])) On Wed, Jan 8, 2014 at 4:00 PM, Carl Eastlund wrote: > On Wed, Jan 8, 2014 at 6:44 PM, Scott Klarenbach wrote: > >> Thanks guys. >> >> I changed it to this: >> >> (de

Re: [racket] module+ test... (require rackunit) results in unbound identifier when used in macro

2014-01-08 Thread Scott Klarenbach
..])) Notice the extra (require rackunit), after the modified (require ru-require). Is that the right solution? On Wed, Jan 8, 2014 at 4:00 PM, Carl Eastlund wrote: > On Wed, Jan 8, 2014 at 6:44 PM, Scott Klarenbach wrote: > >> Thanks guys. >> >> I changed it to thi

Re: [racket] module+ test... (require rackunit) results in unbound identifier when used in macro

2014-01-08 Thread Scott Klarenbach
. > > Carl Eastlund > > > On Wed, Jan 8, 2014 at 7:13 PM, Scott Klarenbach wrote: > >> Sorry, gmail sent before I could paste :( >> >> ... >> >> So I changed the macro definition to: >> >> (define-syntax (define/spec stx) >> (syn

[racket] at-exp with module language

2014-01-09 Thread Scott Klarenbach
g reader file ie, my-lang/lang/reader.rkt? Is there a shortcut to what I'm trying to do that doesn't involve overriding read and read-syntax? Either that or I might just have a simple mistake in my-lang.rkt file. Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Co

[racket] How to provide module bindings required with for-doc

2014-01-10 Thread Scott Klarenbach
a bit foggy on the details. Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V3 ___ To iterate is human; to recur, divine

Re: [racket] How to provide module bindings required with for-doc

2014-01-12 Thread Scott Klarenbach
vide (for-doc ...))`, so far. I don't yet know how to > make it work, but the problem is at least on my radar. > > At Fri, 10 Jan 2014 17:43:03 -0800, Scott Klarenbach wrote: > > How can one file provide the bindings it required using the for-doc > subform > > to other modu

Re: [racket] at-exp with module language

2014-01-12 Thread Scott Klarenbach
to implement my own reader that internally uses at-exp 's read-syntax and read functions? Thanks. On Thu, Jan 9, 2014 at 6:57 PM, Matthew Flatt wrote: > You're right that `at-exp` isn't like `s-exp`, but you can use > > #lang at-exp s-exp "my-lang.rkt" >

Re: [racket] at-exp with module language

2014-01-13 Thread Scott Klarenbach
key ingredient? On Mon, Jan 13, 2014 at 1:45 PM, Eli Barzilay wrote: > Yesterday, Scott Klarenbach wrote: > > > > I assumed that #lang at-exp "my-lang.rkt" should work, since I'm > > wanting to use at-exp syntax with "my-lang.rkt" semantics. I&#

[racket] Structs and syntax-local-value ... how is the struct name overloaded?

2014-01-19 Thread Scott Klarenbach
hidden meta-data under the same binding to other macros that might wish to know about the binding at compile time? I'm specifically wondering how the overloading works. Is it some clever use of prop:procedure? Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software

Re: [racket] Structs and syntax-local-value ... how is the struct name overloaded?

2014-01-19 Thread Scott Klarenbach
d > at syntax-time to a value that implements both prop:procedure, so that it > can expand to a use of the constructor when used in an expression, and > prop:struct-info so that it can be use to look up static information when > passed to relevant macros. > > Carl Eastlund >

Re: [racket] Structs and syntax-local-value ... how is the struct name overloaded?

2014-01-19 Thread Scott Klarenbach
ething out via syntax-local-value that > doesn't? > > Carl Eastlund > > On Sun, Jan 19, 2014 at 11:27 PM, Scott Klarenbach wrote: > >> But I don't see how the same binding can be a transformer and also return >> something else (like a list, or a checked-struct

Re: [racket] Structs and syntax-local-value ... how is the struct name overloaded?

2014-01-19 Thread Scott Klarenbach
acro (illegal syntax), or have (define-syntax (posn) #'something), and then (syntax-local-value #'posn) returns the transformer, rather than 'something. On Sun, Jan 19, 2014 at 8:57 PM, Scott Klarenbach wrote: > It's not changing it, I'm just trying to figure out the

Re: [racket] Structs and syntax-local-value ... how is the struct name overloaded? (Greg Hendershott)

2014-01-20 Thread Scott Klarenbach
---- > > Message: 1 > Date: Mon, 20 Jan 2014 13:00:35 -0500 > From: Carl Eastlund > To: "Alexander D. Knauth" > Cc: Scott Klarenbach , Racket mailing list > > Subject: Re: [racket] Structs and

Re: [racket] Structs and syntax-local-value ... how is the struct name overloaded? (Greg Hendershott)

2014-01-20 Thread Scott Klarenbach
exts you have no > control over. > > Carl Eastlund > > > On Mon, Jan 20, 2014 at 6:31 PM, Scott Klarenbach wrote: > >> If/when it does matter, instead you could use a hashtable on the side, >>> mapping from the procedure to the info. Of course that way, you need >>

[racket] selectively local-expand sub-expressions

2014-01-23 Thread Scott Klarenbach
the inner procedures I wish by applying local-expand to the nested operands. My question is: 1.) Is there a simple library way to do this with local-expand that I'm missing? 2.) Does anyone have a hint or code example to do this manually using recursion? It should be simple en

Re: [racket] selectively local-expand sub-expressions

2014-01-23 Thread Scott Klarenbach
a struct that I bind at compile time using your earlier tutorial on structs and syntax-local-value (thanks by the way!)... I'm just simplifying here.* sk On Thu, Jan 23, 2014 at 7:06 PM, Carl Eastlund wrote: > Scott, > > What you're doing isn't possible -- isn't even

Re: [racket] selectively local-expand sub-expressions

2014-01-24 Thread Scott Klarenbach
l))) 'expression #f)] Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V3 ___ To iterate is human; to recur, divine Racket Users list: http://lists.racket-lang.org/users

Re: [racket] selectively local-expand sub-expressions

2014-01-26 Thread Scott Klarenbach
referenced values in the same way as would happen at runtime. Thanks a lot. Scott. On Sat, Jan 25, 2014 at 6:00 PM, Carl Eastlund wrote: > Scott, > > I see what you're doing now. You're not actually trying to use macro > expansion at all; you're just using local-expan

Re: [racket] selectively local-expand sub-expressions

2014-01-26 Thread Scott Klarenbach
edure->string" operation, or a custom-write, that I will use to target sql or something else. Any use of pred? at runtime within racket will run fine as is. Thanks, Scott. On Sun, Jan 26, 2014 at 2:47 PM, Carl Eastlund wrote: > Scott -- I don't understand exactly what you're

[racket] Custom extension for #lang?

2014-03-16 Thread Moore, Scott
sion I wanted to use? Thanks, Scott Racket Users list: http://lists.racket-lang.org/users

[racket] Defining Syntax in Racket

2014-04-20 Thread Scott Brown
r possibly a phase issue. I have tried rewriting %rule a couple of different ways (one using syntax-rules rather than syntax-case, and another using quasiquote/unquote rather than with-syntax). Neither of which worked. Anyhow, I've spent a lot of time trying to figure this out, and I finally am at the point where I need some help. -Scott Racket Users list: http://lists.racket-lang.org/users

Re: [racket] [racket-users]Is Racklog suitable to learn Prolog? A simple example just fails.

2014-07-03 Thread Scott Moore
ained package is probably a good idea. Cheers, Scott On Thu, Jul 3, 2014 at 7:46 PM, WarGrey Gyoudmon Ju wrote: > Okay, Thank you. > > > On Fri, Jul 4, 2014 at 1:21 AM, Matthias Felleisen > wrote: > >> >> Yes, I corrected your program and ran into this bug.

[racket] Racket vs Scheme, macros and new syntax

2012-11-05 Thread Scott Klarenbach
rs to this end, or does it more fundamentally extend Scheme to do things technically *impossible *in that language? Thanks a lot. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca #308 - 55 Water St. Vancouver, BC V

[racket] json module bug?

2012-12-04 Thread Scott Klarenbach
ected argument of type BUT this works: >> (jsexpr->string (hash 'id 1 'title "core")) "{\"id\":1,\"title\":\"core\"}" -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointy

Re: [racket] json module bug?

2012-12-04 Thread Scott Klarenbach
My bad, thanks! On Tue, Dec 4, 2012 at 12:24 PM, Danny Yoo wrote: > > > On Tue, Dec 4, 2012 at 12:21 PM, Scott Klarenbach wrote: > >> Is this a bug with the json module, or am I missing something about the >> implementation? >> >> It seems it crashes w

[racket] Status of Moby?

2013-01-12 Thread Scott Klarenbach
Hi, I was wondering about current status of Moby. Is it still active? How stable? What is and is not yet supported? Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca #308 - 55 Water St. Vancouver, BC V6B1A1

[racket] Web server dispatch-rules! bug?

2013-01-16 Thread Scott Klarenbach
ting the #:method param works fine in the second example. Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca #308 - 55 Water St. Vancouver, BC V6B1A1 ___ To iterate is human;

[racket] Wildcard Macro Names?

2013-01-23 Thread Scott Klarenbach
, and the reader turns @x and @y into (@ x) and (@ y) respectively. Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca #308 - 55 Water St. Vancouver, BC V6B1A1 ___ To iterate is human

Re: [racket] Wildcard Macro Names?

2013-01-30 Thread Scott Klarenbach
-my-action), but would prefer the token to be self-contained as in (@x = 2) or ($do-something). Scott. On Sun, Jan 27, 2013 at 1:08 AM, Eli Barzilay wrote: > On Wednesday, Scott Klarenbach wrote: > > Is it possible to have a macro bound to an identifier with wildcards > > in it? > >

  1   2   >