Re: [racket] A call-out to HTDP from "This Week in Google" episode 288

2015-02-21 Thread Neil Van Dyke
Shorter clip (for those of us with low tolerance for podcasts): https://www.youtube.com/watch?v=34AxL62m5Ks&t=49m10s Neil V. Danny Yoo wrote on 02/22/2015 12:42 AM: I thought folks would enjoy this one: http://youtu.be/34AxL62m5Ks?t=47m Racket Users list: http://

[racket] A call-out to HTDP from "This Week in Google" episode 288

2015-02-21 Thread Danny Yoo
I thought folks would enjoy this one: http://youtu.be/34AxL62m5Ks?t=47m Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Smaller verbatim in Scribble PDF?

2015-02-21 Thread Joe Gibbs Politz
On Sat, Feb 21, 2015 at 10:58 PM, Matthew Flatt wrote: > For PDF output, you can use the string "smaller" instead of the symbol > 'smaller: > > (nested #:style "smaller" ...) Cute. That seems like it'll do the trick. Thanks! Racket Users list: http://lists.racket-lang.

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Neil Van Dyke
A solid Racket VM and GUI for Android and iOS apps would be awesome. In the interim, two reasons why a solution using an R5RS Scheme might work well for a lot of Racket people: * Lots of code written in Racket can actually be written in R5RS almost as well. (Example: say that the secret sauc

Re: [racket] Smaller verbatim in Scribble PDF?

2015-02-21 Thread Matthew Flatt
For PDF output, you can use the string "smaller" instead of the symbol 'smaller: (nested #:style "smaller" ...) That works because "smaller" happens to be available as an environment in Latex. (If "smaller" didn't happen to be available already, you could define a Latex environment in much the

Re: [racket] scribble indentation in drracket

2015-02-21 Thread Sam Tobin-Hochstadt
The list of contributors is an unfortunate GitHub issue -- if a file is moved, commits from before the move aren't used to compute that list. If you click on blame on the page, it'll show the expected authorship. Sam On Sat, Feb 21, 2015, 10:11 PM Robby Findler wrote: > I write lots and, sadly,

[racket] Smaller verbatim in Scribble PDF?

2015-02-21 Thread Joe Gibbs Politz
Hi, I'm trying to do something that I think should be simple, and can't figure out a good way to do it. I want to get verbatim output (for code examples) in Scribbled PDF to be _smaller_ than the default. (nested #:style 'smaller ...) has no effect, and various other hacky things I've tried like

Re: [racket] scribble indentation in drracket

2015-02-21 Thread Robby Findler
I write lots and, sadly, manually indent everything. There is a start on this but there are still some problems to be ironed out. You can find the code here: https://github.com/racket/gui/blob/master/gui-lib/scribble/private/indentation.rkt It shows up in DrRacket when you type esc;q (where i

[racket] scribble indentation in drracket

2015-02-21 Thread Jon Zeppieri
Is there some secret to this, or does no one write scribble in drracket? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Eric Dong
I've always felt that comparing with other systems like Chicken and Gambit Scheme is counterproductive. Racket's compiler design is rather different (although I'm not complimenting it: way too many things are written in C). The ultimate goal of course would be to port the Racket VM to Android and

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Neil Van Dyke
Sounds like LambdaNative (which looks like it's based on Marc Feeley's nice Gambit implementation of Scheme) is worth looking into. (Helping a LambdaNative approach for us is that there are viable ways to share a lot of app-specific source code between Racket and another Scheme descendant.)

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Justin Zamora
There is also Clojure on Android, which might be a promising alternative. http://clojure-android.info/ Justin On Feb 21, 2015 1:24 PM, "Darren Cruse" wrote: > I could chime in I've also been interesting in Racket for mobile apps. > Though I've just been learning Racket (and scheme) the last few

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Hendrik Boom
On Sat, Feb 21, 2015 at 12:19:03PM -0600, Darren Cruse wrote: > > But in the end I didn't find any perfect answer either. > > I came away wishing that somehow Gambit/Lambdanative could be enhanced to > be Racket compatible... if only I had a magic wand. :) A viable common subset would be nice.

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Darren Cruse
I could chime in I've also been interesting in Racket for mobile apps. Though I've just been learning Racket (and scheme) the last few months take what I say with a grain of salt... Re-reading the OP's post it sounds like you've actually done Racket based Phonegap/Cordova apps... I was going to m

Re: [racket] HTML Code/Web Authentication

2015-02-21 Thread Matthias Felleisen
For the first half of the question, see http://www.ccs.neu.edu/home/matthias/HtDP2e/part_4.html#%28part._sub~3areading-xml%29 from the book for absolute novices. It explains how to design a simple stock ticker by reading (X)HTML off the web. The book emphasizes systematic design. You can s

[racket] HTML Code/Web Authentication

2015-02-21 Thread Alexandre Nicolaï
HelloI am looking to develop a small program whose purpose is automated extraction HTML code of a web page and then analyze the data, but I am a beginner and I do not understand how to implement this extraction with Racket. Another problem is mandatory authentication to access the page in questi

Re: [racket] thread-through ?

2015-02-21 Thread Matthias Felleisen
Here are some realistic, non-contrived examples where I use macros like thread-through [called build-scene] a lot: ;; Image Number Number -> Image ;; (x0,y0) is where we want to add a branch (define (fork s0 x0 y0) (define xB (x-B x0)) (define yB (y-B y0)) (define xC (x-C x0)) (define

Re: [racket] ordering for hash tables?

2015-02-21 Thread Robby Findler
I'm actually saying that I don't know if the current implementation actually guarantees that but I am pretty sure that even if it does, the documentation doesn't promise it, so you cannot be sure that it would hold for future versions of Racket. The immutable hash tables are using a balanced binar

Re: [racket] ordering for hash tables?

2015-02-21 Thread Alexander D. Knauth
I’m talking about in the same run of racket, for immutable hash-eqs with the same set of keys. For example: (define hsh1 (hasheq ‘k1 (delay 1) ‘k2 (delay 2) ‘k3 (delay 3))) (define hsh2 (for/hasheq ([(k v) (in-hash hsh1)]) (values k (force v Would this: (for ([k (in-hash-keys hsh1)]

Re: [racket] ordering for hash tables?

2015-02-21 Thread Robby Findler
I think the current implementation might guarantee the same order for the same hash table in a single run of racket, but you shouldn't reply on even that and the current implementation does not make that guarantee if you run the same program multiple times in racket. (And the precise details of wha

[racket] Sorry, but what's the correct way to use `#lang scribble/lp2`

2015-02-21 Thread WarGrey Gyoudmon Ju
Glad to see the literate programming technology updated. I thought it might be a "Forgotten Feature" since the rest of scribble is so powerful and I cannot find any code base use it. Thank you. So... there still should be more examples to work with it. What's the extra work (rather than simply rep

[racket] ordering for hash tables?

2015-02-21 Thread Alexander D. Knauth
If I have two hash tables, both with the same set of keys, but with different values for those keys, then can I count on the order being the same for both hash-tables? I noticed this: https://github.com/plt/racket/commit/abe1233734b3a8d46f96707cc3a2517340cb28a3 saying: make hash-table order in

Re: [racket] compiling Racket to android and ios apps

2015-02-21 Thread Stephen De Gabrielle
FWIW this project targets both android and IOS: https://github.com/part-cw/lambdanative On Fri, 20 Feb 2015 at 19:32, Jens Axel Søgaard wrote: > 2015-02-13 23:08 GMT+01:00 Neil Van Dyke : > > Anyone have any current/planned projects on compiling Android and iOS > apps > > from Racket? > > > So,

[racket] Documentation coverage package

2015-02-21 Thread Jack Firth
I wrote a package based on this documentation completeness utility for examining and testing module docs. Currently it only works with symbolic module names, full docs can be found once the package server builds them. Package is named "d