Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Shriram Krishnamurthi
All I know is what I read here: http://googleresearch.blogspot.com/2009/08/under-hood-of-app-inventor-for-android.html shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Shriram Krishnamurthi
> [...] and a scripting language for the App Engine. That would be news to me! Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] How can I save all the definitions in racket to a file?

2010-06-24 Thread Shriram Krishnamurthi
Is it running Racket underneath? On Thu, Jun 24, 2010 at 2:20 PM, Jose A. Ortega Ruiz wrote: > On Thu, Jun 24 2010, Insik Cho wrote: > >> I see. >> >> Do you think if emacs is a good tool for editing, saving and executing >> racket programming? >> >> I prefer command-like environment to GUI. But,

Re: [racket] Racket & Netbook

2010-06-30 Thread Shriram Krishnamurthi
I find DrRacket very hard to use on older machines and netbooks. I recently upgraded to an Acer Aspire 1810T. This is about $600 and has a netbook form factor (same chassis as the 1410T, which is their netbook). The 1366x768 screen makes the keyboard nice and wide and great for use in travel. W

[racket] two languages at a time in DrRacket

2010-06-30 Thread Shriram Krishnamurthi
Surely someone here has done something like this before, and I'd like advice on how to do it. We're in the process of converting Margrave, our security analysis tool, over to Racket, and to exploit DrRacket as its user environment. What we'd like to be able to do is this: in DrRacket, Interact

Re: [racket] Racket & Netbook

2010-06-30 Thread Shriram Krishnamurthi
Paul, You can already run WeScheme on your Android: http://www.wescheme.org/ Due to a complete rewrite this summer, WeScheme and Racket will come ever closer together. But I may be misunderstanding what you mean by "client". Shriram _ For lis

Re: [racket] two languages at a time in DrRacket

2010-06-30 Thread Shriram Krishnamurthi
"easy" is great. I assume I should ignore the comment that says ; XXX This is almost certainly wrong. Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-07-01 Thread Shriram Krishnamurthi
> The only thing needed beyond creating the tarball is an > info.rkt file. You underestimate the Scheme "community"'s ability to divide. The controversy will shift entirely to what is acceptable in info.rkt files. Soon you will end up with the Revised^n Reports on the Racket Information File For

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-07-03 Thread Shriram Krishnamurthi
> But I doubt raco could understand a .plt file that was > un-base64-encoded to just be a .tar.gz. There are language implementations that can import directly from zip files... JARs *use* zip, but Python can load directly *from* zip. Shriram _ Fo

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-07-03 Thread Shriram Krishnamurthi
I'm told Gambit does, too. On Sat, Jul 3, 2010 at 8:19 AM, Shriram Krishnamurthi wrote: >> But I doubt raco could understand a .plt file that was >> un-base64-encoded to just be a .tar.gz. > > There are language implementations that can import directly from zip > fil

[racket] why isn't this a list?

2010-07-24 Thread Shriram Krishnamurthi
http://docs.racket-lang.org/guide/hash-reader.html > #reader"five.rkt"abcde "abcde" Why is the string "abcde" not in a list? _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] scoping rules and define-for-syntax

2010-07-24 Thread Shriram Krishnamurthi
I don't quite know where to read to understand, and to work around, the following scoping rules. Here's a very simple module (details not important, only the functions being define-for-syntax'd): (module my-new-syntax racket (provide (except-out (all-from-out racket) lambda) (

Re: [racket] universal Pong question

2010-07-25 Thread Shriram Krishnamurthi
Would it help you to have a Battleships in Universe as an example? On Jul 25, 2010 3:27 PM, "Todd O'Bryan" wrote: > In the three-week intro course I'm teaching, the students have > expressed a desire to program Pong played over the network, so that > they can play against each other when they get

Re: [racket] writing a define-world macro

2010-07-25 Thread Shriram Krishnamurthi
Todd, Danny has defined updaters for his world. However, the reason we didn't make these public is because we ultimately need to deal with lvalues, which (a) are arguably not a good idea, and (b) we certainly can't do as a macro anyway. Make sure you think about that. Shriram __

Re: [racket] writing a define-world macro

2010-07-25 Thread Shriram Krishnamurthi
posn number -> posn > > Completely non-mutational--just recreates the exact same structure, > except for the updated value. > > Which lvalues am I missing? > > Todd > > On Sun, Jul 25, 2010 at 6:44 PM, Shriram Krishnamurthi > wrote: >> Todd, >> >

Re: [racket] writing a define-world macro

2010-07-26 Thread Shriram Krishnamurthi
If you're satisfied with that, then simple updaters will do the trick, and you'll be fine. But in practice you tend to have complex nested structures, and this form of updaters turns out to be rather less useful. Shriram _ For list-related adminis

[racket] importing signatures

2010-07-26 Thread Shriram Krishnamurthi
Here's the file "sig": #lang racket (define-signature Foo (make-foo foo?)) Here's another file: #lang racket/unit (require "sig") (import) (export Foo) (define-struct foo ()) When I execute this, I get define-unit: unknown signature in: Foo I would have thought that the the si

Re: [racket] module-path=?

2010-07-26 Thread Shriram Krishnamurthi
Funnily enough, I asked Matthew a similar question earlier this evening. Without permission, I quote his reply: >> When do two module designators designate the same module? > Do you mean "the same for any installation" or "the same for the > current installation"? > > For the former: normalize e

[racket] more liberal CSV parsing?

2010-07-30 Thread Shriram Krishnamurthi
Neil's superb CSV reader seems to unfortunately conflict with the notion of CSV on the OS that maybe loves CSV the most: Windows. I spent a while tracking down a CSV reader failure, and was able to isolate it to the program below: #lang racket (require (planet neil/csv:1:6/csv)) ((make-csv-reader

[racket-users] parts as the top-level unit in books

2021-04-21 Thread Shriram Krishnamurthi
The Scribble Book format https://docs.racket-lang.org/scribble/Book_Format.html?q=scribble%20book has the *chapter* as the highest-level unit. For a book with lots of chapters, it's useful to have a higher-level unit, like a *part*. (E.g., *How to Design Programs* is broken down by parts, and t

Re: [racket] New user wanting to know where to go

2011-08-31 Thread Shriram Krishnamurthi
Stephen Bloch mentioned his book Picturing Programs. I am happy to recommend it, too, so you don't think only its author likes it: http://picturingprograms.com/download/ It has many similarities to, but also some real differences from, both HtDP and HtDP 2/e. At a *very* coarse level, HtDP: nu

[racket] syntax-parse and literals

2011-09-02 Thread Shriram Krishnamurthi
I am having some trouble figuring out how to use syntax-parse in combination with wanting literals (aka, internal keywords) in a macro definition. I have (syntax-case stx (:) and am trying to achieve a similar effect. I tried (syntax-parse stx #:literals(:) but that resulted in syntax-

Re: [racket] syntax-parse and literals

2011-09-02 Thread Shriram Krishnamurthi
That fixed the problem, thanks. I was disappointed by some of the resulting error messages, though. I'm bringing these up here because I don't know whether these error messages are an artifact of the strategy Jay suggested. To simplify, suppose I have (define-syntax (defvar: stx) (syntax-parse

[racket] parse-define-struct too liberal?

2011-09-02 Thread Shriram Krishnamurthi
parse-define-struct will parse an expression with anything in the "define-struct" position; e.g., (let ([s #'(anything-goes m (a b))]) (parse-define-struct s s)) succeeds. However, it is strict about what goes in the field positions, e.g., it cannot be used to parse (let ([s #'(anything-goe

Re: [racket] syntax-parse and literals

2011-09-02 Thread Shriram Krishnamurthi
I guess to me, the term "literal identifier" is an oxymoron. It's either a literal (5, #f, in this case :) or an identifier (foo, car, +). Unless "identifier" means nothing more or less than "symbol". When I write (:) in syntax-case, I'm saying ": is not a binding form; I want to see literally a

[racket] build-struct-generation

2011-09-03 Thread Shriram Krishnamurthi
build-struct-generation is a really useful utility, but I don't understand how to use it. Specifically, see Welcome to DrRacket, version 5.1.3 [3m]. Language: racket; memory limit: 128 MB. > (require syntax/struct) > (build-struct-generation #'p (list #'x #'y) #f #f) '(let-values (((struct: make-

Re: [racket] build-struct-generation

2011-09-03 Thread Shriram Krishnamurthi
That fix worked -- thanks! Yep, it did have a "mzscheme" whiff about it. It would be good for b-s-g to cross-reference d-s/d (I see a define-struct/derived, not struct/derived) -- I wouldn't have found it from the docs alone. However, I am a little unclear on the value of d-s/d. Is it solely to

[racket] splicing into local

2011-09-03 Thread Shriram Krishnamurthi
I have a define form that expands into two two definitions. Usually I can write (my-define ...) ==> (begin (define ...) (define ...)) However, this doesn't interact well with local. Is there a way of identifying that I'm in a local context and expanding into something else so that this "just wo

Re: [racket] splicing into local

2011-09-03 Thread Shriram Krishnamurthi
I hadn't realized I was getting the wrong local. Your suggestion did the trick and the result made my library far better than I'd hoped. Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] recognizing undefined; shared in TR

2011-09-03 Thread Shriram Krishnamurthi
Is there a way of checking whether a value position is undefined? Specifically, I'm trying to recognize the undefined value put in structures by SHARED. It appears that a undefined value is sometimes EQ? to another one, but this doesn't seem to be specified in the documentation (ie, that there is

[racket] return value of build-struct-names

2011-09-04 Thread Shriram Krishnamurthi
The docs for build-struct-names says The result is a list of identifiers: * struct:name-id * ctr-name, or make-name-id if ctr-name is #f * name-id? * name-id-field, for each field in field-ids. * set-name-id-field! (getter and setter names alternate). * I presume this last line () is jus

[racket] getting the term in syntax-id-rules

2011-09-05 Thread Shriram Krishnamurthi
In a syntax-case, I can obtain the term being processed: eg, (define-syntax (foo stx) (syntax-case stx () [... (with-syntax ([term stx]) ... #'term)])) In syntax-id-rules, the RHS is like a syntax-*rules*, so I don't know of a way of obtaining access to the source. This would be particularl

Re: [racket] getting the term in syntax-id-rules

2011-09-05 Thread Shriram Krishnamurthi
> Is there a reason not to just use `syntax-case' (or even better, > `syntax-parse')? Sheer ignorance, my dear chap. I didn't realize that that worked! (A docs hint may be in order) For those reading this later, here's an example: (define-syntax (String$ stx) (syntax-case stx (String$)

Re: [racket] recognizing undefined; shared in TR

2011-09-05 Thread Shriram Krishnamurthi
On Sat, Sep 3, 2011 at 11:17 PM, Shriram Krishnamurthi wrote: > Is there a way of checking whether a value position is undefined? > Specifically, I'm trying to recognize the undefined value put in > structures by SHARED.  It appears that a undefined value is sometimes > EQ? to

[racket] turning off shared printing in pconvert

2011-09-05 Thread Shriram Krishnamurthi
This program #lang racket (require mzlib/pconvert) (parameterize ([show-sharing false]) (print-convert (shared ([-a- (list 0 -b-)] [-b- (list 1 -a-)]) -a-))) produces this output in 5.1.3: Language: racket; memory limit: 128 MB. '(shared ((-0- `(0 (1 ,-0- -0-) How do I

Re: [racket] turning off shared printing in pconvert

2011-09-05 Thread Shriram Krishnamurthi
Just in case my example is misleading, I want to suppress ALL shared printing if possible. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] turning off shared printing in pconvert

2011-09-05 Thread Shriram Krishnamurthi
11 at 10:09 PM, Sam Tobin-Hochstadt wrote: > What would be printed for cycles? > > On Mon, Sep 5, 2011 at 9:56 PM, Shriram Krishnamurthi > wrote: >> Just in case my example is misleading, I want to suppress ALL shared >> printing if possible. >> ___

Re: [racket] Why check-expect only at the top level?

2011-09-06 Thread Shriram Krishnamurthi
I suspect everyone who teaches has run into just such a desire. But there's a "when" problem. We WANT students to be able to write checks before they write the function. That means their file can look like (check-expect (f 10) ...) (define (f x) ...) But if check-expect's just ran like regular

Re: [racket] Keyboard shortcut for switching between definitions area and interactions window

2011-09-07 Thread Shriram Krishnamurthi
I thought I saw that (ie, C-x o not working) a few times, but to be sure I tested just now in a fresh DrRacket 5.1.3, and C-x o works for me (phew!). Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] syntax-parse and literals

2011-09-07 Thread Shriram Krishnamurthi
Thanks for the very informative thread. Piecing together what Asumu, Jay, Robby, and Eli said, I think I understand what's going on, and I think this actually answers a question I asked last year and didn't get an answer to: Why do require and provide export their sub-forms as macros rather than j

[racket] beware DrRacket and Dexpot interaction

2011-09-07 Thread Shriram Krishnamurthi
In Windows 7: Over the past four days I've been using DrRacket intensively. During this time it has crash on me at least twice a day, each time exiting with error code 3 (according to the Puttycyg shell). I eventually noticed that Dexpot (a virtual window manager for Windows), which has otherwis

Re: [racket] Take an element from a set

2011-09-07 Thread Shriram Krishnamurthi
This looks like a reasonable way to get an element, but thinking ahead, you will probably want something both like "first" (which you have) and a corresponding "rest". The problem is that which element you get from the "first" operation is nondetermistic in a set. Therefore, you have to either -

[racket] abstracting over codeblock

2011-09-08 Thread Shriram Krishnamurthi
I'm trying to convert some old slatex'ed documents into scribble and running into trouble. I don't seem to have a clear enough handle on how to use codeblock. I can, for instance, convert \begin{schemedisplay} foo bar \end{schemedisplay} into @mycode{ foo bar } where @(defi

Re: [racket] abstracting over codeblock

2011-09-08 Thread Shriram Krishnamurthi
Thanks: that makes sense. But in that case, setting aside the abstraction issue for a moment, could you explain why @codeblock{ (define (f x) (x "three")) } works as expected -- it colors the sub-parts as the appropriate syntactic categories, not all as string -- but @code

[racket] new visual tool for student program understanding

2011-09-09 Thread Shriram Krishnamurthi
Over the summer, we built a new tool for visualizing program execution: think of it as a complement to the Stepper. It is similar in that it shows you the steps of program execution, what they evaluate to, and thus how the result is obtained (though it focuses only at the level of user-defined fun

Re: [racket] fruit flies

2011-09-12 Thread Shriram Krishnamurthi
Robby -- I don't know enough about how the internal drawing routine of DrRacket works, so you could help clarify that. In 2htdp/universe, the act of "movement" is represented by reconstructing the entire scene. Of course, there may be sharing: (define bg ... something complex ...) ;; at time 1

Re: [racket] fruit flies

2011-09-12 Thread Shriram Krishnamurthi
Time isn't the only measure. And in terms of space, I don't think you're accounting for all of it. When you make universe scenes bigger, you tend to see GC pressure. This *suggests* to me that there is not a lot of sharing from one display to the next; rather, an entire WIDTHxHEIGHT bitmap is bei

Re: [racket] I don't understand structural recursion.

2011-09-17 Thread Shriram Krishnamurthi
Hi Charlie, Yep, Catalan numbers! Here's something that may help. Add the following two lines to the top of your file -- #lang planet tracer/tracer (trace-all) -- and put a concrete call at the end, eg: (num-distinct-trees 3) Go to Language | Choose Language... and select the option at the

Re: [racket] I don't understand structural recursion.

2011-09-17 Thread Shriram Krishnamurthi
I understand. It would help if you could tell me what would have been useful to drop from the output -- this feedback helps us a great deal. There is *some* configurability: - no trace command = just run the program - (trace-all) - (trace-failed-checks) = just the tests that failed - (trace-e

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
Yep, that's what he's saying. I know why you're confused. Let me see if I can help. Here's an input program: '(1 2 3) Now be careful to make the following distinction: - what it computes - what it prints What it computes is a list with three values. There are at least three different ways

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
I used different words than Matthias because we were trying to offer somewhat different explanations of what is happening. You chose to use his words in response to mine, which only confuses things further. (There is, incidentally, a good reason why (+ 1 2) could, but does not, evaluate to (+ 1 2

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
You keep thinking (1 2 3) is the canonical form of a list. It is not. It's just a particular *print representation* of list. So is # or one of the many alternatives Eli proposed. Your attempt to use an interpreter model is commendable but falls short. That is because you only described the REA

Re: [racket] Off topic: A curriculum (books, papers, essays) for how to design and implement compilers and interpreters?

2011-09-18 Thread Shriram Krishnamurthi
It depends on what kinds of compilers/interpreters they were trying to build. A course of study for Fortran would like quite different from one for ML would look quite different from one for JavaScript (though there are of course many overlaps). Shriram ___

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
> It's just that I don't understand why you (i.e. > Racket implementers) choose Racket by default prints list this > way (different than all other lisps). I think this choice can confuse > [...] users who switches from different lisp > implementations [...] Then it nicely accomplishes the task of

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
We are not teaching Lisp. We're teaching Racket. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Shriram Krishnamurthi
> Ok, maybe this is not something that's important in other programming > languages, but it *is* important in lisps. As a lisp educator, how can you > *not* to teach this fundamental fact about lisp? It's funny that here you're berating Robby, who's put more time into different ways of printing th

[racket] using scribble --pdf on Windows

2011-09-25 Thread Shriram Krishnamurthi
On Windows 7, I have had no trouble using scribble --html. For the first time in 5.1.3 I tried using scribble --pdf, and it does not work. Does anyone recognize whether I'm doing something wrong? ventoux ~/Desktop/r/sk/tycs> scribble --pdf doc.scrbl run-pdflatex: did not generate a log file at d

[racket] red underline of language name

2011-09-25 Thread Shriram Krishnamurthi
In #lang scribble/manual, if I type @codeblock{ #lang racket } the output (in HTML) has the word "racket" underlined, which seems fair enough; ditto for @codeblock{ #lang typed/racket } But if I type @codeblock{ #lang planet foo/bar } only the word "planet" is underlined, which seems odd ("pl

Re: [racket] using scribble --pdf on Windows

2011-09-25 Thread Shriram Krishnamurthi
Sorry, should have pointed that out. No, I don't see a log file. There are no output files of any sort when scribble is done. I would have anyway thought scribble was doing all this in some tmp directory somewhere else. Aha, I just found out that there's a scribble --latex option. I ran that an

Re: [racket] using scribble --pdf on Windows

2011-09-25 Thread Shriram Krishnamurthi
file? > > Robby > > On Sun, Sep 25, 2011 at 1:46 PM, Shriram Krishnamurthi > wrote: >> Sorry, should have pointed that out.  No, I don't see a log file. >> There are no output files of any sort when scribble is done.  I would >> have anyway thought scribb

Re: [racket] using scribble --pdf on Windows

2011-09-25 Thread Shriram Krishnamurthi
No problem, thanks for trying. For now I anyway intended to publish only HTML output. What I immediately wanted was to periodically test to make sure the eventual PDF will look okay, and the two-step --latex option is good enough for that. If whoever maintains Scribble/Windows would like to work

Re: [racket] red underline of language name

2011-09-25 Thread Shriram Krishnamurthi
Thanks, though I'm not sure that was my main point. Though I now see that "planet" really is considered a whole language in its own right, so I guess this red underlining is inevitable by the semantics. Incidentally, for those who find this thread later, there's another option you will may useful

[racket] scribble/text language

2011-09-25 Thread Shriram Krishnamurthi
Does the scribble/text language work in 5.1.3? Here's the first example in the docs: #lang scribble/text Programming languages should be designed not by piling feature on top of feature, but blah blah blah. ventoux ~/Desktop/r/sk/gradelang> scribble try2.scrbl dynamic-require: name is not provid

Re: [racket] scribble/text language

2011-09-26 Thread Shriram Krishnamurthi
be run through scribble but others must be run through racket.) Shriram On Mon, Sep 26, 2011 at 8:25 AM, Matthew Flatt wrote: > At Sun, 25 Sep 2011 21:35:08 -0400, Eli Barzilay wrote: >> 50 minutes ago, Shriram Krishnamurthi wrote: >> > Does the scribble/text language

Re: [racket] Academic journals publishing Scheme/Lisp related research

2011-09-27 Thread Shriram Krishnamurthi
TOPLAS Journal of Functional Programming are both excellent choices. There are also other qualified venues such as HOSC. Shriram -- Pardon terseness and mistakes -- sent from phone. _ For list-related administrative tasks: http://lists.racket-l

[racket] wrapped TR functions given new name?

2011-09-29 Thread Shriram Krishnamurthi
I have two different files that provide a function called "isort". One comes from untyped Racket and the other from typed/racket. I am importing them thus: (require [rename-in "untyped-sort-server.rkt" (isort u:isort)]) (require [rename-in "typed-sort-server.rkt"

Re: [racket] Poll: Does anybody besides Doug use 'plot'?

2011-09-30 Thread Shriram Krishnamurthi
If you mean this library -- http://docs.racket-lang.org/plot/ -- I do use it in Scribble documents. (And it's just amazing that with two lines of code I can have graphs in my HTML and PDF -- amazing.) I would be able to easily swap it out for something else, though. Shriram ___

Re: [racket] typo in signatures?

2011-10-04 Thread Shriram Krishnamurthi
check-within http://docs.racket-lang.org/test-engine/index.html#(def._((lib._test-engine/racket-tests..rkt)._check-within)) On Tue, Oct 4, 2011 at 1:48 PM, Hendrik Boom wrote: > On Tue, Oct 04, 2011 at 12:50:36PM -0400, Matthias Felleisen wrote: >> >> For testing, you want to use check-within be

Re: [racket] Learning Scheme and Racket

2011-10-05 Thread Shriram Krishnamurthi
> Some of the other commenters in that thread point out a few big things > I missed, like Scribble. Even more than Scribble is the fact that Racket enables Scribble to be constructed in and then integrated into the language. The phrase "a much, much more expressive macro system" is in your reddit

Re: [racket] Poll: Does anybody besides Doug use 'plot'?

2011-10-07 Thread Shriram Krishnamurthi
How about a synonym instead? I propose "Scheme". <-; On Tue, Oct 4, 2011 at 8:09 AM, David Van Horn wrote: > On 10/1/11 2:51 PM, Neil Toronto wrote: >> >> You know what would convince me the most? Find me a great name for the >> new library that contains the word "plot". It should be clever and

Re: [racket] check-fact would be nice...

2011-10-14 Thread Shriram Krishnamurthi
I admire the consistency of this position - I really do - but we also have check-error. -- Pardon terseness and mistakes -- sent from phone. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Sounds in Universe?

2011-10-19 Thread Shriram Krishnamurthi
John, have you run your audio stuff w/ world? How hard would that be? On Wed, Oct 19, 2011 at 3:14 PM, Matthias Felleisen wrote: > > No. -- Matthias > > > > On Oct 19, 2011, at 7:59 AM, Yaron Minsky wrote: > >> Is there any support for playing sounds within the Universe teachpack? >> >> y >> ___

[racket] impersonators/chaperones for lists

2011-10-22 Thread Shriram Krishnamurthi
I'm missing why there are impersonators and chaperones for various datatypes but not for lists. There's surely a good reason why, but I am having trouble reconstructing what it might be. Anyone? Shriram _ For list-related administrative tasks:

Re: [racket] impersonators/chaperones for lists

2011-10-22 Thread Shriram Krishnamurthi
Thanks to you and Sam -- I had wondered if the run-time system wasn't partly driving this, and certainly chaperones on immutable data don't make as much sense. But I don't see them on mutable lists either _ For list-related administrative tasks

Re: [racket] match in Advanced Student?

2011-10-31 Thread Shriram Krishnamurthi
I found this confusing when I first encountered it -- the patterns are at the TOP of the page (but not linked from the match docs). Scroll to the top and look for "pattern" in the BNF. On Mon, Oct 31, 2011 at 3:16 PM, Jay McCarthy wrote: > http://docs.racket-lang.org/htdp-langs/advanced.html > >

Re: [racket] scribble --pdf, skull.sty, and stabular.sty

2011-11-09 Thread Shriram Krishnamurthi
+1 on Windows for skull! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] the full glory of drracket

2011-11-09 Thread Shriram Krishnamurthi
You're missing the PLaneT: Installing ... line! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] profiling

2011-11-10 Thread Shriram Krishnamurthi
Here's a program: #lang racket (define (even? n) (if (zero? n) true (odd? (sub1 n (define (odd? n) (if (zero? n) false (even? (sub1 n Go to Language | Choose Language, click on Show Details, and at the top-right, select "Debugging and profiling". Now run the program and in the inte

[racket] article about Racket

2011-11-11 Thread Shriram Krishnamurthi
http://queue.acm.org/detail.cfm?id=2068896 If you participate in a social media site, you may want to post or upvote it (it's already on Hacker News). _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] article about Racket

2011-11-11 Thread Shriram Krishnamurthi
> so the tools > might let anybody do a new language, but the ability to use those > tools seems to me to be a whole 'nother kettle of fish? Obviously, a tool can be used to produce both good and bad artifacts. But the better the tool, the easier time the toolsmith has with the basics, so the more

Re: [racket] article about Racket

2011-11-12 Thread Shriram Krishnamurthi
Why don't you spend a little time writing down your thoughts, and then post them. Maybe there are things that you're just missing that are already in there. Or perhaps you find what you want but the path to getting there is unintuitive, and seeing the feedback will help improve the user experienc

Re: [racket] DrRacket needs work

2011-11-13 Thread Shriram Krishnamurthi
On Nov 13, 2011, at 2:06 PM, Raoul Duke wrote: > > apparently i can't higlight a sub-section of code and "run" just that. When you do this in Eclipse, what exact steps do you follow? And what does Eclipse do in response? Can you show an example? Thanks, Shriram

Re: [racket] DrRacket needs work

2011-11-14 Thread Shriram Krishnamurthi
> i do it in emacs usually if we are talking about being able to > evaluate chunks. But Emacs is not an IDE. You began by complaining that DrRacket is not more like other traditional IDEs, and making platform-specific complaints. Is there ANY sense in which Emacs is more platform-specific than D

Re: [racket] DrRacket needs work

2011-11-14 Thread Shriram Krishnamurthi
> having said that, "eminently sensible" is in the eye of the beholder. > after all, racket didn't have static type checking for most of its > life, no? i am not saying it is or is not eminent in my own view, i am > pointing out that it is pretty subjective so you can't actually call > it "eminentl

Re: [racket] DrRacket needs work

2011-11-14 Thread Shriram Krishnamurthi
Right. A Racket Declaration of Independence. (-: _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Sending a method as a symbol

2011-11-15 Thread Shriram Krishnamurthi
Right. In other words, Racket would become a true scripting language. <-; On Tue, Nov 15, 2011 at 3:14 PM, Grant Rettke wrote: > On Mon, Nov 14, 2011 at 8:32 AM, Matthew Flatt wrote: >> At Sun, 13 Nov 2011 21:00:55 +, "nicolas.o...@gmail.com" wrote: >>> Is there a function to send to a clas

Re: [racket] Why internal definitions?

2011-11-16 Thread Shriram Krishnamurthi
> Your question suggests that you come from a teaching language > background where we introduce only local definitions. In ISL > and ISL+lambda, the use of local makes it easier to move global > transformations into a local scope and vice versa. Most importantly, > these movement preserve the exact

Re: [racket] Units/measures library

2011-11-17 Thread Shriram Krishnamurthi
DSSSL (-: (Since I believe Bigloo and/or Gambit implemented DSSSL, lurking in their implementations is code that does this...) _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Racket documentation for web development is just awful!

2011-12-17 Thread Shriram Krishnamurthi
Hi R. Noob, > Do the URLs of pages that use continuation > mechanism have to look ugly and cryptic? Yes they do. The URLs are ugly *because* they are cryptic. They are cryptic because it is a route to system security. If they were pretty, people could guess them, and that would adversely affec

Re: [racket] formlets with radio button & checkbox example?

2011-12-26 Thread Shriram Krishnamurthi
Let's just agree to ignore the troll, please. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-31 Thread Shriram Krishnamurthi
On Fri, Dec 30, 2011 at 2:54 PM, Noel Welsh wrote: > On Tue, Dec 27, 2011 at 9:26 PM, Galler wrote: >> I note that no one has discussed throwing a significant amount of physical >> memory at the problem. >> >> Empirically, is that because garbage-collection of a large heap creates its >> own perf

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-31 Thread Shriram Krishnamurthi
That's a fine position in theory, but I doubt it works well in practice even today. When Jay talks about 3-4 GB, he doesn't mean over the course of a conference -- that could sometimes add up in just a few hours. No amount of cheap RAM is going to combat that. But, as I said, in an Ajax world th

[racket] feeding trolls

2012-01-02 Thread Shriram Krishnamurthi
Hi all, We have until now never barred anyone from this mailing list. We like to keep it that way. Eli Barzilay and I talk about such issues periodically, and have been doing so a LOT lately. Trolls are obviously problematic. We're starting to get unsubscribe messages, which does not help -- t

Re: [racket] The value of a language

2012-05-09 Thread Shriram Krishnamurthi
The Scribble language is a great instance of this, though unfortunately there isn't yet really an easily accessible document that lays out the argument crisply for a lay audience. But if you can persist a little, try the Scribble ICFP paper. Racket Users list: http://lists

Re: [racket] Congratulations to Shriram: Milner Young Researcher Award

2012-06-13 Thread Shriram Krishnamurthi
Thank you all for your kind words, both public and private. You know the line about standing on shoulders, but it turns out that if the shoulders you stand on are sufficiently tall, mere crouching is sufficient. Those shoulders belong not only to Matthias but also especially to Robby Findler, Cor

[racket] on-line programming languages course

2012-08-06 Thread Shriram Krishnamurthi
, please post them here: https://plus.google.com/117185293319274359863/posts/9rfginQ3w82 I look forward to seeing you in class! Shriram Krishnamurthi, Instructor Joe Gibbs Politz, Associate Instructor Racket Users list: http://lists.racket-lang.org/users

[racket] scribble/lp issues

2012-09-08 Thread Shriram Krishnamurthi
I'm trying to start using scribble/lp and ran into some issues. 1. When I switch a buffer from scribble/base to scribble/lp, if I have no chunks I get an error. Why is this? It certainly isn't needed for typesetting; for assembling code during execution, when there are no chunk's why isn't it eq

[racket] scribbling a stand-alone scribble/lp file

2012-09-08 Thread Shriram Krishnamurthi
It also appears that one cannot scribble a stand-alone scribble/lp file: it produces dynamic-require: name is not provided name: 'doc ... (This, for instance, is scribbling the very example in http://docs.racket-lang.org/scribble/lp.html .) But scribbling the wrapper seems to work fine. If tr

Re: [racket] [plt-edu-talk] Does a Scheme procedure "return" a value?

2012-09-08 Thread Shriram Krishnamurthi
The function phone-directory consumes a name, then produces/computes a phone number. On Sat, Sep 8, 2012 at 11:26 AM, Richard Cleis wrote: > I am writing documentation. What are acceptable words for the following > brackets? > > The function f [what verbs are ok?] a name, then [what about here?]

Re: [racket] [plt-edu-talk] Does a Scheme procedure "return" a value?

2012-09-08 Thread Shriram Krishnamurthi
I concur w/ Joe that there's something to be said for using "returns" since you're presumably writing documentation that you want non-Racketeer to read and immediately understand -- your goal here (presumably) isn't to be pedantic. This is in contrast to a programming or programming languages cour

  1   2   3   4   >