Re: [racket-users] Rationale for package structure

2021-10-10 Thread Sam Phillips
The --binary flag only works for the current release with the default catalog iirc. Cheers, Sam On Sat, Oct 9, 2021, 11:58 Sorawee Porncharoenwase wrote: > I think it's so that `raco pkg install mypkg-lib` won't install > `racket-doc` if you use Minimal Racket? > > If you don't split `mypkg` to

Re: [racket-users] Racket meeting tomorrow?

2021-10-01 Thread Sam Phillips
October 2, 2021 1 PM PDT 4 PM EDT 8 PM UTC 10 PM CEST Should be the same URL as previous meetups. https://gather.town/app/wH1EDG3McffLjrs0/racket-users Cheers, Sam On Fri, Oct 1, 2021 at 9:49 AM Hendrik Boom wrote: > > Is there going to be a Racket online meeting at the gather site tomorrow >

[racket-users] [ANNOUNCE] Racket Users Video Meetup ☎️ 📺

2020-12-28 Thread Sam Phillips
XIS >KING & MATTHIAS FELLEISEN > > > https://2020.splashcon.org/details/splash-2020-oopsla/105/Macros-for-Domain-Specific-Languages > Kind regards, Sam Phillips & Stephen De Gabrielle -- You received this message because you are subscribed to the Google Groups "Rack

Re: [racket-users] Why is get-impure-port* slower than a system call to curl?

2020-09-14 Thread Sam Phillips
Hi Stephen, I ran this small benchmark against a remote web server, and was definitely getting better response using the http-easy module. https://gist.github.com/samdphillips/32763ebd0d938678c2972b1dd8ee5778 $ racket -e '(require (submod "http-perf.rkt" curl))' cpu time: 768 real time: 35299 gc

[racket-users] Make your computer talk in Racket on Windows in 5 lines

2020-05-16 Thread Sam Phillips
Stephen De Gabrielle and I are wondering if any Mac or Linux users have similar short programs to make their computer talk. https://www.reddit.com/r/Racket/comments/gkz3yi/make_your_computer_talk_in_racket_on_windows_in_5/ Cheers, Sam ->8->8- #lang racket/base (require ffi/com) (de

Re: [racket-users] Arbitrary property types on structs?

2020-03-25 Thread Sam Phillips
On 2020-03-25 14:16, David Storrs wrote: This would let me use a struct as an output port: (struct foo (name out) #:property prop:output-port (struct-field-index out)) I'd like to be able to set up a struct such that I can use it as a UDP socket, something like the following pseudo-code: (st

[racket-users] 2019 Racket Advent of Code Leaderboard

2019-11-18 Thread Sam Phillips
# 2019 Racket Advent of Code Leaderboard [Advent of Code](https://adventofcode.com/) is a fun contest to practice your Racket skills, show off your Racket prowess, and encourage others to explore the world of Language Oriented Programming. The contest starts December 1st and continues to Christ

Re: [racket] How to invoke a blocking foreign function without blocking whole racket?

2013-01-31 Thread Sam Phillips
On Wed, Jan 30, 2013 at 6:16 AM, Laurent wrote: > On Wed, Jan 30, 2013 at 3:06 PM, Haiwei Zhou wrote: >> >> Cool! The open-fd-input-port is a great function. > > > Yes, indeed. Maybe something like this would be a useful addition to Racket. > Yet another inotify wrapper for Racket that I worked

Re: [racket] minimum spanning tree

2012-12-03 Thread Sam Phillips
I always thought that an implementation of FGL would be nice. http://web.engr.oregonstate.edu/~erwig/fgl/ Cheers, Sam On Mon, Dec 3, 2012 at 11:34 AM, Stephen Chang wrote: > I have a half-finished graph library based on the C++ boost library > and racket generics to support different representa

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-09-11 Thread Sam Phillips
On Fri, Sep 7, 2012 at 4:48 PM, Greg Hendershott wrote: > That's a good point, Tobias. > > I'd actually be fine with `define-logger' acting like > `define/provide-logger' -- just go ahead and provide them all. > > Because I don't see opacity being such a useful option for a logger, > as opposed to

Re: [racket] Looping with look-behind and look-forward

2012-05-27 Thread Sam Phillips
On Sun, May 27, 2012 at 8:46 AM, Harry Spier wrote: > (define (f1 l) >   (for/fold ([result-list '()]) >    ( [prior (in-list (append '() l))] >      [x (in-list l)] >      [next (in-list  (append (rest l) '()))]) >    ... >    ... make new-result-element using x prior and next... >   (cons new-re

Re: [racket] playing with upcoming racket 5.3 submodules feature

2012-04-19 Thread Sam Phillips
On Wed, Apr 18, 2012 at 17:19, Danny Yoo wrote: > I'm playing around with submodules with a small toy program: > >    https://gist.github.com/2417377 > > Submodules are neat!  In particular, it includes several submodules > for different roles. > In case other people are interested, here is the p

Re: [racket] happy april fools day: arctangent 0.1

2012-04-03 Thread Sam Phillips
On Mon, Apr 2, 2012 at 01:12, Neil Van Dyke wrote: > Arctangent is more practical than the DrBASIC that I started but didn't get > back to in time for April 1st.  (Line numbers, and everything.  And who of > us who were tots in the '80s realized that "NEXT A" wasn't necessarily > lexical.) :) Thi

Re: [racket] Racket Google Hits

2012-01-10 Thread Sam Phillips
On Tue, Jan 10, 2012 at 09:11, John Clements wrote: > Related note: there's a new book out about Racket! > > Uh, more or less > > http://www.amazon.com/gp/product/1244213063/ref=cm_cr_mts_prod_img [somewhat OT] GAH! "Books" like this suck. My wife was looking for a copy of an out of print

Re: [racket] string-strip

2011-12-27 Thread Sam Phillips
On Tue, Dec 27, 2011 at 09:55, Marijn wrote: > Sometimes I wish for python-like string-strip to be a standard > function. For example when I want to parse a list of numbers from a > text-field, I could get the string value of the text-field, strip > space from the beginning and end, split on white

Re: [racket] Graphics Issues in Ubuntu 11.10

2011-10-17 Thread Sam Phillips
Ideally you could just cherry-pick Matthew's change as a patch and apply that during the build of the deb until the next official Racket release is made. http://en.wikipedia.org/wiki/Debian_build_toolchain#Patch_systems Cheers, Sam On Mon, Oct 17, 2011 at 17:52, Jon Rafkind wrote: > I can make

Re: [racket] Offtopic: Learning SML

2011-09-20 Thread Sam Phillips
On Sun, Sep 18, 2011 at 10:36, Grant Rettke wrote: > Hi, > > Over the years I've noticed on-list that comments are made about OCaml > and Haskell and abstract data types. > > It seems like it would be fun to learn more about this stuff; and I > guessed that learning SML would be a nice place to st

Re: [racket] For new Racket users

2011-08-27 Thread Sam Phillips
On Sat, Aug 27, 2011 at 10:10, Robby Findler wrote: > It made me want to make a similar puzzle for learning Racket. But I > don't know how effective such things are. A few months ago I was looking at a job posting that had a several puzzles that involved Javascript and CSS tricks, and in the end

Re: [racket] another mini-tutorial: a racket slice: munging IRC logs

2011-08-06 Thread Sam Phillips
On Sat, Aug 6, 2011 at 02:36, Neil Van Dyke wrote: > BTW, I suspect someone will find this in Google when they're trying to talk > with an IRC server from Racket, and be disappointed that this is only about > parsing a particular log format.  I think that there is some IRC client code > for Racket

Re: [racket] how do you raise a runtime error with source location information?

2011-06-20 Thread Sam Phillips
On Mon, Jun 20, 2011 at 20:38, Grant Rettke wrote: > On Mon, Jun 20, 2011 at 10:00 PM, Robby Findler > wrote: >> I don't know if there is one already that is a good match for what you >> want, but you can always use prop:exn:srclocs to make a new one. > > Feels like "Adding New Exception Types" o

Re: [racket] I've implemented a Scheme Interpreter. But it's too slow. Next step?

2011-03-21 Thread Sam Phillips
On Mon, Mar 21, 2011 at 9:42 AM, Patrick Li wrote: > How should I proceed from here? These are the options that I've come up > with: > (1) Optimize variable lookup. Currently the environment is represented as a > list of key-value pairs. Variable lookup is done by searching through the > list. > (

Re: [racket] Racket v5.1

2011-02-16 Thread Sam Phillips
On Wed, Feb 16, 2011 at 11:35 AM, Jon Rafkind wrote: > On 02/16/2011 12:35 PM, Sam Phillips wrote: >> On Tue, Feb 15, 2011 at 4:41 PM, Jon Rafkind wrote: >>> In case its not clear from my other email, the racket ppa now supports 5.1. >>> >>> https://launchpad.

Re: [racket] Racket v5.1

2011-02-16 Thread Sam Phillips
On Tue, Feb 15, 2011 at 4:41 PM, Jon Rafkind wrote: > In case its not clear from my other email, the racket ppa now supports 5.1. > > https://launchpad.net/~plt/+archive/racket Would it be possible to build a non-gui package that wouldn't need all of the X11 stuff? Cheers, Sam __

Re: [racket] Fetching a Web page?

2011-02-14 Thread Sam Phillips
On Mon, Feb 14, 2011 at 10:20 AM, wrote: > Is there a procedure to fetch a Web page? I'm probably > looking in the wrong places for it. I found the Racket > Networking Libraries, but I'm not familiar with Web sockets. Check out get-pure-port and related functions in the manual. Cheers, Sam __

Re: [racket] ffi/unsafe examples

2011-02-07 Thread Sam Phillips
On Mon, Feb 7, 2011 at 10:51 AM, Ben Dean wrote: > I'm not clear, however, on what the particular object files I'm looking up > with ffi-lib. I also am unclear about the convention for the function-name > parameter to get-ffi-obj. Is it as simple as a string of the the name that > the C api is exp

Re: [racket] openssl - authenticating clients via certificates

2011-01-05 Thread Sam Phillips
On Wed, Jan 5, 2011 at 4:37 AM, Curtis Dutton wrote: > Has anybody figured out a way to do this yet? >  I am willing to volunteer some effort to help implement. Any pointers on > where to get started, design considerations, etc... are appreciated if that > is the case. I've not done this with the

Re: [racket] read text file

2010-12-06 Thread Sam Phillips
On Mon, Dec 6, 2010 at 6:52 PM, Sam Phillips wrote: > On Mon, Dec 6, 2010 at 6:43 PM, prad wrote: >> but what am i supposed to in racket? >> (other than read-line right through to the end of the file, may be?) > > In unstable/port there is read-all.  Which you could use l

Re: [racket] read text file

2010-12-06 Thread Sam Phillips
On Mon, Dec 6, 2010 at 6:43 PM, prad wrote: > but what am i supposed to in racket? > (other than read-line right through to the end of the file, may be?) In unstable/port there is read-all. Which you could use like (list->string (read-all read-char port)) Cheers, Sam __

Re: [racket] CGI headers

2010-11-09 Thread Sam Phillips
On Tue, Nov 9, 2010 at 12:39 PM, scouic wrote: > and the error log : > [Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1] Premature end of > script headers: try.cgi > [Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1] try.cgi:1:0: read: > expected only alphanumeric, `-', `+', `_', or `/' cha

Re: [racket] CGI headers

2010-11-09 Thread Sam Phillips
On Mon, Nov 8, 2010 at 9:37 PM, scouic wrote: > What's wrong here ? Must i write #lang racket at the top, must i change > mzscheme.exe with gracket.exe ... ? > I don't really understand why i've an apache internal server error ... > ps : in my apache httpd.conf i've the line > AddHandler cgi-scrip

[racket] racket vs. racket/base

2010-10-16 Thread Sam Phillips
Is there a useful rule of thumb for deciding if a module should be in the racket language or the racket/base language? Cheers, Sam _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Using lex and yacc

2010-10-12 Thread Sam Phillips
On Tue, Oct 12, 2010 at 11:12 AM, Mark Carter wrote: > Are there any examples on using lex and yacc, as I'm having trouble getting > started. I am trying to write a simple calculator. Here's what I've got so > far: > > #lang racket/base > > (require parser-tools/lex) > > (define lex (lexer >    

Re: [racket] try/catch/finally idiom in Racket

2010-10-08 Thread Sam Phillips
On Fri, Oct 8, 2010 at 4:40 PM, Jay McCarthy wrote: > I use dynamic-wind for this. If there is something better, I don't > know what it is. dynamic-wind is a little bit funny though because if > you capture continuations then the in/out handlers can run multiple > times which might defy your expec

[racket] try/catch/finally idiom in Racket

2010-10-08 Thread Sam Phillips
Hi All, I understand using call-with-exception-handler/with-handlers/etc. to catch exceptions in a block of code, but I'm at a loss to what the best way to do a "finally" or cleanup action after a block of code. My intuition is to use dynamic-wind, but I figure there may be a better way that I ju