.
The current input port always returns eof.
.3
0.3
Great!
*However*, this did not work with:
LC_ALL=fr_FR.UTF-8 gracket
Weird.
Thank you,
Laurent
and almost all symptoms were gone.
Marijn
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http
!
Thank you very much,
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
I'm not alone!
FWIW, I still have that problem in 5.2.0.6.
And I confirm the .1 minimalist test case.
When running 'racket' from the command line, this does not occur however:
laurent:~$ racket
Welcome to Racket v5.2.0.6.
Edit ~/.racketrc to modify inits.
.1
0.1
But this still happens
does not
want regexps and has special characters that need to be quoted.
Regexps are very powerful, but they are complicated for beginners.
Laurent
I think `racket/string' should provide the useful string functions,
rather than refer users to srfis. The only srfi/13 function I ever
use
(define (string-split str [sep #px\\s+])
(remove* '() (regexp-split sep str)))
Nearly, I meant something more like this:
(define (string-split str [splitter ])
(regexp-split (regexp-quote splitter) str))
No regexp from the user POV, and much easier to use with little knowledge.
On Thu, Apr 19, 2012 at 14:26, Eli Barzilay e...@barzilay.org wrote:
Two hours ago, Laurent wrote:
Maybe also a `string-replace' could be useful, especially when one
does not want regexps and has special characters that need to be
quoted.
Again, it's not clear how this shold look -- my
between string-as-not-regexps
and regexps? Wouldn't this be different from other places?).
It would then appear somewhat magical. To me the default splitter seems
more intuitive.
Laurent
and the two-argument case should be as Laurent
wrote. (Probably the optional second argument should be string
On Thu, Apr 19, 2012 at 14:53, Matthew Flatt mfl...@cs.utah.edu wrote:
At Thu, 19 Apr 2012 14:43:44 +0200, Laurent wrote:
On Thu, Apr 19, 2012 at 14:33, Matthew Flatt mfl...@cs.utah.edu wrote:
I agree with this: we should add `string-split', the one-argument case
should be as Eli wrote
Continuing with this line, it seems that a better definition is as
follows:
(define (string-split str [sep ])
(remove* '() (regexp-split (regexp-quote (or sep )) str)))
Except that the full definition could be a bit more efficient.
Three questions:
1. Laurent: Does this make more
call with a self argument, which makes
sense for strings on functions like string-
Does it bother other people too?
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
.
Without going as far as srfi-14, a set could be a list of strings or
characters, but maybe this is not needed.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
in a
(list ...).
Since modifying remove* would probably break a few things, maybe a remove+ ?
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Agreed.
It may also give you/us more time to play with submodule and not be too
afraid of backward compatibility in case you'd like to change something.
Laurent
On Tue, Apr 24, 2012 at 22:43, Karn Kallio tierplusplusli...@gmail.comwrote:
I think it is good to wait until the release is ready
Hi,
If that's not too difficult to do (maybe automatically), it would be nice
if the docs could tell if a function/form has changed or has been added
recently.
Maybe a note in the margin like Added in 5.2.1 or Changed in 5.3.0.
It would be helpful for backward compatibility.
Laurent
in the sources, and see how many characters would be saved by using
different conventions.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
On Fri, May 4, 2012 at 4:41 PM, Matthias Felleisen matth...@ccs.neu.eduwrote:
On May 4, 2012, at 10:34 AM, Laurent wrote:
As sad as I am to say this, arr[x] = 3 is read quicker by the eye than
(vector-set! my-integer-array the-current-iterator the-number-three)
I started saying
On Fri, May 4, 2012 at 5:04 PM, Neil Van Dyke n...@neilvandyke.org wrote:
Matthias Felleisen wrote at 05/04/2012 10:41 AM:
On May 4, 2012, at 10:34 AM, Laurent wrote
An interesting idea would be to count the number of times each
identifier is used in the sources, and see how many characters
-length of the
identifier.
Actually, it doesn't look that bad IMO.
Laurent, who should have worked instead...
'((define . 47453)
(quote . 48703)
(lambda . 22377)
(send . 21027)
(syntax . 13956)
(let . 21909)
(... . 18877)
(list . 13315)
(unquote . 6398)
(x . 43546)
(define
folding into the file (loading a file displays it
unfolded, then it can be folded as desired). This might be problematic with
DrSync though, unless the file is not reverted if it has not changed.
But I agree all this would require some work, certainly.
Laurent
_
Racket
idea for DrRacket.
Laurent
On Wed, May 9, 2012 at 10:18 AM, Laurent laurent.ors...@gmail.com wrote:
Hi,
Reading the style guide for Racket, I came up with a few debatable
suggestions.
( http://www.ccs.neu.edu/home/matthias/Style/style/Textual_Matters.html )
Apologies if this has already
On Sat, May 12, 2012 at 12:49 AM, Eli Barzilay e...@barzilay.org wrote:
5 hours ago, Neil Toronto wrote:
On 05/09/2012 02:18 AM, Laurent wrote:
From the guide: Caveat 1: Until language specifications come with
fixed indentation rules, we need to use the default settings of
DrRacket’s
easy to implement
directly as
(string-join (string-split str sep ...) space)
That's a good sign that the functions have the correct (default) behavior.
Looking forward to use all these!
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
How about a define* that is exactly like let* without the additional
indentation level?
E.g.:
(define*
[↑ foo bar baz]
[↑ (substring ↑ 3 8)]
[str (string-trim ↑)]
[↑ (regexp-match? #rx^[a-z].*[a-z]$ str)])
(and ↑ (string-append * str *))
Laurent
Le 31 mai 2012 19:04, Neil Toronto neil.toro
(sorry for the bad indentation, writing s-exps on a phone predictive
keyboard is painful...)
Le 31 mai 2012 19:21, Laurent laurent.ors...@gmail.com a écrit :
How about a define* that is exactly like let* without the additional
indentation level?
E.g.:
(define*
[↑ foo bar baz]
[↑ (substring
+ Tests, Tests only, and then maybe
same for comments, etc. though maybe you'd like partial hiding of the
comments.
It's unlikely that PLT is going to implement that any time soon, so it's
more in our hands I guess (though it's unlikely that I'll do that anytime
soon either).
Laurent
On Wed, Jun
add1
I also use such a function from time to time, and I'd be happy to have it
in the string or regexp libs.
Laurent
On Thu, Jun 21, 2012 at 1:56 PM, Eli Barzilay e...@barzilay.org wrote:
While scanning code for a minor incompatible in a commit, I ran into
this function which is the ffi
On Fri, Jun 22, 2012 at 5:36 PM, Eli Barzilay e...@barzilay.org wrote:
Yesterday, Laurent wrote:
add1
I also use such a function from time to time, and I'd be happy to
have it in the string or regexp libs.
I'll assume that without other replies, there are no objections to
adding
If you can, I think it would be a good idea to remove the paren pair if the
user deletes the opening paren he just typed by mistake. Undo should do the
same (which apparently it does not currently; missing
'begin/end-edit-sequence' ?).
Laurent
On Fri, Nov 23, 2012 at 1:20 AM, Nadeem Abdul Hamid
On Sat, Nov 24, 2012 at 3:11 PM, Nadeem Abdul Hamid nad...@acm.org wrote:
On Sat, Nov 24, 2012 at 4:03 AM, Laurent laurent.ors...@gmail.com wrote:
If you can, I think it would be a good idea to remove the paren pair if
the user deletes the opening paren he just typed by mistake. Undo should
Sounds cool.
On yesterday's nightly (debian squeeze 64), I had to do a `sudo raco setup`
to have the help webpage, otherwise I would get a http 404.
Laurent
On Sat, Nov 24, 2012 at 4:09 AM, Matthew Flatt mfl...@cs.utah.edu wrote:
When `raco setup' builds documentation, it now puts cross
Nice, thank you very much. I think I'll gonna use it now.
Too bad for the delete key, it would be really useful to me :)
Is it normal that it does not work in the interaction window?
Laurent
On Tue, Dec 4, 2012 at 4:42 AM, Robby Findler
ro...@eecs.northwestern.eduwrote:
Thanks, Nadeem
appreciated if, during
installation or on the first run of DrRacket (preferably the former,
because of DrRacket Tools), I'm asked whether I want to keep/migrate my
packages for the new version.
It's currently quite annoying to have to do all this reinstalling by hand.
Laurent
.
Laurent
On Thu, Nov 8, 2012 at 9:12 AM, Laurent laurent.ors...@gmail.com wrote:
Hi,
Is there a reason that ffi/unsafe does not export ctype-scheme-c and
ctype-c-scheme?
Because I find them very useful in practice. Or should I avoid using them
for some reason?
Laurent
permissions).
However, running the same command again does not trigger the full
recompilation anyway (which is fortunate).
It's quite rare though and I could find a way to reproduce it consistently.
Laurent
On Thu, Jan 17, 2013 at 7:20 PM, Carl Eastlund c...@ccs.neu.edu wrote:
Recently I've run
in
5.3.1.10
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
priority for me.
Laurent
On Fri, Jan 18, 2013 at 7:53 AM, Laurent laurent.ors...@gmail.com wrote:
Ubuntu 12.04.1, 32 bits
$ uname -a
Linux Eurisko 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC
2012 i686 athlon i386 GNU/Linux
(i386-linux/3m) (get-display-depth) = 32
On Thu
if any PLT member agrees with this.
Laurent
On Wed, Jan 30, 2013 at 7:12 PM, Matthew Flatt mfl...@cs.utah.edu wrote:
Ok, I've started this page:
https://github.com/plt/racket/wiki/Videos
Please fill in whatever I've missed! (The page already has more on it
than I expected to find, so I'm
.
Laurent
so, completely wrong. But on a 64bit Linux its correct if i use the 64bit
racket version. When i try the 32bit build i get the wrong results again.
I think you can blame it on 32 implementation of racket/libc/compiler or
whatever. Not on the actual cpu in use because the hardware
Just a side question:
Would it be a bad idea to make a separate library that uses the normal
names without f, so that people can write
#lang racket
(require racket/flist)
?
or even use `prefix-in' if they prefer?
Laurent
On Sat, Mar 9, 2013 at 4:28 PM, Eli Barzilay e...@barzilay.org wrote
. (Is there a reason for
that?)
Laurent
On Fri, May 3, 2013 at 3:39 PM, Robby Findler
ro...@eecs.northwestern.eduwrote:
[ for those that just want to see what I'm getting at, scroll to the end ]
While the docs are clear (enough) on this point, I think it can be quite
confusing. See if you spot the bug
On Fri, May 3, 2013 at 4:22 PM, Robby Findler
ro...@eecs.northwestern.eduwrote:
I don't like warnings that are basically admitting weaknesses in the
language design
Ah, that's the answer my subconscious was seeking when I wondered about
Racket warnings. Good point!
FWIW, I'd vote (with
Matthew,
Out of curiosity, could you explain why you'd prefer #:else everywhere
instead of [else ...] ?
Would such an #:else allow for multi-line bodies?
On Sat, May 4, 2013 at 5:06 PM, Matthew Flatt mfl...@cs.utah.edu wrote:
At Sat, 4 May 2013 09:15:22 -0500, Robby Findler wrote:
On Sat,
(that was assuming Ryan's assertion that [...]Matthew say that he would
have used a keyword for `else` in `cond` if he had it to do over again,
which seem to mean that even in Racket2 Matthew would prefer `#:else' over
`[else ...]' ?)
On Sat, May 4, 2013 at 5:14 PM, Laurent laurent.ors
, but something to
explore.
Robby
On Sat, May 4, 2013 at 10:33 AM, Laurent laurent.ors...@gmail.com
wrote:
(that was assuming Ryan's assertion that [...]Matthew say that he
would
have used a keyword for `else` in `cond` if he had it to do over
again,
which seem to mean that even
for someone.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
to impose
this constraint to have good assurance that the operator is well defined.
Do you know why C++ has stopped pursuing this idea by any chance?
On Sun, May 5, 2013 at 6:58 PM, Matthias Felleisen matth...@ccs.neu.eduwrote:
On May 5, 2013, at 12:51 PM, Laurent wrote:
On Sun, May 5, 2013
Would you happen to have a reference on that?
On Sun, May 5, 2013 at 7:15 PM, Matthias Felleisen matth...@ccs.neu.eduwrote:
On May 5, 2013, at 1:12 PM, Laurent wrote:
Do you know why C++ has stopped pursuing this idea by any chance?
No, and they may have more work going on besides
+1 indeed, that way you can follow easily with typing a paren, thus
enclosing it again.
Laurent
Le 23 mai 2013 17:17, John Clements cleme...@brinckerhoff.org a écrit :
On May 23, 2013, at 8:13 AM, Robby Findler wrote:
On Thursday, May 23, 2013, Nadeem Abdul Hamid wrote:
Hello Racket devs
a
directory for the package that has the same name as the collection it
contains?
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Ah, that's cool. Looking forward to it!
And the in-url thing would be useful indeed for gists for example.
Laurent
On Thu, May 30, 2013 at 8:32 PM, Eli Barzilay e...@barzilay.org wrote:
Yes, I really want to try and get to look into doing this. The thing
is that multi-collection libraries
' are low too, but they're
probably higher than going into the package system.
That would be nice, but I'd much much prefer to see the single-collection
package thing implemented.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
On Mon, Jun 3, 2013 at 2:44 PM, Eli Barzilay e...@barzilay.org wrote:
Yesterday, Laurent wrote:
On Sun, Jun 2, 2013 at 1:47 PM, Eli Barzilay e...@barzilay.org wrote:
To clarify, because of reasons that I won't go into on the list,
the actual chances of me getting this implemented
package as the first line of
the log)
Then try it:
$ racket
(require dummy)
It works!
Or is this patch way too naive for some reason?
Laurent
On Mon, Jun 3, 2013 at 4:37 PM, Eli Barzilay e...@barzilay.org wrote:
(I completely agree with you, so I'll take it off-line.)
30 minutes ago, Laurent
, and more
specific info.rkt files should have precedence in case there is a conflict
(like in CSS for example).
I expect the first two cases to be overwhelmingly dominant, and thus they
should be easier to achieve.
Laurent
[*] I think a good tool is one that asks for Minimum User Effort
.)
Laurent
lib.rkt.patch
Description: Binary data
_
Racket Developers list:
http://lists.racket-lang.org/dev
. That's an easy change.
If the original package/directory name can be retrieved at any time, then
yes, it's a much better idea (actually I had started this way, but didn't
know how to retrieve the name at any time).
Laurent
_
Racket Developers list:
http
to choose. I'm very glad that you and Laurent have done the work here.
The main problem with this is that it brings in internal linking where
code directly refers to other packages (implementations) and not
modules (interfaces) as the default. This means we will see code like
(require jays
to be rare).
I don't really expect programmers of ring-0 to have bad habits, my main
concern is with all the others, who certainly don't want to spend a lot of
time understanding what to do to make a package.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
On Fri, Jun 7, 2013 at 1:42 AM, Matthew Flatt mfl...@cs.utah.edu wrote:
At Thu, 9 May 2013 16:22:54 +0200, Laurent wrote:
I've always wondered why the syntax of keywords implied two elements: the
#:keyword and the identifier.
I find that quite heavy for procedure headers, and most
.
If you haven't seen it yet, you can also activate Edit/Racket/Automatically
adjust closing parentheses.
The new behavior of the double-quotes with this is great too (and goes
slightly beyond paredit, IIUC).
Laurent
On Sat, Jun 8, 2013 at 8:36 PM, Mayank Jain firesof...@gmail.com wrote:
Hi,
I am
teachers had used RoR for
teaching us PLT Scheme ;)
If anyone likes to play Dice of Doom, it has an improved version to which
many hours of my PhD studentship got lost:
http://www.gamedesign.jp/flash/dice/dice.html
Laurent
On Mon, Jun 17, 2013 at 2:41 AM, Matthias Felleisen matth
`fish%'
Of course this could be extended to structs.
This would harmonize different calling mechanisms, as well as being more
flexible.
Wouldn't that be nice?
Laurent
On Fri, Jun 7, 2013 at 8:12 AM, Laurent laurent.ors...@gmail.com wrote:
On Fri, Jun 7, 2013 at 1:42 AM, Matthew Flatt mfl
) ; - '(3 1)
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Here's a simple demo for procedures if you want to try it out:
https://gist.github.com/Metaxal/5851215
Laurent
On Mon, Jun 24, 2013 at 4:54 PM, Laurent laurent.ors...@gmail.com wrote:
On Mon, Jun 17, 2013 at 5:09 PM, Matthias Felleisen
matth...@ccs.neu.eduwrote:
p.s. On second thought
Much better indeed, but maybe there is still some redundancy left with
the `setup-collects'
option?
http://docs.racket-lang.org/pkg/metadata.html
Laurent
On Tue, Jun 25, 2013 at 11:08 PM, Matthias Felleisen
matth...@ccs.neu.eduwrote:
+1
On Jun 25, 2013, at 4:27 PM, Sam Tobin-Hochstadt
(looks like I'm misunderstanding this option. Forget about it.)
On Wed, Jun 26, 2013 at 10:30 AM, Laurent laurent.ors...@gmail.com wrote:
Much better indeed, but maybe there is still some redundancy left with the
`setup-collects' option?
http://docs.racket-lang.org/pkg/metadata.html
computer, but this will
probably be a less frequent case.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Thank you very much!
On Sat, Aug 10, 2013 at 8:54 PM, Matthew Flatt mfl...@cs.utah.edu wrote:
I've added support for .desktop files for GUI launchers on Unix. When
an info.rkt file specifies a launcher for name.rkt, then if
name.desktop exists, name.desktop is used as the initial
content of
. At first glance it was difficult to identify the sections.
Otherwise I like it a lot.
Laurent
On Mon, Aug 19, 2013 at 11:39 PM, Sam Tobin-Hochstadt
sa...@cs.indiana.eduwrote:
Recently I (with assistance from Asumu) have spent some time drafting
a revised home page for Racket. A revised web page
On Sat, Sep 14, 2013 at 12:40 AM, Eli Barzilay e...@barzilay.org wrote:
Just now, Greg Hendershott wrote:
On Thu, Sep 12, 2013 at 4:41 PM, Laurent laurent.ors...@gmail.com
wrote:
FYI, I have filed a bug report more than 3 hours ago but did not
receive any
confirmation
is redundant with
`set' anyway (which I hadn't understood at first).
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
preventing downloads does not sound like a good option though.
I bet you've already discussed this far and wide, so are there any plans?
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
, Sep 16, 2013 at 11:24 AM, Laurent laurent.ors...@gmail.comwrote:
Sounds good!
I think as long as it's possible to somehow choose between byte-code and
source-code packages/distributions, there should not be too much to worry
about. My server would be very happy with byte-code packages
Sounds good!
I think as long as it's possible to somehow choose between byte-code and
source-code packages/distributions, there should not be too much to worry
about. My server would be very happy with byte-code packages, and my
desktop with a full source-code Racket.
Laurent
On Mon, Sep 16
:49 -0600, Jay McCarthy wrote:
Hi Laurent,
I think that the solution to this are binary builds versions of
a package that only have the bytecode and documentation.
We're a bit behind on binary builds, because when they were discussed
for the main repository [1] they were rejected
, it's very much appreciated the intent has been
to preserve it -- thanks!
If having a beta period with a number of backward incompatibilities means
having the best package system ever, I'm all for it. Twice.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org
Le 10 oct. 2013 00:09, Neil Toronto neil.toro...@gmail.com a écrit :
Also, what's a good name for the module that exports `plot-file',
`plot-pict', `plot-bitmap', `plot/dc', and the 3d versions of those
functions? Something like plot/no-gui?
plot/draw maybe?
Laurent
, is it?)
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Thanks! I was worried I was doing something wrong, but IIUC these tests
were just not enabled in DrDr.
Is there an easy way to know if some tests are enabled in DrDr?
Laurent
On Thu, Dec 19, 2013 at 3:02 AM, Matthew Flatt mfl...@cs.utah.edu wrote:
Thanks --- I've tracked down the problem
Thank you both for the info, I see that now.
Laurent
On Thu, Dec 19, 2013 at 3:32 PM, Sam Tobin-Hochstadt
sa...@cs.indiana.eduwrote:
On Thu, Dec 19, 2013 at 8:56 AM, Matthew Flatt mfl...@cs.utah.edu wrote:
Is there an easy way to know if some tests are enabled in DrDr?
Currently
As a side note, I remember having stumbled on the same issue some while
back, and the way I dealt with it was to refresh based on a random outcome.
Not clean, but it works pretty well as long as the refresh calls are still
close enough.
Laurent
On Thu, Apr 17, 2014 at 12:11 AM, David Vanderson
)
(sleep 3)
(unless in
(displayln Connection not established. Breaking thread.)
(break-thread connect-thread))
The timer can also be place into its own thread if you need to set up
several connections in parallel.
Hope this helps,
Laurent
On Thu, Apr 17, 2014 at 6:48 PM, nicolas carraggi
is not currently the case.
Completely agree on that.
Also, maybe the Language preferences should be accessible from the
Edit/Preferences panel, or at least be listed right under, in
Edit/Language preferences.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org
`gather-return-values` it's easy enough to write `(second
(gather-return-values foo 'a 'b 'c))`.
Laurent
_
Racket Developers list:
http://lists.racket-lang.org/dev
Even more idiomatic:
(time (for ([w words])
(hash-update! d w add1 0)))
But it seems to be slightly slower that Robby's version.
Laurent
On Thu, Jul 24, 2014 at 11:26 AM, Robby Findler ro...@eecs.northwestern.edu
wrote:
Not an answer to your direction question, but this is the more
Hi,
Using Racket 6.1.1.1--2014-10-13(47b7a28/a) [3m] on Ubuntu 14.04, I see
DrRacket flickering during selections, tab switching and other occasions,
but it's not consistent.
Does anyone else see the same thing?
Laurent
_
Racket Developers list:
http://lists.racket
86 matches
Mail list logo