[racket-users] Re: can't open DrRacket 8.5 on M1 macOS

2022-07-06 Thread Mark Bestley
t; screen) > carefully, you will notice that something shows up and then disappears > immediately > every time (00:02 and 00:16) DrRacket is opened. This suggests that DrRacket > is > closed immediately after being opened. > This is a known problem see Github issue https://g

[racket-users] Re: Core Team: I need you decide what I should do about the spammer.

2021-12-20 Thread Mark Bestley
mane.io bridge set up for the Discourse mail list. -- Mark -- 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. T

[racket-users] Re: Examples of sending HTML email w/ Racket?

2021-07-31 Thread mark M
k/axio.git mark@ll~ $ raco pkg install https://github.com:AxioFramework/axio.git raco pkg install: invalid package source; cannot parse URL given: https://github.com:AxioFramework/axio.git don't seem to work ; kindly help #noob On Wednesday, April 8, 2020 at 9:54:48 AM UTC-7 br...@lojic.com

Re: [racket-users] DrRacket caret blink

2020-11-29 Thread 'Mark' via Racket Users
rtist/disable-blink-caret-drracket-tool` > <https://github.com/LiberalArtist/disable-blink-caret-drracket-tool>. > > Hope this helps! > > -Philip > On Saturday, November 28, 2020 at 3:49:39 PM UTC-5 Philip McGrath wrote: > >> On Sat, Nov 28, 2020 at 3:10 PM 

Re: [racket-users] DrRacket caret blink

2020-11-29 Thread &#x27;Mark' via Racket Users
you can set a preference in it to turn > the blink off. As Philip says, the more difficult part will be getting the > preference from the OS but at least that's a start. > > Robby > > > On Sat, Nov 28, 2020 at 2:49 PM Philip McGrath > wrote: > >> On S

Re: [racket-users] DrRacket caret blink

2020-11-28 Thread &#x27;Mark' via Racket Users
k in DrRacket, but your > installation comes with a few other executables that are text only - such > as "gracket-text" the cursor does not blink on my installation (MacOS, > Racket 7.9 (bc)) > > On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users < >

[racket-users] DrRacket caret blink

2020-11-28 Thread &#x27;Mark' via Racket Users
I've just downloaded and installed Racket to try it out. But on both Linux and Windows the caret blinks inside DrRacket which makes it unusable for me. Is it possible to stop the blinking? On Windows I've set the system-wide caret not to blink and every other Windows program I've used respects

[racket-users] Re: Gracket format

2019-08-28 Thread Mark Bestley
Kieron Hardy writes: > Hi Mark, > > How are you starting your program? > Not started it yet. Just using DrRacket and text editor for this issue. > Are you launching Racket from a command line or launching by e.g. > double-clicking an icon in the Windows window manager?

[racket-users] Gracket format

2019-08-28 Thread Mark Bestley
corrupt the text file? and only change if I add images? The only odd thing I think I have done that might matter is Collapse S-expression. -- Mark -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread &#x27;Mark Warren' via Racket Users
That's a shame, I'm afraid I'm out of ideas then. Hopefully someone else will know. On Thursday, 1 August 2019 14:36:07 UTC+1, Kshitij Sachan wrote: > > I've set up an OpenGL context that is displayed in a snip (I chose a snip > because I want to be able to move the camera around and generally r

[racket-users] Re: Retina display for OpenGL

2019-08-01 Thread &#x27;Mark Warren' via Racket Users
I've never used this before so I may be completely wrong, but you can supply gl-config% to the make-gl-bitmap and there is a method on it (send a-gl-config set-hir

Re: [racket-users] Stack trace

2019-05-03 Thread Mark Engelberg
something like this? I showed my student how to build an else case with (error x) to print the value of input x if all the cases fall through, but would prefer a more automatic approach. --Mark On Thu, May 2, 2019 at 4:15 PM John Clements wrote: > Well, I see two things going on here. &g

[racket-users] Stack trace

2019-05-02 Thread Mark Engelberg
Working with a student in DrRacket for the first time in a while. I notice that in BSL, an error in a function does not tell you what input to the function caused the error, nor does it show the stack trace by drawing arrows in the definitions window the way I remember. When did this behavior cha

[racket-users] Re: [racket] Dr. Racket for iOS

2018-04-10 Thread Mark Dymek
Has this been looked into again? Especially now that we have Swift playgrounds and the iPad Pro. The iPad Pro would be my pc if only it had a racket/scheme programming environment. I’ve found a few gambit is no longer kept up to date meaning it’s not optimized for the Pro and iOS 11. I firmly

Re: [racket-users] racket/gui and the Cocoa NSRunLoop

2018-01-25 Thread Mark Wunsch
tically nonexistent, but I'm under the impression that work is executed off these queues through some Cocoa mechanism off the main run loop, as before. Do you know how I might ensure that this work is executing or am I way off the mark? Thanks. On Mon, Jan 22, 2018, at 10:31 PM, Matthew Fla

Re: [racket-users] racket/gui and the Cocoa NSRunLoop

2018-01-11 Thread Mark Wunsch
un` or `runUntilDate` on the main NSRunLoop, but that didn't seem to accomplish this goal. Any ideas of how to "yield" to whatever queue or thread GStreamer has running? Thank you so much for your help! On Wed, Jan 10, 2018, at 3:37 PM, Matthew Flatt wrote: > At Wed, 10 Jan

[racket-users] racket/gui and the Cocoa NSRunLoop

2018-01-10 Thread Mark Wunsch
tter understanding of the Cocoa foundations (pun somewhat intentional) of racket/gui help me better understand why this code is behaving oddly, and what, if anything can be done to ensure that the application's main thread processes events (if that's the kind of thing that should be

Re: [racket-users] Re: Does anyone have experience with GObject Introspection?

2017-08-10 Thread Mark Wunsch
Hi there! I'm the author of Overscan and its implementation of GIR bindings. Glad you're taking a look! It's still very early in development, but the Introspection module is somewhat documented here: http://www.markwunsch.com/overscan/ I'm happy to help with questions on the binding part, and g

Re: [racket-users] RacketCon Code of Conduct

2017-06-20 Thread Mark Wunsch
In an attempt to be more "scientific" about this I would point to the writing and actions of some other prominent language communities, as they have made the argument FOR having a CoC much better than I could. Before that, I think we (as practitioners and members of a technical community) should

Re: [racket-users] IO in racket is painful

2016-03-22 Thread Mark Engelberg
On Tue, Mar 22, 2016 at 9:20 PM, Stephen Chang wrote: > :) I had started writing up a parsack example, and I was all set to > admonish the OP for not creating a parser when you want a parser but > then I saw it was for a programming contest where I guess this sort of > scanf/regexp hackery is ok?

Re: [racket-users] IO in racket is painful

2016-03-22 Thread Mark Engelberg
Hi, I have coached several teams on using Racket in programming contests. In our local contests, the most common input format is to have one line per dataset, and each dataset is typically several pieces of data separated by spaces. For this common input format, the 2htdp/batch-io teachpack is th

Re: [racket-users] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2016-02-03 Thread Mark Lee
To All, This message has been chronically sent to the mailing list. Can we classify it as spam and unrelated to the Racket Language? Regards, Mark On Wed, Feb 3, 2016 at 3:17 PM, Kasem A wrote: YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maa

[racket-users] [newbie] Help with streams

2015-12-20 Thread mark
ame "anglo" "male")) but that seems to miss out on the goodness of streams/generators. Any help/tips appreciated. TIA, .. mark. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

Re: [racket-users] read-line reads only a character at a time from file.

2015-12-17 Thread Mark Thom
Thanks very much! -- 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 options, visit https://groups.google.com/d/

[racket-users] read-line reads only a character at a time from file.

2015-12-17 Thread Mark Thom
As an exercise, I'm implementing a simple grep function in Racket: (define (grep-file pattern . files) (for ([file-path (in-list files)]) (with-input-from-file file-path #:mode 'text (lambda () (for ([line (read-line (current-input-port) 'return-linefeed)] [i (i

Re: [racket-users] Strange behavior when writing to a file

2015-06-03 Thread Mark Lee
On Tuesday, June 02, 2015 04:47:33 PM Matthew Flatt wrote: > I think you wanted `(and (>=` in place of `(or (<`. That did it, thanks a lot! Mistake on my part when I wrote it, the string-length check was added afterwords so I used an or statement instead of an and. Regards, Mark

[racket-users] Strange behavior when writing to a file

2015-06-02 Thread Mark Lee
hone-Number : 000-000- Regards, Mark database-test.rkt Description: application/kdeuser1 signature.asc Description: This is a digitally signed message part.

[racket-users] Source Code Level Flattener

2015-04-26 Thread Mark Lee
e and imports them into a *-mega.rkt file. This file can be subsequently compiled with raco make <*-mega.rkt>. The code can be found at : https://github.com/bluerider/flattener Regards, Mark -- You received this message because you are subscribed to the Google Groups "Racket

[racket-users] Re: raco demod : '"cannot instantiate `racket/gui/base' a second time in the same process"

2015-04-25 Thread Mark Lee
> > > '"cannot instantiate `racket/gui/base' a second time in the same > > > > > > process") > > > > > >'#)) > > > > > > ----- > > > The program runs fine when I compile

[racket-users] Re: raco demod : '"cannot instantiate `racket/gui/base' a second time in the same process"

2015-04-25 Thread Mark Lee
(_cast8910 '1 _scheme _pointer)) > > > >(error > > > > '"cannot instantiate `racket/gui/base' a second time in the same > > > > process") > > > >'#)) > > > >

[racket-users] Re: raco demod : '"cannot instantiate `racket/gui/base' a second time in the same process"

2015-04-24 Thread Mark Lee
27;#)) > - > The program runs fine when I compile it with (raco make) and (raco exe). In > addition, the windowing library is only required once. What could be causing > this error? > > Regards, > Mark This error also repeats if I just (raco demod) the windowing

[racket-users] raco demod : '"cannot instantiate `racket/gui/base' a second time in the same process"

2015-04-24 Thread Mark Lee
is only required once. What could be causing this error? Regards, Mark -- 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...@googlegro

Re: [racket] try-racket alternative

2015-02-26 Thread Mark
s where they can't install DrRacket on computers very easily. Mark Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Error propagation in `flexpt` [was: [racket-bug] all/14862: extflonum returns a different solution to flonum and mixed-integer calculations]

2014-12-02 Thread Mark Lee
tation, I think this is probably due to precision in calculating the golden ratio since I'm not using the built in phi. Thanks a lot! Regards, Mark ---(extfl->exact-

Re: [racket] Error propagation in `flexpt` [was: [racket-bug] all/14862: extflonum returns a different solution to flonum and mixed-integer calculations]

2014-12-02 Thread Mark Lee
75) > 2^53. > > For a lot more on how errors propagate through floating-point programs > and what to do about it, you can read my article on it, which seems to > still be freely available here: > > > http://www.computer.org/cms/Computer.org/ComputingNow/issues/2014/10/mcs

Re: [racket] Lisp Devroom at FOSDEM 2015: Call for Participation [UPDATED]

2014-11-19 Thread Mark Tarver
27;ll be forced to pull her punches. Mark On Tuesday, 18 November 2014 13:33:50 UTC, Sanel Zukan wrote: > > Sorry guys for spamming, I put the wrong mailing list. Now is updated. > > ->8- > > Dear Lispers, > > I'm pleased to announce, for the fi

[racket] bug? bit-vector equal problem

2014-08-19 Thread Mark Wallace
It seems that "equal?" misbehave on bit-vectors when the size is less then 9. Below is a small test case that show this bug? maybe. Can you guys help to test whether it's only happening on my machine? #lang racket (require data/bit-vector) (define bv1 (make-bit-vector 8 #t)) (define bv2 (make

Re: [racket] reference #:when clause in for/list?

2014-08-17 Thread Mark Wallace
9 PM, Sam Tobin-Hochstadt wrote: This is what 'in-value' is for. Sam On Aug 17, 2014 5:07 AM, "Mark Wallace" mailto:lotab...@gmail.com>> wrote: Consider the following pseudocode: (for/list ([i ...] #:when ) ) Can I bind that expressio

[racket] reference #:when clause in for/list?

2014-08-17 Thread Mark Wallace
like first collect all items of expression E and then use 'filter' to get interested items. However it would be a waste of memory if the number of interested items is small. So, any ideas? -- Best Regards, Mark Wallace. Racket Users list: http://lists.racket-lang.org/users

[racket] feature request: support multi-steps for `range`

2014-05-05 Thread Mark Wallace
EDIT: somehow my first mail did not appear on the mailing list, so here I send it again. This came to my mind when I implementing Sieve of Eratosthenes with wheel factorization. The major concern is `in-range` instead of `range`. Description --- Now we have syntax (range start e

[racket] feature request: support multi-steps for `range`

2014-05-04 Thread Mark Wallace
This came to my mind when I implementing Sieve of Eratosthenes with wheel factorization. The major concern is `in-range` instead of `range`. Description --- Now we have syntax (range start end [step]) or similar for `in-range` (in-range start end [step]) It only support a si

Re: [racket] Bothersome solution to HtDP/2e Rocket Landing Discussion

2014-02-23 Thread Mark Engelberg
Take a look at the function put-pinhole, which will allows you to create a version of the rocket image with the "pinhole" at the bottom center of the rocket. If you do that, I think you'll be able to easily create place-image logic for the rocket example that is more to your liking. On Sun, Feb

Re: [racket] Y combinator

2014-02-06 Thread Mark Engelberg
his way, built up from easy-to-understand components (at least the components are easy to understand after you've played around for hours with puzzles that use them). Definitely check out the Smullyan book, it's very enjoyable. Mark Racket Users list: http://lists.racket-lang.org/users

[racket] Block diagram drawing library

2014-01-31 Thread Mark Watts
construct networks of constraints by drawing connectors between constraints. If someone has written something like this before, it would save me some time figuring out how to do it myself. -- Cheers, Mark Watts Department of Computer Science University of Texas at Austin Racket

Re: [racket] Expand string for use with enter!

2014-01-07 Thread Mark Watts
-require`, but there's currently no `dynamic-enter!`. > > We can add `dynamic-enter!` to `racket/enter`. Meanwhile, though, you > may have to use `eval` as a workaround. > > At Mon, 6 Jan 2014 18:07:35 -0600, Mark Watts wrote: > > Hello, > > > > I'm trying

[racket] Expand string for use with enter!

2014-01-06 Thread Mark Watts
Hello, I'm trying to make a wrapper for enter! (from racket/enter) but the filename argument gets read by enter! as a symbol rather than the value it is bound to. How can I expand the argument into a string for this case? -- Cheers, Mark Watts Department of Computer Science University of

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

2013-12-31 Thread Mark Watts
. > This isn't related to your main query, but it sounds like the functionality of `pa' is served by function type signatures in Typed Racket. -- Cheers, Mark Watts Department of Computer Science University of Texas at Austin Racket Users list: http://lists.racket-lang.org/users

[racket] License question

2013-11-04 Thread Mark Engelberg
I must admit that I have no idea how to interpret the legalese associated with different software licenses. Is it okay to port portions of Racket's math library to other languages? Thanks, Mark Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Why experienced programmers don’t use comments?

2013-07-08 Thread Mark Engelberg
Experienced coders tend to find the meaning of code more readily apparent, so they tend to think that their code "speaks for itself" (which may or may not be an accurate perception). On Mon, Jul 8, 2013 at 6:41 PM, Ben Duan wrote: > Dear All, > > I have a question here. There’s an extensive use

Re: [racket] Offtopic: Favorite resources for mastering SML?

2013-07-05 Thread Mark Engelberg
While we're on the topic of exploring from Racket to alternative languages, what's the friendliest way to dip into Prolog coming from a Racket background? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Size matters

2013-06-08 Thread Mark Engelberg
This tension between clarity and line length is precisely why I wish camelCase were more common in Lisp languages. When using clear multi-word names, those hyphens between words can really eat up a significant percentage of your line width. Racket Users list: http://lists.

Re: [racket] Requiring SRFI

2012-11-01 Thread Mark Engelberg
OK, I get it now. subtract-in does exactly what I want. Thanks, Mark Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Requiring SRFI

2012-11-01 Thread Mark Engelberg
My point being that I'm worried if I have to itemize all the names, I might miss a potential conflict. On Thu, Nov 1, 2012 at 11:43 AM, Mark Engelberg wrote: > Thanks. Is there a simple way to do it without itemizing the specific > function names? > > I was caught off guard be

Re: [racket] Requiring SRFI

2012-11-01 Thread Mark Engelberg
Thanks. Is there a simple way to do it without itemizing the specific function names? I was caught off guard because I was using the new string-trim function. When I included srfi/13, I didn't realize it was going to replace string-trim with a version that was really just a "trim left" function.

[racket] Requiring SRFI

2012-11-01 Thread Mark Engelberg
Is there an easy way to require everything in a given SRFI, while specifying that in a case of name conflict, I want to use the built-in racket version? I'm specifically thinking about srfi/13, the string library. I want to include that, but I think Racket's newly added string functions (such as

Re: [racket] Scribble to latex

2012-06-12 Thread Mark Millikan
Did you try my first workaround suggestion? It lets you keep PATH modifications to typical *nix ones: such as install scripts expect/suggest easing maintenance, ymmv. On Mon, Jun 11, 2012 at 3:31 PM, Danny Yoo wrote: > On Wed, Jun 6, 2012 at 2:40 PM, Viera Proulx wrote: > > I am starting to pl

Re: [racket] Scribble to latex

2012-06-08 Thread Mark Millikan
Two work arounds: 1. Launch DrRacket from a terminal with 2. Run == This fragment from racket/collects/redex/private/dot.rkt succinctly describes the problem and a hard-coded solution to the root problem: ;; these paths are explicitly checked (when find-executable-path ;

Re: [racket] Getting started with Scribble

2012-03-17 Thread Mark Engelberg
On Sat, Mar 17, 2012 at 11:44 AM, Eli Barzilay wrote: > Note that what Haskell does is *semi*-literate-programming, something > that has little to do with literate programming. Neil Van Dyke is > working on a tool that is going to be more like > semi-literate-programming. > > I understand that l

Re: [racket] Getting started with Scribble

2012-03-17 Thread Mark Engelberg
On Sat, Mar 17, 2012 at 5:36 AM, Robby Findler wrote: > That is now how scribble/lp works. You need to make another file and > use @lp-include on the first to get a document that actually > scribbles. There is more explanation of this in the docs, right below > that first example. > > Robby > > OK

Re: [racket] Getting started with Scribble

2012-03-17 Thread Mark Engelberg
I'm still curious to get scribble/lp working, but I've figured out an immediate solution to my question. I was able to get the behavior I want with just a simple macro: @(define-syntax-rule (code l) (begin @schemeblock[l] l)) Below is a sample of its use to get the behavior I want wh

Re: [racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
OK, I pasted in the code from the docs just to make sure it wasn't something in my code. Then I hit the "Scribble HTML" button that appears in the upper-right corner of DrRacket. I see the following in the interactions window: Welcome to DrRacket, version 5.2 [3m]. Language: scribble/lp; memory

Re: [racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
Ugh, scratch my scratching that. I'm still getting the error. On Fri, Mar 16, 2012 at 7:47 PM, Mark Engelberg wrote: > On Fri, Mar 16, 2012 at 7:45 PM, Mark Engelberg > wrote: > >> scribble/lp is related, but more involved to use. Specifically, I just >> tried it a

Re: [racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
On Fri, Mar 16, 2012 at 7:45 PM, Mark Engelberg wrote: > scribble/lp is related, but more involved to use. Specifically, I just > tried it and it doesn't seem to work with the scribble html button that > appears in DrRacket. I keep getting the following error: > scrib

Re: [racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
that mode, by default, a line is treated as text unless it has a > at the beginning of the line to indicate it is code. I was under the impression that with Scribble, I could do something similar (mostly text, but with occasional code blocks), but would have the additional benefits of Scrib

Re: [racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
;; The zero test [else (* n (factorial (sub1 n)))])) ] But when I hit Run, it doesn't seem to recognize factorial in the interactions window. On Fri, Mar 16, 2012 at 6:41 PM, David Van Horn wrote: > On 3/16/12 8:42 PM, Mark Engelberg wrote: > >> So I'm trying to fi

[racket] Getting started with Scribble

2012-03-16 Thread Mark Engelberg
7;m looking for something lightweight. Is there a way? Thanks, Mark Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Mark Tarver is the man!

2012-01-01 Thread Mark Engelberg
On Sun, Jan 1, 2012 at 4:50 PM, Raoul Duke wrote: > horses for courses, to some degree - Shen is all about portability, > and it is very young. No doubt. I have my eye on Shen. It could mature into something very cool, and I'm hoping that happens. I meant my opinion to be about the breadth of

Re: [racket] Mark Tarver is the man!

2012-01-01 Thread Mark Engelberg
The PLT team clearly cares passionately about creating and maintaining real, usable languages and tools. That is why Racket exists. Very few academic projects produce anything nearly as useful and professional. I find your comparison to Shen somewhat ironic, because, as much as I admire Shen, I

Re: [racket] shortest paths, resource allocation/scheduling

2011-12-05 Thread Mark Engelberg
Check out Algorithm T in chapter 7.2.1.3 of Knuth, volume 4A part 1. Put your items into a vector, and use Algorithm T to generate the indices of the elements to extract. _ For list-related administrative tasks: http://lists.racket-lang.org/listin

[racket] Challenge Questions

2011-12-02 Thread Mark Soric
t finished covered graphs in class - any suggestions would be greatly appreciated. The questions should be challenging but not impossible and no higher than the Intermediate Student with Lambda level. Thanks! Mark _ For list-related administrative tas

[racket] Disable/Enable Tests

2011-11-27 Thread Mark Engelberg
In the latest version of Racket, I see a menu item to disable and enable tests. What testing library does this work with? The htdp testing library, rackunit, something else? Thanks, Mark _ For list-related administrative tasks: http

Re: [racket] Why internal definitions?

2011-11-16 Thread Mark Engelberg
I frequently find myself wishing that you could use internal definitions in cond without introducing additional indentation, for example something like: (define (fun-for-list l) (cond [(empty? l) ...] (define fst (first l)) [(even? fst) ...] [(odd? fst) ...])) rather than (defi

[racket] Functions as symbols

2011-10-07 Thread Mark Carter
I would like to treat a symbol as a function, and apply it to some arguments. In other words, if I did something like (define sym '+) (apply '+ '(1 2)) I would obtain the answer 3. Is there any way I can do this? The following works, but I'm wondering if it's the best way: (eval `(apply ,sym '(1

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

2011-09-30 Thread Mark Carter
> At Eli's suggestion, I'm conducting a poll. Does anybody on this list > use the 'plot' module, or know of someone who does? Well, I've used it in the past, and I'm thinking about using it in the future. Nice module! Don't worry about breaking compatability on my account, though. One thing I

Re: [racket] Question about round

2011-09-30 Thread Mark Engelberg
makes sense. Still seems weird and inconvenient for round to give you back an inexact integer rather than an exact one, but I can see now how this behavior matches the standard. Thanks, Mark _ For list-related administrative tasks: http://l

[racket] Question about round

2011-09-29 Thread Mark Engelberg
I'm a bit baffled by this behavior: > (exact? (round (sin 30))) #f > (integer? (round (sin 30))) #t > How is it possible to have an inexact integer? I would expect the answer to both of these tests to be true. Thanks, Mark _ Fo

[racket] Looking for awk examples

2011-09-29 Thread Mark Carter
I'm looking to implement some simple programs using mzlib/awk, but the manual page is rather impenetrable to me. Are there any examples I can use to get an idea as to how to use it? _ For list-related administrative tasks: http://lists.racket-

[racket] scribble items

2011-09-25 Thread Mark Carter
In scribble, I'm trying to create an unnumbered list like so: * Foo * Bar I do #lang scribble/manual @itemlist{ @item{Foo} @item{Bar} } but it gives me itemlist: contract violation, expected: item?, given: " "   contract from: /scribble/base.rkt, blaming:     C:\Users\mcarter\repos\tacc\carali\

[racket] Datalog: summing

2011-09-19 Thread Mark Carter
How do I create summing rules? Suppose I have the following facts: post(cash, 26) . post(cash, -16) . post(cash, 50) . post(beer, 20) . How do I create a rule "bal" bal(X, ???) such that the ??? gives me the sum of the second arguments in post satisfying the first argument X? Also, is there a

Re: [racket] Datalog suitable for an accounts package?

2011-09-18 Thread Mark Carter
Fascinating. Thanks for the link. I have a lot - and I do mean a lot - to learn about it. I tried putting in some simple "facts", and noted how the querying worked. Oh my. It was a bit of an eye-opener. I see what you mean about the querying. It's as if a lot of what is in the developers "domai

[racket] Datalog suitable for an accounts package?

2011-09-18 Thread Mark Carter
I've been in the process of writing a little financial accounts package in Racket. I'm wondering if, instead of writing a lot of scheme code, a lot of funtionality could be more expressively and concisely be written in Datalog. I've never used Datalog before, nor Prolog, but I know it's somethin

Re: [racket] Module docs

2011-09-17 Thread Mark Carter
- Original Message - > From: Matthew Flatt > The latest nightly build works correctly on my machine. That seems to fix things. Many thanks! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Scribble: escaping the semicolon

2011-09-04 Thread Mark Carter
- Original Message - > From: Neil Van Dyke > Does "scribble/comment-reader" do what you need? Unfortunately, I can't really say, as the Racket documentation on my machine seems to be broken at the moment :( All I'm trying to do is put in a literal semi-colon. I've tried ;; and @; ,

[racket] Scribble: escaping the semicolon

2011-09-04 Thread Mark Carter
I'm documenting my module in a scribble file, and I have a @racket segement in which I would like to include a semicolon. How do I escape a semicolon? _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Module docs

2011-09-04 Thread Mark Carter
>From: Matthew Flatt >Sent: Friday, 2 September 2011, 15:56 >I think the problems that you saw are now fixed in the nightly build. I did the following: 1. Deleted c:\Racket directory (where I install Racket) 2. Deleted C:\Users\mcarter\AppData\Roaming\Racket

Re: [racket] Module docs

2011-08-30 Thread Mark Carter
- Original Message - > From: Matthew Flatt > To: Mark Carter > Cc: "users@racket-lang.org" > Sent: Tuesday, 30 August 2011, 15:07 > Subject: Re: [racket] Module docs > >T hanks for the details. I see that `raco setup' in a fresh install on > W

Re: [racket] future

2011-08-28 Thread Mark Engelberg
On Sun, Aug 28, 2011 at 9:34 AM, Shriram Krishnamurthi wrote: > (I believe Clojure already breaks with tradition in this way.) Yes, in Clojure, future is a macro, and future-call is a function that takes a thunk. _ For list-related administrative

Re: [racket] Module docs

2011-08-28 Thread Mark Carter
Hi. I zapped everything I could see and installed Racket 5.1.3.  I also made sure I eliminated by PLTCOLLECTS environment variable, and any place that DrRacket looks in for modules. I used mklink on Win 7 to create a hard link from    C:\Users\mcarter\AppData\Roaming\Racket\5.1.3\collects\caral

[racket] Module docs

2011-08-28 Thread Mark Carter
It seems that by trying various things at random I was able to get documentation to work. I see that there are TWO sets of documents: one in the docs directory, and another in the planet-docs directory, and maybe a cache directory, too. All a bit confusing. ___

[racket] Module docs

2011-08-28 Thread Mark Carter
I've got things to a stage where my scribble file for my module is actually produced: it resides in the "doc" subdir. How do I persuade Racket to link the documentation in with the help system of DrRacket? _ For list-related administrative tasks

Re: [racket] For new Racket users

2011-08-27 Thread Mark Engelberg
e it would be hugely exciting, and yet people are motivated by the instant no-download-solve-on-web immediacy of it, the format of submitting answers until you get it right, the leaderboard and the progress tracking, etc. --Mark On Sat, Aug 27, 2011 at 10:10 AM, Robby Findler wrote: > It made me

[racket] Fw: Building docs

2011-08-27 Thread Mark Carter
- Forwarded Message - > From: Matthew Flatt > I'm puzzled by the warnings, where the same collection is named in two > ways. Can you show the command line that produced this output? raco setup carali Actually, you can visit the root of the project at this link: https://github.com/bl

[racket] Building docs

2011-08-27 Thread Mark Carter
I'm trying to build some documentation for my modules, although it's far from clear what the procedure should be. I can use my module, but I can't access its help from F1 within DrRacket. I have issued the command raco setup carali and I have obtained the output: raco setup: version: 5.1.2.3 [

[racket] Regexp character classes

2011-08-27 Thread Mark Carter
I'm trying to do a regexp split, but I can't get it to work. Here's my code: (require mzlib/pregexp) (define str "17.4     25.4     15.7     13.7     19.4     20.9     ") (pregexp-split #rx"[:space:]+" str) The output is '("17.4 \t25.4 \t15.7 \t13.7 \t19.4 \t20.9 \t") which is of course not

[racket] Regexp character classes

2011-08-27 Thread Mark Carter
I'm trying to do a regexp split, but I can't get it to work. Here's my code: (require mzlib/pregexp) (define str "17.4     25.4     15.7     13.7     19.4     20.9     ") (pregexp-split #rx"[:space:]+" str) The output is '("17.4 \t25.4 \t15.7 \t13.7 \t19.4 \t20.9 \t") which is of course not

Re: [racket] Racket in the large

2011-08-19 Thread Mark Engelberg
On Fri, Aug 19, 2011 at 3:26 PM, Matthias Felleisen wrote: > Correction: Scheme (current standard) is the third-best language. Racket is > the second-best language. OK, this is clearly a setup for someone to ask, so I'll ask :) What's the first-best language?

Re: [racket] Image teachpack -> svg?

2011-08-07 Thread Mark Engelberg
Thanks, that's great! On a somewhat related note, is there any way to use the slideshow/pict library's ability to draw an arrow between picts in conjunction with images formed with the image teachpack? _ For list-related administrative tasks: htt

[racket] Image teachpack -> svg?

2011-08-07 Thread Mark Engelberg
Is there any way to get the image teachpack to export images in svg format, or is png the only option? Thanks, Mark _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Creating ids from symbols

2011-08-07 Thread Mark Carter
> From: Matthew Flatt >   http://docs.racket-lang.org/guide/reflection.html > > for more information about namespaces. In the end, I couldn't get no loving from it. BUT, I did discover the following ... Suppose I define the file cache.rkt: (module cache racket   (provide encache inspect-cac

Re: [racket] Creating ids from symbols

2011-08-05 Thread Mark Carter
>The `namespace-set-variable-value!' function might work. It doesn't quite work: (define foo 42) (define bar 'foo) (namespace-set-variable-value! bar 43) foo ; => 42, but I want it to be 43 I guess it's perfectly possible to work around it by defining a cache as a hash, and then getting an se

  1   2   >