[racket-dev] DrRacket flickers?

2014-10-16 Thread Laurent
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

Re: [racket-dev] Racket hash tables vs. Python dicts - Performance

2014-07-25 Thread Laurent
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

Re: [racket-dev] actionable items, was: comments on comments on learning Racket

2014-04-28 Thread Laurent
`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

Re: [racket-dev] comments on comments on learning Racket

2014-04-27 Thread Laurent
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

Re: [racket-dev] Implementation question

2014-04-19 Thread Laurent
) (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

Re: [racket-dev] gui responsiveness

2014-04-17 Thread Laurent
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

Re: [racket-dev] Test errors on scribble/reader.rkt

2013-12-20 Thread Laurent
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

Re: [racket-dev] Test errors on scribble/reader.rkt

2013-12-19 Thread Laurent
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

[racket-dev] Test errors on scribble/reader.rkt

2013-12-14 Thread Laurent
, is it?) Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] separate plot library into gui-requiring and non-gui-requiring

2013-10-09 Thread Laurent
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

Re: [racket-dev] info.rkt `deps` and new #:version keyword: Backward compatibility?

2013-10-03 Thread Laurent
, 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

Re: [racket-dev] Installing subsets of Racket

2013-09-24 Thread Laurent
: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

[racket-dev] Installing subsets of Racket

2013-09-16 Thread Laurent
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

Re: [racket-dev] Installing subsets of Racket

2013-09-16 Thread Laurent
, 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

Re: [racket-dev] Installing subsets of Racket

2013-09-16 Thread Laurent
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

Re: [racket-dev] Bug report not confirmed

2013-09-15 Thread Laurent
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

[racket-dev] List-box% infinite loop (was: Bug report not confirmed)

2013-09-15 Thread Laurent
is redundant with `set' anyway (which I hadn't understood at first). Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Revising Racket's home page

2013-08-20 Thread Laurent
. 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

Re: [racket-dev] .desktop files (for GUI apps on Unix)

2013-08-12 Thread Laurent
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

Re: [racket-dev] raco pkg install should default to linking for filesystem packages

2013-08-01 Thread Laurent
computer, but this will probably be a less frequent case. Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] single-collection packages

2013-06-26 Thread Laurent
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

Re: [racket-dev] single-collection packages

2013-06-26 Thread Laurent
(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

Re: [racket-dev] Keywords

2013-06-24 Thread Laurent
) ; - '(3 1) Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Keywords

2013-06-24 Thread Laurent
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

Re: [racket-dev] version 5.3.5 release, ready for testing

2013-06-17 Thread Laurent
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

Re: [racket-dev] Keywords

2013-06-17 Thread Laurent
`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

Re: [racket-dev] Project Idea to port Paredit mode to DrRacket.

2013-06-09 Thread Laurent
. 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

Re: [racket-dev] Keywords

2013-06-07 Thread Laurent
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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-06 Thread Laurent
.) Laurent lib.rkt.patch Description: Binary data _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-06 Thread Laurent
. 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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-06 Thread Laurent
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

[racket-dev] Fwd: PLaneT(2): Single vs multi-collection packages

2013-06-06 Thread Laurent
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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-04 Thread 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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-03 Thread Laurent
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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-03 Thread Laurent
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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-02 Thread Laurent
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

Re: [racket-dev] PLaneT(2): Single vs multi-collection packages

2013-06-02 Thread Laurent
' 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

[racket-dev] PLaneT(2): Single vs multi-collection packages

2013-05-30 Thread Laurent
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

Re: [racket-dev] [racket] Parens/string quotes automatic behavior

2013-05-23 Thread Laurent
+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

Re: [racket-dev] Racket2 suggestion: Attaching properties to operators

2013-05-06 Thread Laurent
transforms given that a user has proven their operators associative/commutative, etc? -Ian - Original Message - From: Laurent laurent.ors...@gmail.com To: Matthias Felleisen matth...@ccs.neu.edu Cc: dev@racket-lang.org Sent: Sunday, May 5, 2013 1:28:59 PM GMT -05:00 US/Canada Eastern

Re: [racket-dev] else clauses: possible change to match?

2013-05-05 Thread Laurent
, 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

[racket-dev] Racket2 suggestion: Attaching properties to operators

2013-05-05 Thread Laurent
for someone. Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Racket2 suggestion: Attaching properties to operators

2013-05-05 Thread Laurent
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

Re: [racket-dev] Racket2 suggestion: Attaching properties to operators

2013-05-05 Thread Laurent
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

Re: [racket-dev] else clauses: possible change to match?

2013-05-04 Thread Laurent
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,

Re: [racket-dev] else clauses: possible change to match?

2013-05-04 Thread Laurent
(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

Re: [racket-dev] else clauses: possible change to match?

2013-05-03 Thread Laurent
. (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

Re: [racket-dev] else clauses: possible change to match?

2013-05-03 Thread Laurent
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

Re: [racket-dev] take, drop, split-at, etc -- and argument order, again

2013-03-10 Thread Laurent
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

Re: [racket-dev] Floating-Point Compliance Testing

2013-02-09 Thread Laurent
. 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

Re: [racket-dev] Racket learning page videos

2013-01-30 Thread Laurent
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

Re: [racket-dev] small GTK problem in 5.3..1.900

2013-01-19 Thread Laurent
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

Re: [racket-dev] Racket sources getting mysteriously out of sync

2013-01-17 Thread 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

[racket-dev] small GTK problem in 5.3..1.900

2013-01-17 Thread Laurent
in 5.3.1.10 Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] ctype-scheme-c

2012-12-06 Thread 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

Re: [racket-dev] Planet 2 Beta Release

2012-12-05 Thread Laurent
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

Re: [racket-dev] DrRacket automatic parentheses mode update

2012-12-04 Thread Laurent
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

Re: [racket-dev] change to `raco setup' doc builds and SQLite

2012-11-25 Thread Laurent
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

Re: [racket-dev] Survey for DrRacket users related to automatic parentheses behavior

2012-11-24 Thread Laurent
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

Re: [racket-dev] Survey for DrRacket users related to automatic parentheses behavior

2012-11-24 Thread Laurent
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

Re: [racket-dev] `regexp-replaces'

2012-06-22 Thread Laurent
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

Re: [racket-dev] `regexp-replaces'

2012-06-21 Thread Laurent
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

Re: [racket-dev] Comments and DrRacket

2012-06-20 Thread Laurent
+ 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

Re: [racket-dev] Code micro-level organization

2012-05-31 Thread Laurent
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

Re: [racket-dev] Code micro-level organization

2012-05-31 Thread Laurent
(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

Re: [racket-dev] `racket/string' extensions

2012-05-25 Thread Laurent
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

Re: [racket-dev] A few suggestions on indentation and DrRacket graphical syntax

2012-05-12 Thread Laurent
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

[racket-dev] A few suggestions on indentation and DrRacket graphical syntax

2012-05-09 Thread Laurent
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

Re: [racket-dev] A few suggestions on indentation and DrRacket graphical syntax

2012-05-09 Thread Laurent
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

Re: [racket-dev] current-*-port

2012-05-04 Thread 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

Re: [racket-dev] current-*-port

2012-05-04 Thread Laurent
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

Re: [racket-dev] current-*-port

2012-05-04 Thread Laurent
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

[racket-dev] Most used identifiers and their length

2012-05-04 Thread Laurent
-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

[racket-dev] version number for functions/forms in docs

2012-04-27 Thread Laurent
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

Re: [racket-dev] skip release

2012-04-24 Thread Laurent
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

Re: [racket-dev] Fwd: [racket] Are There More String Functions?

2012-04-19 Thread Laurent
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

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
(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.

Re: [racket-dev] `string-replace'

2012-04-19 Thread Laurent
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

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
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

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
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

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
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

[racket-dev] Argument positions of string-... like functions

2012-04-19 Thread Laurent
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

Re: [racket-dev] `string-split'

2012-04-19 Thread Laurent
. 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

Re: [racket-dev] `racket/string' extensions

2012-04-19 Thread Laurent
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

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact-exact: no exact representation for +nan.0)]

2011-12-29 Thread Laurent
. 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

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact-exact: no exact representation for +nan.0)]

2011-12-29 Thread Laurent
! Thank you very much, Laurent _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact-exact: no exact representation for +nan.0)]

2011-12-29 Thread Laurent
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

Re: [racket-dev] [racket] Long compilation+launch times

2010-08-25 Thread Laurent
using PLaneT dev links (which is much better for what I'm doing), and I'm not sure I will come back to collections soon. Laurent _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev