Re: [racket] buggy error information for keyword args in 5.0?

2010-06-12 Thread Sam Tobin-Hochstadt
This is PR 10954. On Sat, Jun 12, 2010 at 5:32 PM, Todd O'Bryan wrote: > Here's a minimal example of what I think is a bug: > > #lang racket > > (define (blah #:foo foo #:bar bar) >  (+ foo 2)) > > (blah #:bar 3) > > Running it causes: > > blah: requires an argument with keyword #:foo, not suppli

Re: [racket] feedback on migrating to immutable pairs?

2010-06-13 Thread Sam Tobin-Hochstadt
On Sun, Jun 13, 2010 at 2:51 AM, Neil Van Dyke wrote: > 2. What was the rationale for not having "pair?", "car", "cdr", work on both > mutable pairs and immutable pairs?  Was this to push everyone harder towards > immutable pairs, at the cost of having to convert legacy libraries and > breaking R5

Re: [racket] How can I save all the definitions in racket to a file?

2010-06-24 Thread Sam Tobin-Hochstadt
To quote from Jose's documentation: "I’ve concentrated initially in supporting those Schemes with the richest (to my knowledge) introspection capabilities, namely, Guile and Racket." I assume it's running mostly elisp underneath. :) On Thu, Jun 24, 2010 at 9:28 AM, Shriram Krishnamurthi wrote

Re: [racket] Can I trace calls of a function?

2010-06-27 Thread Sam Tobin-Hochstadt
#lang racket (require racket/trace) (define (f x) (if (zero? x) "done" (f (sub1 x (trace f) (f 100) On Sun, Jun 27, 2010 at 12:54 AM, Insik Cho wrote: > Hi buddies, > I want to trace calls of a function with (require trace), but it doesn't > work. > What can I do to trace calls of a fun

Re: [racket] Can I trace calls of a function?

2010-06-27 Thread Sam Tobin-Hochstadt
On Sun, Jun 27, 2010 at 8:40 AM, Laurent wrote: > > > On Sun, Jun 27, 2010 at 14:35, Sam Tobin-Hochstadt > wrote: >> >> #lang racket >> >> (require racket/trace) >> >> (define (f x) >>  (if (zero? x) "done" (f (sub1 x >>

Re: [racket] Google doesn't know from DrRacket

2010-06-30 Thread Sam Tobin-Hochstadt
On Wed, Jun 30, 2010 at 4:54 PM, Eli Barzilay wrote: > > > Also, I think that Google uses dmoz for the search result blurbs, That definitely doesn't seem to be the case here, since Racket doesn't seem to be on dmoz at all. Google takes the snippet from the page directly. -- sam th sa...@ccs.ne

Re: [racket] Compiling on FreeBSD/sparc

2010-07-02 Thread Sam Tobin-Hochstadt
On Fri, Jul 2, 2010 at 2:39 PM, John Floren wrote: > I thought I'd give racket a shot on my new FreeBSD/sparc64 system, but > in compiling it I ran into a problem: > > make racketcgc > `racketcgc' is up to date. One thing to try is 'make cgc', which just builds the version with the conservative c

Re: [racket] adding other objects to custodian

2010-07-04 Thread Sam Tobin-Hochstadt
On Sun, Jul 4, 2010 at 6:45 PM, Matthew Flatt wrote: > At Sun, 4 Jul 2010 16:26:21 -0400, Eli Barzilay wrote: >> On Jul  4, Matthew Flatt wrote: >> > [...] >> > >> >  * A subprocess can create any number of sub-subprocesses itself, and >> >    there's no way to kill those, which isn't very custodi

Re: [racket] problem (?) with typed racket

2010-07-05 Thread Sam Tobin-Hochstadt
On Mon, Jul 5, 2010 at 10:09 AM, Jose A. Ortega Ruiz wrote: > > but, if we want to define a non-procedural value in an analogous fashion: > >  (: carrow (All (E) (C (Arrow E >  (define carrow >    (C #{compose-arrows :: ((Arrow E) (Arrow E) -> (Arrow E))})) > > the type checker complains that

Re: [racket] define-runtime-path-list and find-files

2010-07-05 Thread Sam Tobin-Hochstadt
This seems to work for me: #lang racket (require racket/runtime-path (for-syntax racket/file)) (define-runtime-path-list p (find-files (λ (x) (regexp-match "[.]tex$" x Probably you were missing the `for-syntax' require. On Mon, Jul 5, 2010 at 1:47 PM, Laurent wrote: > Hi, > > I'd like to bu

Re: [racket] define-runtime-path-list and find-files

2010-07-05 Thread Sam Tobin-Hochstadt
2010/7/5 Laurent : > > > Now another question: > I'm in fact using `find-files' inside a function, say `find-files-ex', that > is declared in the same file and used in the `define-runtime-path-list' > call. > The problem is that this function must be available both at compile time and > at runtime

Re: [racket] Dynamic define-predicate

2010-07-06 Thread Sam Tobin-Hochstadt
On Tue, Jul 6, 2010 at 7:00 PM, Neil Toronto wrote: > I'd like to use Typed Racket to create an interpreter for a typed lambda > calculus, which *inherits* Typed Racket's type system. (In other words, I'm > lazy and I don't want to make my own type system. But who does? Except maybe > Sam? :p) I w

Re: [racket] macro and set! problem

2010-07-10 Thread Sam Tobin-Hochstadt
On Sat, Jul 10, 2010 at 12:52 AM, Skeptic . wrote: > > I was trying to come up with a naive implementation of check-expect/test and > I found out that if a macro expands to a set! on a module-level variable > directly, an error will be given when using the macro from another module. A > simple

Re: [racket] match and equality

2010-07-10 Thread Sam Tobin-Hochstadt
On Sat, Jul 10, 2010 at 6:03 PM, Paulo J. Matos wrote: > Hi all, > > I have two questions regarding match. Hopefully both have an answer. > > One of the things I would like to do in a match is to in the pattern > have a variable to stand for a given pattern and at the same time be > able to match

Re: [racket] Using Futures

2010-07-28 Thread Sam Tobin-Hochstadt
On Wed, Jul 28, 2010 at 1:44 PM, Matthias Felleisen wrote: > > (Nothing about futures. But may I recommend a nice and simple 'optimization': > >  (cond >    [(= 1 (length values)) ...] > > adds quite some complexity to a recursive function over a list. > I'd use > >  (empty? (rest values)) > > ins

Re: [racket] begin vs +

2010-08-02 Thread Sam Tobin-Hochstadt
On Mon, Aug 2, 2010 at 9:48 AM, Keiko Nakata wrote: > Or, call/cc does not capture the state? `call/cc' does not capture the state of the heap (such as the contents of boxes). -- sam th sa...@ccs.neu.edu _ For list-related administrative tasks:

Re: [racket-users] Unsafe structs

2021-01-08 Thread Sam Tobin-Hochstadt
Thanks for this detailed account (and for trying it out). I have some questions inline: On Sat, Jan 2, 2021 at 5:34 PM Dominik Pantůček wrote: > And now for the worse part. TR rough edges: > > * Higher-order procedures and polymorphic functions in all imaginable > combinations. That was a total

Re: [racket-users] Unsafe structs

2021-01-21 Thread Sam Tobin-Hochstadt
On Wed, Jan 20, 2021 at 5:16 PM Dominik Pantůček wrote: > > Hi Sam, > > I went through all my notes and prepared minimal (sometimes) working > examples for most of the issues I mentioned. Let's go through it one by > one. I assume that some of the complications I encountered were because > my lack

Re: [racket-users] Typed racket and generics?

2021-02-02 Thread Sam Tobin-Hochstadt
Unfortunately this isn't supported yet. Right now, you can use struct type properties directly to build your own generics, but you can't use the generics library. Sam On Sat, Jan 30, 2021 at 4:20 AM Stuart Hungerford wrote: > > Hi Racketeers, > > Is there any way to have Racket code using `defin

Re: [racket-users] Error while compiling Racket BC

2021-02-05 Thread Sam Tobin-Hochstadt
This means that you're building with a previous version of Racket that is too old (which might be quite recent but is nonetheless too old to use in place of bootstrapping). Sam On Fri, Feb 5, 2021, 6:44 PM 'Killian Zhuo (KDr2)' via Racket Users < racket-users@googlegroups.com> wrote: > Here is m

Re: [racket-users] Error while compiling Racket BC

2021-02-05 Thread Sam Tobin-Hochstadt
w enough... > > Greetings. > > Killian Zhuo (KDr2, https://kdr2.com) > > > > On Saturday, February 6, 2021, 07:47:41 AM GMT+8, Sam Tobin-Hochstadt < > sa...@cs.indiana.edu> wrote: > > > This means that you're building with a previous version of Racket t

Re: [racket-users] Error while starting simple program

2021-02-15 Thread Sam Tobin-Hochstadt
I think there's a typo in your program -- there's an extra "br" in the name of `racket/function`. Sam On Mon, Feb 15, 2021 at 11:58 AM Gowthaman Basuvaraj wrote: > > open-input-file: cannot open module file > module path: racket/functionbr > path: /home/gowthaman/racket/collects/racket/functio

Re: [racket-users] Sticky scrollable nav bar in docs

2021-02-18 Thread Sam Tobin-Hochstadt
This seems like it would be a nice addition. I think starting with a PR is the right place to begin. Sam On Wed, Feb 17, 2021 at 7:01 PM 'William J. Bowman' via Racket Users wrote: > > One of my students asked about making the Racket docs navbar sticky and > scrollable, to help when navigating

Re: [racket-users] can't create a new package on pkgd.racket-lang.org

2021-02-23 Thread Sam Tobin-Hochstadt
Unfortunately, it's old versions of Racket that don't support this, and adding error messages there will have the same problem as fixing them -- they're already out there and on people's computers. However, this will be fixed in the next release of Racket. Sam On Tue, Feb 23, 2021 at 6:49 AM Roge

Re: [racket-users] public email addresses on packages server

2021-02-23 Thread Sam Tobin-Hochstadt
Github doesn't require making your email address public. Sam On Tue, Feb 23, 2021 at 12:19 PM Hendrik Boom wrote: > > On Sat, Feb 20, 2021 at 11:47:19PM +0700, Roger Keays wrote: > > Has any consideration been given to concealing email addresses on > > pkgs.racket-lang.org for privacy purposes?

Re: [racket-users] Verifying the contract on a function

2021-02-24 Thread Sam Tobin-Hochstadt
You can use the value-contract function, along with contract-stronger? to do this. Sam On Wed, Feb 24, 2021, 6:03 PM David Storrs wrote: > I have some macros that generate functions. For testing purposes, I'd > like to be able to ask the function "Do you have this contract > ?" Is there a way

Re: [racket-users] Racket slower than Chez Scheme on interpreter benchmark, potential low hanging fruit?

2021-03-01 Thread Sam Tobin-Hochstadt
When Chez is faster than Racket CS, the usual culprits are either: - mutable pairs - very large code size that causes Racket CS to interpret the outer module However, neither of those seem to be happening here. Sam On Mon, Mar 1, 2021 at 2:39 AM philngu...@gmail.com wrote: > > There’s this benc

Re: [racket-users] Racket slower than Chez Scheme on interpreter benchmark, potential low hanging fruit?

2021-03-03 Thread Sam Tobin-Hochstadt
First, there's no longer a difference because yjqww6 just had a PR merged that improves the Racket performance. The performance difference that was there was mostly because the Chez code was run with `--optimize-level 3` which turns off safety. If that was changed to `--optimize-level 2` the timin

Re: [racket-users] Racket slower than Chez Scheme on interpreter benchmark, potential low hanging fruit?

2021-03-04 Thread Sam Tobin-Hochstadt
ce slower. > > On Wednesday, March 3, 2021 at 11:12:30 AM UTC-8 Sam Tobin-Hochstadt wrote: >> >> First, there's no longer a difference because yjqww6 just had a PR >> merged that improves the Racket performance. >> >> The performance difference that was ther

Re: [racket-users] Method gen:custom-write of a struct not working within lists

2021-03-04 Thread Sam Tobin-Hochstadt
I think you want to add `#:property prop:custom-print-quotable 'never` to that struct declaration, and then it will behave as you wanted. Sam On Thu, Mar 4, 2021 at 11:44 AM Dimaugh Silvestris wrote: > > I have a struct defined as: > (struct ugen sc.unit (name rate inputs) > #:methods gen:cust

Re: [racket-users] Method gen:custom-write of a struct not working within lists

2021-03-04 Thread Sam Tobin-Hochstadt
On Thu, Mar 4, 2021 at 3:24 PM Dimaugh Silvestris wrote: > > On Thu, 4 Mar 2021 at 19:29, Sam Tobin-Hochstadt wrote: >> >> It doesn't print that way because that wouldn't turn back into the original >> value when evaluated, since it's quoted. > >

Re: [racket-users] Possible bug when reading/writing large inexact numbers

2021-03-07 Thread Sam Tobin-Hochstadt
I believe it's https://github.com/racket/racket/commit/0561d71e60502fa857b0d169f64da723584d96d6 Sam On Sun, Mar 7, 2021 at 8:52 PM Greg Rosenblatt wrote: > > Great, thanks. Out of curiosity, where in the reader was this bug > originally? Can you point me to a diff? > > On Sunday, March 7, 20

Re: [racket-users] Synchronizable conjunction of events?

2021-03-15 Thread Sam Tobin-Hochstadt
I think Aaron Turon's reagents (and more generally k-cas) are an example of N-way rendezvous. Sam On Mon, Mar 15, 2021, 5:50 PM Matthew Flatt wrote: > At Mon, 15 Mar 2021 13:38:46 -0700 (PDT), Greg Rosenblatt wrote: > > Is there a corresponding event for a logical conjunction (I was looking > f

Re: [racket-users] Synchronizable conjunction of events?

2021-03-16 Thread Sam Tobin-Hochstadt
r. Is there anything CML can express that > reagents have trouble with? How does the implementation complexity compare? > > On Monday, March 15, 2021 at 8:12:03 PM UTC-4 Sam Tobin-Hochstadt wrote: > >> I think Aaron Turon's reagents (and more generally k-cas) are an example

Re: [racket-users] Word Count program/benchmark performance

2021-03-18 Thread Sam Tobin-Hochstadt
Here's a somewhat-optimized version of the code: #lang racket/base (require racket/string racket/vector racket/port) (define h (make-hash)) (time (for* ([l (in-lines)] [w (in-list (string-split l))] [w* (in-value (string-downcase w))]) (hash-update! h w* add1 0))) (define v

Re: [racket-users] Word Count program/benchmark performance

2021-03-18 Thread Sam Tobin-Hochstadt
2021 at 11:28 AM Sam Tobin-Hochstadt wrote: > > Here's a somewhat-optimized version of the code: > > #lang racket/base > (require racket/string racket/vector racket/port) > > (define h (make-hash)) > > (time > (for* ([l (in-lines)] > [w (in-list (st

Re: [racket-users] Word Count program/benchmark performance

2021-03-19 Thread Sam Tobin-Hochstadt
18, 2021 at 7:22:10 PM UTC bogdan wrote: > > > >> I managed to get it about as fast as Python by making it really > >> imperative and rolling my own hash: > >> > >> https://gist.github.com/Bogdanp/fb39d202037cdaadd55dae3d45737571 > >> > >

Re: [racket-users] Word Count program/benchmark performance

2021-03-19 Thread Sam Tobin-Hochstadt
something new. >> > >> > Many thanks, >> > Pawel >> > >> > On Thursday, March 18, 2021 at 7:22:10 PM UTC bogdan wrote: >> > >> >> I managed to get it about as fast as Python by making it really >> >> imperative and rolling m

Re: [racket-users] Best way to say 'block until true'?

2021-03-19 Thread Sam Tobin-Hochstadt
Another possibility is to send a message on a channel when the user is set, and then just wait with `sync` for a message to appear on the channel. Sam On Fri, Mar 19, 2021 at 12:02 PM Jay McCarthy wrote: > > The best thing is to use a semaphore instead of a mutable reference. > If you can't do t

Re: [racket-users] Word Count program/benchmark performance

2021-03-19 Thread Sam Tobin-Hochstadt
small speed-ups? On my machines, if I > run the same program twice, I can sometimes see more than 10% time difference. > > On Fri, Mar 19, 2021 at 4:10 PM Sam Tobin-Hochstadt > wrote: >> >> Use `#:authentic`, and `unsafe-vector*-{ref,set!}` saved about 50 more >>

Re: [racket-users] Package server certificate expired

2021-04-01 Thread Sam Tobin-Hochstadt
This should be fixed now. Let this be a lesson about ignoring warnings about out-of-date software. :) Sam On Thu, Apr 1, 2021 at 11:59 AM David Storrs wrote: > > Not sure where the right place is to report this, but the certificate for > pkgd.racket-lang.org expired on 3/31/2021. > > -- > You

Re: [racket-users] Upgrading installer verification

2021-04-01 Thread Sam Tobin-Hochstadt
I don't think we have plans to start signing installers. The code that creates installers is in the `distro-build` package, and the use of sha1 is here: https://github.com/racket/distro-build/blob/21ccc39fc14408eea79aff035e508856a66adf89/distro-build-server/pack-built.rkt#L76 Sam On Thu, Apr 1,

Re: [racket-users] How to make a sandboxed evaluator in Scribble

2021-04-01 Thread Sam Tobin-Hochstadt
You might use `(list 'value-evt)` if that's the require you want. Sam On Thu, Apr 1, 2021 at 3:41 PM David Storrs wrote: > > I cargo-culted this chunk of code and, predictably, it is now failing > for reasons I don't understand. This is in the value-evt scribble > file; it works fine when I bui

Re: [racket-users] Upgrading installer verification

2021-04-02 Thread Sam Tobin-Hochstadt
There is indeed signing for Ubuntu ppas, but that's specific both to apt and to the ppa system. Sam On Fri, Apr 2, 2021, 9:29 PM Sage Gerard wrote: > No, I'm just looking for extra confidence when verifying installers. > > On that note, did Ubuntu require someone to sign packages to distribute

Re: [racket-users] Variadic fixnum operations (was: Unsafe structs)

2021-04-15 Thread Sam Tobin-Hochstadt
On Thu, Apr 15, 2021 at 4:21 PM Dominik Pantůček wrote: > > Hello Racketeers, > > >> * Math/Fixnums/Flonums: All fx+/-/*/... accept two arguments only. No > >> unary fl-, no variadic-argument fl+ or fxior (this one hurt the most). > > > > These definitely became variadic after the type definitions

Re: [racket-users] Typed Racket: type relations

2021-04-16 Thread Sam Tobin-Hochstadt
To improve this, we'd have to extend the type of `fxquotient`, which is reasonable, but I'm not sure what the addition would be. In particular, your addition is not sound: (fxquotient 1024 2) produces 512 which is not a Byte. Sam On Thu, Apr 15, 2021 at 6:22 PM Dominik Pantůček wrote: > > Hello

Re: [racket-users] Typed Racket: type relations

2021-04-17 Thread Sam Tobin-Hochstadt
ace racket/unsafe/ops with TR to provide > compile-time type consistency and to have modules which are internally > consistent and if they are used with other TR code the consistency > remains. More on that later. > > On 16. 04. 21 15:51, Sam Tobin-Hochstadt wrote: > > To i

Re: [racket-users] Typed Racket: type relations

2021-04-19 Thread Sam Tobin-Hochstadt
On Sun, Apr 18, 2021 at 3:05 AM Dominik Pantůček wrote: > > 0. Thank you very much for looking into this. > > On 18. 04. 21 4:57, Sam Tobin-Hochstadt wrote: > > Ok, three parts: > > > > 1. Is it possible to make `average` on `Byte` provably produce a > > `Byt

Re: [racket-users] Typed Racket: type relations

2021-04-20 Thread Sam Tobin-Hochstadt
It's a little more complicated than that -- the _constraints_ have to be linear -- that is, the expressions in the refinements, but the expressions reasoned about can be more general. However, it doesn't do very much useful with multiplication by bounded values at the moment. Sam On Mon, Apr 19,

Re: [racket-users] Typed Racket: type relations

2021-04-20 Thread Sam Tobin-Hochstadt
On Mon, Apr 19, 2021 at 3:19 PM Dominik Pantůček wrote: > > >>> > >>> However, I would suggest that the right fix here is to use refinement > >>> types, and specify exactly what you want. Unfortunately, the > >>> refinement types feature (good intro here: > >>> https://blog.racket-lang.org/2017/11

Re: [racket-users] limitation of TR contract translation?

2021-04-30 Thread Sam Tobin-Hochstadt
This is a bug. It's not the the contract is unsatisfiable, it's that it's too satisfiable. The contract system could probably make this work, but Typed Racket should probably avoid this situation. Sam On Fri, Apr 30, 2021, 2:07 AM 'John Clements' via Racket Users < racket-users@googlegroups.com>

Re: [racket-users] Package install conflicts on the Racket package catalog

2021-05-05 Thread Sam Tobin-Hochstadt
I think there's two things you're seeing. 1. The results hadn't yet updated for your typed-compose change. I no longer see a conflict here: https://pkg-build.racket-lang.org/ 2. The conflicts page is for _all_ the packages in the whole package catalog. That's why it always mentions mischief. The

Re: [racket-users] I want a package at installation scope but also to keep my install clean

2021-05-18 Thread Sam Tobin-Hochstadt
You might also be interested in the new `raco-pkg-env` tool: https://github.com/samdphillips/raco-pkg-env/ Sam On Tue, May 18, 2021 at 12:20 PM Matthew Flatt wrote: > > Yes, this approach can work. I don't think the existing Racket tools > will help much with persisting a configuration across ve

Re: [racket-users] Sharing scope in setup/cleanup for dynamic-wind?

2021-05-18 Thread Sam Tobin-Hochstadt
It's not quite as convenient, but here's a version of your program that should work: (let ([conn #f]) (dynamic-wind (lambda () (set! conn (connect-to-server)) (lambda () (send-message conn "foo")) (lambda () (finalize-connection conn Sam On Tue, May 18, 2021 at 2:08 PM David St

Re: [racket-users] Sharing scope in setup/cleanup for dynamic-wind?

2021-05-18 Thread Sam Tobin-Hochstadt
#x27;s easier to see what the code should do before > getting into the weeds of error handling. > > (I probably should have put these details in the original message but I was > trying to keep it simple so as not to make people burn brain cycles.) > > On Tue, May 18, 2021 a

[racket-users] An Apology

2021-06-18 Thread Sam Tobin-Hochstadt
at we should have, and we are sorry. If you wish to offer your thoughts to the people named below, the email address feedb...@racket-lang.org will reach us directly. Jay McCarthy John Clements Matthew Flatt Robby Findler Sam Tobin-Hochstadt [Matthew Butterick's recent po

Re: [racket-users] Top-level unbound identifiers during expansion

2021-06-28 Thread Sam Tobin-Hochstadt
This is indeed an issue where "the top-level is hopeless" is the problem [1]. However, there's a better work-around. You can write `(define-syntaxes (name.r ...) (values))` to forward-declare all those names, and then the subsequent definitions will work correctly. Sam [1] https://lists.racket-l

Re: [racket-users] Speeding up the conversion of flvectors to string

2021-06-28 Thread Sam Tobin-Hochstadt
On Mon, Jun 28, 2021 at 9:46 PM Jonathan Simpson wrote: > > On Sunday, June 27, 2021 at 10:29:55 AM UTC-4 Robby Findler wrote: >> >> Replacing ` (~r x #:precision 1)` with `(number->string x)` and ditto for >> `y` eliminates the overhead of contracts and brings about another 4x speedup >> on my

Re: [racket-users] Speeding up the conversion of flvectors to string

2021-06-29 Thread Sam Tobin-Hochstadt
On Tue, Jun 29, 2021 at 12:04 PM Jonathan Simpson wrote: > > On Monday, June 28, 2021 at 10:25:36 PM UTC-4 Sam Tobin-Hochstadt wrote: >> >> On Mon, Jun 28, 2021 at 9:46 PM Jonathan Simpson wrote: >> > >> > On Sunday, June 27, 2021 at 10:29:55 AM UTC-4 Robby

Re: [racket-users] machine and network outage at Northeastern

2021-07-01 Thread Sam Tobin-Hochstadt
Unfortunately, this has had larger impact than we expected, because a number of places linked directly to mirror.racket-lang.org, which normally hosts downloads. That machine will be down until July 2. In particular, this seems to affect the setup-racket GitHub Action and the homebrew formula for R

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread Sam Tobin-Hochstadt
Your "only remaining idea" is what I'd recommend for telling another place what function to run (that's how dynamic-place works in the first place). But your [details] sounds worrying. I just tested on my machine and it didn't happen for me, and I don't think it's supposed to happen on other platfo

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread Sam Tobin-Hochstadt
Ah, this must be a case where different platforms behave differently, because I still see other threads running even with `finder:std-get-file` on Linux. Sam On Thu, Jul 1, 2021 at 2:58 PM David Storrs wrote: > > > > On Thu, Jul 1, 2021 at 2:42 PM Sam Tobin-Hochstadt > wrote: &

[racket-users] Security advisory for racket/sandbox; fixed in v8.2

2021-07-19 Thread Sam Tobin-Hochstadt
The Racket team recently became aware of a security vulnerability in the `racket/sandbox` library. Code evaluated using a sandbox could cause system modules to incorrectly use attacker-created modules instead of their intended dependencies. This could allow system functions to be controlled by the

[racket-users] Looking for system admin help for the package system

2021-12-07 Thread Sam Tobin-Hochstadt
Currently, the implementation of https://pkgs.racket-lang.org as well as https://pkg-build.racket-lang.org (see Notes) is primarily maintained by Matthew Flatt, although much of it was originally written by Jay McCarthy and Tony Garnock-Jones (for pkgs in particular). Matthew of course wears a lot

Re: [racket-users] Looking for system admin help for the package system

2021-12-08 Thread Sam Tobin-Hochstadt
up to the end of the year, with lots to > do but, come January, I should be in much better shape. > > James > > On Dec 7, 2021, at 3:30 PM, Sam Tobin-Hochstadt wrote: > > > Currently, the implementation of https://pkgs.racket-lang.org as well > > as https://pkg-bui

Re: [racket-users] Discourse - Mailing list mode

2021-12-09 Thread Sam Tobin-Hochstadt
It appears that enabling this is quite simple. I believe I have set it up so that emailing racket+uncategorize...@discoursemail.com should create a new topic in the Uncategorized category. Feel free to test it out. Sam On Thu, Dec 9, 2021 at 8:27 AM Stephen De Gabrielle wrote: > > > it’s becomin

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2022-01-11 Thread Sam Tobin-Hochstadt
One thing to note here: it's now not possible to _request_ to join the list. If someone wants to join the list, they have to know someone who is already a member and ask them to join. It looks like another option is "Anyone on the web can ask" to join. It's not immediately clear who gets the email

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2022-01-12 Thread Sam Tobin-Hochstadt
in" no matter what, so the mailing list configuration is relevant >> for a different reason. Do we want members to start the process in Google >> Groups, or by sending an email to a fixed address? >> >> On 1/11/22 1:51 PM, Robby Findler wrote: >> >> P

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2022-01-12 Thread Sam Tobin-Hochstadt
s > disguise permission issues, so I suspect that switching to "ask to join" > will make that problem go away too. > > On 1/12/22 1:00 PM, Sam Tobin-Hochstadt wrote: > > > Here's my suggestion: we switch to "ask to join" on Google Groups. I > > thi

Re: [racket-users] how do I remove a specified collection?

2022-08-08 Thread Sam Tobin-Hochstadt
I don't think that you need to remove `t`. Instead, your problem is that somewhere something is calling `collection-path` with "t" as an argument. If you provide more information about the context and the error message, it would be easier to help here. Sam On Mon, Aug 8, 2022 at 11:31 AM Don Gree

Re: [racket-users] The Racket programming language mailing list has moved!!

2023-07-21 Thread Sam Tobin-Hochstadt
We're using the free-for-open-source plan from Discourse: https://free.discourse.group/ Sam On Fri, Jul 21, 2023 at 1:13 PM Ryan Johnson wrote: > Thanks > > How did you guys get a discourse.group subdomain? I visited > discourse.group and the domain is unreachable. > > What software is it runni

Re: [racket] doubly linked list lib

2011-08-30 Thread Sam Tobin-Hochstadt
I think there are some purely functional data structures that you can use here. Two examples: - Random Access Lists implemented in Hari Prashanth's Typed Purely Functional Data Structures [1] Some of the other data structures here, such as VLists, may also be helpful. - David Van Horn's RAL

Re: [racket] Splicing format string?

2011-09-01 Thread Sam Tobin-Hochstadt
On Thu, Sep 1, 2011 at 9:43 AM, J. Ian Johnson wrote: > I have a list of symbols '(a b c) that I want to be printed "a b c" as part > of string I'm formatting. > 2) Is there a better way to write my first attempt without changing format > string? Here is another possibility: (with-output-to-s

Re: [racket] module->language-info at repl

2011-09-01 Thread Sam Tobin-Hochstadt
On Thu, Sep 1, 2011 at 3:43 PM, Matthew Flatt wrote: > Instead of `#:info', you want to specify `#:language-info'. > > The `#:info' hook is for things related to the *source* of a module in > the language, such as syntax coloring in DrRacket for a module that > start `#lang Z'. The plain `racket'

Re: [racket] recent updates to Whalesong development: web-world

2011-09-03 Thread Sam Tobin-Hochstadt
On Fri, Sep 2, 2011 at 4:33 PM, Danny Yoo wrote: > > We have a few programs and some initial documentation on this.  The > documentation for the web-world API is: > >    http://hashcollision.org/whalesong/#(part._.The_web-world_.A.P.I) > > > Here are two toy examples.  (Note: try the examples in C

Re: [racket] splicing into local

2011-09-03 Thread Sam Tobin-Hochstadt
On Sat, Sep 3, 2011 at 3:38 PM, Shriram Krishnamurthi wrote: > I have a define form that expands into two two definitions.  Usually I can > write > > (my-define ...) ==> (begin (define ...) (define ...)) > > However, this doesn't interact well with local.  Is there a way of > identifying that I'm

Re: [racket] Installing

2011-09-03 Thread Sam Tobin-Hochstadt
On Sat, Sep 3, 2011 at 5:04 PM, Doug Orleans wrote: > > Better yet, package it into a .deb, which, when you double-click on > it, will launch the Ubuntu Software Center and install it. There's and Ubuntu PPA here: https://launchpad.net/~plt/+archive/racket maintained by Jon Rafkind. Probably the

Re: [racket] Installing

2011-09-03 Thread Sam Tobin-Hochstadt
On Sat, Sep 3, 2011 at 5:26 PM, Doug Orleans wrote: > On Sat, Sep 3, 2011 at 5:09 PM, Sam Tobin-Hochstadt wrote: >> There's and Ubuntu PPA here: >> https://launchpad.net/~plt/+archive/racket maintained by Jon Rafkind. > > Huh, neat, thanks.  That page says you have

Re: [racket] getting the term in syntax-id-rules

2011-09-05 Thread Sam Tobin-Hochstadt
On Mon, Sep 5, 2011 at 11:50 AM, Shriram Krishnamurthi wrote: > In a syntax-case, I can obtain the term being processed: eg, > > (define-syntax (foo stx) >  (syntax-case stx () >   [... (with-syntax ([term stx]) ... #'term)])) > > In syntax-id-rules, the RHS is like a syntax-*rules*, so I don't k

Re: [racket] recent updates to Whalesong development: web-world

2011-09-05 Thread Sam Tobin-Hochstadt
On Mon, Sep 5, 2011 at 2:36 PM, Danny Yoo wrote: > On Fri, Sep 2, 2011 at 4:33 PM, Danny Yoo wrote: >> We're smack in the middle of implementing web-world for Whalesong, >> which is analogous to regular world, but with web pages.  Unlike >> regular world, the callbacks in web-world take in both t

Re: [racket] turning off shared printing in pconvert

2011-09-05 Thread Sam Tobin-Hochstadt
What would be printed for cycles? On Mon, Sep 5, 2011 at 9:56 PM, Shriram Krishnamurthi wrote: > Just in case my example is misleading, I want to suppress ALL shared > printing if possible. > _ >  For list-related administrative tasks: >  http://lis

Re: [racket] online check syntax error display tweak

2011-09-09 Thread Sam Tobin-Hochstadt
On Thu, Sep 8, 2011 at 11:48 PM, Robby Findler wrote: > I've changed how online check syntax reports errors. Instead of > hilighting the source location in gold, it puts a little reddish thing > in the right-hand margin where the error is. The goal is to make this > less obtrusive in, say, lecture

Re: [racket] Documenting a financial model in Racket?

2011-09-09 Thread Sam Tobin-Hochstadt
On Fri, Sep 9, 2011 at 11:23 AM, Grant Rettke wrote: > Hi, > > At work I've inherited a financial application whose model that is too > complicated to be documented. > > It has got me really curious how I might use Racket to document, > understand, and implement the model so that we can really fle

Re: [racket] online check syntax error display tweak

2011-09-09 Thread Sam Tobin-Hochstadt
On Fri, Sep 9, 2011 at 6:08 PM, Robby Findler wrote: > On Fri, Sep 9, 2011 at 10:04 AM, Sam Tobin-Hochstadt > wrote: >> Speaking of things that would improve the experience of those who keep >> parens balanced, if the error message appearing didn't move the >> div

Re: [racket] online check syntax error display tweak

2011-09-09 Thread Sam Tobin-Hochstadt
I'm definitely in favor of the alpha fanciness idea. The others seem reasonable as well, though. sam th On Sep 9, 2011 8:09 PM, "Robby Findler" wrote: > On Fri, Sep 9, 2011 at 5:42 PM, Sam Tobin-Hochstadt wrote: >> On Fri, Sep 9, 2011 at 6:08 PM, Robby Findler >>

Re: [racket] Define-type language form, and macros

2011-09-11 Thread Sam Tobin-Hochstadt
On Sun, Sep 11, 2011 at 1:44 PM, Jeremy Kun wrote: > Is there an existing Racket analogue for the "define-type" language form > from the PLAI text? Is there a quick way for me to just (require-syntax > define-type) so I can use it in my otherwise purely-Racket programs? Or > perhaps, is there a wa

Re: [racket] Typed Racket macros in untyped code

2011-09-15 Thread Sam Tobin-Hochstadt
On Thu, Sep 15, 2011 at 10:29 PM, Eric Dobson wrote: > Currently macros written from Typed Racket can not be used in the > untyped world. > Example: > > #lang racket/load > > (module t typed/racket >  (provide foo) >  (define-syntax (foo stx) >    #'(+ 2 1))) > > (module u racket >  (require 't) >

Re: [racket] internal define in define

2011-09-21 Thread Sam Tobin-Hochstadt
On Wed, Sep 21, 2011 at 10:24 PM, Robby Findler wrote: > > Did anyone check and see if there are any uses of (define (let () > ...)) in the tree or on planet? I know I've used this idiom, and even more: (define-values (x y) (let () ...)) -- sam th sa...@ccs.neu.edu ___

[racket] Writing parallel racket benchmarks

2011-09-25 Thread Sam Tobin-Hochstadt
This past week, I wrote some parallel Racket versions of benchmarks for the Computer Language Shootout. It was fun to do, and I wrote a little bit about what I learned: http://scriptstoprograms.wordpress.com/2011/09/25/benchmarketing/ One unfortunate bit -- it's hard to combine the `place' form a

Re: [racket] request for testing .apk file

2011-09-26 Thread Sam Tobin-Hochstadt
On Mon, Sep 26, 2011 at 12:56 PM, Danny Yoo wrote: > An alternative to the APK stuff, offline web-app using HTML 5's > application caching, is also in place.  See: > >    http://hashcollision.org/tmp/where-am-i/where-am-i.html This doesn't seem to do anything with the local storage for me, on Fir

Re: [racket] splicing internal define?

2011-09-28 Thread Sam Tobin-Hochstadt
On Wed, Sep 28, 2011 at 10:36 AM, Marijn wrote: > > recent talk about internal define being considered the preferred style > made me focus on trying to use it more in my own code and resulted in > some thoughts which I'd like to throw out there without much sanity > checking on my part. > > Consid

Re: [racket] editing a bug report

2011-09-29 Thread Sam Tobin-Hochstadt
You should reply to the email that you recieved from the bug system, keeping the original subject line. All emails to the bug system are automatically handled and added to the correct bug. On Thu, Sep 29, 2011 at 8:30 AM, Eddie Rucker wrote: > I made a mistake and would like to edit the bug repo

Re: [racket] release date for RacketCon videos?

2011-09-30 Thread Sam Tobin-Hochstadt
The videos are still being processed, and I hope they will be up soon, but I don't have an estimated date. On Fri, Sep 30, 2011 at 12:50 PM, Eric Tanter wrote: > Hi, > > It seems that the videos of RacketCon are not online yet. Is there an > estimated release date? > > Thanks, > > -- Éric > > __

Re: [racket] Starting Racket?

2011-10-01 Thread Sam Tobin-Hochstadt
Your path needs to have the *directory* that `drracket' is in, not the file itself. $PATH is a list of directories. On Sat, Oct 1, 2011 at 7:51 AM, michael rice wrote: > Just installed the 64-bit Linux Fedora 14 version (I'm using F15), but seem > to be having a problem starting it up. > [micha

Re: [racket] Poll: Does anybody besides Doug use 'plot'?

2011-10-01 Thread Sam Tobin-Hochstadt
On Sat, Oct 1, 2011 at 2:51 PM, Neil Toronto wrote: > > You know what would convince me the most? Find me a great name for the new > library that contains the word "plot". It should be clever and sound > official. Why does it need to include 'plot'? What about "chart" or "graph" or "visualize"?

[racket] Gathering GC statistics for Racket programs

2011-10-01 Thread Sam Tobin-Hochstadt
Since Matthew added nice programmatic tools for understanding the behavior of the GC, I've written a little tool to summarize the GC behavior of your program. You can find it on GitHub here: https://github.com/samth/gcstats . To install it, do this: % git clone git://github.com/samth/gcstats.git

Re: [racket] Concurrent execution

2011-10-03 Thread Sam Tobin-Hochstadt
On Mon, Oct 3, 2011 at 2:25 AM, Jukka Tuominen wrote: > > Sorry for thinking aload again, but I'm learning these issues myself in the > background, and I wonder if something like the following might work? > > Concurrent List Processing -idea > > Two phase process > > 1) Distribution phase > Creat

Re: [racket] Learning Scheme and Racket

2011-10-05 Thread Sam Tobin-Hochstadt
On Wed, Oct 5, 2011 at 12:48 AM, Asumu Takikawa wrote: >>    Also if there are any articles that discuss the design decisions about >>    Racket where it has diverged from the usual or standard form of Scheme. >>    Not just where it differs but why it was made different. > > Off the top of my hea

Re: [racket] Thumbnailing

2011-10-06 Thread Sam Tobin-Hochstadt
On Thu, Oct 6, 2011 at 8:16 AM, Paulo J. Matos wrote: > On 05/10/11 15:26, Stephen Bloch wrote: >>> >>> I am wondering if there's anything in place already to create an image >>> thumbnail. This is basically resizing an image. >> >> In the student graphics libraries (2htdp/image and picturing-prog

Re: [racket] unstable/match

2011-10-11 Thread Sam Tobin-Hochstadt
I don't plan to change it, but I do plan to move it to `racket/match'. On Tue, Oct 11, 2011 at 2:51 PM, Brian Mastenbrook wrote: > What is the likelihood that the == match expander from unstable/match is > going to change in the future? It hasn't been changed since it was added > almost two years

  1   2   3   4   5   6   7   8   9   10   >