> Create a file 'debug.rkt' in your collects.
>
> It provides a single function:
>
> ;; tee : X Y -> Y
>
> (define (tee tag val)
> (displayln `(,tag ,val))
> val)
>
> When you wish to debug, require debug,rkt and wrap questionable expressions
> with (tee 'whatdoesitdo some-xpr)
Alex K
Because C side output port is not controlled by (current-output-port) and
(current-error-port) directly, C code always use the default ones.
In theory, one can write a simple wrapper to deal with
(current-output-port).
On Tue, Nov 10, 2015 at 1:45 PM, Ty Coghlan wrote:
> It works correctly if I
It works correctly if I run it from the command line using the racket command,
thanks! It also works if I raco exe it.
Whether or not to add lib to the name of the file seems to be operating system
specific, or so I understand it. Windows seems to prefer leaving it as "embed".
Any idea why DrRa
Hi Ty,
I just tried this out, and it looks like you need to say
"target/release/libembed" -- note the added "lib". Once I added that, your
program worked fine and printed everything out.
I wonder if the problem you're seeing is that DrRacket is sending the Rust
output somewhere else. Can you try
I'm currently attempting to embed Rust into racket, following along with the
tutorial at
https://doc.rust-lang.org/stable/book/rust-inside-other-languages.html. For the
most part I can get it to work when using functional programming in rust. I can
call functions that return numbers/chars, howe
Yes, this is correct. But it is not a problem for Typed Racket, which was
designed to accommodate precisely this style of programming:
#lang typed/racket
(define-type [Option P] (U P False))
(define-type SPath String)
(: file-exists-> (-> SPath [Option SPath]))
(define (file-exists-> name)
Perhaps this would be a hassle for Typed-Racket maintainers, but there are many
places where standard Racket library functions return boolean. However, given
the non-false nature of almost everything, certainly the code could be doubly
useful and half the size while retaining boolean compatibil
A fresh syntax wouldn't have to worry about breaking old code.
I've written at least two variations on a new `defn` and/or `def`
syntax [1][2]. I bet other people have, too.
That topic could be its own long thread. It would probably include
many good ideas. Of course it would probably become a "R
Hi all,
The (fifth RacketCon) videos are now all up! You can view them all using this
playlist:
https://www.youtube.com/playlist?list=PLXr4KViVC0qJAsNuDeQzhFDjMK1gEdls8
They are also linked from the program on http://con.racket-lang.org
;;;
Let me know if you notice any issues with the video
Thanks, Matthew. I'll go with the raco pkg migrate option, but both sound
like reasonable choices.
On Sun, Nov 8, 2015 at 1:28 PM, Matthew Flatt wrote:
> Here are a couple of possible solutions:
>
> * Use `raco pkg migrate` or the "Copy from Version" panel in
>DrRacket's package manager (fr
10 matches
Mail list logo