On Wed, 20 Nov 2019 20:11:09 -0800 (PST)
tbrooke wrote:
> I have been trying to get the path set for racket 7.5 cs on OSX -
> 7.4 cs worked fine
>
> I am not on Catalina yet. I am on Mojave 10.14.6
>
> I renamed the directory I tried adding to paths.d and still no go
>
> I get:
>
> zsh: comm
On Sun, 11 Aug 2019 07:51:53 -0700 (PDT)
Atlas Atlas wrote:
> I don't known how racket is managed. Can someone clarify for me the
> future of Racket.
>
>
> Is abandoning s-expressions is sealed decision?
>
>
> What chances that this will happen? 10% 50% 80% 100%?
>
As far as I understood th
great idea. I think I will make it a class with 15 fields.
Thanks for your help.
--
Manfred
>
>
> On Nov 30, 2014, at 4:52 PM, Manfred Lotz wrote:
>
> > On Sun, 30 Nov 2014 22:21:14 +0100
> > Manfred Lotz wrote:
> >
> >> No I hadn't considere
On Sun, 30 Nov 2014 22:21:14 +0100
Manfred Lotz wrote:
> No I hadn't considered the variant using type?. Thanks for this.
>
> Not quite sure if I'm happy about it as I would prefer to have the
> type checking at one place instead of providing a type each time I
> chec
On Sun, 30 Nov 2014 15:26:09 -0500
Thanks, Vincent.
Vincent St-Amour
wrote:
> At Sun, 30 Nov 2014 16:38:02 +0100,
> Manfred Lotz wrote:
> > 1. You offered assert? as an alternative. Is this preferable in
> > comparison to cast?
>
> Yes. Assertions are simple first ord
ol)])
> (if (and val (type? (cdr val)))
> (cdr val)
> (error "Unexpected option encountered"
>
> (: process (-> OptList Void))
> (define (process ol)
> (define s (optval 'size ol integer?))
> (if (< s 0)
> (displayln
bad because the decision about the type
happens at runtime.
It would be better I could redefine optval in a way that this will be
done at compile time as I always call optval with an explicit option
symbol.
Is this possible? I'm afraid y knowledge about define-syntax-rule isn't
really g
this really nice. Actually, I was hoping for
something more concise.
--
Manfred
On Sun, 30 Nov 2014 10:13:48 +0100
Manfred Lotz wrote:
> Hi there,
> I've got another problem with typed racket.
>
> Let us say I have an assoc list with options for a program. These
> opti
Hi there,
I've got another problem with typed racket.
Let us say I have an assoc list with options for a program. These
options could be of type String, Boolean, or Integer.
Now in my program I want to check certain options but I don't know how
to do without Typed Racket screaming at me.
Here a
On Thu, 20 Nov 2014 15:54:58 +
Sam Tobin-Hochstadt
wrote:
> On Thu Nov 20 2014 at 10:42:08 AM Benjamin Greenman
> wrote:
>
> > But why does eval's default namespace include "+" but not "expt"?
> >
>
> It doesn't include either `+` or `expt`. The initial value for
> `current-namespace` insi
Hi there,
If I do this in a REPL
Welcome to Racket v6.1.1.
-> (define p1 '(a . (expt 2 3)))
-> (eval (cdr p1))
8
it works fine
If I put it in a file:
#lang racket/base
(define p1 '(a . (expt 2 3)))
(eval (cdr p1))
I get this:
expt: unbound identifier;
also, no #%app syntax transformer is bo
Thanks to all of you for being open to work on this issue.
--
Manfred
On Wed, 05 Nov 2014 11:08:56 -0500
Vincent St-Amour
wrote:
> At Wed, 5 Nov 2014 03:09:06 -0500,
> Asumu Takikawa wrote:
> >
> > On 2014-11-04 10:32:01 -0500, Vincent St-Amour wrote:
> > > My hypothesis is that the `typed/
re the non typed one is around 800k.
I think this should be improved upon.
--
Manfred
> Vincent
>
>
>
> At Tue, 4 Nov 2014 06:23:33 +0100,
> Manfred Lotz wrote:
> >
> > Hi there,
> > I have this minimal example:
> >
> > #lang typed/racke
Hi there,
I have this minimal example:
#lang typed/racket/base
(: hello : String -> Void)
(define (hello f)
(displayln f))
(hello "world")
raco exe mytest.rkt
gives an executable with size 12887089.
This doesn't seem to be ok.
--
Manfred
Racket Users list:
ht
ait for 1-2 seconds and the windows pops up. There is
no loop any longer.
Thanks, Manfred
>
>
> On Mon, Aug 11, 2014 at 2:03 AM, Manfred Lotz
> wrote:
> > On Sat, 9 Aug 2014 23:17:37 -0500
> > Robby Findler
> > wrote:
> >
> >> Ah, thanks. I
id).
>
Yes you are right. It terminates eventually. On my laptop it takes much
longer, 35 seconds or so.
--
Manfred
> Robby
>
>
> On Sat, Aug 9, 2014 at 1:00 PM, Manfred Lotz
> wrote:
> > Hi all,
> > I'm not a DrRacket user so I have no idea what I did
Hi all,
I'm not a DrRacket user so I have no idea what I did wrong.
Out of curiosity I started DrRacket and looking around at the menu
entries I chose:
Insert/Insert Large Letters...
just to see what happens. Nothing happened except that DrRacket took
100% cpu. When trying to stop DrRacket I
Hi Scott,
On Sat, 28 Jun 2014 12:05:39 -0700
Steve Graham wrote:
> When you're writing your program, do you enter statements in the top
> window or in the bottom one?
I'm not much of a DrRacket user myself. Nevertheless, it has nice
features.
In DrRacket you enter definitions in the top windo
On Sat, 28 Jun 2014 11:15:27 -0700
Steve Graham wrote:
> Hello, all. I just purchased Realm of Racket and am working my way
> through it. Although I've been programming for 30+ years, most of
> that has been with procedural languages (MUMPS, FORTRAN and COBOL) on
> character-based medical infor
On Fri, 27 Jun 2014 16:17:01 -0400
Sam Tobin-Hochstadt
wrote:
> On Fri, Jun 27, 2014 at 4:08 PM, Manfred Lotz
> wrote:
> > On Fri, 27 Jun 2014 15:59:47 -0400
> > "Alexander D. Knauth"
> > wrote:
> >
> >> Are you sure you meant "hash-ref!
ash size (lambda () #f)), it would
> expect the #f to be of type (Listof String), which it isn’t.
>
Oops, that makes the difference. Using hash-ref works fine now.
It seems that in untyped racket hash-ref! is fine but it is not suited
for typed racket.
Thanks a lot, Manfred
> On Jun
On Fri, 27 Jun 2014 15:49:14 -0400
Sam Tobin-Hochstadt
wrote:
> On Fri, Jun 27, 2014 at 3:32 PM, Manfred Lotz
> wrote:
> >
> > Argument 3:
> > Expected: (-> b)
> > Given:False
>
>
> This is the key part of the error message: you have to provi
I tried this:
#lang typed/racket/base
(: my-hash (HashTable Nonnegative-Integer (Listof String)))
(define my-hash (make-hash))
(: my-hash-add (-> Nonnegative-Integer String Void))
(define (my-hash-add size s)
(let* ([val (hash-ref! my-hash size #f)])
(if val
(hash-set! my-hash si
I tried this:
#lang typed/racket/base
(: my-hash (HashTable Nonnegative-Integer (Listof String)))
(define my-hash (make-hash))
(: my-hash-add (-> Nonnegative-Integer String Void))
(define (my-hash-add size s)
(let* ([val (hash-ref! my-hash size #f)])
(if val
(hash-set! my-hash si
I tried this:
#lang typed/racket/base
(: my-hash (HashTable Nonnegative-Integer (Listof String)))
(define my-hash (make-hash))
(: my-hash-add (-> Nonnegative-Integer String Void))
(define (my-hash-add size s)
(let* ([val (hash-ref! my-hash size #f)])
(if val
(hash-set! my-hash si
cket.html
> but I see that it doesn't mention `racket/date`.
>
Yep, it doesn't mention it. But to be honest I didn't know the list at
all.
Thanks a lot for your help.
--
Manfred
>
> On Fri, Jun 27, 2014 at 1:49 PM, Manfred Lotz
> wrote:
> > Hi there,
>
-
Manfred
> Sam
>
> On Fri, Jun 27, 2014 at 1:52 PM, Manfred Lotz
> wrote:
> > I have this:
> >
> > (define (exit-with-error-msg . e)
> > (apply eprintf e)
> > (exit 1))
> >
> >
> > When using it with typed racket I get:
> >
Hi there,
In order to use racket/date in a typed racket program do I need to use
(require/typed ...)?
If understand it right I have to define types for the stuff I use from
racket/date. Is this true?
--
Manfred
Racket Users list:
http://lists.racket-lang.org/users
I have this:
(define (exit-with-error-msg . e)
(apply eprintf e)
(exit 1))
When using it with typed racket I get:
test.rkt:127:4: Type Checker: Bad arguments to function in apply:
Domain: String Any *
Arguments: (Listof Any) *
in: (apply eprintf e)
context...:
/home/manfred/rac
("Max size." "NUM")
> > (opt-max-size (cast (string->number (cast NUM String)) Real))]))
> >
> > The casts bring out that you are willing to sacrifice precision of
> > error messages for concision in code.
> >
> > -- Matthias
>
precision of
> error messages for concision in code.
>
Thanks for this. I like this more than the guard solution although when
typing a non number for instance the error messages are a bit wild for
an ordinary user. Perhaps then I have to write my own string->number in
order to giv
; (define opt-max-size (make-parameter 0 opt-max-size-guard))
>
Thanks for this, which works fine. I'm not qite sure I like this as it
seems to make the code more complicated. But if this is the only
possibility what can be done.
> On Jun 21, 2014, at 3:45 AM, Manfred Lotz
> wrote
Hi there,
I try to change one of my programs to typed racket and fail because of
errors when dealing with command line arguments.
Here a minimum example:
#lang typed/racket/base
(require racket/cmdline)
(: opt-verbose-mode (Parameterof Boolean))
(define opt-verbose-mode (make-parameter #f))
(:
Hi Alexander,
I asked this question some time ago:
http://article.gmane.org/gmane.comp.lang.racket.user/3420/match=structure+question
I got a very good answer from Matthias Felleisen who showed how this
could be achieved:
http://article.gmane.org/gmane.comp.lang.racket.user/3437/match=structure+qu
On Tue, 15 Apr 2014 23:09:46 -0400
"David T. Pierson" wrote:
> On Tue, Apr 15, 2014 at 09:09:00PM +0200, Manfred Lotz wrote:
> > -> (count-substring "[\\[]" "a[rts[a3]")
> > 2
> > -> (count-substring "[a-z\\[]" "a[rts[a3]
On Tue, 15 Apr 2014 21:39:24 +0200
Jens Axel Søgaard
wrote:
> If you need a literal ] you can use (regexp-quote "]")
>
> > (count-substring (regexp-quote "]") "a[rts[a3")
> 4
>
Didn't know this. It is not so bad. But I might want to match more than
one character.
For example the following
On Rosetta code in "Count occurrences of a substring" I found this for
Racket:
(define count-substring
(compose length regexp-match*))
Example:
(count-substring "th" "the three truths")
3
I like to use it for getting the number of occurences of a
list of characters in a string.
For this I u
On Mon, 10 Mar 2014 15:09:28 -0400
Sean Kanaley wrote:
> The current Racket algorithm has an error:
>
> (define counts (build-vector 10 identity))
>
> This sets the counts to their indices, meaning e.g. 9 was pre-counted
> 9 times. Switch the first line of the executable portion to run only
>
Justfor the records: I updated the version at
http://rosettacode.org/wiki/Knuth%27s_algorithm_S#Racket
--
Manfred
Racket Users list:
http://lists.racket-lang.org/users
John Clements asked about a Debian version the other day. Robby Findler
pointed him to: http://plt.eecs.northwestern.edu/snapshots/
I suggest downloading the Debian Wheezy version which I guess would
have the glibc version you need.
--
Manfred
On Wed, 5 Mar 2014 18:03:26 -0300
Junia Magellan
Excellent post! I fully agree.
--
Manfred
On Mon, 10 Mar 2014 01:30:01 +
Matthew Eric Bassett wrote:
> On 03/05/2014 09:03 PM, Junia Magellan wrote:
> > I would like you to understand that most people are not PhD in
> > Computer Science. 90% of people want to run out of the box
> > applica
tor-ref counts d))
>
> (for ([d (in-range 0 10)])
> (printf "~a ~a~n" d (vector-ref counts d
>
> ; (require optimization-coach)
> ; optimization-coach-profile
> (time (main))
>
>
>
>
> On Mar 9, 2014, at 2:51 PM, Manfred Lotz wrote
On Sun, 09 Mar 2014 14:34:05 -0400
Neil Van Dyke wrote:
> Manfred Lotz wrote at 03/09/2014 01:13 PM:
> > There is a certain way the
> > algorithm should be implemented (given at the top of the page).
> >
>
> I haven't traced through the algorithm complet
On Sun, 09 Mar 2014 13:00:04 -0400
Neil Van Dyke wrote:
> Manfred Lotz wrote at 03/09/2014 12:34 PM:
> [...]
> > I had a look at the implementations of Knuth's algorithm S at
> > rosetta code: http://rosettacode.org/wiki/Knuth's_algorithm_S#Racket
> >
> [
Hi there,
I had a look at the implementations of Knuth's algorithm S at rosetta
code: http://rosettacode.org/wiki/Knuth's_algorithm_S#Racket
What baffles me is the fact that the Racket version is so slow. Running
some sample on my laptop I have:
Ruby: ruby kas.rb 0.57s user 0.01s system 99% cpu
On Fri, 28 Feb 2014 08:14:43 -0700
Matthew Flatt wrote:
> At Thu, 27 Feb 2014 22:21:31 -0800, John Clements wrote:
> > I’m totally thrilled to see the 6.0 release. Are we planning to
> > create a Red Hat / Fedora build?
>
> Does the build that was created on Ubuntu not work? Since Racket loads
>
ion
> with racket/date.
>
> Robby
>
>
Thanks for explaining and optimizing. The new space utilization in
current sounds really great.
--
Manfred
>
> On Thu, Feb 13, 2014 at 3:36 PM, Manfred Lotz
> wrote:
>
> > On Wed, 12 Feb 2014 09:55:16 -0600
> > Robby Findl
On Wed, 12 Feb 2014 09:55:16 -0600
Robby Findler
wrote:
> Looks like most of the size increase from racket/date is that you're
> pulling in the contract system.
No quite sure about this.
I have
#lang racket/base
(require racket/cmdline
racket/string
racket/format
On Wed, 12 Feb 2014 06:07:17 -0700
Matthew Flatt wrote:
> At Wed, 12 Feb 2014 06:02:30 +0100, Manfred Lotz wrote:
> > I just read Neil van Dyke's statement:
> >
> > < "#lang racket" is for demos, IMHO; I *always* use "#lang
> > racket/base&qu
I just read Neil van Dyke's statement:
< "#lang racket" is for demos, IMHO; I *always* use "#lang racket/base"
< for any code that's not a demo.
Question: What are the advantages of doing requires explicitly?
In a program of mine I changed #lang racket to #lang racket/base and
added:
(require
will do this. Thanks for the idea.
--
Manfred
>
> At Sat, 1 Feb 2014 15:28:32 +0100, Manfred Lotz wrote:
> > Hi Robby,
> > Sorry, forgot to post to the list in my previous mail.
> >
> > On Sat, 1 Feb 2014 06:55:55 -0600
> > Robby Findler
> > wrote:
&
Hi Robby,
Sorry, forgot to post to the list in my previous mail.
On Sat, 1 Feb 2014 06:55:55 -0600
Robby Findler
wrote:
> Hi Manfred: our plans for 6.0 would not be so ambitious as to include
> functions like that. But for releases after that, it is certainly
> possible.
>
> It will likely be f
Hi Ryan,
I have even more wishes for the upcoming 6.0.
On Fri, 31 Jan 2014 18:40:43 -0500
Ryan Culpepper wrote:
> Racket v5.93 is now available from
>
>http://racket-lang.org/
>
Some time ago I mentioned the file functions (like
file-exists?, ...) are incomplete not dealing with what does
Hi Ryan,
Could the following be added please so that it is available with 6.0?
openssl will not be loaded in Fedora 19 and 20.
(require openssl) fails and ssl-load-fail-reason shows:
"ffi-lib: couldn't open \"libcrypto.so\" (libcrypto.so: cannot open
shared object file: No such file or direct
Ok, finally using FFI works fine.
I implemented:
(define (socket-exists? f)
(mode-exists f S_IFSOCK))
(define (pipe-exists? f)
(mode-exists f S_IFIFO))
(define (block-device-exists? f)
(mode-exists f S_IFBLK))
(define (character-device-exists? f)
(mode-exists f S_IFCHR))
(define (reg
On Mon, 6 Jan 2014 06:34:11 -0700
Matthew Flatt wrote:
> At Mon, 6 Jan 2014 13:47:30 +0100, Manfred Lotz wrote:
> > On Mon, 6 Jan 2014 10:32:49 +0100
> > Manfred Lotz wrote:
> >
> > > I was to quick to state this is a solution as it is not a good
> > > id
On Mon, 6 Jan 2014 13:47:30 +0100
Manfred Lotz wrote:
> On Mon, 6 Jan 2014 10:32:49 +0100
> Manfred Lotz wrote:
>
> > I was to quick to state this is a solution as it is not a good idea
> > if for example a socket file will be shown as a duplicate of normal
>
On Mon, 6 Jan 2014 10:32:49 +0100
Manfred Lotz wrote:
> I was to quick to state this is a solution as it is not a good idea if
> for example a socket file will be shown as a duplicate of normal file
> having size zero.
>
> For the time being I guess I have to look how to imple
I was to quick to state this is a solution as it is not a good idea if
for example a socket file will be shown as a duplicate of normal file
having size zero.
For the time being I guess I have to look how to implement it using C
stat call from Racket.
--
Manfred
Racket
On Mon, 6 Jan 2014 05:32:58 +0100
Manfred Lotz wrote:
> On Sun, 5 Jan 2014 14:37:08 -0700
> Matthew Flatt wrote:
>
> > At Sun, 5 Jan 2014 21:45:59 +0100, Manfred Lotz wrote:
> > > This might be a stupid question. But how do I find out in Racket
> > > if a fi
On Sun, 5 Jan 2014 14:37:08 -0700
Matthew Flatt wrote:
> At Sun, 5 Jan 2014 21:45:59 +0100, Manfred Lotz wrote:
> > This might be a stupid question. But how do I find out in Racket if
> > a file is a socket or a haracter resp. block device file.
>
> I don't think any f
This might be a stupid question. But how do I find out in Racket if a
file is a socket or a haracter resp. block device file.
--
Manfred
Racket Users list:
http://lists.racket-lang.org/users
PM, "J. Ian Johnson"
> > wrote:
> >
> >> You want to make sure your structs are inspectable. You can define
> >> your structs with the #:transparent option or define your own
> >> equality relation with the gen:equal+hash generic interface.
> >> -Ian
&
On Sat, 28 Dec 2013 22:42:48 -1000
Ryan Davis wrote:
> If I look at the language setting details I can choose what
> submodules to run (main / test / others). But what I can't control is
> the _order_ of the submodules. I simply don't want to run main if my
> tests are going to fail but for some
ok I got it. In my source with the hash table I indeed used
#:transparent which made equal? work as I expected.
Thanks for clarifying.
--
Manfred
> - Original Message ----- From: Manfred Lotz
> To:
> users@racket-lang.org Sent: Sat, 28 Dec 2013
> 15:41:28 -0500 (EST) Subject
I have a hash table (created by using make-hash) where the key is a
struct. This seems to work fine although the documentation says
The make-hash procedure creates a table where keys are compared with
equal?,...
and it seems that equal? gives #f if I compare two structs having the
same conte
> > situation -- Matthias
> >
> >
> >
> >
> >
> >
> > On Dec 23, 2013, at 5:53 PM, Robby Findler wrote:
> >
> > Perhaps in-directory can take an optional parameter that controls
> > whether or not to recur?
> >
> > Robby
> >
>
ctory-exists? fp)
(can-read-directory? fp))
(loop fp p)
Perhaps not the smartest way but it works fine now:
I think in-directory should be fixed in the long run.
--
Manfred
> On Dec 23, 2013, at 4:09 PM, Manfred Lotz
> wrote:
>
> > I had a look into col
tch #rx"\\.rkt" f)) (with-handlers ((exn:fail:contract?
> (lambda (e) (log-warning (exn-message e (exn? displayln))
> (displayln (path->string f)
>
>
>
> On Dec 23, 2013, at 3:06 PM, Manfred Lotz
> wrote:
>
> > #lang racket ;; foo.rkt
&
Then I need to build my own 'in-directory' by using directory-list and
checking permissions which isn't really efficient.
BTW, I saw also 'call-with-exception-handler'. Is it more capable than
'with-handlers'?
--
Manfred
>
> On Dec 23, 2013, at 3:0
On Mon, 23 Dec 2013 14:29:31 -0500
Matthias Felleisen
wrote:
>
>
> On Dec 23, 2013, at 2:10 PM, Manfred Lotz
> wrote:
>
> > On Mon, 23 Dec 2013 13:53:05 -0500
> > Greg Hendershott
> > wrote:
> >
> >> On Sun, Dec 22, 2013 at 2:49 PM, Neil Van
On Mon, 23 Dec 2013 13:53:05 -0500
Greg Hendershott
wrote:
> On Sun, Dec 22, 2013 at 2:49 PM, Neil Van Dyke
> wrote:
> > Manfred Lotz wrote at 12/22/2013 01:54 PM:
> >> Or perhaps even better create my directory structure on the fly and
> >> build my test cases
>
> On Sun, Dec 22, 2013 at 1:28 PM, Manfred Lotz
> wrote:
>
> > On Sun, 22 Dec 2013 14:04:40 -0500
> > Matthias Felleisen
> > wrote:
> >
> > >
> > > On Dec 22, 2013, at 1:54 PM, Manfred Lotz wrote:
> > >
> > > > Hi
On Sun, 22 Dec 2013 14:04:40 -0500
Matthias Felleisen
wrote:
>
> On Dec 22, 2013, at 1:54 PM, Manfred Lotz wrote:
>
> > Hi there,
> > I just wrote a file duplicate finder where I'm not quite sure how to
> > build up my test cases.
> >
> > The prob
Hi there,
I just wrote a file duplicate finder where I'm not quite sure how to
build up my test cases.
The problem is that most of my test cases are impure. They rely upon a
directory layout.
What is the best way to do this? Should I create a directory structure
containing most (or better all) of
On Sat, 21 Dec 2013 23:18:02 -0800
Evan Donahue wrote:
> check out the main submodule.
>
Thanks a lot. That does it nicely.
--
Manfred
>
> On Sat, Dec 21, 2013 at 10:47 PM, Manfred Lotz
> wrote:
>
> > Hi there,
> > In a small program I like to have t
Hi there,
In a small program I like to have the test cases in the same file. How
can I prevent the 'main' function of my program to be run when I do a
raco test?
Here is a minimal example:
#lang racket
(define (myfun)
(displayln "hey"))
(myfun)
(module+ test
(require rackunit)
(
Hi there,
openssl will not be loaded in Fedora 19.
I do (require openssl) and then ssl-load-fail-reason shows:
"ffi-lib: couldn't open \"libcrypto.so\" (libcrypto.so: cannot open
shared object file: No such file or directory)"
I took a look into libcrypto.rkt and found
(ffi-lib libcrypto-so '(
On Wed, 13 Nov 2013 22:26:33 -0500
Greg Hendershott
wrote:
> > local is a teaching construct that ensures that the semantics of
> > locally defined functions is 100% in sync with 'globally' defined
> > functions. An experienced programmer may ignore local completely.
>
> I remember that when I w
(define (g)
(define (f x) (* x x))
(f 2))
(define (h)
(local [(define (f x) (* x x))]
(f 2)))
Both functions above work fine.
Could anybody tell me what the difference is between those two
functions where in one case I use local and in the other case I omit
local?
--
Thanks,
Manf
Hi all,
FYI: I talked to the maintainer of stabular.sty. He prepared a fix
which I did test successfully. The fix should make its way to TeX Live
in a reasonable time (usually soon after the package will have been
uploaded to CTAN).
--
Manfred
On Thu, 31 Oct 2013 15:03:47 +0100
Manfred Lotz
On Thu, 31 Oct 2013 14:56:05 +0100
Manfred Lotz wrote:
> The cause of the problem is stabular.sty.
>
> In both of texlive 2012, and 2013 I have an stabular.sty like this:
>
> -rw-r--r-- 1 root root 4102 Oct 19
> 2012 /usr/local/texlive/2013/texmf-dist/tex/latex/sttools/sta
mac and it
> runs fine there.
>
> Robby
>
>
> On Thu, Oct 31, 2013 at 8:16 AM, Manfred Lotz
> wrote:
>
> > Hi there,
> > Having this minimal example:
> >
> >
> > #lang scribble/report
> >
> > @section{Animals like food}
>
Hi there,
Having this minimal example:
#lang scribble/report
@section{Animals like food}
@tabular[#:sep @hspace[1]
(list (list @bold{Animal} @bold{Food})
(list "mouse" "cookie")
(list "moose" "muffin"))]
LaTeX hangs, i.e. nothing
though.
>
Thanks for your reply. Good to see that my solution wasn't totally
stupid. However, your way is far better.
--
Manfred
> Laurent
>
>
> On Sun, Oct 6, 2013 at 5:51 PM, Manfred Lotz
> wrote:
>
> > Hi there,
> > Assume a function which ret
Hi there,
Assume a function which returns values. I couldn't find anything in
rackunit to test such a function out of the box.
Simple example:
(define (mval)
(values 1 2 3))
Now I like to test it using rackunit. The only idea I have is:
(let-values ([(x y z) (mval)])
(check-equal? (lis
On Sat, 28 Sep 2013 13:55:34 -0700
John Clements wrote:
> I feel as though the answer must be howlingly obvious, but I'm
> missing it somehow; how are UNIX-users supposed to close tabs without
> the mouse? After quite a bit of exploration I see that on the Mac,
> for instance, there are keybindin
at does it nicely. Thanks a lot.
>
>
> On Sep 21, 2013, at 5:50 AM, Manfred Lotz wrote:
>
> > Hi there,
> > How could I use template variables (... aso.) when using #lang
> > racket?
> >
> > I tried this:
> >
> > #lang racket
> >
Hi there,
How could I use template variables (... aso.) when using #lang racket?
I tried this:
#lang racket
(require lang/htdp-advanced)
(require 2htdp/image)
(require 2htdp/universe)
test.rkt:4:9: module: identifier already imported from:
lang/htdp-beginner at: image?
in: 2htdp/image
cont
On Wed, 15 May 2013 13:18:32 -0600
Danny Yoo
wrote:
> It should not be difficult to do this by hand, by taking the contents
> of the Unicode database:
>
> http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
>
> to help define the function that takes unicode characters and returns
> the de
Having a unicode character is there a function to retrieve the
character's name?
Example: U+0907 gives DEVANAGARI LETTER I
--
Manfred
Racket Users list:
http://lists.racket-lang.org/users
On Wed, 8 May 2013 13:55:28 -0400
Eli Barzilay wrote:
> Three hours ago, Ray Racine wrote:
> > On a tangent, if you run your Racket on Linux (like anyone would use
> > anything else :0 ) you can "install" *.rkt files as executables with
> > binfmt.
> > [...]
> > Better odds Eli has something done
On Wed, 8 May 2013 10:27:09 -0400
Ray Racine wrote:
> On a tangent, if you run your Racket on Linux (like anyone would use
> anything else :0 ) you can "install" *.rkt files as executables with
> binfmt.
>
> Very Short (no validation) Path
>
> 1) Create a shell script runracket.rkt in your rack
On Wed, 8 May 2013 07:31:37 -0400
Carl Eastlund wrote:
> On Wed, May 8, 2013 at 7:04 AM, Manfred Lotz
> wrote:
>
> > On Wed, 8 May 2013 06:19:27 -0400
> > Carl Eastlund wrote:
> >
> > > I'm seeing similar results on my end; I timed by first running
>
seconds for the typed
version and around 4 seconds for the untyped version. My system is a
64bit Linux.
--
Manfred
> Carl Eastlund
>
>
> On Wed, May 8, 2013 at 5:32 AM, Manfred Lotz
> wrote:
>
> > Hi there,
> > I did a small test using typed racket.
> >
&
Hi there,
I did a small test using typed racket.
This is an example from the documentation:
#lang typed/racket
;; test.rkt
(struct: pt ([x : Float] [y : Float]))
(: distance (pt pt -> Float))
(define (distance p1 p2)
(sqrt (+ (sqr (- (pt-x p2) (pt-x p1)))
(sqr (- (pt-y p2) (pt-y p
On Sat, 20 Apr 2013 10:19:54 -0400
Matthias Felleisen
wrote:
>
> On Apr 20, 2013, at 12:37 AM, Manfred Lotz wrote:
>
> > My understanding is that parameter path-string? will be
> > checked at run time but only if the programmer who coded e.g.
> > file->string did
On Fri, 19 Apr 2013 17:27:03 -0400
Matthias Felleisen
wrote:
>
> On Apr 19, 2013, at 4:02 PM, Manfred Lotz wrote:
>
> > But it is more powerful.
>
>
> [[ This is a quibble that could take you off your chosen path for
> years. The words 'more powerful'
On Fri, 19 Apr 2013 15:00:29 -0400
Neil Van Dyke wrote:
> Manfred Lotz wrote at 04/19/2013 02:18 PM:
> > From this I'm wondering why there are predicates when for example I
> > would expect strings?
> >
>
> The language you're seeing is mostly that of R
Hi Norman,
First, thanks to you and Asumu for your help.
On Fri, 19 Apr 2013 19:56:22 +0100
Norman Gray wrote:
>
> Manfred, hello.
>
> On 2013 Apr 19, at 19:18, Manfred Lotz wrote:
>
> > I don't seem to know how to read procedure documentation like in
1 - 100 of 136 matches
Mail list logo