Re: [racket-users] Why is struct/contract so much faster than a guard?

2020-09-03 Thread Christopher Lemmer Webber
Cool! Thanks for sharing :) -- 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 the web visit

Re: [racket-users] Why is struct/contract so much faster than a guard?

2020-09-02 Thread Christopher Lemmer Webber
Philip McGrath writes: > On Wed, Sep 2, 2020 at 3:41 PM Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> Unfortunately I can't use #:methods with struct/contract so I'm stuck >> with the slow one if I want a contract on the struct? >> >

Re: [racket-users] Why is struct/contract so much faster than a guard?

2020-09-02 Thread Christopher Lemmer Webber
2, 2020 at 3:41 PM Christopher Lemmer Webber > wrote: >> >> I tested the following: >> >> (struct foo (bar baz) >> #:guard (struct-guard/c any/c list?)) >> >> and: >> >> (struct/contract foo ([bar any/c] >>

[racket-users] Why is struct/contract so much faster than a guard?

2020-09-02 Thread Christopher Lemmer Webber
I tested the following: (struct foo (bar baz) #:guard (struct-guard/c any/c list?)) and: (struct/contract foo ([bar any/c] [baz list?])) With the first: test> (time (for ([i 100]) (foo 'yeah '(buddy cpu time: 2601 real time: 2599

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-12 Thread Christopher Lemmer Webber
That's a very interesting idea... I might give that a try! Simon Schlee writes: > Another approach might be to use multiple editor-snip% > https://docs.racket-lang.org/gui/editor-snip_.html > within a pasteboard% https://docs.racket-lang.org/gui/pasteboard_.html > > Or possibly together with

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-11 Thread Christopher Lemmer Webber
) ;) Justin Zamora writes: > Another, less lightweight way is to use panels for different parts of > the chat windows. I put together a sample at > https://gist.github.com/zamora/1cfc6480f7703735dffa3169facfbf10 > > On Mon, Aug 10, 2020 at 3:32 PM Christopher Lemmer Webber > wrote: >

Re: [racket-users] Re: Racket GUI: text aligned to the left of other text

2020-08-11 Thread Christopher Lemmer Webber
Curious... thank you, I was trying to figure out what set-tabs meant. ;) Alex Harsanyi writes: > The simplest thing is to just use tabs. A line of text would be > "\tYour Message here" and an overflowing line would be "\tOverflowing > message". Yes, this will work for variable width fonts.

Re: [racket-users] Racket GUI: text aligned to the left of other text

2020-08-11 Thread Christopher Lemmer Webber
ames and one with > the rest. They would scroll independently in that case, but you can hide > the scrollbars on one and override various callbacks to keep them scrolled > to the same place. > > Robby > > > On Mon, Aug 10, 2020 at 2:32 PM Christopher Lemmer Webber < > cweb...@du

[racket-users] Racket GUI: text aligned to the left of other text

2020-08-10 Thread Christopher Lemmer Webber
Hello, I'm building a little chat application with Racket. Overall Racket's GUI tools are quite comfortable, and I'm just using Rakcet's text editor stuff to build the chat. But a fairly standard thing to do with chat applications is to have text like: (Beware, fixed width ascii art ahead)

[racket-users] Sending a file descriptor along a socket?

2020-07-21 Thread Christopher Lemmer Webber
It looks like ffi/unsafe/port provides ways to read a file desciptor from a port that is capable of receiving them, and there are tools to transform that file descriptor into a port or the reverse, but is there a way for me to *write* a file descriptor to a port (ie, the equivalent to the sendmsg

[racket-users] Re: Some stuff about "case".

2020-06-01 Thread Christopher Lemmer Webber
Except maybe for one thing: I wonder if the version of case defined here is written in such a way that is smart in that it never has to make said hash table / alist more than once, at compile time. I'm guessing so? Christopher Lemmer Webber writes: > As I started typing this email and look

[racket-users] Some stuff about "case".

2020-06-01 Thread Christopher Lemmer Webber
As I started typing this email and looking into the definition of case, I realized my assumptions are wrong. What I needed: something like case which dispatches on symbols, except not auto-quoting the arguments... I needed to evaluate them from the lexical environment. So: (let ([x 'foo])

Re: [racket-users] Reducing parentheses without language damage.

2020-05-01 Thread Christopher Lemmer Webber
Sorawee Porncharoenwase writes: >> >> I hate being at the mercy of whatever editor I'm stuck using. > > > I agree with this in principle, but in practice, it's really a matter of > what mainstream editors support. Editors in the past don't universally > support automatic indentation, and I could

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Philip McGrath writes: > For a general solution, I'd take a look at the Citation Style Language ( > https://citationstyles.org/), which is an XML language for defining how to > render citations and bibliographies. A major advantage is that it has libre > style definitions for a dizzying variety

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Philip McGrath writes: > On Thu, Mar 19, 2020 at 12:40 PM Matthew Flatt wrote: > >> At Thu, 19 Mar 2020 12:38:39 -0400, Christopher Lemmer Webber wrote: >> > I will spend the rest of the day looking at what scriblib's bibliography >> > stuff does in furt

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Matthew Flatt writes: > At Thu, 19 Mar 2020 11:46:44 -0400, Christopher Lemmer Webber wrote: >> What I thought was the more "Racket'y way" would be to store it as >> abstract data that then could be rendered to the appropriate style >> (that's what BibTeX and

[racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Hello, As some of you know (since we talked about it in a racketcon talk a couple of year ago), my spouse Morgan (cc'ed) is writing her art history dissertation in Scribble. She's getting close to finishing it (yay!) and we've been very happy with Scribble for this use in general, except for one

Re: [racket-users] Showing off Goblins' time-traveling-debugging support in Terminal Phase

2020-01-27 Thread Christopher Lemmer Webber
And then I just noticed you had sent such an email immediately after ;) Christopher Lemmer Webber writes: > I'm definitely interested in reactive patterns, so please give me a > heads up with whatever you have whenever :) > > Sage Gerard writes: > >> Nice, I'll

Re: [racket-users] Showing off Goblins' time-traveling-debugging support in Terminal Phase

2020-01-27 Thread Christopher Lemmer Webber
inal Message > On Jan 26, 2020, 3:07 PM, Christopher Lemmer Webber wrote: > >> Not the most interesting part of Spritely Goblins (that is in the >> async/distributed stuff, to-be-demo'ed), but something I wrote about >> recently and maybe I should link here too: >> &

[racket-users] Showing off Goblins' time-traveling-debugging support in Terminal Phase

2020-01-26 Thread Christopher Lemmer Webber
Not the most interesting part of Spritely Goblins (that is in the async/distributed stuff, to-be-demo'ed), but something I wrote about recently and maybe I should link here too: https://dustycloud.org/blog/goblins-time-travel-micropreview/ Of course, as functional programmers, time-travel

[racket-users] Terminal Phase hits 1.0

2020-01-19 Thread Christopher Lemmer Webber
Hello, Just a small blogpost about Terminal Phase, which hit 1.0: https://dustycloud.org/blog/terminal-phase-1.0/ I think the game is pretty interesting. Anyway, you can try it yourself: raco pkg install terminal-phase raco terminal-phase (I guess it also installs a launcher thing.)

Re: [racket-users] telnet postcard.sfconservancy.org 2333

2019-12-21 Thread Christopher Lemmer Webber
gt; Sage Gerard writes: > >> Super cool, and a catchy way to send it out! >> >> Original Message ---- >> On Dec 19, 2019, 11:56 AM, Christopher Lemmer Webber wrote: >> >>> If you enter the subject of this email into a terminal, you'll se

[racket-users] telnet postcard.sfconservancy.org 2333

2019-12-19 Thread Christopher Lemmer Webber
If you enter the subject of this email into a terminal, you'll see a cool, live Racket "greetings card" for my friends at Software Freedom Conservancy's fundraiser: https://sfconservancy.org/supporter/ The animation is itself a Racket program! You can run it yourself, on your own machine!

Re: [racket-users] What’s everyone working on this week?

2019-12-10 Thread Christopher Lemmer Webber
Stephen De Gabrielle writes: > New week, new Racket! What are you folks up to? Answer here or > > * https://racket.slack.com/ (Sign up at https://racket-slack.herokuapp.com/ > ) > * #racket IRC on freenode.net https://botbot.me/freenode/racket/ > * Tweet @racketlang on Twitter > * Racket discord

Re: [racket-users] What’s everyone working on this week (46/2019)?

2019-11-11 Thread Christopher Lemmer Webber
Hendrik Boom writes: > On Mon, Nov 11, 2019 at 05:09:47AM -0800, Stephen De Gabrielle wrote: >> New week, new Racket! What are you folks up to? Answer here or over at >> /r/racket ! > > Trying to figure out pict3d's use of opengl. > There seems to be a lot of

Re: [racket-users] Evaluating to get the output with a specific lang

2019-11-11 Thread Christopher Lemmer Webber
Jay McCarthy writes: > I feel like I might not understand what you want, but it feels like > you just want to use `make-module-evaluator` from `racket/sandbox`: > > ``` > #lang racket/base > (require racket/sandbox) > > (define (read-script s) > (((make-module-evaluator s) 'script) 5)) > >

Re: [racket-users] Evaluating to get the output with a specific lang

2019-11-10 Thread Christopher Lemmer Webber
(port-read-handler in default-handler) >(begin0 (read in) (port-read-handler in original-handler >(define mod-name `(quote ,(cadr define-mod))) >(eval `(begin ,define-mod (let () (local-require ,mod-name) > the-foo)) > (modul

Re: [racket-users] Evaluating to get the output with a specific lang

2019-11-10 Thread Christopher Lemmer Webber
Well, I think I figured out how to get further: with example1.rkt being: ``` #lang racket/base ;; #lang dungeon/misery (define ((make-start-game read-save-file) player-name) (list 'running-this-read-save-file: read-save-file 'on-player-name: player-name 'result:

[racket-users] Understanding sandbox.rkt

2019-11-10 Thread Christopher Lemmer Webber
st expression and expose its value via >> an effect or an export. Christopher Lemmer Webber writes: > Well I gave it a try and couldn't quite figure out how to make it work. > I tried writing out this file, dungeon/room-ch.rkt: > [...] > It just hangs, so I assume that the module n

Re: [racket-users] Evaluating to get the output with a specific lang

2019-11-10 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > I guess a question remaining then is: if I'm doing this kind of dynamic > import of the module, is there a way to require from it (especially if > it isn't assigned to a "filename" on disk?). It appears there must be; > when I

Re: [racket-users] Evaluating to get the output with a specific lang

2019-11-10 Thread Christopher Lemmer Webber
Thanks Jay for the helpful response as usual Jay; I really do appreciate it. It sounds like what I want is the case of the export. I think I can figure out how to modify the #%module-begin to do that. I guess a question remaining then is: if I'm doing this kind of dynamic import of the module,

[racket-users] Evaluating to get the output with a specific lang

2019-11-09 Thread Christopher Lemmer Webber
(Caveat: I know the sandbox evaluator exists. I'm trying to understand how to do this without it, to understand the evaluation machinery for something.) Let's say I write "#lang foo". For whatever reason, I have programs that are coming in from users that are not necessarily being saved to a

Re: [racket-users] What's the best way to do these syntax transforms?

2019-11-08 Thread Christopher Lemmer Webber
Jay McCarthy writes: > On Fri, Nov 8, 2019 at 9:51 AM Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> I have a need to do two things in a #lang: >> >> - Most importantly, make all strings that appear in the source code >>immutable >

Re: [racket-users] What's the best way to do these syntax transforms?

2019-11-08 Thread Christopher Lemmer Webber
Philip McGrath writes: > On Fri, Nov 8, 2019 at 9:56 AM Jay McCarthy wrote: > >> On Fri, Nov 8, 2019 at 9:51 AM Christopher Lemmer Webber < >> cweb...@dustycloud.org> wrote: >> >>> I have a need to do two things in a #lang: >>> >>> - Mos

[racket-users] What's the best way to do these syntax transforms?

2019-11-08 Thread Christopher Lemmer Webber
I have a need to do two things in a #lang: - Most importantly, make all strings that appear in the source code immutable - Second and not as urgent, I'd like to add a "dot" notation, so that (foo.bar 1 2 3) expands into (foo 'bar 1 2 3) It seems to me that both of these needs are

[racket-users] Terminal Phase: building a space shooter that runs in your terminal

2019-11-07 Thread Christopher Lemmer Webber
I published a blogpost here: https://dustycloud.org/blog/terminal-phase-prototype/ It also talks quite a bit about my experiences with doing gamedev in Racket, a bit on using Spritely Goblins, etc. The prototype is finished for the technical stuff I needed to do, but I've decided that since

Re: [racket-users] Does match against list traverse the whole list?

2019-10-29 Thread Christopher Lemmer Webber
> #t >> (time (list? v2)) > cpu time: 50 real time: 50 gc time: 0 > #t >> (time (list? v2)) > cpu time: 15 real time: 15 gc time: 0 > #t >> (time (list? v2)) > cpu time: 25 real time: 25 gc time: 0 > #t >> (time (list? v2)) > cpu time: 22 real

[racket-users] Does match against list traverse the whole list?

2019-10-29 Thread Christopher Lemmer Webber
Imagine the following code: (let lp ([items '(1 2 3 4 5)]) (match items [(list head rest ...) (cons (* head 2) (lp rest))])) My gut feeling is "oh, this is just O(n) because it's pulling the top off the list quite efficient." But then I realized that: (match '(1 2 3 4

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > Gerald Sussman explained Python's success, and the reason for the switch > from Scheme and SICP to a Python based curriculum, as being because > Python had for whatever reason libraries that allowed students to be > able to lego together examples

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-08-21 Thread Christopher Lemmer Webber
between the two halves had proved confusing for > students You actually touched on something that has been at the back of my mind for a while. Else where in this discussion: Matthew Flatt writes: > At Sat, 20 Jul 2019 18:07:40 -0400, Christopher Lemmer Webber wrote: >> - Are peo

[racket-users] Honu thoughts and clarification

2019-08-07 Thread Christopher Lemmer Webber
Today I read the 2012 Honu paper: http://www.cs.utah.edu/~rafkind/papers/honu-2012.pdf Some impressions and a question: - Well it's pretty obvious where I stand on my preference for lisp syntax. But! I'll say the Honu paper is beautifully written and is maybe the nicest

Re: [racket-users] Racket2 possibilities

2019-07-20 Thread Christopher Lemmer Webber
Hi Matthew, As someone who (unintentionally) caused maybe some of the debate to get out of hand (or did I?) I would like to open by saying that both your last email to the prior thread and also this email are both very encouraging. I'll skip everything else and jump straight to: Matthew Flatt

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Christopher Lemmer Webber
Hendrik Boom writes: > On Wed, Jul 17, 2019 at 04:52:37PM -0700, Maria Gabriela Guimarães wrote: >> >> Does Racket wants to be popular in the industry? Then Racket must focus on >> being a language-oriented programming ecosystem on a popular VM, like the >> ErlangVM, the JVM, and the

Re: Backing up [was: Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2]

2019-07-16 Thread Christopher Lemmer Webber
Matthew Flatt writes: > The idea that the Racket project leadership is discussing this is > entirely plausible, of course, given the way things have operated in > the past. Let me emphasize again, however, that you should take Aaron > Turon's keynote as evidence that we do not want to do things

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-15 Thread Christopher Lemmer Webber
Jack Firth writes: > Matthias, I ask that you please not respond to discussion about the > diversity of the Racket community by saying it's a political topic and > politics have no place here. That statement alone is political and makes > many people feel unwelcome, including me. Likewise... and

Re: [racket-users] Building "#lang dungeon"

2019-07-15 Thread Christopher Lemmer Webber
Konrad Hinsen writes: > Hi Chris, > Hi Konrad, > While I understand the general goal you are aiming at, it isn't quite > clear to me who you are trying to protect against who. There's a wide > spectrum of people involved, ranging from language designers via library > developers and application

Re: [racket-users] Re: Racket2 and syntax

2019-07-15 Thread Christopher Lemmer Webber
Maciek Godek writes: > Maybe the direction similar to where "I think we should be heading" is > somewhere between Mathematica notebooks and Smalltalk's object environments. I had similar-ish thoughts while watching the excellent Fructure talk at this year's RacketCon: maybe intro courses would

Re: [racket-users] Building "#lang dungeon"

2019-07-14 Thread Christopher Lemmer Webber
ra...@airmail.cc writes: > There is http://shill.seas.harvard.edu/ it runs on freebsd. Yes, it's a good source of inspiration. However it's really meant for shell scripting and isn't quite a good fit for the case I need, which is for more general racket programming. -- You received this

Re: [racket-users] Building "#lang dungeon"

2019-07-14 Thread Christopher Lemmer Webber
e to the > runtime, or a flawed approach of a wrapper language around #%kernel such > that everything that builds on top of it respects capabilities. > Unfortunately we can't treat existing modules like functors for which we > can replace the underlying #%kernel. > > On Sun, Jul 14, 2019 a

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-14 Thread Christopher Lemmer Webber
I sent this about 5 minutes before Jay announced https://github.com/racket/racket2-rfcs :) -- 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] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-14 Thread Christopher Lemmer Webber
The context of this email is the proposal by Matthew Flatt that we move to an easier-to-accept surface syntax for #lang racket2. Matthew Flatt has heard more than enough from me of concern about this proposal. But I should indicate that I'm highly sympathetic to the goal. I would like to lay

[racket-users] Building "#lang dungeon"

2019-07-14 Thread Christopher Lemmer Webber
Every day the threats facing our computing environments are getting worse. Recent incidents in both gems and npm have shown modules exfiltrating information from developers' machines or production servers. It is likely that soon package managers will also be targeted to install cryptolockers to

[racket-users] Accomodation on the Racket School 2019 page

2019-03-18 Thread Christopher Lemmer Webber
According to https://school.racket-lang.org/#accommodation there's subsidized lodgin at the University of Utah dorms. Sounds great! But it's not really clear to me which buildings it would be at or where I should contact them. Maybe this is useful info to clarify on the website? I see that

[racket-users] Spritely Golem: Secure, p2p distributable content for the fediverse

2019-02-17 Thread Christopher Lemmer Webber
The "fediverse" means the federated (decentralized) social web. And Spritely, as I've said here recently, is a series of demos and writeups which show how to "level up" the fediverse with some new ideas to make it more powerful and resilient. I just finished writing the documentation for Spritely

[racket-users] i18n / translations

2019-02-09 Thread Christopher Lemmer Webber
How are people currently translating their programs? I expected to see a gettext library or something, but haven't. I see that DrRacket is translated, but I did a few simple greps through the DrRacket repo and couldn't figure out how. Am I missing something? Or is this tooling that needs to be

Re: [racket-users] Some concern about ChezScheme...

2019-02-08 Thread Christopher Lemmer Webber
Matthew Flatt writes: > Personally, while my contributions to Chez Scheme so far have been > modest, I have already factored into my costs the worst-case scenario > of fully maintaining Chez Scheme as used by Racket. Even if that > happens, it still looks like a good deal in the long run. That's

[racket-users] Spritely awarded Samsung Stack Zero grant

2019-01-31 Thread Christopher Lemmer Webber
I've mentioned that my goal has been to advance the federated/decentralized social web in Racket on here before. Here's some news: https://samsungnext.com/whats-next/category/podcasts/decentralization-samsung-next-stack-zero-grant-recipients/ I'm being funded for the next two years to work

Re: [racket-users] sxml vs xexpr frustrations

2019-01-31 Thread Christopher Lemmer Webber
ging around > open-source software abandoned by its owner tends to incite conditions > of madness. (Insert your favorite 80s typesetting system here.) > > [1] https://sourceforge.net/p/ssax/mailman/ssax-sxml/ > [2] http://pobox.com/~oleg/ftp/Scheme/SXML.html > > On Jan 30, 2019,

Re: [racket-users] Racket v7.2

2019-01-31 Thread Christopher Lemmer Webber
Vincent St-Amour writes: > Racket version 7.2 is now available from > > http://racket-lang.org/ > > Racket-on-Chez is done in a useful sense, but we'll wait until it gets > better before making it the default Racket implementation. For more > information, see > >

Re: [racket-users] sxml vs xexpr frustrations

2019-01-30 Thread Christopher Lemmer Webber
Neil Van Dyke writes: > 'John Clements' via Racket Users wrote on 1/30/19 1:46 PM: >> Fundamentally, I think that what you’re proposing is sensible … and probably >> a lot of work that’s not currently at the top of anyone’s list. :) > > Yes, the xexprs and SXML stuff is mostly very old (perhaps

[racket-users] sxml vs xexpr frustrations

2019-01-30 Thread Christopher Lemmer Webber
One very frustrating thing for me is the inconsistency between which sexp xml representation is the "right" one, sxml or xexpr. Different tools support different things, and thus don't interoperate when they easily could have. I wish the Racket community could collectively make a decision and

Re: [racket-users] Serving my web application and some static files

2019-01-30 Thread Christopher Lemmer Webber
elle/clash > main.rkt > > Sorry bit of a rush- let me know if I’m making sense - I can do a smaller > example to your spec this evening. > > Stephen > > > On Wed, 30 Jan 2019 at 16:42, Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> It

[racket-users] Serving my web application and some static files

2019-01-30 Thread Christopher Lemmer Webber
It seems like it should be so simple, and like Racket has the tools already, but I can't figure out how to do it. I have the following: (serve/servlet start #:servlet-regexp #rx"" #:launch-browser? #f) I'd like to do something like the following: - Serve

Re: [racket-users] Multipart HTTP requests

2019-01-30 Thread Christopher Lemmer Webber
Jon Zeppieri writes: > On Tue, Jan 29, 2019 at 4:17 AM Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> >> Any thoughts on how I should move forward? > > > I think that using a `data-procedure/c` of a particular sort should allow > you t

Re: [racket-users] Multipart HTTP requests

2019-01-30 Thread Christopher Lemmer Webber
Philip McGrath writes: > I've put up the code I mentioned for email-sending and a proxy server at > https://github.com/LiberalArtist/multipart-writing-examples As noted, these > are not general-purpose solutions to either of those problems—I know of a > bunch of cases I don't cover, and I

Re: [racket-users] Multipart HTTP requests

2019-01-29 Thread Christopher Lemmer Webber
lang.org/net/mime.html>` (which only handles parsing). > > -Philip > > > On Tue, Jan 29, 2019 at 4:17 AM Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> I'm looking to do multipart HTTP requests in Racket, though it looks >> like there's no

[racket-users] Multipart HTTP requests

2019-01-29 Thread Christopher Lemmer Webber
I'm looking to do multipart HTTP requests in Racket, though it looks like there's no support at the moment. I thought I might add a utility using the net/http-client library, starting with making an adjusted http-conn-send! function. However, the http-conn-(host/port/etc) struct accessors aren't

[racket-users] Thoughts/questions on the DOS package

2018-11-30 Thread Christopher Lemmer Webber
t but the changes must be merged. In > the second case, the player reads about the missiles and decides how > it will update its state. > > The dos model allows all behaviors that race conditions/etc provide, > but you have to be a little more particular about what you want. > &

Re: [racket-users] Is this parameters-using code O(n^2)?

2018-11-11 Thread Christopher Lemmer Webber
Matthew Flatt writes: > At Sun, 11 Nov 2018 13:55:32 -0500, Christopher Lemmer Webber wrote: >> It struck me recently that I tend to think of parameters as O(1) when in >> reality they're O(n), where n is the number of frames on the stack, >> right? > > No, parame

[racket-users] Is this parameters-using code O(n^2)?

2018-11-11 Thread Christopher Lemmer Webber
It struck me recently that I tend to think of parameters as O(1) when in reality they're O(n), where n is the number of frames on the stack, right? I was considering writing some code that cons'ed itself on its natural recursion, but in the process was checking the parameter. But then I realized

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-28 Thread Christopher Lemmer Webber
ub.com/racket/racket/issues/2341 >> >> I haven't gotten an error in RacketCS yet, but it is about 2x slower >> than on traditional Racket. >> >> Sam >> On Sun, Oct 28, 2018 at 2:05 PM Christopher Lemmer Webber >> wrote: >> > >> > Chr

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-28 Thread Christopher Lemmer Webber
sues/2341 > > I haven't gotten an error in RacketCS yet, but it is about 2x slower > than on traditional Racket. > > Sam > On Sun, Oct 28, 2018 at 2:05 PM Christopher Lemmer Webber > wrote: >> >> Christopher Lemmer Webber writes: >> >> > Matthew Flatt writ

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-28 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > Matthew Flatt writes: > >> Is your example something I can run myself to track down the problem? >> The trigger for these kinds of bugs is often difficult to extract into >> a small example. > > It is, but there's currently

[racket-users] Goblins, and actor model library for Racket, gets its first release

2018-10-28 Thread Christopher Lemmer Webber
Hello all, I've made the first release of Goblins (v0.1), the lightweight actor model I'm building for Racket which will be the foundation for my future distributed virtual worlds work in Racket. It is *not* production ready, consider this a pre-alpha, but you can get it from Racket's package

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-24 Thread Christopher Lemmer Webber
Matthew Flatt writes: > At Tue, 23 Oct 2018 17:24:38 -0400, Christopher Lemmer Webber wrote: >> Somehow I'm triggering this error in Goblins. >> >> ; Dynamic-wind record doesn't match prompt! >> >> I am doing some things with delimited continuations. I'm gu

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-24 Thread Christopher Lemmer Webber
continuations with explicit prompts somewhere? > > >> On Oct 23, 2018, at 7:38 PM, Christopher Lemmer Webber >> wrote: >> >> Christopher Lemmer Webber writes: >> >>> Christopher Lemmer Webber writes: >>> >>>> Somehow I'm triggering this error in

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-23 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > Christopher Lemmer Webber writes: > >> Somehow I'm triggering this error in Goblins. >> >> ; Dynamic-wind record doesn't match prompt! >> >> I am doing some things with delimited continuations. I'm guessing >> th

Re: [racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-23 Thread Christopher Lemmer Webber
Christopher Lemmer Webber writes: > Somehow I'm triggering this error in Goblins. > > ; Dynamic-wind record doesn't match prompt! > > I am doing some things with delimited continuations. I'm guessing > that's related, but I'm not sure why/how one might expect to trigger

[racket-users] "Dynamic-wind record doesn't match prompt!" error

2018-10-23 Thread Christopher Lemmer Webber
Somehow I'm triggering this error in Goblins. ; Dynamic-wind record doesn't match prompt! I am doing some things with delimited continuations. I'm guessing that's related, but I'm not sure why/how one might expect to trigger this error. Any ideas? Thoughts? - Chris -- You received this

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-08 Thread Christopher Lemmer Webber
It sounds nice, but I wonder if it would be hard to shift consistently in the right direction for both light and dark themes... I guess if the code's opacity was reduced that could be a universal solution. Matthias Felleisen writes: > +1 > > >> On Oct 8, 2018, at 11:57 AM, Sam Tobin-Hochstadt

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Christopher Lemmer Webber
Daniel Prager writes: > If only there was a way to have the best of both worlds. > > E.g. change the background color for #; to something reminiscent of the > foreground color of regular comments: > > (display #|Comment|# > ; comment > #;(string-join "comm" "ent") >

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Christopher Lemmer Webber
I agree that they should be shown as comments. In many ways I like what happens (probably unintentionally) in my emacs setup: I have rainbow-delimeters enabled, which colors the parentheses. When I comment out the s-exp with #; the sexp looks commented out, but the parentheses remain colored.

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-06 Thread Christopher Lemmer Webber
Ricardo Iglesias writes: > Good afternoon. I'm trying to move away from things like Matlab and SciPy > to do linear algebra work. > Something I notice I do a lot is indexing operations, such as > MATRIX[ row ] [ column ] > > I'm looking at the "math/matrix" library provided here: >

Re: [racket-users] colon keywords

2018-09-19 Thread Christopher Lemmer Webber
I am wary of this. I really don't have a strong preference either way, my suspicion is it's mostly "what did you become famliar with initially" kind of thing. :keyword is more Common Lisp'ish, #:keyword matches other Schemes I've used. But: - I'd rather not have *two* keyword syntaxes in

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
able to unseal lunch?" > as opposed to "Unseal my lunch now". > > On Mon, Sep 10, 2018 at 11:09 AM, Christopher Lemmer Webber < > cweb...@dustycloud.org> wrote: > >> Jack Firth writes: >> >> > If I make a symbol with `gensym` (or do anything

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
Matthias Felleisen writes: >> On Sep 10, 2018, at 10:09 AM, Christopher Lemmer Webber >> wrote: >> >> Jack Firth writes: >> >>> If I make a symbol with `gensym` (or do anything else that creates a new >>> value that's not `eq?` to any other value)

Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
Jack Firth writes: > If I make a symbol with `gensym` (or do anything else that creates a new > value that's not `eq?` to any other value) in some module, what are the > absolute upper limits on my ability to use that symbol within the module > without allowing any other modules to get ahold of

[racket-users] Re: [racket-dev] (eighth RacketCon) Warp demo

2018-09-03 Thread Christopher Lemmer Webber
David Vanderson writes: > On Sat, Sep 1, 2018 at 7:02 PM Christopher Lemmer Webber > wrote: >> >> I checked it out. Very cool! Did you ever play Subspace / Continuum? >> Reminds me a lot of it. There's more detail here than I initially >> realized between th

Re: [racket-users] Security of continuation web server?

2018-09-03 Thread Christopher Lemmer Webber
Philip McGrath writes: > My understanding is that continuation URIs are not intended to be > secret/protected by default, just as a URI like > https://example.com/comment/confirm?post-id=12345=My+great+comment > doesn't include any security measures. The main way to add security to the > URIs, as

Re: [racket-users] Security of continuation web server?

2018-09-03 Thread Christopher Lemmer Webber
Neil Van Dyke writes: > Christopher Lemmer Webber wrote on 09/01/2018 09:05 PM: > >> Waterken uses URI fragments to get around this in a secure way, since >> browsers do not transmit the URI fragment to the server: > > There's lots of ways that URL fragment identifiers c

Re: [racket-users] Security of continuation web server?

2018-09-03 Thread Christopher Lemmer Webber
Greg Hendershott writes: > 1. The web server FAQ has a brief section about this: > > https://docs.racket-lang.org/web-server/faq.html#%28part._.What_special_considerations_are_there_for_security_with_the_.Web_.Server_%29 Ah, hadn't seen that! It also refers to the Referer issue. (I agree with

Re: [racket-users] Security of continuation web server?

2018-09-03 Thread Christopher Lemmer Webber
Jesse Alama writes: > On 2 Sep 2018, at 3:05, Christopher Lemmer Webber wrote: > >> http://localhost:34691/servlets/standalone.rkt;(("k" . "(1 1 2810783)")) >> >> That's the id used to retrieve the continuation, right? Presumably >> this

[racket-users] Security of continuation web server?

2018-09-01 Thread Christopher Lemmer Webber
I appreciate the goal of the continuation web server in Racket as trying to avoid the "inversion of control" problem which plagues much web development. But I wonder if the default continuation web server is very secure? Looking at the URI generated by the continuation web server...

[racket-users] Re: [racket-dev] (eighth RacketCon) Warp demo

2018-09-01 Thread Christopher Lemmer Webber
David Vanderson writes: > I'm excited about RacketCon! BUT WAIT, there's more! In the morning > and lunch time before talks I'll be running a demo of Warp, a team > multiplayer game written in Racket. > > Everyone is invited to join in the fun! Here's a 3 minute intro video > on how to install

Re: [racket-users] Is there a way to attach struct properties after struct definition?

2018-08-17 Thread Christopher Lemmer Webber
David Storrs writes: > I've been going through the docs on struct properties, both the Guide and > the Reference. I can't see any way to add new properties to a struct at > runtime (i.e., after the type is defined); is there a way? Not generally afaik. This is fairly intentional in Racket's

Re: bug#30680: [racket-users] Using Racket's raco on on Guix(SD)

2018-08-12 Thread Christopher Lemmer Webber
Good news: this seems fixed with this patch. Some more comments inline. Timothy Sample writes: >>> Also, I checked all of this from Racket without grafts, and it never >>> complained about compiling OpenSSL stuff. Running “raco setup” gives >>> some other errors, though. >> >> You're right...

Re: bug#30680: [racket-users] Using Racket's raco on on Guix(SD)

2018-08-12 Thread Christopher Lemmer Webber
Timothy Sample writes: > Christopher Lemmer Webber writes: > >> Likewise, Gregor and Raart do not install: >> >> $ mv ~/.racket ~/.racket-borked >> $ raco pkg install gregor # lots of errors during install >> $ racket >> racket@> (requir

Re: bug#30680: [racket-users] Using Racket's raco on on Guix(SD)

2018-08-11 Thread Christopher Lemmer Webber
Timothy Sample writes: > Christopher Lemmer Webber writes: > >> Konrad Hinsen writes: >> >>> In my tests, all packages ended up working, but performance is indeed >>> worse than with a Racket installation outside of Guix. >>> >>> It

Re: [racket-users] Using Racket's raco on on Guix(SD)

2018-08-11 Thread Christopher Lemmer Webber
Konrad Hinsen writes: > On 22/05/2018 15:42, Christopher Lemmer Webber wrote: > >> Unfortunately when I try to install packages with "raco pkg install" >> I get errors like the following: > > I filed a bug report about this problem a while ago: > > https

Re: [racket-users] Is it possible to embed a scheme'y text editor in another GUI application?

2018-08-10 Thread Christopher Lemmer Webber
David Thrane Christiansen writes: >> Wow, those are stunning examples! I had no idea! > > Thanks! > >> BTW, do you have code for either of these posted anywhere under a libre >> license? Might be interesting to look at :) > > I don't typically post the source code of the slides themselves, >

  1   2   >