[racket-users] Projects (was: the Racket manifesto)

2015-03-25 Thread Laurent
In the manifesto, I'm a bit surprised by the following: this philosophy prohibits the idea of “projects,” as found in other IDEs, because this also externalizes resource management, linking, and other aspects of program creation. Couldn't one call package designing a project? Sure, a package

Re: [racket-users] apply: pass keywords to function?

2015-03-25 Thread Laurent
Or you can use dictionaries to pass keyword values (similar to Python): https://gist.github.com/Metaxal/578b473bc48886f81123 On Tue, Mar 24, 2015 at 9:05 PM, Alexander D. Knauth alexan...@knauth.org wrote: On Mar 22, 2015, at 7:42 PM, George Neuner gneun...@comcast.net wrote: I thought

Re: [racket-users] Projects (was: the Racket manifesto)

2015-03-26 Thread Laurent
That's also what I understand, and I find this philosophy pretty appealing too, for what it's worth. However it still worries me as this sounds a like I'm not wearing shoes because the problem is not your feet but the pavement; What we need is a pavement that makes it possible to walk without

Re: [racket-users] Projects (was: the Racket manifesto)

2015-03-26 Thread Laurent
Thanks, that clarifies the point. The manifesto maybe puts it too strictly indeed. On Thu, Mar 26, 2015 at 1:58 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: Thanks for sending this, again. I was writing a response very much along these lines when your post came in. 1. No, we cannot

Re: [racket-users] Typed racket slow in DrRacket?

2015-04-13 Thread Laurent
=commandline Also note the useful but easily missed `#:argv` keyword option, which allows you to simulate receiving arguments from the command-line. Laurent -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop

[racket-users] Tip: Open all Racket help links in the same browser window

2015-04-13 Thread Laurent
be adapted to Firefox using profiles and maybe to other browsers too. I'm sharing this as it took me some time to figure this out. Hopefully this can help other people. Laurent -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group

Re: [racket-users] Linear time immutable hasmap union

2015-04-09 Thread Laurent
that log N is limited to less than 30 or 62 (depending on the platform), log N can be treated reasonably as a constant. I don't think you can do better than O(n log n) if you want to produce a hash in the end. Laurent On Thu, Apr 9, 2015 at 12:18 PM, Alexey Cherkaev alexey.cherk...@gmail.com wrote

Re: [racket-users] Racket/gui : assign a keyboard shortcut to a button%

2015-06-10 Thread Laurent
better to create a separate function instead of directly calling the button's callback). Laurent On Wed, Jun 10, 2015 at 11:04 AM, mazert rom...@elgeekador.net wrote: Hello, I know we can assign a keyboard shortcut on a menu%, but I try to do the same thing with a button%. Is that possible

[racket-users] Small feature request: keyboard shortcut in HelpDesk to go to search

2015-06-16 Thread Laurent
In case it's simple enough, would it be possible to have a keyboard shortcut in the HelpDesk to go to the search bar, on any help page? (Btw, I can't even reach the search bar by repeatedly pressing Tab on Chrome at least.) Thanks! Laurent -- You received this message because you

Re: [racket-users] How to check for existing definitions

2015-05-27 Thread Laurent
it with macros because of the strange compile-time behavior. Where *compile time* sound to me like put all the interned things together, call it byte code and dump it into a file. Il giorno 24/mag/2015, alle ore 10.14, Laurent ha scritto: This may be of interest to you: http://stackoverflow.com

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
For what it's worth, I think these are some of the relevant lines: https://github.com/racket/drracket/blob/21c155c46c58c5d01ff984df27a77c19f4481640/drracket/drracket/private/drracket-normal.rkt#L19

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
, make sure you recompile the collections with `raco setup drracket` for example, and restart drracket. Once you're happy with your result, you can start wondering about how to submit your changes. (Someone correct me if this is a bad advice!) On Thu, May 28, 2015 at 6:18 PM, Laurent laurent.ors

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-29 Thread Laurent
, 2015 at 12:42 PM, Laurent laurent.ors...@gmail.com wrote: Regarding contribution, this should at least be a good start: http://blog.racket-lang.org/2012/11/tutorial-contributing-to-racket.html http://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-29 Thread Laurent
was worried about the communication of positions later on. Robby On Friday, May 29, 2015, Laurent laurent.ors...@gmail.com wrote: I was optimistic this could work because when you launch DrRacket with bad flags it tries to open files with these names, at least on Ubuntu: $ drracket my-file.rkt

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
Hi Lux, Do you mean opening the file from a menu within DrRacket or from the outside, like from the command line? On Thu, May 28, 2015 at 8:40 AM, Lux glsdes...@gmail.com wrote: As much as I love vim/gvim and configured it to do anything I want, I can not code anymore without DrRacket.

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
). On Thu, May 28, 2015 at 11:54 AM, Lux glsdes...@gmail.com wrote: Do you mean opening the file from a menu within DrRacket or from the outside, like from the command line? Hi Laurent, thanks for your answer. Yes, I mean from the command line (more specifically I need it to be launched

Re: [racket-users] How to check for existing definitions

2015-05-24 Thread Laurent
until it is called. Laurent On Sun, May 24, 2015 at 8:20 AM, Michael Tiedtke michael.tied...@o2online.de wrote: I'm used to check for the presence of a definition of a given symbol with (defined? symbol) Probably I still remember that from GNU Guile Scheme but I was not able to find

Re: [racket-users] API design 2 -- variadic styles

2015-07-06 Thread Laurent
Point in case: Greg Hendershott's recent blog post about adapting struct constructors to use keyword arguments using syntax-parse. http://www.greghendershott.com/2015/07/keyword-structs-revisited.html On Mon, Jul 6, 2015 at 4:35 PM, Alexis King lexi.lam...@gmail.com wrote: I’ll second Stephen’s

[racket-users] Optimizing closures

2015-07-31 Thread Laurent
really like to avoid copy/paste/maintain, but these procedures are also inside intensive loops, so I'd really like to not sacrifice speed. Is there a better way to write this code with copy/paste to allow for optimizations? Thanks, Laurent -- You received this message because you are subscribed

Re: [racket-users] Optimizing closures

2015-07-31 Thread Laurent
, Laurent wrote: Hi, A little stress test seems to suggest that the JIT is currently not able to optimize closures with static arguments: https://gist.github.com/Metaxal/4beb286cacc0966b433a That's a simplified version of some cases of mine where several complex procedures that look

[racket-users] Re: Optimizing closures

2015-07-31 Thread Laurent
if such a procedure could be optimized. On Fri, Jul 31, 2015 at 2:05 PM, Laurent laurent.ors...@gmail.com wrote: Hi, A little stress test seems to suggest that the JIT is currently not able to optimize closures with static arguments: https://gist.github.com/Metaxal/4beb286cacc0966b433a That's

Re: [racket-users] Optimizing closures

2015-07-31 Thread Laurent
and then I'm not sure what precisely I'm measuring. On Fri, Jul 31, 2015 at 4:25 PM, Vincent St-Amour stamo...@eecs.northwestern.edu wrote: FWIW, the optimization coach reports these kinds of issues, and recommends that solution. Vincent On Fri, 31 Jul 2015 09:03:53 -0500, Laurent wrote: Oh

Re: [racket-users] Optimizing closures

2015-07-31 Thread Laurent
On Fri, Jul 31, 2015 at 5:40 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Fri, 31 Jul 2015 15:03:53 +0100, Laurent wrote: I don't really understand why `in-range` makes such a difference. It looks like the kind of sequence iterator is tested at each step, whereas I was expecting

Re: [racket-users] Optimizing closures

2015-08-03 Thread Laurent
:15 +0100, Laurent wrote: On Fri, Jul 31, 2015 at 5:40 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Fri, 31 Jul 2015 15:03:53 +0100, Laurent wrote: I don't really understand why `in-range` makes such a difference. It looks like the kind of sequence iterator is tested at each

Re: [racket-users] Canvas animation slowness

2015-07-16 Thread Laurent
eventually. Relevant people CCed. -- Matthias On Jul 16, 2015, at 12:15 PM, Laurent laurent.ors...@gmail.com wrote: I'm surprised by the slowness of animations in a canvas. Here's a simple stress test: https://gist.github.com/Metaxal/73897e7bac5332054511 For a 100x100 board it takes 2

[racket-users] Canvas animation slowness

2015-07-16 Thread Laurent
I'm surprised by the slowness of animations in a canvas. Here's a simple stress test: https://gist.github.com/Metaxal/73897e7bac5332054511 For a 100x100 board it takes 2 seconds to draw 10 random frames (outside DrRacket of course). I was expecting at least 10x more frames per second. Is there

Re: [racket-users] Probabilities in log-space and rounding errors

2015-10-24 Thread Laurent
f._%28%28lib._math%2Fflonum..rkt%29._fllog1p%29%29 > <http://docs.racket-lang.org/math/flonum.html#(def._((lib._math/flonum..rkt)._fllog1p))> > > > On Oct 20, 2015, at 9:24 AM, Paolo Giarrusso <p.giarru...@gmail.com> > wrote: > > On Tuesday, October 20, 2015 at 12:15:2

Re: [racket-users] Is there a selenium-like lib for racket

2015-10-25 Thread Laurent
Apparently the same team also wrote bindings to Selenium: https://github.com/untyped/selenium The last update was in 2011, though, but it may still be worth a try. Laurent On Sun, Oct 25, 2015 at 9:18 AM, timothy george <timothyageo...@gmail.com> wrote: > Hello everyone, > > I'm

Re: [racket-users] Re: Probabilities in log-space and rounding errors

2015-10-22 Thread Laurent
On Wed, Oct 21, 2015 at 11:24 PM, Paolo Giarrusso <p.giarru...@gmail.com> wrote: > On 20 October 2015 at 16:44, Laurent <laurent.ors...@gmail.com> wrote: > > Thanks Paolo, yes, I saw that indeed and it is most likely relevant. I > was > > hoping my problem would

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-15 Thread Laurent
characters to prefix a keyword argument is a lot though, especially when one uses them so much. Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[racket-users] Probabilities in log-space and rounding errors

2015-10-20 Thread Laurent
e that any correct log-space operation remains a log-probability (i.e., never goes above 0). Thanks, Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: [racket-users] Re: Probabilities in log-space and rounding errors

2015-10-20 Thread Laurent
on my part in my equations or in their implementation. On Tue, Oct 20, 2015 at 2:24 PM, Paolo Giarrusso <p.giarru...@gmail.com> wrote: > On Tuesday, October 20, 2015 at 12:15:21 PM UTC+2, Laurent Orseau wrote: > > The built-in log-space arithmetic operations are wonderful. (Thanks

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-06 Thread Laurent
com> wrote: > On 6 October 2015 at 01:45, Aman <amangpt...@gmail.com> wrote: > > > > Thanks Laurent and Paolo. When you say (send a-text insert string), how > are you getting a-text ? > > > What I wanted was not to design a new editor window, but to modify or

Re: [racket-users] Re: Big thanks for the Racket Plot design

2015-11-13 Thread Laurent
I second all this with all my heart. Programming with Racket/DrRacket is a complete delight, and indeed the plot lib in particular is just marvel. Thanks to you all for making this possible. On Fri, Nov 13, 2015 at 9:17 AM, Lux wrote: > I also like to thank you all for the

Re: [racket-users] reload package within drracket without restarting

2015-09-08 Thread Laurent
Related topic, in case this can help: http://thread.gmane.org/gmane.comp.lang.racket.user/19305 Note the suggestion about a gracket window. Laurent On Tue, Sep 8, 2015 at 5:29 PM, Robby Findler <ro...@eecs.northwestern.edu> wrote: > Unfortunately not. > > Robby > > On Sun

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Laurent
I don't think there is anything like this right now, but in case anyone wants to do that, my first impression is, that such a command should not completely erase the previous content but only hide it (by scrolling down for example). I tried very quickly to do that using `set-position` of `text%`

Re: [racket-users] Re: [racket-dev] Racket Package Server Security Vulnerabilities

2015-09-22 Thread Laurent
On Tue, Sep 22, 2015 at 1:14 PM, Laurent <laurent.ors...@gmail.com> wrote: > Also, were the passwords salted? > Sorry, I pressed 'Send' too early: the website says the passwords are stored in bcrypt format. -- You received this message because you are subscribed to the Google Gro

Re: [racket-users] Re: [racket-dev] Racket Package Server Security Vulnerabilities

2015-09-22 Thread Laurent
or is it part of some maintenance task? Laurent On Tue, Sep 22, 2015 at 5:37 AM, Alexis King <lexi.lam...@gmail.com> wrote: > > * Change your password on the http://pkgs.racket-lang.org site. > > For anyone confused about how to do this, I just spent a few minutes > trying to

Re: [racket-users] I can't open my previous file

2016-06-06 Thread Laurent
Although the file says: "Open this file in DrRacket version 6.5 or later to read it." So it doesn't look like it requires an old version of Racket. (not really helping, sorry) On Mon, Jun 6, 2016 at 9:00 AM, George Neuner wrote: > On 6/6/2016 3:27 AM, 张可星 wrote: > >> I

Re: [racket-users] I can't open my previous file

2016-06-06 Thread Laurent
Ah, so you meant MrEd Designer (MED) then, I wasn't sure :) (mred was the previous GUI lib, part of DrScheme, whereas MED is an external package) Actually, it doesn't look like it was created by MED to me, at least not my versions (3.x), which generate only text files anyway (I think the previous

Re: [racket-users] link: bad variable linkage

2016-02-01 Thread Laurent
I would be so happy if this kind of error could be resolved! (even when all files are compiled by DrRacket) Usually, I just turn off "populate 'compiled' directories", but then DrRacket needs to compile the file on each F5, which can take some precious time. Thank you both then :) On Sun, Jan 31,

Re: [racket-users] How to implement a dynamic plugin system?

2017-02-07 Thread Laurent
/Metaxal/MrEd-Designer/wiki/Developer%27s-Documentation HTH, Laurent On Tue, Feb 7, 2017 at 2:36 PM, Matthias Felleisen <matth...@ccs.neu.edu> wrote: > > Erich, your needs sound very much like those of DrRacket’s. > You may wish to study how DrRacket loads tools (as in take > a

Re: [racket-users] Confused about syntax properties

2017-02-03 Thread Laurent
:10 UTC+1, Laurent Orseau a écrit : > > Btw, with "Macro Hiding: Disabled" we can see that after foo is turned > into #'1 (printed '1' in the macro stepper), then the 1 is 'tagged' with > (#%datum . 1) and then right after that turned into (quote 1). Is the > tagging step necessary

Re: [racket-users] Confused about syntax properties

2017-02-03 Thread Laurent
Very nice example, thanks Georges. Btw, with "Macro Hiding: Disabled" we can see that after foo is turned into #'1 (printed '1' in the macro stepper), then the 1 is 'tagged' with (#%datum . 1) and then right after that turned into (quote 1). Is the tagging step necessary for numbers? On Fri,

Re: [racket-users] Confused about syntax properties

2017-02-03 Thread Laurent
Thanks, that's very informative! On Fri, Feb 3, 2017 at 10:38 AM, Dupéron Georges < jahvascriptman...@gmail.com> wrote: > Le vendredi 3 février 2017 11:28:47 UTC+1, Laurent Orseau a écrit : > > I see. So basically all #% things are extension points? > > The list fo

[racket-users] DrRacket: Interactive choice of what submodules to run when clicking Run

2017-01-24 Thread Laurent
can choose afterwards what submodules to enter. Thanks, Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.c

Re: [racket-users] DrRacket: Interactive choice of what submodules to run when clicking Run

2017-01-24 Thread Laurent
for example. > > I've been thinking that this needs cleanup but haven't find time to > actually do it, sadly. > > Robby > > > On Tue, Jan 24, 2017 at 11:13 AM, Laurent <laurent.ors...@gmail.com> > wrote: > > Hi all, > > > > Currently we can choose w

Re: [racket-users] DrRacket: Interactive choice of what submodules to run when clicking Run

2017-01-24 Thread Laurent
ime, for example. >> >> I've been thinking that this needs cleanup but haven't find time to >> actually do it, sadly. >> >> Robby >> >> >> On Tue, Jan 24, 2017 at 11:13 AM, Laurent <laurent.ors...@gmail.com> >> wrote: >> >

Re: [racket-users] Racket v6.8

2017-01-25 Thread Laurent
Let me join Konrad to thank you all again for all the time and effort you put into making this wonderful tool(box)* that is Racket! On Wed, Jan 25, 2017 at 8:25 AM, Konrad Hinsen wrote: > On 24/01/17 22:04, Vincent St-Amour wrote: > > Racket version 6.8 is now

Re: [racket-users] Package layout in docs

2017-01-30 Thread Laurent
I agree that in the TOC of the docs it would probably be better to separate third party packages, maybe simply as a dedicated section or add '(contributed package)' next to it. On 30 Jan 2017 9:13 pm, "Matthew Butterick" wrote: On Jan 30, 2017, at 11:42 AM, Leif Andersen

Re: [racket-users] IMAP filter

2017-01-29 Thread Laurent
Hi there, Just FYI, for code that you want to share in a simple way, you can use pasterack.org (or gist.github.com ). Here's your code: http://pasterack.org/pastes/5961 On Sun, Jan 29, 2017 at 12:12 AM, Huang, Ying wrote: > Hi, All, > > Previously I use imapfilter

Re: [racket-users] Extending DrRacket's LaTeX Shortcuts

2016-11-05 Thread Laurent
indler <ro...@eecs.northwestern.edu> wrote: > I think it would be great to adjust the one that DrRacket uses to use > this one. Is that in a pkg somewhere? Or would it be better to just > drop it into the existing one? > > Robby > > > On Sat, Nov 5, 2016 at 7:31 AM,

Re: [racket-users] Extending DrRacket's LaTeX Shortcuts

2016-11-05 Thread Laurent
ed on http://milde.users.sourceforge.net/LUCR/Math/ HTH, Laurent On Fri, Nov 4, 2016 at 7:50 PM, Vincent St-Amour < stamo...@eecs.northwestern.edu> wrote: > Hi Kelly, > > The table's source is there: > > https://github.com/racket/gui/blob/master/tex-table/tex-table.rkt > > It doesn't

[racket-users] Plot ticks with arbitrary strings - breaks DrRacket

2016-10-14 Thread Laurent
the (faulty) code: https://gist.github.com/Metaxal/e4ac303d442cbf9fb7f3edc21d8a9019 Anyone has an idea about what goes wrong here? Thanks, Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

Re: [racket-users] link: bad variable linkage

2016-10-23 Thread Laurent
ece > missing from the explanations that I didn't think to ask about. > Finger's crossed that it helps! > > In any case, if you are still experiencing the bad symptom after you > get the latest code, please let me know. > > Thanks, > Robby > > On Mon, Feb 1, 2016 at 9

Re: [racket-users] handling terminal input per character

2016-10-30 Thread Laurent
#%28def._%28%28lib._mred%2Fmain..rkt%29._open-input-text-editor%29%29 ) HTH, Laurent On Sun, Oct 30, 2016 at 2:54 PM, Ken MacKenzie <deviloc...@gmail.com> wrote: > So a curiosity question. Right now I am reading in a line of terminal > input from the user and handling it. I am thinking

Re: [racket-users] Re: Plot ticks with arbitrary strings - breaks DrRacket

2016-10-15 Thread Laurent
)) (if (and (exact-nonnegative-integer? idx) (< idx N)) (list-ref string-list idx) "")) One last problem that may remain is that in my logs sometimes some integers values are skipped, but this doesn't seem to appear on the screen, so maybe these are just temporary values. Thanks! Laurent O

[racket-users] Scrolling problem in DrRacket with high pictures in slideshow

2017-08-11 Thread Laurent
t;Can you see me?")) Anyone knows a simple way to solve this? Thanks! Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr

Re: [racket-users] Scrolling problem in DrRacket with high pictures in slideshow

2017-08-11 Thread Laurent
indler <ro...@eecs.northwestern.edu> wrote: > My guess would be that the problem lies with the pict-snip% class and > how it implements the methods with the word "scroll" in their name. > > Robby > > > On Fri, Aug 11, 2017 at 7:58 AM, Laurent <laurent.ors...@gmail.com> w

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-29 Thread Laurent
(yet another shameless self-promotion, but hopefully this can be of some help.) If you really want to add menu items for such small tasks, you can use the script-plugin [1] which adds a easily modifiable Scripts menu item. There's already a "Scripts/Utils/Open file directory" menu item there.

Re: [racket-users] tabular text display

2017-09-22 Thread Laurent
There's something like that buried in my bazaar package, maybe it's sufficient for your needs: https://github.com/Metaxal/bazaar/blob/master/text-table.rkt The main submodule prints the examples. It provides two ways to output tables. The first one 'table->string' is the simplest one and the

Re: [racket-users] tabular text display

2017-09-23 Thread Laurent
> > Awesome! You’ve saved me hours. > > One simple thing: could you add the tags “tabular” and maybe also “format” > or “text”? I’m afraid that in its current form, I wouldn’t have found this > package when searching for it. > Done! Any other comments or suggestions welcome of course. -- You

Re: [racket-users] tabular text display

2017-09-23 Thread Laurent
example. On Fri, Sep 22, 2017 at 9:50 AM, Laurent <laurent.ors...@gmail.com> wrote: > There's something like that buried in my bazaar package, maybe it's > sufficient for your needs: > https://github.com/Metaxal/bazaar/blob/master/text-table.rkt > > The main submodul

[racket-users] [ANN] MrEd Designer update

2017-09-30 Thread Laurent
A new version of MrEd Designer (package 'mred-designer') is available: https://pkgd.racket-lang.org/pkgn/package/mred-designer MrEd Designer is WYSIWYG program to create GUI applications for Racket. The changes are relatively minor in quantity, but I've made a number of small improvements to the

[racket-users] namespace-anchor->namespace and eval

2017-10-01 Thread Laurent
Hi, Does anyone know a good explanation as to why the following code works depending on whether the apparently-useless line is commented out? #lang racket #;(new object%) ; uncommenting this raises an error (define-namespace-anchor nsa) (define ns (namespace-anchor->namespace nsa)) (eval '(new

Re: [racket-users] apse example?

2017-08-26 Thread Laurent
highlights are fghj. I recommend using emac's overwrite or > artist-mode. > > Jay > > > On Sat, Aug 26, 2017 at 9:28 AM, Laurent <laurent.ors...@gmail.com> wrote: > > Hi, > > > > (mostly for Jay, but might be useful to others) > > > > The apse[1]

[racket-users] apse example?

2017-08-26 Thread Laurent
Hi, (mostly for Jay, but might be useful to others) The apse[1] sprite editor sounds like a nice tool, but I couldn't find a way to start it. How does it work? Thanks! Laurent [1] https://pkgs.racket-lang.org/package/apse -- You received this message because you are subscribed to the Google

Re: [racket-users] Can't seem to find the blue box(es) in DrRacket anymore

2017-08-27 Thread Laurent
Same problem for me on 6.10.0.3 on Ubuntu 64bits. Unchecking then rechecking the blue box checkbox in the preferences doesn't change anything. I'll make a bug report. On Sun, Aug 27, 2017 at 7:11 AM, hashim muqtadir wrote: > Hello, > I recently updated to Racket 6.10

Re: [racket-users] 2htdp place world frame on screen

2017-08-25 Thread Laurent
It's about non-teaching, which I suspect will not be in my favour :) On Fri, Aug 25, 2017 at 1:31 PM, Matthias Felleisen <matth...@ccs.neu.edu> wrote: > > On Aug 25, 2017, at 7:43 AM, Laurent <laurent.ors...@gmail.com> wrote: > > Hi all, > > 2htdp is really neat

[racket-users] 2htdp place world frame on screen

2017-08-25 Thread Laurent
/htdp-lib/2htdp/universe.rkt#L139 though I'm not sure what the format for a pair of numbers would be, or if it would be better in on-draw instead (or if parameters wouldn't be better for this, but 2htdp doesn't seem to use many parameters). Any advice? Thanks! Laurent -- You received this message

Re: [racket-users] 2htdp place world frame on screen

2017-08-25 Thread Laurent
On Fri, Aug 25, 2017 at 2:44 PM, Matthias Felleisen wrote: > > :-) > > That’s not what I meant. I think that I need to figure out > how to produce two version of ‘universe’ for the non-teaching > world w/o completely forking the repo: > > — a functional one > — an

Re: [racket-users] 2htdp place world frame on screen

2017-08-25 Thread Laurent
Great, thanks, I'll take a look this weekend. On Fri, Aug 25, 2017 at 6:01 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote: > On Fri, Aug 25, 2017 at 11:46 AM, Laurent <laurent.ors...@gmail.com> > wrote: > > Jay: Oh that's right, I'd forgotten about Lux! Thanks for the

Re: [racket-users] Re: Library function naming

2017-08-29 Thread Laurent
The style guide Jack mentions is not really about the /library's/ name, but rather about the data type of the main (usually the first) argument, as saide. For example you could have a library called `my-wonderful-lib' that experts `vector-splendify', which takes a vector as its first argument. On

Re: [racket-users] Re: Library function naming

2017-08-29 Thread Laurent
On Tue, Aug 29, 2017 at 11:12 AM, Neil Van Dyke wrote: > > (Someday, I will have time to release a package that changes how > `define-struct`/`struct` identifiers are generated, to use `.` or `:`. To > at least have the appearance of being more idiomatic, to hint at the >

Re: [racket-users] namespace-anchor->namespace and eval

2017-10-05 Thread Laurent
lift-expression` (as used by `new`) and `expand` (as used > by errortrace, which is used by DrRacket). > > At Sun, 1 Oct 2017 16:05:16 +0100, Laurent wrote: > > Hi, > > > > Does anyone know a good explanation as to why the following code works > > depending on whet

[racket-users] Retrieving some data from a module without evaluating it

2017-12-16 Thread Laurent
layed with 'dynamic-require' and submodules with some limited success but couldn't achieve the goal above. Any idea? (Also, I have several files like 'my-file.rkt' that the user can choose from.) Thanks, Laurent -- You received this message because you are subscribed to the Google Groups "Rac

Re: [racket-users] Retrieving some data from a module without evaluating it

2017-12-18 Thread Laurent
vate/submodule.rkt > > /Applications/Racket v6.11/collects/racket/private/submodule.rkt > > > Stephen > > > On Sun, Dec 17, 2017 at 10:36 AM, Laurent <laurent.ors...@gmail.com> > wrote: > >> Also, I can't find where module+ is defined. Anyone has a pointer? >> >

Re: [racket-users] Retrieving some data from a module without evaluating it

2017-12-17 Thread Laurent
Excellent, thanks a lot! On Sat, Dec 16, 2017 at 8:44 PM, Matthew Flatt wrote: > [...] > (set! submodule-content >(cons (syntax-local-introduce > #`(begin > (provide proc) > (define proc (list

Re: [racket-users] Retrieving some data from a module without evaluating it

2017-12-17 Thread Laurent
Also, I can't find where module+ is defined. Anyone has a pointer? On Sun, Dec 17, 2017 at 9:34 AM, Laurent <laurent.ors...@gmail.com> wrote: > Excellent, thanks a lot! > > On Sat, Dec 16, 2017 at 8:44 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > >> [...] >

Re: [racket-users] Module dependencies

2018-05-28 Thread Laurent
You could also have a third file, test-a-and-b.rkt, that requires both a.rkt and b.rkt and includes the test that depend on both files. On Mon, May 28, 2018 at 10:08 AM Claes Wallin (韋嘉誠) wrote: > (require) binds at compile time and creates a cycle, but by using >

Re: [racket-users] Re: Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-06 Thread Laurent
On Fri, Jan 5, 2018 at 5:42 PM, Hendrik Boom wrote: > Long ago in the 60's, on an old PDP-11 running an early Unix, I > implemented a Live using quad-trees for storage after I noticed by > drawing on a lengthy printout that at each level of the quadtree, only > about half

Re: [racket-users] Read-only "editor" text with min-width of its content

2018-01-11 Thread Laurent
Maybe you can use snips% inside a single editor%? Snips can be text or pictures or other things. On Wed, Jan 10, 2018 at 9:58 PM, Christopher Lemmer Webber < cweb...@dustycloud.org> wrote: > Christopher Lemmer Webber writes: > > > Matthew Flatt writes: > > > >> At Wed, 10 Jan 2018 10:29:28

Re: [racket-users] Read-only "editor" text with min-width of its content

2018-01-10 Thread Laurent
On Wed, Jan 10, 2018 at 6:20 AM, Christopher Lemmer Webber < cweb...@dustycloud.org> wrote: > So now I've got some text that renders okay, it line wraps, etc etc. > The problem is, I want to add a panel with a bunch of these, and I want > each of these "rich text" things to be exactly the height

Re: [racket-users] Adding interactive overlays to racket plots

2018-02-03 Thread Laurent
This is awesome! Thanks so much for doing this, I'm sure it's going to be very handy. On Sat, Feb 3, 2018 at 7:08 AM, Alex Harsanyi wrote: > > Hi Matthias, > > I updated the plot package to cover all the cases I had in mind for plot > overlays and also updated my

Re: [racket-users] (number->string -nan.0) == "+nan.0" ?

2018-02-06 Thread Laurent
Not sure there should be a -nan.0 to start with. NaN is an absorbing value that shouldn't have a sign. I suspect it's because the + is a convenience to trigger the number reader, and then an appeal to symmetry and analogy to +inf.0 led to -nan.0? On Mon, Feb 5, 2018 at 11:46 PM, Ben Greenman

Re: [racket-users] Cannot create an account on PLaneT

2018-09-08 Thread Laurent
It's because PLaneT is deprecated. The new package repository is located at: http://pkgs.racket-lang.org/ HTH, Laurent On Sat, Sep 8, 2018 at 4:26 PM Sage Gerard wrote: > Hey all, > > I cannot seem to create an account on PLaneT. No confirmation emails (even > in Spam). Tried

Re: [racket-users] Simple loop control

2018-04-01 Thread Laurent
Take at look at Racket's `for' loops. They are very flexible. The reference: http://docs.racket-lang.org/reference/for.html?q=for#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._for%29%29 The guide with examples: http://docs.racket-lang.org/guide/for.html On Sun, Apr 1, 2018 at 10:14 AM,

Re: [racket-users] Re: Simple loop control

2018-04-02 Thread Laurent
:33 AM, 若草春男 <whbug...@gmail.com> wrote: > Thank you, Laurent. > > I mind the performance of in-range, but it seems to be no problem. > > #lang racket > > (time (for ([i (in-range 1)]) > (for ([j (in-range 1000)]) > (void > >

Re: [racket-users] bookmarks?

2018-03-31 Thread Laurent
The quickscript-extra package (a DrRacket plugin) provides such a facility (the 'bookmarks' script), among many other things: https://pkgs.racket-lang.org/package/quickscript-extra It's not perfect but should still be helpful. In case it doesn't suit you needs, quickscript should allow you to

Re: [racket-users] colon keywords

2018-09-24 Thread Laurent
On Sun, Sep 23, 2018 at 6:41 PM Neil Van Dyke wrote: > Laurent wrote on 9/19/18 8:29 AM: > > I don't mind `#:`, but I'd prefer to write `[#:foo 5]` rather than > > `#:foo [foo 5]`, that is, I don't like the repetition of the name (I > > first came to Racket precisely to

Re: FW: [racket-users] colon keywords

2018-09-24 Thread Laurent
Same here, I've grown happy with the #:keyword notation because it is a reader thing, not a symbol. The other nice option would be like Python and others to make procedure implicitly take dictionaries to allow choosing at each call site between position-based and name-based argument passing for

Re: [racket-users] colon keywords

2018-09-19 Thread Laurent
I don't mind `#:`, but I'd prefer to write `[#:foo 5]` rather than `#:foo [foo 5]`, that is, I don't like the repetition of the name (I first came to Racket precisely to avoid repeating code). When I expressed that a few years ago, I was told it would be unlikely to change in the future though,

Re: [racket-users] Are the terms "function" and "procedure" synonymous in Racket?

2019-01-14 Thread Laurent
I'm not entirely sure where I got that from, but to me a procedure is a ("impure") function with possible side effects (printing, mutating a global variable, sending emails, etc.). By contrast, in any given context, a function is (again, to me) synonymous with "pure function"(*) and can be called

Re: [racket-users] Re: Why enter/run a submodule in the REPL?

2018-12-13 Thread Laurent
Personally, I use a 'drracket' submodule so that this submodule isn't executed from the command line, but gets executed from within DrRacket. This is particularly useful to avoid outputting graphical objects (such as plots) that can't be displayed on the command line. After pressing Run in

Re: [racket-users] Destructuring a list in (for ...)

2018-11-23 Thread Laurent
Maybe you could have something like (in-match ...) ? On Fri, Nov 23, 2018 at 4:54 PM Alexis King wrote: > The trouble, sadly, is that this grammar is ambiguous. In > > (for ([(x y) s]) > ) > > should (x y) be parsed as a single match pattern or as two binders for a > two-valued

Re: [racket-users] Cannot use case+else inside match+else

2019-02-27 Thread Laurent
Wait, that means that in an interactive session, if you ever happen to redefine `else', you can't use `case' anymore? On Tue, Feb 26, 2019 at 5:03 AM Ben Greenman wrote: > Here's a suggestion for the docs: > > https://github.com/racket/racket/pull/2505 > > -- > You received this message because

Re: [racket-users] tree-layout, many many thanks

2019-02-27 Thread Laurent
A long time ago I had a need for this too, so I just made one for me: https://github.com/Metaxal/bazaar/blob/master/slideshow/slideshow-tree.rkt The behaviour is a bit different from pict/tree-layout. There's an example usage in the drracket submodule at the end of the file that produces: [image:

Re: [racket-users] Cannot use case+else inside match+else

2019-02-27 Thread Laurent
Good point. I wasn't sure that would work---it does. On Wed, Feb 27, 2019 at 1:28 PM Jens Axel Søgaard wrote: > I suppose you could (re)require it again. > > ons. 27. feb. 2019 kl. 14.19 skrev Laurent : > >> Wait, that means that in an interactive session, if you ever hap

Re: [racket-users] Pretty display of tabular data?

2019-03-13 Thread Laurent
Not sure how much this would help you, but there's a `text-table`package. It's fairly simple though. Docs: https://docs.racket-lang.org/text-table/index.html On Wed, Mar 13, 2019 at 6:19 PM Matt Jadud wrote: > Hi all, > > I have a tabular data type that I'd like (I think) to be able to render

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Laurent
This is a fantastic idea, Alex. (While I'm at it, thanks for all your other projects related to the GUI, they are really cool.) I'm *very* much in favour of all your points, (1) to (4). I've had uses of different colors scheme for academic papers, and the default palette doesn't work well for

  1   2   >