The following program works like a charm for me:
(require htdp/convert)
(define (f2c x) 20)
(convert-file "in.dat" f2c "out.dat")
Where does yours fail?
On Nov 24, 2010, at 10:20 PM, davidlt...@gmail.com wrote:
> Hi there, just cutting my teeth into programming (last time I did this was
>
Hi there, just cutting my teeth into programming (last time I did this was
Pascal and Assembly with an old 6502 processor).
Here's my simple question: I am trying to create an executable file of the
fahrenheit to celsius program (in version 2 of htdp), and getting the
following error messag
On Wednesday, November 24, 2010, Neil Van Dyke wrote:
> Racket has a handsome set of books.
You are right, but I bet you couldn't get a librarian or bookseller to
find you a book on Racket.
Of course there is already a book in the within the guide sections of
the Racket documentation that is at
At Mon, 22 Nov 2010 09:29:22 -0500, Eric Dobson wrote:
> I am interfacing with a foreign library and have a datatype whose
> representation in racket is a cpointer, where equality is ptr-equal?.
> I want to make a struct encapsulating this using prop:equal+hash to
> make struct equality match the f
On Wed, Nov 24, 2010 at 10:20 AM, Don Blaheta wrote:
>
> To turn it around, if I hand you a compositional expression, I also hand
> you the syntax rule and the values of all evaluable sub-expressions,
> then you can 100% reliably hand back the value of the overall
> expression, and this seems to b
That's great! My experience with full PID control is that the
parameters are a devil to set, so I'm pleased that proportional error
alone worked for you.
N.
On Wed, Nov 24, 2010 at 9:00 PM, Danny Yoo wrote:
> Followup: that was very beautiful. It works wonderfully. Here's the patch:
>
>
>
> Perhaps my question was a bit too rash, I should perform some more tests
> before (at least before causing you more work :-; )
> I'll try to come back with some more substantial result (in fact I didn't
> investigate if the problem was general CPU overload, or had to do with the
> simultaneous
>> Start with a proportional controller (like Noel's suggestion), if it
>> doesn't *quite* get you to the set point and that steady state error
>> is an issue, add in the I and D terms.
Followup: that was very beautiful. It works wonderfully. Here's the patch:
https://github.com/dyoo/mzsc
On Wed, Nov 24, 2010 at 9:53 AM, Neil Van Dyke wrote:
> through HtDP, is about ten copies. Even if we view writing the book as an
> investment in the platform, then the question is whether the platform would
> be better served by expending the same effort on PLaneT packages instead.
$0.02 my cur
On Wed, Nov 24, 2010 at 11:49 AM, John Clements
wrote:
>
> Hang on... you're still using the term "hygienic" in the non-Felleisen way.
> That is, if we accept that a hygienic system is one that has well-defined
> behavior but where you can bind new names when you explicitly ask to, then
That'
On Wed, Nov 24, 2010 at 1:49 PM, John Clements
wrote:
>> On Wed, Nov 24, 2010 at 11:05 AM, Robby Findler
>> wrote:
>>> On Wed, Nov 24, 2010 at 12:55 PM, Joe Marshall
>>> wrote:
> On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
>
>> Hygiene is a technical term. The idea is ro
> On Wed, Nov 24, 2010 at 11:05 AM, Robby Findler
> wrote:
>> On Wed, Nov 24, 2010 at 12:55 PM, Joe Marshall
>> wrote:
On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
> Hygiene is a technical term. The idea is roughly that
> the __macro system__ (as a whole) should res
On Wed, Nov 24, 2010 at 1:23 PM, Joe Marshall wrote:
> On Wed, Nov 24, 2010 at 11:05 AM, Robby Findler
> wrote:
>> On Wed, Nov 24, 2010 at 12:55 PM, Joe Marshall
>> wrote:
On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
> Hygiene is a technical term. The idea is roughly th
On Wed, Nov 24, 2010 at 11:05 AM, Robby Findler
wrote:
> On Wed, Nov 24, 2010 at 12:55 PM, Joe Marshall wrote:
>>> On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
>>>
Hygiene is a technical term. The idea is roughly that
the __macro system__ (as a whole) should respect the
On Wed, Nov 24, 2010 at 12:55 PM, Joe Marshall wrote:
>> On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
>>
>>> Hygiene is a technical term. The idea is roughly that
>>> the __macro system__ (as a whole) should respect the
>>> lexical structure of your program.
>
> It is somewhat unfortuna
On Wed, Nov 24, 2010 at 10:38 AM, Richard Lawrence
wrote:
>
> "Debugging is twice as hard as writing the code in the first
> place. Therefore, if you write the code as cleverly as possible, you
> are, by definition, not smart enough to debug it." (Brian W. Kernighan
> and P. J. Plauger in The Ele
> On Nov 20, 2010, at 6:58 PM, Matthias Felleisen wrote:
>
>> Hygiene is a technical term. The idea is roughly that
>> the __macro system__ (as a whole) should respect the
>> lexical structure of your program.
It is somewhat unfortunate that the name `hygiene' has caught
on here. It really ought
Richard Cleis writes:
> These two threads remind me of an observation that I wish I could cite:
>
> "Debugging programs is harder than writing programs. Those who write
> programs at the limits of their ability are unqualified to debug
> them."
You might be thinking of this:
"Debugging is twice
How about "noncompositional"? This word and its opposite have fairly
technical linguistic meanings. A "compositional" phrase (= expression)
is one whose meaning can be (correctly) inferred only by knowing the
meanings of their parts and the semantic rule associated with the syntax
form of the exp
Racket has a handsome set of books.
I have two general ideas for complementary Racket books that I could
write. But, at the moment, I would guess that the market for a
complementary programming book, if we exclude the people who are better
off working through HtDP, is about ten copies. Even
On Wed, Nov 24, 2010 at 8:44 AM, Anthony Cowley wrote:
> On Wed, Nov 24, 2010 at 4:20 AM, Noel Welsh wrote:
>> I would adjust the guess by a fraction of the error. This is basically
>> a gradient following rule. I.e.:
>>
>> Guess(t+1) = Guess(t) + alpha Error
>>
>> where alpha is some parameter
Nevermind let/lambda, *when is the programming in *Racket* book coming?*
All good PL's have a book don't they?
Stephen
--
Stephen De Gabrielle
stephen.degabrie...@acm.org
Telephone +44 (0)20 85670911
Mobile+44 (0)79 85189045
http://www.degabrielle.name/stephen
___
These two threads remind me of an observation that I wish I could cite:
"Debugging programs is harder than writing programs. Those who write programs
at the limits of their ability are unqualified to debug them."
In this case: "Macros are harder to understand than fundamental programming.
Those
On Wed, Nov 24, 2010 at 4:20 AM, Noel Welsh wrote:
> I would adjust the guess by a fraction of the error. This is basically
> a gradient following rule. I.e.:
>
> Guess(t+1) = Guess(t) + alpha Error
>
> where alpha is some parameter that you set via your simulated annealing
As a followup, the ru
Yesterday, I wrote
Does anybody know an easy way to preserve formatting
> (especially indentation) when cutting and pasting from DrRacket to
> blogspot?
>
Duh, I should just scribble it!
> TIA
>
> Pat
>
YW (idiot)
Pat
_
For list-related admini
I would adjust the guess by a fraction of the error. This is basically
a gradient following rule. I.e.:
Guess(t+1) = Guess(t) + alpha Error
where alpha is some parameter that you set via your simulated annealing
HTH,
N.
On Wed, Nov 24, 2010 at 1:38 AM, Danny Yoo wrote:
> Hi everyone,
>
> In
26 matches
Mail list logo