Re: [racket-users] Racket poster
On Monday, September 21, 2015 at 1:52:28 AM UTC+3, Neil Van Dyke wrote: > Matthias Felleisen wrote on 09/20/2015 05:46 PM: > > Can we please stay away from politics and leaning on politics? > > I am sure everyone has different connotations with these kinds > > of symbols. > > More seriously, I do like the PLT/Racket logos, and I like this poster > from Finland. > > Regarding the poster, I previously assumed that the Shepard Fairey Obama > poster stylization has long since been genericized in most people's > minds. However, non-US people, *when they want to appeal to broad US > audiences*, should be aware that large percentages of people in the US > react very negatively to references to certain politicians and political > issues. Thank you Matthias for raising this concern and Neil for your insightful reply. As Neil suspected, political motivations or connotations never occurred to me as I'm a Finn and I see the Obama poster more like a pop-art than political statement (a google image search of "obama poster" brings out a lot of influenced works, and if some have political motivations, I'm completely oblivious to them). Therefore, it seems, that the poster might have use for non-US audiences, but perhaps it is a good idea not to put it in the Racket Github wiki. BR, Jussi -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
I just tried the 32-bit Utah snapshot and 32-bit C app -- build OK, but the app crashed right on scheme_main_setup with zero pointer access. It did not even enter my "run" function. My initial guess is that it's related to thread-local storage and missing instructions in "Inside". I'll look into it. I see that the instructions to use scheme_register_tls_space() for 32-bit Windows are there after all (but easy to overlook). Are you doing that already? Oh, I overlooked that setting indeed! Now it works at least with the Utah 32-bit build, thanks Matthew. Regards, Dmitry -- 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.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Re: Racket poster
>> http://www.eecs.northwestern.edu/~robby/logos/ On Sun, 20 Sep 2015 18:52:25 -0400, Neil Van Dyke wrote: > >I have a similar aversion to the Grateful Dead iconography: connotations >of substance abuse, intellectual impairment, countercultural friction, >societal detachment... :) What about Skeletor? Clearly it was the mark of the lambda that enabled him to become Master of the Universe For those who are lost: https://en.wikipedia.org/wiki/Skeletor George -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
At Sun, 20 Sep 2015 16:08:48 -0600, Matthew Flatt wrote: > > I just tried the 32-bit Utah snapshot and 32-bit C app -- build OK, > > but the app crashed right on scheme_main_setup with zero pointer > > access. It did not even enter my "run" function. > > My initial guess is that it's related to thread-local storage and > missing instructions in "Inside". I'll look into it. I see that the instructions to use scheme_register_tls_space() for 32-bit Windows are there after all (but easy to overlook). Are you doing that already? -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
Well, the Grateful are water under the bridge. But this poster is up for discussion. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
Robby Findler wrote on 09/20/2015 07:21 PM: I have a similar aversion to the Grateful Dead iconography: connotations of substance abuse, intellectual impairment, countercultural friction, societal detachment... :) Good thing we look like Pepsi now, eh? Much improved. Logo is looking good (and managed to avoid the cost of the Grateful Dead munchies). http://www.utne.com/arts/new-pepsi-logo-is-a-joke.aspx -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
On Sun, Sep 20, 2015 at 5:52 PM, Neil Van Dyke wrote: > Matthias Felleisen wrote on 09/20/2015 05:46 PM: >> >> Can we please stay away from politics and leaning on politics? >> I am sure everyone has different connotations with these kinds >> of symbols. >> > > I have a similar aversion to the Grateful Dead iconography: connotations of > substance abuse, intellectual impairment, countercultural friction, societal > detachment... :) Good thing we look like Pepsi now, eh? Much improved. Robby -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
Matthias Felleisen wrote on 09/20/2015 05:46 PM: Can we please stay away from politics and leaning on politics? I am sure everyone has different connotations with these kinds of symbols. I have a similar aversion to the Grateful Dead iconography: connotations of substance abuse, intellectual impairment, countercultural friction, societal detachment... :) More seriously, I do like the PLT/Racket logos, and I like this poster from Finland. Regarding the poster, I previously assumed that the Shepard Fairey Obama poster stylization has long since been genericized in most people's minds. However, non-US people, *when they want to appeal to broad US audiences*, should be aware that large percentages of people in the US react very negatively to references to certain politicians and political issues. So, a poster that is universally great for promotion within Finland can be controversial and problematic if used for promotion within the US. (I only mention this because I'm not sure that this particular kind of US sensitivity is familiar to all cultures; I don't mean to be pedantic.) On the US side, regarding someone featuring a collection that could be called "PLT/Racket in art", rather than engaging in targeted promotion, I think this is a situation in which diversity is good. A museum shouldn't tiptoe like a marketer does. Neil V. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] crash in nightly build
To try without the recent GC changes, you could build the "rewind-gc" branch of https://github.com/mflatt/racket At Mon, 21 Sep 2015 00:08:43 +0300, Dmitry Pavlov wrote: > Hello, > > I was just able to discover that my program crashes on the > nightly build 6.2.900.17, on Linux. The program has a heavy portion > of math, double and extended unsafe ops, and accesses multiple > low-level libraries. It has crashed after 4 hours of running, > while doing just the same that it had been doing for those > 4 hours. > > SIGSEGV MAPERR si_code 1 fault on addr 0x7f9f0d16a008 > > The previous version of Racket that I used for a long time > (and saw no crashes with it) is 6.2.0.3. > > Before I go into deeper analysis by trial and error, maybe > the developers (I guess it would be Matthew) could give any > insight on what has been done since 6.2.0.3 that could result > in the crash? How to stress the VM to wait less till the crash > occurs? > > > Best regards, > > Dmitry > > -- > 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.com. > For more options, visit https://groups.google.com/d/optout. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
At Mon, 21 Sep 2015 01:04:15 +0300, Dmitry Pavlov wrote: > Matthew, > > On 09/21/2015 12:38 AM, Matthew Flatt wrote: > > At Sun, 20 Sep 2015 23:53:42 +0300, Dmitry Pavlov wrote: > >> On Windows, though, I ran into a problem when linking my app > >> with pre-built libracket3m_9yy8mp.lib : > >> > >> error LNK2001: unresolved external symbol __imp_scheme_get_mz_setjmp > >> > >> That is the only unresolved symbol. All the others were gone after > >> I added libracket3m_9yy8mp.lib to the project. > >> Do you have an idea how I can fix that one? > > > > I think this is a VC vs. MinGW problem. I'll have to think about this > > problem more, because we want those builds to be the same. > > You probably figured that out, but to be sure: I got the error on > the Utah snapshot, and I am building the app with Visual Studio. > The version of VS is 2013. That makes sense. I noticed that it was actually a VS 2008/2010 vs. everything else issue. It should be easy to fix. > Also, I want to add that it was a 64-bit Racket and 64-bit C app. > I just tried the 32-bit Utah snapshot and 32-bit C app -- build OK, > but the app crashed right on scheme_main_setup with zero pointer > access. It did not even enter my "run" function. My initial guess is that it's related to thread-local storage and missing instructions in "Inside". I'll look into it. > > Meanwhile, if you use a Windows snapshot from Northwestern, does it > > solve the problem? > > > >http://plt.eecs.northwestern.edu/snapshots/ > > Err, just installed 32-bit Northwestern snapshot and I see no > libracket3m*.lib, only .dll without .exp, so not sure how to link that. Ok, another issue to resolve. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
Matthew, On 09/21/2015 12:38 AM, Matthew Flatt wrote: At Sun, 20 Sep 2015 23:53:42 +0300, Dmitry Pavlov wrote: On Windows, though, I ran into a problem when linking my app with pre-built libracket3m_9yy8mp.lib : error LNK2001: unresolved external symbol __imp_scheme_get_mz_setjmp That is the only unresolved symbol. All the others were gone after I added libracket3m_9yy8mp.lib to the project. Do you have an idea how I can fix that one? I think this is a VC vs. MinGW problem. I'll have to think about this problem more, because we want those builds to be the same. You probably figured that out, but to be sure: I got the error on the Utah snapshot, and I am building the app with Visual Studio. The version of VS is 2013. Also, I want to add that it was a 64-bit Racket and 64-bit C app. I just tried the 32-bit Utah snapshot and 32-bit C app -- build OK, but the app crashed right on scheme_main_setup with zero pointer access. It did not even enter my "run" function. Meanwhile, if you use a Windows snapshot from Northwestern, does it solve the problem? http://plt.eecs.northwestern.edu/snapshots/ Err, just installed 32-bit Northwestern snapshot and I see no libracket3m*.lib, only .dll without .exp, so not sure how to link that. Best regards, Dmitry -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
Can we please stay away from politics and leaning on politics? I am sure everyone has different connotations with these kinds of symbols. Thanks — Matthias > On Sep 20, 2015, at 5:45 PM, Vincent St-Amour > wrote: > > It would also be a good fit for Robby's logo gallery: > > http://www.eecs.northwestern.edu/~robby/logos/ > > Vincent > > > On Sun, 20 Sep 2015 07:31:43 -0500, > Sam Tobin-Hochstadt wrote: >> >> Very cool. I think the github wiki for the racket repository is the best >> place to keep it. >> >> Sam >> >> On Sun, Sep 20, 2015, 8:22 AM Jussi Rasku wrote: >> >>I'm organizing a Racket training event, that will be hosted by the >>local game development club here at Seinäjoki, Finland. For >>marketing the event I designed a poster: >> >> https://dl.dropboxusercontent.com/u/51709232/sepeli/poster_racket_tight.png >> >> >>As they say, imitation is the sincerest form of flattery. The colors >>are from the iconic Obama hope -poster. The color scheme and the >>possibility to use line shading as the "racket" net was just too >>much to resist :) >> >>Do you have a place for such material (logos etc.) where I could >>upload the svg-file for others to use? >> >>-- >>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.com. >>For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> 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.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > 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.com. > For more options, visit https://groups.google.com/d/optout. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
It would also be a good fit for Robby's logo gallery: http://www.eecs.northwestern.edu/~robby/logos/ Vincent On Sun, 20 Sep 2015 07:31:43 -0500, Sam Tobin-Hochstadt wrote: > > Very cool. I think the github wiki for the racket repository is the best > place to keep it. > > Sam > > On Sun, Sep 20, 2015, 8:22 AM Jussi Rasku wrote: > > I'm organizing a Racket training event, that will be hosted by the > local game development club here at Seinäjoki, Finland. For > marketing the event I designed a poster: > > https://dl.dropboxusercontent.com/u/51709232/sepeli/poster_racket_tight.png > > > As they say, imitation is the sincerest form of flattery. The colors > are from the iconic Obama hope -poster. The color scheme and the > possibility to use line shading as the "racket" net was just too > much to resist :) > > Do you have a place for such material (logos etc.) where I could > upload the svg-file for others to use? > > -- > 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.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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.com. > For more options, visit https://groups.google.com/d/optout. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Why not ship pre-built Racket libraries in the distribution?
Yes, it seems that "libracket3m.a" is stripped too much. (The intent was to use `strip -S`.) I'll fix that. At Sun, 20 Sep 2015 23:57:20 +0300, Dmitry Pavlov wrote: > Matthew, > > > I see the libracket3m.a file in the nightly distribution of Racket. > It seems, however, that the file is of no much use: it has the size of > 3.4M (the one that I built myself is 23M), it exports no symbols > (none that the nm utility can see), and it expectedly fails linking. > > Regards, > > Dmitry > > > On 09/15/2015 11:01 PM, Dmitry Pavlov wrote: > > Matthew, > > > > Sure I meant the full distribution. > > Thanks, I hope that the consensus will be reached :) > > > > Best regards, > > > > Dmitry > > > > > > On 09/15/2015 08:06 PM, Matthew Flatt wrote: > >> We left out "libracket3m.a" just to make the distribution smaller, > >> since it wasn't clear that anyone found it useful. The minimal Racket > >> distribution for x86_64 is about 30MB unpacked, and "libracket3m.a" is > >> 5MB by itself. So, the library would be a significant addition for the > >> minimal distribution, but I don't think it would be a problem. It's a > >> negligible increase for the full distribution. > >> > >> I think that making `--enable-libs` the default mode for `configure` > >> will cause "libracket3m.a" to be included in builds, so I can do that > >> if there's a consensus to include it. > >> > >> On Windows, the normal build uses DLLs; a ".lib" file that goes with > >> the DLLs is small, so that's why it's included. The situation is > >> similar on Mac OS X. Using dynamic libraries causes various hassles, > >> but the alternatives are not better on those platforms. On other Unix > >> variants, we avoid distributing a shared-library variant of > >> "libracket3m.a", essentially because `execve()` works better for our > >> purposes. > >> > >> At Tue, 15 Sep 2015 14:29:51 +0300, Dmitry Pavlov wrote: > >>> Hello, > >>> > >>> I just started to experiment with making my Racket library embeddable to > >>> C programs [1]. The first thing I needed to do was to download > >>> the Racket source code and compile the libracket3m.a. I wonder why the > >>> maintainers do not put this file into the distribution? It seems that > >>> as soon as I have the libracket3m.a, I no longer need Racket's sources, > >>> am I correct? > >>> > >>> Moreover, it seems that this library (with some version-related > >>> suffix in the name) is available in Windows distribution of Racket. > >>> I use Linux, what can not I enjoy a pre-built library too? > >>> > >>> Best regards, > >>> > >>> Dmitry > >>> > >>> > >>> [1] http://docs.racket-lang.org/inside/embedding.html > >>> > >>> -- > >>> 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.com. > >>> For more options, visit https://groups.google.com/d/optout. > >> > > -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
At Sun, 20 Sep 2015 23:53:42 +0300, Dmitry Pavlov wrote: > On Windows, though, I ran into a problem when linking my app > with pre-built libracket3m_9yy8mp.lib : > > error LNK2001: unresolved external symbol __imp_scheme_get_mz_setjmp > > That is the only unresolved symbol. All the others were gone after > I added libracket3m_9yy8mp.lib to the project. > Do you have an idea how I can fix that one? I think this is a VC vs. MinGW problem. I'll have to think about this problem more, because we want those builds to be the same. Meanwhile, if you use a Windows snapshot from Northwestern, does it solve the problem? http://plt.eecs.northwestern.edu/snapshots/ The snapshots from Northwestern are built with MinGW. -- 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.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] crash in nightly build
Hello, I was just able to discover that my program crashes on the nightly build 6.2.900.17, on Linux. The program has a heavy portion of math, double and extended unsafe ops, and accesses multiple low-level libraries. It has crashed after 4 hours of running, while doing just the same that it had been doing for those 4 hours. SIGSEGV MAPERR si_code 1 fault on addr 0x7f9f0d16a008 The previous version of Racket that I used for a long time (and saw no crashes with it) is 6.2.0.3. Before I go into deeper analysis by trial and error, maybe the developers (I guess it would be Matthew) could give any insight on what has been done since 6.2.0.3 that could result in the crash? How to stress the VM to wait less till the crash occurs? Best regards, Dmitry -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Why not ship pre-built Racket libraries in the distribution?
Matthew, I see the libracket3m.a file in the nightly distribution of Racket. It seems, however, that the file is of no much use: it has the size of 3.4M (the one that I built myself is 23M), it exports no symbols (none that the nm utility can see), and it expectedly fails linking. Regards, Dmitry On 09/15/2015 11:01 PM, Dmitry Pavlov wrote: Matthew, Sure I meant the full distribution. Thanks, I hope that the consensus will be reached :) Best regards, Dmitry On 09/15/2015 08:06 PM, Matthew Flatt wrote: We left out "libracket3m.a" just to make the distribution smaller, since it wasn't clear that anyone found it useful. The minimal Racket distribution for x86_64 is about 30MB unpacked, and "libracket3m.a" is 5MB by itself. So, the library would be a significant addition for the minimal distribution, but I don't think it would be a problem. It's a negligible increase for the full distribution. I think that making `--enable-libs` the default mode for `configure` will cause "libracket3m.a" to be included in builds, so I can do that if there's a consensus to include it. On Windows, the normal build uses DLLs; a ".lib" file that goes with the DLLs is small, so that's why it's included. The situation is similar on Mac OS X. Using dynamic libraries causes various hassles, but the alternatives are not better on those platforms. On other Unix variants, we avoid distributing a shared-library variant of "libracket3m.a", essentially because `execve()` works better for our purposes. At Tue, 15 Sep 2015 14:29:51 +0300, Dmitry Pavlov wrote: Hello, I just started to experiment with making my Racket library embeddable to C programs [1]. The first thing I needed to do was to download the Racket source code and compile the libracket3m.a. I wonder why the maintainers do not put this file into the distribution? It seems that as soon as I have the libracket3m.a, I no longer need Racket's sources, am I correct? Moreover, it seems that this library (with some version-related suffix in the name) is available in Windows distribution of Racket. I use Linux, what can not I enjoy a pre-built library too? Best regards, Dmitry [1] http://docs.racket-lang.org/inside/embedding.html -- 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.com. For more options, visit https://groups.google.com/d/optout. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] embedded Racket + runtime paths = ?
Matthew, I've added a `--runtime ` argument to `raco ctool --cmods`, which gathers runtime files into and makes the embedded modules refer to them in (which is expected to be relative to the executable, but see also the `--runtime-access` option). The embedding executable must call scheme_set_exec_cmd() to set the result of `(find-system-path 'exec-file)` so that runtime files can be found in relative to the executable. Great! I just tested it on Linux with nightly build 6dfc20d. On Windows, though, I ran into a problem when linking my app with pre-built libracket3m_9yy8mp.lib : error LNK2001: unresolved external symbol __imp_scheme_get_mz_setjmp That is the only unresolved symbol. All the others were gone after I added libracket3m_9yy8mp.lib to the project. Do you have an idea how I can fix that one? Best regards, Dmitry -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] module->namespace doesn't work for module+ ?
To wrap this up: - The racket-run Emacs command now supports submodules. It runs whatever (sub)module point is within. - The ,run REPL command now supports "file.rkt" or ("file.rkt" submod ...). - If Racket is new enough (or, not module+ and errortrace), you can see/use the definitions within that submodule, in the REPL. Otherwise, a warning is printed (once) in the REPL, similar to my previous post. - The racket-test command is now just racket-run (with the convenience that you don't need to move point within a `test` submodule). This does run the tests even in the problem scenario [dynamic-require evaluates the submodule fine, it's only module->namespace that has a problem with module+ and errortrace in older Racket]. p.s. The word "now" is jumping the gun slightly. All this is on a topic branch, not yet merged to master. I've been dogfooding it a few days. So far so good, might merge today or tomorrow. -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] memq vs member [was: typed/racket + rackunit = trouble]
I've done a few experiments with a easy version of , that never has a third argument. (It's wrong, but it's useful to estimate how much better the final version could be.) https://github.com/gus-massa/racket/commit/cd35e0dc3db474f8dc31fea170d1bc2900f2e338 I simplified the use of the macros, but I'm not sure that it's necessary. The main improvement comes from using begin-encourage-inline, so can be inlined and then the optimizer can see the (equal? x 'symbol) and transform it to (eq? x 'symbol). A typical run of: #lang racket (require racket/private/member2) (define l (make-list 5000 'x)) ; normal version (time (for ((i 1)) (memq 'y l))) (time (for ((i 1)) (member 'y l))) ; inlinable version (time (for ((i 1)) (memq2 'y l))) (time (for ((i 1)) (member2 'y l))) ;=> cpu time: 764 real time: 873 gc time: 0 cpu time: 5148 real time: 5368 gc time: 0 cpu time: 905 real time: 1041 gc time: 0 cpu time: 2293 real time: 2689 gc time: 0 Analyzing the decompiled version, the for loop is partially "unrolled" and one half of the times the function is inlined and the other half of the times it is not inlined. (The pattern is YYNNYYNNYYNN...) So half of them are fast and half of them are slow, and the time is close to the average. This is caused because the internal inlining fuel is not enough to inline all the instances of member. The same fuel is used for something similar to loop unrolling, so the pattern is strange. (I think that more fuel would change the pattern to YNNYNN...) One possible solution is to inline before unrolling the loop. I think that there are some tricks in the current Racket version that try to do this when the loop is big, but this is a small loop. But I'm not sure how this change would affect other code and how difficult this is. (Loops are difficult to optimize. Somewhat related: "loop optimizations in guile" http://wingolog.org/archives/2015/07/28/loop-optimizations-in-guile ) Gustavo -- 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.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Racket poster
Very cool. I think the github wiki for the racket repository is the best place to keep it. Sam On Sun, Sep 20, 2015, 8:22 AM Jussi Rasku wrote: > I'm organizing a Racket training event, that will be hosted by the local > game development club here at Seinäjoki, Finland. For marketing the event I > designed a poster: > https://dl.dropboxusercontent.com/u/51709232/sepeli/poster_racket_tight.png > > As they say, imitation is the sincerest form of flattery. The colors are > from the iconic Obama hope -poster. The color scheme and the possibility to > use line shading as the "racket" net was just too much to resist :) > > Do you have a place for such material (logos etc.) where I could upload > the svg-file for others to use? > > -- > 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.com. > For more options, visit https://groups.google.com/d/optout. > -- 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.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Racket poster
I'm organizing a Racket training event, that will be hosted by the local game development club here at Seinäjoki, Finland. For marketing the event I designed a poster: https://dl.dropboxusercontent.com/u/51709232/sepeli/poster_racket_tight.png As they say, imitation is the sincerest form of flattery. The colors are from the iconic Obama hope -poster. The color scheme and the possibility to use line shading as the "racket" net was just too much to resist :) Do you have a place for such material (logos etc.) where I could upload the svg-file for others to use? -- 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.com. For more options, visit https://groups.google.com/d/optout.