Re: [racket-users] Proxying websockets via web-server

2020-01-14 Thread Eli Barzilay
basically "solved" it by starting another webserver on a different subdomain just for this.) -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are

Re: [racket-users] Proxying websockets via web-server

2020-01-11 Thread Eli Barzilay
e web server code. A quick grep finds at least one suspicious line which erroneously uses a random string as a format string: (with-handlers ([exn:fail? (lambda (exn) (network-error 'output-file (exn-message exn)))]) ... -- ((x=>x(x))(x=>x(x))) Eli Barz

[racket-users] Question for the TR people

2017-09-26 Thread Eli Barzilay
sed the `type-output-sexpr-tweaker` thing too to make things more consistent. Any suggestions? -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because

[racket-users] New web page

2017-01-19 Thread Eli Barzilay
broken (for me, on a Nexus 6p using chrome): http://tmp.barzilay.org/x1.png http://tmp.barzilay.org/x2.png Both have overlapping texts, and the first one has a strange newline before "dream language". -- ((x=>x(x))(x=>x(x))) Eli Bar

Re: [racket-users] Re: If a thunk is a proc of zero arguments, what is a proc of one argument?

2016-11-13 Thread Eli Barzilay
On Sun, Nov 13, 2016 at 6:48 AM, Ian Barland <ibarl...@radford.edu> wrote: > [...] > > Also, in this particular case, my chafing at the extra-characters was > ameliorated by a tip from Eli Barzilay: drop the space after the "λ", > e.g. `(λ(n) (+ n 1))`. It's sti

Re: [racket-users] Building regexen in at-exp

2016-11-05 Thread Eli Barzilay
(pregexp @string-append{^@a}) ]] -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscri

Re: [racket-users] docs for string-trim

2016-11-05 Thread Eli Barzilay
is a regexp, not a plain string. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsub

Re: [racket-users] Handin Issues

2016-10-11 Thread Eli Barzilay
y working... [...] (Unfortunately, most of your *real* issues are more high level problems with how to handle submissions with images, how to test them, etc -- and that's something that personally I have no experience with...) -- ((x=>x(x))(x=>x(x)))

Re: [racket-users] [off-topic] any thoughts on gradescope?

2016-10-11 Thread Eli Barzilay
the comments embedded in, following a specific format. If you get something generic enough it would be cute. But the main thing is that just doing the grading electronically is pushing things in the right direction... -- ((x=>x(x))(x=>x(x)))

Re: [racket-users] [off-topic] any thoughts on gradescope?

2016-10-11 Thread Eli Barzilay
in the same question. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] Handin Issues

2016-10-10 Thread Eli Barzilay
what you're suggesting, which would silently ignore the added lines. If you do have some code that adds header lines (my [*] question at the top) then that's the problem, and the error should be a configuration error. (The thing is that additional headers are written to a generated text file -- t

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-26 Thread Eli Barzilay
maybe stretching it a bit but each to their own. Yeah, I think that this is stretching it... I think that it's perfectly fine to stick with "@" or "at" for historical reasons, but the confusion is certainly there, and that's not new. -- ((x=>x(x))(x=>x(x)))

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread Eli Barzilay
([x "blah blah"]) (rash x)) to be the same, mostly because you said how much you didn't want nested @-forms. I see what you mean now, which is, like I said, pretty much exactly what you get with @-forms. (BTW, note how @-forms are perfect here: since `rash` should always be used with a

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread Eli Barzilay
On Sun, Sep 25, 2016 at 2:19 PM, Matthew Butterick <m...@mbtype.com> wrote: > > On Sep 25, 2016, at 2:10 AM, Eli Barzilay <e...@barzilay.org> wrote: >> *Don't* confuse scribble-the-documentation-system with the syntax -- >> the syntax is useful for many other cas

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-25 Thread Eli Barzilay
g language is more tex-like where you can do arbitrary parsing at each nested level down to changing how "functions" are written and arguments are parsed, and (just like tex) the result is pretty powerful in what it can do, but nobody ever needs that complication which makes the who

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-24 Thread Eli Barzilay
not using the same character will do... but more importantly I don't see any cases where you would want *that* but not the rest of the scribble syntax features. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Lif

Re: [racket-users] handin server error

2016-09-11 Thread Eli Barzilay
all files on the handin server. You should at least replace the "/" path with the system path that has the required libraries. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You rece

Re: [racket-users] Racket Shell

2016-08-25 Thread Eli Barzilay
quoting that made things not compose nicely. I think that this was what Mike Sperber told me at some point. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this mess

Re: [racket-users] HTTP Headers use byte->string/utf-8

2016-05-06 Thread Eli Barzilay
ich is relevant in that context). [BTW, looking at that SO answer and the RFC it seems to me that latin-1 is wrong too for the values, which should remain opaque...] -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ M

Re: [racket-users] opinion needed on best fix for handin-server problem

2016-05-04 Thread Eli Barzilay
the error that led you to > originally start this discussion? [FWIW, yes, I'm completely with Sam -- including this confusion.] -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You

Re: [racket-users] opinion needed on best fix for handin-server problem

2016-05-04 Thread Eli Barzilay
only breaking hypothetical code that expects exceptions that make it fail now anyway, IOW -- there's no breaking... (And also document the fact that not all of the builtin exceptions are transparent, unless it's already done somewhere.) -- ((x=>x(x))(x=>x(x)

Re: [racket-users] opinion needed on best fix for handin-server problem

2016-05-04 Thread Eli Barzilay
o significant opinion about it.) So -- assuming that function is the right place that you're talking about, I see that this is code that I committed in: > commit fd858f081c564a3c94a682aee5896bc535fd9956 > Author: Eli Barzilay <e...@racket-lang.org> > Date: 2007-01-24 07:52

Re: [racket-users] How can I differentiate between a here string and a "" string?

2016-05-01 Thread Eli Barzilay
last bit -- avoiding a parser -- is intended to be done by *using* nested @-forms instead of rejecting them, so you get a mixture of hopefully-easy-to-parse bits of text with nested expressions, so the result is easier (in the S-expression sense) to handle than a monolithic pile of text to

Re: [racket-users] state of known issue: running handin server without x display

2016-05-01 Thread Eli Barzilay
would get used in sandboxed evaluation of submissions ("was" because AFAIK it was never really used), so that's not the way to do this. (But it will definitely be nice to break the need for X somehow...) -- ((x=>x(x))(x=>x(x))) Eli Barzil

Re: [racket-users] quoting in posts to this email list

2016-05-01 Thread Eli Barzilay
((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- 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] Modernizing scribble/html

2016-05-01 Thread Eli Barzilay
ones that are more involved like svg and ruby. And also drop some of the html4 exotic stuff that is ancient or deprecated or both. (Which makes the exclusion of `map` seem natural instead of a problem, and push it out to the html4 bindings only...) -- ((x=>x(x))(x=>

Re: [racket-users] DrRacket Coverage

2016-02-16 Thread Eli Barzilay
cally -- for example, the handin server won't need to explicitly check for coverage, just run the code and throw any errors back to the client... -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/

Re: [racket-users] DrRacket Coverage

2016-02-16 Thread Eli Barzilay
with leaving the coverage colors or not. Even better if it "jumps up" as John said, so that it draws attention to it. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this

Re: [racket-users] DrRacket Coverage

2016-02-14 Thread Eli Barzilay
s me as weird every time another student gets confused. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Groups "Racke

[racket-users] DrRacket Coverage

2016-02-14 Thread Eli Barzilay
((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop rece

Re: [racket-users] splicing conditional results in the surrounding block?

2016-02-13 Thread Eli Barzilay
ed `and`s and `when`s without the usual gymnastics involved in splicing the results back into a single-level list. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message

Re: [racket-users] using TR in PL class?

2016-02-13 Thread Eli Barzilay
too, since I simplify / restrict some types in my language(s). > Opinions? Yes, I admit that I’m not giving Pyret a fair shake, and > I’ll admit that most of that is related to my commitment to Racket. (A general +1 about that too...) -- ((x=>x(x))(x=>x(x)))

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-09 Thread Eli Barzilay
;list stx)))]) #'(pregexp (string-append x ...)))])) @px{(?:@; no need to capture this @; one of these keywords: foo| bar| @; baz too baz ) @; followed by a newline @"\n" } ;; => #px"(?:foo|

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

2015-10-15 Thread Eli Barzilay
was an attempt to avoid the argument of `:foo` vs `foo:` vs "either one" vs whatever. -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the G

Re: [racket-users] syntax write using @-syntax

2015-10-04 Thread Eli Barzilay
s in the > original source files. Right -- that was the reason for my comment: maybe there's some way to keep the source code where it is, and refer to it from the files that you generate, so no textual generation is actually needed... -- ((x=>x(x))(x=>x(x)))

Re: [racket-users] syntax write using @-syntax

2015-10-04 Thread Eli Barzilay
the source information and just read the contents of the file. (A bad hack that might lead to a better way to do whatever, something that doesn't require copying source code...) -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.or

Re: [racket-users] Scribble: line comment swallows paragraph break

2015-09-18 Thread Eli Barzilay
" " " "World"). This sounds like it could be a more surprising behavior than just swallowing a single newline. But there's really no right or wrong -- note that this kind of behavior would have made it go even farther than what the OP wanted...

Re: [racket-users] Scribble: line comment swallows paragraph break

2015-09-18 Thread Eli Barzilay
the "similar to % in tex" comment in the docs given the weird thing it does with paragraph breaks... -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this messag

Re: [racket-users] Should compose be so slow?

2015-09-15 Thread Eli Barzilay
y and negate). (The general concept is similar to CL's compiler macros.) -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- You received this message because you are subscribed to the Google Gro

Re: [racket-users] Search code

2015-08-08 Thread Eli Barzilay
that out since then...). Finally, the actual search has a bunch of not-too-organized hacks that try to get expected results higher than others, and a bunch of features (a query language) that practically no one knows about... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay