Re: [racket-users] Re: I Need Help Bringing Vulkan to Racket

2019-10-21 Thread Leif Andersen
gt; >> > > -- > 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. > To view this discussion on

Re: [racket-users] Can I use the macro stepper to debug an infinite expansion loop?

2019-07-29 Thread Leif Andersen
legroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/20190729175903.GA22568%40williamjbowman.com. > -- ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsu

Re: [racket-users] using #lang info copy-foreign-libs

2019-04-01 Thread Leif Andersen
'(spdegabrielle)) > > [1] 'copy-foreign-libs' in '6.3 Controlling raco setup with "info.rkt" > Files' > https://docs.racket-lang.org/raco/setup-info.html?q=copy-foreign-libs#%28idx._%28gentag._21._%28lib._scribblings%2Fraco%2Fraco..scrbl%29%29%29 > > > [2] https

Re: [racket-users] Racket Video

2018-12-04 Thread Leif Andersen
Glad you're interested in checking out Video. If you need a thing that's not yet in the standard library, please poke me and I'll put it in. Its usually pretty easy to add something at this point, and I tend to do it as people need it. on the list you just sent, Video already supports most of

Re: [racket-users] Re: Blockly-Like Interface in DrRacket

2018-04-27 Thread Leif Andersen
DrRacket with proper projectional editing capabilities. But yes, at the moment its only really doable by scraping and replacing raw text. ~Leif Andersen On Fri, Apr 27, 2018 at 3:03 PM, Stephen Foster <step...@thoughtstem.com> wrote: > Actually, I figured it out myself. For the curious: &

Re: [racket-users] Re: RacketCon 2018 Website

2018-04-25 Thread Leif Andersen
the space between letters the problem would go away, maybe. Thoughts? ~Leif Andersen On Sat, Apr 21, 2018 at 1:44 AM, Jay McCarthy <jay.mccar...@gmail.com> wrote: > On Sat, Apr 21, 2018 at 1:07 AM, Greg Hendershott > <greghendersh...@gmail.com> wrote: > > 0. Another consider

[racket-users] RacketCon 2018 Website

2018-04-20 Thread Leif Andersen
for blind users? ~Leif Andersen -- 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, v

Re: [racket-users] Blockly-Like Interface in DrRacket

2018-01-02 Thread Leif Andersen
://github.com/videolang/idmt [3]: https://lang.video [4]: https://github.com/videolang/video/blob/master/video/private/editor.rkt ~Leif Andersen On Monday, January 1, 2018 at 12:39:10 PM UTC-5, Stephen Foster wrote: > > Yes, exactly -- Like Snap! except I don't need the runtime, just the code >

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
int against it. :/ ~Leif Andersen On Wed, Nov 8, 2017 at 2:51 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > At Wed, 8 Nov 2017 10:55:13 -0800, Matthew Butterick wrote: >> >> > On Nov 8, 2017, at 9:17 AM, Matthew Flatt <mfl...@cs.utah.edu> wrote: >>

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
if you are running in DrRacket or command line racket. ~Leif Andersen On Wed, Nov 8, 2017 at 1:55 PM, Matthew Butterick <m...@mbtype.com> wrote: > > On Nov 8, 2017, at 9:17 AM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > > DrRacket tries not to interfere with programs

Re: [racket-users] (racketcon 2017) Is there a shuttle from the hotel?

2017-09-16 Thread Leif Andersen
Okay thanks. For future reference, that is actually a very long distance for many people in wheelchairs. Do you know if there are any hotels closer to the conference venue? ~Leif Andersen On Mon, Sep 11, 2017 at 8:53 PM, Vincent St-Amour <stamo...@eecs.northwestern.edu> wrote: > Go

Re: [racket-users] (racketcon 2017) Is there a shuttle from the hotel?

2017-09-11 Thread Leif Andersen
How short of a walk? I ask because there is about a 30% chance my partner (who is wheel chair bound) will be going. ~Leif Andersen On Mon, Sep 11, 2017 at 2:19 PM, Vincent St-Amour <stamo...@eecs.northwestern.edu> wrote: > Hi Dave, > > We're not planning a shuttle; the hotel

Re: [racket-users] GUI for ffmpeg and mrlib/terminal

2017-08-30 Thread Leif Andersen
(Although to be clear, slideshow-repl will show you how you can set up a repl rather than a terminal. But I suspect they will be similar in the gui-building respect.) ~Leif Andersen On Wed, Aug 30, 2017 at 2:00 PM, Leif Andersen <l...@leifandersen.net> wrote: >> Another thing

Re: [racket-users] GUI for ffmpeg and mrlib/terminal

2017-08-30 Thread Leif Andersen
o classes slide:text% and repl-text% (lines 58-368) should show you how to get started. The mrlib/terminal library is cool, but it hasn't been touched for 5 or so years. ~Leif Andersen On Wed, Aug 30, 2017 at 12:24 PM, William G Hatch <will...@hatch.uno> wrote: > On Wed, Aug 30, 2017 a

Re: [racket-users] GUI for ffmpeg and mrlib/terminal

2017-08-29 Thread Leif Andersen
for a chat some time. (Either in person or via teleconference.) Anyway, I hope you have a lovely day. ~Leif Andersen On Tue, Aug 29, 2017 at 3:57 PM, James <jbiomant...@gmail.com> wrote: > I have been working through The Racket Graphical Interface Toolkit > documentation to learn GUI

Re: [racket-users] Understanding compilation costs and creating persistent values

2017-07-20 Thread Leif Andersen
(inc) 1 > (inc) 2 > (inc) 3 ... Again, when you find yourself doing that, I strongly recommend stopping and rethinking your solution. Hope that helps. ~Leif Andersen On Thu, Jul 20, 2017 at 1:32 PM, David Storrs <david.sto...@gmail.com> wrote: > Given this code: > >

[racket-users] Package Catalog License

2017-07-16 Thread Leif Andersen
are implicitly granted? What is our policy in case a user posts copyrighted material. etc. [1] If we _do_ have a license or TOS users agree to, we should have a link to it on the front page, or on the sign up page (or both). ~Leif Andersen [1]: I know the answers to most of these questions

Re: [racket-users] RacketCon Code of Conduct

2017-06-20 Thread Leif Andersen
programming languages ~Leif Andersen On Tue, Jun 20, 2017 at 12:08 PM, Hendrik Boom <hend...@topoi.pooq.com> wrote: > On Mon, Jun 19, 2017 at 08:02:44PM -0400, Neil Van Dyke wrote: > > One, > > relatively light, example: many people assume that everyone at a > conferenc

Re: [racket-users] RacketCon Code of Conduct

2017-06-20 Thread Leif Andersen
organizers and let them decide what to do. (They are running the show after all.) I would be happy to do the technical work of submitting a PR to the website, but I will leave it to one of the organizers to decide if they want to merge it or not. Thank you again for your input. ~Leif Andersen On Tue

[racket-users] RacketCon Code of Conduct

2017-06-16 Thread Leif Andersen
://geekfeminism.org/about/code-of-conduct/ ~Leif Andersen -- 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 mo

Re: [racket-users] Wanted: Easier way to contribute docs

2017-06-13 Thread Leif Andersen
ithub do IMO. I'm not opposed to that, but I don't really have the cycles to figure out how to do it. ;) ~Leif Andersen On Tue, Jun 13, 2017 at 1:42 PM, Jack Firth <jackhfi...@gmail.com> wrote: >> It might also be a good idea to have the documentation generator put a >> standa

Re: [racket-users] Wanted: Easier way to contribute docs

2017-06-13 Thread Leif Andersen
t possible way to go about it. ~Leif Andersen On Tue, Jun 13, 2017 at 9:34 AM, David Storrs <david.sto...@gmail.com> wrote: > I've mentioned this on list before but wanted to bump it: > > It is too difficult to contribute to the Racket docs. There needs to be an >

[racket-users] Re: Running Racket on Windows 10 Creative Update

2017-05-26 Thread Leif Andersen
Woops, I sent the wrong URL, here is the correct one. http://prl.ccs.neu.edu/blog/2017/05/26/racket-6-9-and-windows-10-creative-update/ ~Leif Andersen On Fri, May 26, 2017 at 8:38 PM, Leif Andersen <l...@leifandersen.net> wrote: > Some users have been reporting that DrRacket crashes W

[racket-users] Running Racket on Windows 10 Creative Update

2017-05-26 Thread Leif Andersen
://prl.ccs.neu.edu/blog/2017/05/26/racket-4-9-and-windows-10-creative-update/ ~Leif Andersen [1]: https://github.com/racket/racket/issues/1671 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving e

Re: [racket-users] DrRacket Accessibility with Screen readers

2017-04-28 Thread Leif Andersen
Hello Erika. I have low vision and have had better luck using screen magnifiers with DrRacket than screen readers. With that being said, I honestly don't have much experience with JAWS. Although I take it that means you do want to use Windows screen readers with DrRacket, is this correct? ~Leif

Re: [racket-users] Racket/Dr. Racket on Android?

2017-04-20 Thread Leif Andersen
wrappers you can use, and then you can use the FFI to use those. Although I have no idea what the speed would be, probably slow though. ~Leif Andersen On Thu, Apr 20, 2017 at 1:35 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote: > I interpret the question as, "Can I download something

Re: [racket-users] Scribbling documentation for a module beginning with _

2017-04-13 Thread Leif Andersen
. ~Leif Andersen On Thu, Apr 13, 2017 at 8:44 PM, Philip McGrath <phi...@philipmcgrath.com> wrote: > I'm trying to write documentation for a module named _-exp, and I'm running > into a problem because (I think) of the way underscores are treated by > racketblock. > > Using @d

Re: [racket-users] Package layout in docs

2017-01-30 Thread Leif Andersen
packages which I like way more than the one in the core distribution.) ~Leif Andersen On Mon, Jan 30, 2017 at 5:02 PM, Dupéron Georges <jahvascriptman...@gmail.com> wrote: > Le lundi 30 janvier 2017 22:13:57 UTC+1, Matthew Butterick a écrit : >> Recently we added a Racket logo to

Re: [racket-users] Package layout in docs

2017-01-30 Thread Leif Andersen
URL, that might be enough to keep things clear. just some thoughts anyway. ~Leif Andersen On Sun, Jan 29, 2017 at 3:48 PM, Ethan Estrada <ethan.estr...@gmail.com> wrote: > Curse my sausage fingers! That last send was unintentional. I've deleted > it from the online Google

Re: [racket-users] Stickers!

2017-01-27 Thread Leif Andersen
yaa.Although thanks to Matthew Butterick we have a logo that doesn't look quite so much like the pepsi logo any more. ^.^ (Also since pepsi is in a completely different domain I think that would make things more tricky too...) Also, ya, I think you're right Neil. ~Leif Andersen On Fri, Jan

Re: [racket-users] Stickers!

2017-01-27 Thread Leif Andersen
Do we actually have a trademark on the Racket logo? ~Leif Andersen On Fri, Jan 27, 2017 at 2:44 PM, Ben Greenman <benjaminlgreen...@gmail.com> wrote: > In my unprofessional opinion: > - don't modify the logo (change colors, stretch, add unrelated text) > - don't use the lo

Re: [racket-users] Mann-Whitney test?

2017-01-23 Thread Leif Andersen
R process using something like system* or process, and use pipes to send data back and forth directly. Yes, all of the data would need to be serialized into streams, but you would do an analogous process going from R to C to Racket. ~Leif Andersen On Sun, Jan 22, 2017 at 12:19 AM, James <jbiom

[racket-users] Bugs in the Racket Bytecode Versifier (as of 6.7)

2017-01-18 Thread Leif Andersen
ation. Has anyone else seen something like this recently? (If not I'll update the list once I get a sense as to what is going on.) ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop r

[racket-users] DrRacket's XML Boxes not hygenic

2017-01-05 Thread Leif Andersen
expander will complain about ambiguous scopes. But, in general, is there a way to say we would like quasiquote to be bound to the definition in the module defining XML boxes, rather than whatever one the module using an XML box happens to have? Thank you. ~Leif Andersen -- You received this message

[racket-users] Well typed classes do go wrong

2017-01-04 Thread Leif Andersen
this seems inconsistent. And at worst, this seems very unsound and can lead to unpredictable behavior (like the segfault above). Thoughts? Thank you ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Fix Ctr+F search on the new website?

2016-12-29 Thread Leif Andersen
doing on the Racket home page anyhow? ;) Tee hee. Well, in that specific instance I was helping someone find the mailing list page. But since I'm nearly blind I like to test our stuff for accessibility concerns. ~Leif Andersen On Thu, Dec 29, 2016 at 12:29 PM, Matthew Butterick <m...@mbtype.c

[racket-users] Fix Ctr+F search on the new website?

2016-12-28 Thread Leif Andersen
the highlighted text myself. Instead, would it be possible to have the image disappear when the relevant text is highlighted? Thoughts? Thanks. ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

[racket-users] Repaint an editor<%> (when embedded in an editor-snip%) when it is copied.

2016-12-19 Thread Leif Andersen
? If I copy a pasteboard% that has not been extended it works as expected, so it wouldn't surprise me if I forgot to override something, but I can't find any examples. Any help is appreciated, thanks. ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "R

Re: [racket-users] Re: What is the Racket equivalent to 'return' for early exit?

2016-11-21 Thread Leif Andersen
quot;I returned early"))]) (do-something)) But that is specifically because I prefer the workflow of catching errors, rather than always having to manually check the output of the function (I'm looking at you C...) Hope that helps. ~Leif Andersen On Mon, Nov 21, 2016 at 12:41 PM, Dav

[racket-users] (sixth RacketCon) videos up.

2016-11-11 Thread Leif Andersen
Hello all, The videos for RacketCon are finally up. You can watch them directly on Youtube here: https://www.youtube.com/playlist?list=PLXr4KViVC0qKSiKGO6Vz9EtxUfKPb1Ma0 You can also find slides at the RacketCon website: https://con.racket-lang.org ~Leif Andersen -- You received this message

Re: [racket-users] #lang video

2016-10-17 Thread Leif Andersen
to scribble/core, and I will add the nicer syntax+other tooling once this is a bit more stable. (And after the RacketCon videos are out. ;) ) You can find some examples of how to use it in: private/examples.rkt Hope that helps, and if you have any questions let me know. ~Leif Andersen On Mon, Oct 17

Re: [racket-users] Any information on whether/when Sixth RacketCon videos will be available?

2016-10-17 Thread Leif Andersen
. I kind of wanted to see if I could do it. I mean, its not trivial. We have scribble for documents, can we do the same thing for media that isn't just text? I think so. Currently the state of the art is just an XML file passed into mlt, I think we can do better than that. ~Leif Andersen On Mon

Re: [racket-users] Any information on whether/when Sixth RacketCon videos will be available?

2016-10-17 Thread Leif Andersen
Yes, the videos are coming along and will be out soon. It is taking a bit longer to get them out this time because I created #lang video, which is a Racket based DSL for video editing, which will hopefully make putting them out in future years faster. ~Leif Andersen On Mon, Oct 17, 2016 at 9

[racket-users] Scribble, Picts, and Serialize/Deserialize Oddities

2016-10-06 Thread Leif Andersen
, if I have DrRacket draw the pict it always shows up like the bottom rectangle. Both of these images make sense (depending on how we intemperate border), but I'm a bit confused why it would show up differently after being serialized and deserialized. Any ideas? Thank you. ~Leif Andersen -- You r

Re: [racket-users] Racket apps on Android

2016-09-30 Thread Leif Andersen
Oh nifty, thanks for doing this Jay. Out of curiosity, have you also connected any of this up to the Android APIs so we can use Android's ListViews and whatnot? Or is it all just OpenGL, lux, etc? ~Leif Andersen On Fri, Sep 30, 2016 at 3:38 PM, Jay McCarthy <jay.mccar...@gmail.com>

Re: [racket-users] [ANN] New package: live-free-or-die

2016-09-22 Thread Leif Andersen
> Also, with typed/racket/unsafe the optimizer *is* still run, so that's not any better *unless* you selectively choose what you want to be unsafe. Woops, you are absolutely correct, I meant: typed/racket/no-check ~Leif Andersen On Thu, Sep 22, 2016 at 10:27 PM, Alex Knauth <

Re: [racket-users] RacketCon: thanks!

2016-09-22 Thread Leif Andersen
> I wish every day could be RacketCon. Oh god...while that would be fun...the AV nightmare...we'd need a dedicated AV team to handle that... :/ ~Leif Andersen On Thu, Sep 22, 2016 at 9:08 PM, Matthew Butterick <m...@mbtype.com> wrote: > I agree. A terrific event. I wish eve

Re: [racket-users] [ANN] New package: live-free-or-die

2016-09-22 Thread Leif Andersen
Umm...if you're going to do this, why is it imperative, and not a require transformer? Also, I kind of agree with Matthias here...sigh. :'( Like, as far as I can tell, this is even worse then typed/racket/unsafe, as the optimizer is still run. O_o ~Leif Andersen On Thu, Sep 22, 2016 at 9:16

Re: [racket-users] Typed Racket is Unsound because of module->namespace

2016-07-18 Thread Leif Andersen
Oh? Then should we disable it by default in Racket Sandboxes? (Since this could be used on say, pasterack:) http://pasterack.org/pastes/16888 ~Leif Andersen On Mon, Jul 18, 2016 at 4:34 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > FWIW, `module->namespace` is privileged

[racket-users] Typed Racket is Unsound because of module->namespace

2016-07-18 Thread Leif Andersen
e. (Also came up with Alex and Milo) Does the top level make Typed Racket hopeless? ~Leif Andersen -- 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

Re: [racket-users] Constructor-style printing outside of DrRacket?

2016-05-30 Thread Leif Andersen
] [constructor-style-printing #t]) (write (print-convert data) '(1 . 2) When evaluated, it prints out: "(cons 1 2)" ~Leif Andersen On Mon, May 30, 2016 at 11:31 AM, Alex Knauth <alexan...@knauth.org> wrote: > Hello, > > DrRacket has a setting

Re: [racket-users] still trying to get coloured text in scribble

2016-05-24 Thread Leif Andersen
) content)) ``` (Code taken from: http://stackoverflow.com/questions/34888125/change-font-color-in-scribble-html-backend) >From there, you can just do: ``` @colorize[#:color "red"]{WARNING} ``` Hope that helps. ~Leif Andersen On Tue, May 24, 2016 at 6:53 PM, Hendrik Boom <hend..

Re: [racket-users] Unicode subscripts in code and scribble

2016-03-10 Thread Leif Andersen
ver the target is. ~Leif Andersen On Wed, Mar 9, 2016 at 8:22 PM, Robby Findler <ro...@eecs.northwestern.edu> wrote: > I think any extension is one that all would want (although I am not sure) > and so maybe pull requests is a good way to extend it? > > There is the issue o

Re: [racket-users] Unicode subscripts in code and scribble

2016-03-09 Thread Leif Andersen
> Scribble has a big table mapping unicode to latex commands. Maybe it needs another entry? Woah, does that actually work? I was under the impression there were unicode characters that could combine other unicode characters. (Although I'd love to be wrong about this. :) ) ~Leif Ander

Re: [racket-users] Unicode subscripts in code and scribble

2016-03-09 Thread Leif Andersen
Have you tried running the outputted tex file in xetex rather than pdflatex? ~Leif Andersen On Wed, Mar 9, 2016 at 5:03 PM, David Van Horn <dvanh...@cs.umd.edu> wrote: > I have some source code I'm trying to typeset in a racketblock that > uses subscript characters like ₀. This

Re: [racket-users] DrR: meta-q just worked!

2016-03-05 Thread Leif Andersen
a space between `(` and `some`. Perhaps it would make more sense to keep `(` attached with the word it is with? ~Leif Andersen On Sat, Mar 5, 2016 at 9:14 AM, Jens Axel Søgaard <jensa...@soegaard.net> wrote: > Is there a way to set the paragraph width to 80 (it seems to be set to 60)?

Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Leif Andersen
, but that's the general idea anyway.) `display` on the other hand, is used for writing out arbitrary text to `current-output-port`. For this reason, I tend to like `printf` and `format` more than `display`. ~Leif Andersen On Wed, Mar 2, 2016 at 1:15 PM, Stephen Chang <stch...@ccs.neu.edu>

Re: [racket-users] Appropriate open source license for a Racket based framework

2016-03-02 Thread Leif Andersen
the X11/MIT license (nanopass).) ~Leif Andersen On Wed, Mar 2, 2016 at 12:25 PM, Brian Adkins <lojicdot...@gmail.com> wrote: > On Wednesday, March 2, 2016 at 12:17:55 AM UTC-5, Neil Van Dyke wrote: >> Brian Adkins wrote on 03/01/2016 11:31 PM: >> > Are there any particul

[racket-users] `compile-omit-paths` seems to be ignored when creating a package.

2016-02-26 Thread Leif Andersen
ot;(define collection 'multi)" if that is important.) Thanks. ~Leif Andersen -- 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...@goog

Re: [racket-users] Licensing Details (Is there a Runtime Library Exception?)

2016-02-12 Thread Leif Andersen
e LGPL then? (At > least given racket-lang.org's current interpretation of the LGPL.) That and the .zo file that you get by running raco make. Again though, I am not a lawyer. So if you need actual professional legal advice, please get an actual one. ~Leif Andersen On Fri, Feb 12, 201

Re: [racket-users] Licensing Details (Is there a Runtime Library Exception?)

2016-02-11 Thread Leif Andersen
that helps. ~Leif Andersen On Fri, Feb 12, 2016 at 1:40 AM, George Bevan <g.u.be...@gmail.com> wrote: > Do programs written in Racket that use the libraries of racket-lang.org's > implementation need to be licensed under GPL terms? Much like it is the case > with e.g. the libraries i

[racket-users] Call for Google Summer of Code Project Suggestions

2016-02-11 Thread Leif Andersen
suggestions we have from previous years: https://github.com/racket/racket/wiki/SoC-Ideas-2012 Thank you. ~Leif Andersen -- 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, sen

Re: [racket-users] How to profile compilation and macro expansion?

2016-02-10 Thread Leif Andersen
kt (read-accept-reader #t) (parameterize ([current-namespace (make-base-namespace)]) (compile-file "./c.rkt")) Another thing is that you don't need to run the compiler here, so much as the macro expander. Hope this helps. ~Leif Andersen On Wed, Feb 10, 2016 at 4:58 PM, stef <muf...@g

Re: [racket-users] Top Level Variables or List of Shared Libraries

2016-01-28 Thread Leif Andersen
libraries, or require a module implemented in C who's module name differs from it's file name? Thank you. Thank you. ~Leif Andersen On Tue, Jan 19, 2016 at 3:20 PM, John Clements <cleme...@brinckerhoff.org> wrote: > >> On Jan 19, 2016, at 11:14 AM, Leif Andersen <l...@leifa

Re: [racket-users] Top Level Variables or List of Shared Libraries

2016-01-28 Thread Leif Andersen
That seems to work, thank you. ~Leif Andersen On Thu, Jan 28, 2016 at 4:05 PM, Ryan Culpepper <ry...@ccs.neu.edu> wrote: > The openssl library uses scheme_register_process_global to make sure it > initializes the openssl foreign library only once. See the end of > openssl/mzss

[racket-users] Top Level Variables or List of Shared Libraries

2016-01-19 Thread Leif Andersen
[3]: http://docs.racket-lang.org/dynext/Linking.html?q=dynext%2Flink#%28def._%28%28lib._dynext%2Flink..rkt%29._current-standard-link-libraries%29%29 [4]: http://pasterack.org/pastes/63016 ~Leif Andersen -- You received this message because you are subscribed to the Google Groups "Rack

Re: [racket-users] Re: More compile/eval Confusion

2015-12-26 Thread Leif Andersen
Yes, this worked for me, thank you. It also uncovered a bug in my tests where test namespaces where leaking out of the tests, thus affecting future tests. Thank you again. ~Leif Andersen On Sat, Dec 26, 2015 at 6:23 AM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > At Fri, 25 Dec 2015

[racket-users] More compile/eval Confusion

2015-12-25 Thread Leif Andersen
intuition as to what the problem is here? ~Leif Andersen -- 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 mo

[racket-users] Re: More compile/eval Confusion

2015-12-25 Thread Leif Andersen
still not sure what the cause of the other issue is though. ~Leif Andersen On Fri, Dec 25, 2015 at 11:18 AM, Leif Andersen <l...@leifandersen.net> wrote: > Hey, I have found another bit of confusion between eval and compile. > Again, I suspect it's related to using a top level be

Re: [racket-users] Re: More compile/eval Confusion

2015-12-25 Thread Leif Andersen
antiate a module in a given namespace, you can't redefine or otherwise mutate that module's immutable variables in the same namespace... That makes a lot of sense, thanks. ~Leif Andersen On Fri, Dec 25, 2015 at 4:37 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > I agree with Robby's expla

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-22 Thread Leif Andersen
emails every time you send out an email. If memory serves you use Mr Ed, right? I wonder if that might be a bug. ~Leif Andersen On Tue, Dec 22, 2015 at 6:54 AM, Robby Findler <ro...@eecs.northwestern.edu> wrote: > Oh right. Sorry for the confusion! > > Robby > > > On Tu

[racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
identifier at phase 2; also, no #%app syntax transformer is bound in: define Can someone give me the reason (or at least some intuition) as to why this works in the repl, but not at the top level? Thank you. ~Leif Andersen -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
Ah, okay, that makes sense. Thank you. I didn't realize begin was evaluating each expression as it went. Thank you. ~Leif Andersen On Mon, Dec 21, 2015 at 5:47 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > In the REPL, `begin` splices at the granularity of expansion and >

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
I do: > (expand #'(begin (define-syntax (foo stx) (displayln "hello") #'5) foo)) It displays 'hello' to the console. And expands to what I would expect it too. ~Leif Andersen On Mon, Dec 21, 2015 at 9:15 PM, Alex Knauth <alexan.

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
t compiles it. Which is why it fails to compile that code. But if you interleave it with evals, it will run the require code, which gives the phase level 2 code some meening. Does that make any sense, or was it too rambly. ~Leif Andersen On Mon, Dec 21, 2015 at 8:24 PM, Alex Knauth <alexan...@knau

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
Wait, now I'm even more confused. If expand does the splicing and compile time evals song and dance, why do we need a separate function for: expand-syntax-top-level-with-compile-time-evals ? ~Leif Andersen On Mon, Dec 21, 2015 at 9:48 PM, Robby Findler <ro...@eecs.northwestern.edu> wrot

[racket-users] Composing `splicing-let-syntax` with `prop:rename-transformer` and `module+` (or anything made with `syntax-local-lift-module-end-decloration`

2015-12-17 Thread Leif Andersen
(syntax-local-value #'x-top)]) (module+ test x)) When I run it out I get: "yellow" "yellow" What I would like to get is: "yellow" "blue" Is there any better way to do this, and still have x be an identifier that is bound to the correct str

[racket-users] Re: Composing `splicing-let-syntax` with `prop:rename-transformer` and `module+` (or anything made with `syntax-local-lift-module-end-decloration`

2015-12-17 Thread Leif Andersen
t-syntax ([x (syntax-local-value #'x-top)]) x) (set-stx! x-top blue) (splicing-let-syntax ([x (syntax-local-value #'x-top)]) x) ~Leif Andersen On Thu, Dec 17, 2015 at 3:08 PM, Leif Andersen <l...@leifandersen.net> wrote: > Hello, > > I am noticing that if I in the body of splici

Re: [racket-users] Composing `splicing-let-syntax` with `prop:rename-transformer` and `module+` (or anything made with `syntax-local-lift-module-end-decloration`

2015-12-17 Thread Leif Andersen
Ah, okay, that makes sense, and fixed my issue. Thank you very much. ~Leif Andersen On Thu, Dec 17, 2015 at 4:13 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > A short answer: When compiling a submodule, as for any other module, > imported modules get fresh compile-time instantiat

[racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
-values (x) 5 (define (ident=? stx) (syntax-case stx () [(_ (_ (_) (var _))) (free-identifier=? #'var #'quote)])) (syntax->datum x) (syntax->datum y) (ident=? x) (ident=? y) Is this expected behavior? If so, can you give me some intuition as to why? Thank you. ~Leif An

Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Ah, cool. Thanks. Does that also mean that if I see a `syntax` form inside of a `begin-for-syntax` it goes back to phase 0? Thanks. ~Leif Andersen On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt <sa...@cs.indiana.edu> wrote: > The identifiers are the same, but only when

Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Yeah, I would guess that too. Anyway, it doesn't seem to do all phases. So I just shift the phase down every time I see a begin-for-syntax. Thanks for your help. ~Leif Andersen On Wed, Dec 16, 2015 at 10:52 PM, Stephen Chang <stch...@ccs.neu.edu> wrote: > I'm not sure. I wo

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

2015-10-22 Thread Leif Andersen
a bit? ~Leif Andersen On Thu, Oct 22, 2015 at 1:53 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote: > On Thu, Oct 22, 2015 at 1:49 PM, Leif Andersen <l...@leifandersen.net> > wrote: > >> > I am genuinely surprised :keyword saw so much support and that change

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

2015-10-22 Thread Leif Andersen
though if you had a spot on the pull for the question: "I don't care about this at all, just don't break my code", I would have filled that out.) ~Leif Andersen On Thu, Oct 22, 2015 at 1:43 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote: > It has been a little more than

Re: [racket-users] Expression context

2015-09-16 Thread Leif Andersen
Oh cool, I didn't know that existed. Thanks for sharing. ~Leif Andersen On Tue, Sep 15, 2015 at 12:37 AM, Jens Axel Søgaard <jensa...@soegaard.net> wrote: > FWIW an alternative to (let () ...) is block. > > http://docs.racket-lang.org/reference/block.html?q=block > > 2015

Re: [racket-users] Expression context

2015-09-14 Thread Leif Andersen
if you find (let () ...) unappealing, you can create a macro to get rid of it. (define-syntax-rule (new-scope . body) (let () . body)) (if #f (new-scope (define x 5) x) 12) I hope that makes it more clear why you can use let but not begin to define variables in an if.

Re: [racket-users] pkg version exceptions: ranges of versions?

2015-08-17 Thread Leif Andersen
In that case is it possible to have a version for HEAD, or at least the latest nightlies, as those version numbers tend to change quite rapidly? ~Leif Andersen On Mon, Aug 17, 2015 at 10:47 AM, Jay McCarthy jay.mccar...@gmail.com wrote: This is not currently a feature. Jay On Sun, Aug 16

Re: [racket-users] How to use new 6.2.1 feature for true instead of #true, etc. ?

2015-08-12 Thread Leif Andersen
You can copy your DrRacket preferences file to the defaults collection. There is some documentation on this here: http://docs.racket-lang.org/drracket/drracket-files.html?q=Preference%20Files#%28part._.Preference_.Files%29 ~Leif Andersen On Wed, Aug 12, 2015 at 9:14 AM, Charles Rich r

Re: [racket-users] sub-range-binders

2015-07-15 Thread Leif Andersen
(bar)) (define x (foo 2)) (foo-bar x) ~Leif Andersen On Wed, Jul 15, 2015 at 3:48 PM, Robby Findler ro...@eecs.northwestern.edu wrote: No, I don't think that this can be made to work with the current sub-range-binders. The way DrRacket thinks about this is that those are two different binders

Re: [racket-users] sub-range-binders

2015-07-15 Thread Leif Andersen
Oh, okay, that makes complete sense. Thanks. ~Leif Andersen On Wed, Jul 15, 2015 at 4:24 PM, Robby Findler ro...@eecs.northwestern.edu wrote: Oh, I understand Jens Axel to be doing something more subtle than that. In particular, in his example check syntax sees two distinct identifiers (sym

[racket-users]

2015-05-01 Thread Leif Andersen
by installing the readline-gpl package (which will not be bundled with racket, but can be downloaded from the package server with): raco pkg install readline-gpl Let me know if you have any questions or concerns. ~Leif Andersen -- You received this message because you are subscribed to the Google

Re: [racket-users] Typed analog of integer-in contract

2015-04-21 Thread Leif Andersen
#'range-low) (syntax-e #'range-hi])) (define-range hello 0 1) ~Leif Andersen On Tue, Apr 21, 2015 at 10:41 AM, Matthias Felleisen matth...@ccs.neu.edu wrote: #lang typed/racket (define-type NDigit (U 0 1 2 3 4 5 6 7 8 9)) (define-type SDigit (U

Re: [racket-users] (require plot) categorically requires X11

2015-04-11 Thread Leif Andersen
Hello, You can always use the plot/no-gui collection: http://docs.racket-lang.org/plot/plotting.html?q=plot%2Fno-gui#%28mod-path._plot%2Fno-gui%29 This should work without the need for X11. On Sat, Apr 11, 2015 at 4:16 AM, Dmitry Pavlov dpav...@ipa.nw.ru wrote: Hello, I try to require the