[racket-users] Re: Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Armon Toubman
On Wednesday, March 16, 2016 at 1:57:30 PM UTC+1, Daniel Prager wrote: > Awesomely, Jens has been working on Urlang: a Racket-ish syntax for > JavaScript, using the nanopass compiler infrastructure: > > https://github.com/soegaard/urlang > > > > and more ambitiously, a Racket (subset)

Re: [racket-users] Setting return address in Racket's sendmail

2016-03-19 Thread Matthias Felleisen
This has gotten me rejection replies: (smtp-send-message (dns-get-address (dns-find-nameserver) "smtp.gmail.com") "matth...@ccs.neu.edu" actual-send-to-addresses addresses-put-into-header file #:port-no 465 ; for gmail don't include the @gmail.com #:auth-user

Re: [racket-users] Trouble with displaying value-turtles

2016-03-19 Thread Robby Findler
Thanks, I've pushed a fix for this. If you want, you can apply this diff (use the "File | Open Require Path..." menu item in DrRacket and type "graphics/private/value-turtles" into the dialog to find the right file to edit). You'll have to restart DrRacket to see your changes work. And you may

Re: [racket-users] Re: Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Greg Trzeciak
On Wednesday, March 16, 2016 at 10:32:22 PM UTC+1, Jens Axel Søgaard wrote: > 2016-03-16 22:18 GMT+01:00 Greg Trzeciak : > > > Thanks Dan, seems to be exactly what I need (especially the combination with > ractive.js! BTW you couldn't find js framework with name more fitting

[racket-users] Racket for web apps

2016-03-19 Thread Kaylen Wheeler
Hi, I'm new to Racket, but not to lisp. I have been a Clojure user for some time. I began developing a web game in clojure/clojurescript, but I am considering switching languages. How good is Racket for web-related development? Thanks -- You received this message because you are

[racket-users] Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Daniel Prager
Awesomely, Jens has been working on Urlang: a Racket-ish syntax for JavaScript, using the nanopass compiler infrastructure: https://github.com/soegaard/urlang and more ambitiously, a Racket (subset) ->JavaScript compiler (rjs), taking a distinct approach from Whalesong. * * * Just using plain

[racket-users] string-join vs string-append

2016-03-19 Thread Arnel
Hi, How does 'string-join' differ from 'string-append'? More specifically, why does the following code: (let ([z ""] [y "b"]) (string-join '(z y) "\n")) result in a contract violation, yet the following: (let ([z ""] [y "b"]) (string-append z y)) works without

Re: [racket-users] Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Matthew Butterick
When you put it that way, subjectively it still sounds good. I'd use it. But objectively I can't foresee that it would be a wise investment of anyone's Racket time. Let's face it: any web framework is lucky to live 5 yrs before developers tire of it and move onto the next thing, or browser

Re: [racket-users] Trouble with displaying value-turtles

2016-03-19 Thread nikofeyn
Lol. I almost mentioned my confusion on why the interactions window appeared to be clearing itself when running that code but had obviously not scrolled up. Simple solution indeed. I guess my next question would be how to move the display window to a separate window similar to what "(turtles #t)"

Re: [racket-users] Trouble with displaying value-turtles

2016-03-19 Thread Jens Axel Søgaard
I ran your program and was, too, a bit confused at first. But ... turns out it is simple. Run the program in DrRacket. Switch to the repl. Then scroll up! The "windows" are displayed as pictures in the repl, but they are so big, that you can't see them at first. /Jens Axel 2016-03-19 22:47

Re: [racket-users] predicate as an atom within a regexp?

2016-03-19 Thread Alex Knauth
There's a string-append match expander for that here, although it's pretty slow right now. http://docs.racket-lang.org/match-string/index.html Alex Knauth > On Mar 17, 2016, at 7:17 PM, Matthew Butterick

Re: [racket-users] Racket for web apps

2016-03-19 Thread Kaylen Wheeler
On Friday, 18 March 2016 21:11:51 UTC-7, Jay McCarthy wrote: > It's great. Check out the various libraries of the web-server. I'd > suggest starting from web-server/servlet-env and web-server/dispatch. > > Jay > > On Fri, Mar 18, 2016 at 5:00 PM, Kaylen Wheeler wrote: > >

Re: [racket-users] making standalone application

2016-03-19 Thread Daniel Brunner
Am 19.03.2016 um 17:03 schrieb sagar tripathy: > i am trying to make a software with Racket for generic use . Or ,you can say > a complete setup for system without "DRracket" or "minimal Racket" . I do not > know the way to achieve it. > Hi, what kind of OS and platform are you using? Perhaps

[racket-users] making standalone application

2016-03-19 Thread sagar tripathy
i am trying to make a software with Racket for generic use . Or ,you can say a complete setup for system without "DRracket" or "minimal Racket" . I do not know the way to achieve it. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

[racket-users] Re: Eliminating boiler plate for parallel tasks

2016-03-19 Thread Brian Adkins
On Saturday, March 19, 2016 at 11:45:46 AM UTC-4, Brian Adkins wrote: > I've put together a very simple (31 lines) example of parallel task execution > here: > > https://gist.github.com/lojic/6cee4fcd4220e2788ece > > The example contains a lot of boilerplate (only a few lines are specific to >

[racket-users] Eliminating boiler plate for parallel tasks

2016-03-19 Thread Brian Adkins
I've put together a very simple (31 lines) example of parallel task execution here: https://gist.github.com/lojic/6cee4fcd4220e2788ece The example contains a lot of boilerplate (only a few lines are specific to the problem), so before I go about eliminating the boilerplate myself, I thought

Re: [racket-users] Re: custom keybindings (AltGr)

2016-03-19 Thread Robby Findler
On Thu, Mar 17, 2016 at 8:09 PM, Matthew Flatt wrote: > A "c:a" binding doesn't show up in the keybindings dialog for Windows, > but it does for OS X. I've pushed a fix this. Thanks! Robby -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] Setting return address in Racket's sendmail

2016-03-19 Thread George Neuner
On 3/16/2016 10:29 PM, Matthias Felleisen wrote: This has gotten me rejection replies: (smtp-send-message (dns-get-address (dns-find-nameserver) "smtp.gmail.com ") "matth...@ccs.neu.edu " actual-send-to-addresses

Re: [racket-users] Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread 'John Clements' via Racket Users
> On Mar 16, 2016, at 5:56 AM, Daniel Prager wrote: > > Awesomely, Jens has been working on Urlang: a Racket-ish syntax for > JavaScript, using the nanopass compiler infrastructure: > > https://github.com/soegaard/urlang Looks very cool. I’ll use this the next time

Re: [racket-users] Re: custom keybindings (AltGr)

2016-03-19 Thread Bert De Ketelaere
Hello, this does everything I want. The only difference is between your implementation and what I previously had done is that Ctrl+Alt+q is treated the same as AltGr+q (with the latter being a custom keybinding defined with "g:q"). I don't really care about this, but I thought it was nice

Re: [racket-users] Web server catch exceptions, print stack trace to error-logs, display simple page to user

2016-03-19 Thread Jay McCarthy
I would just make my-error-responder print out date->string's result on current-seconds. Is that now what you want? On Thu, Mar 17, 2016 at 2:50 PM, Marc Kaufmann wrote: > Hi all, > > I do not want people to see "Contract violation: massive stack trace > documenting my

[racket-users] Re: string-join vs string-append

2016-03-19 Thread Arnel
On Thu, 17 Mar 2016 13:20:34 -0500, Vincent St-Amour wrote: > On Thu, 17 Mar 2016 13:08:44 -0500, > Arnel wrote: > > > > Hi, > > > > How does 'string-join' differ from 'string-append'? More specifically, why > > does > > the following code: > > > > (let ([z

Re: [racket-users] Setting return address in Racket's sendmail

2016-03-19 Thread Marc Kaufmann
Thanks, the smtp works, and it seems that sendmail actually does work even the way I used it, but the email I used landed in spam, because google realized it hadn't been sent from that account (since I was bypassing it, unlike the smtp solution, which logs into the account first). Matthew,

Re: [racket-users] Re: Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Jens Axel Søgaard
2016-03-16 22:50 GMT+01:00 Greg Trzeciak : > "Urlang is a Racket flavoured S-expression syntax for Javascript" > Can I steal that for a tag-line? > Thank you for your explanation - still seems like a good fit for one of my > projects (as I needed something more lightweight

Re: [racket-users] colorizing code in html - scribble or the GUI?

2016-03-19 Thread Sanjeev Sharma
thanks folks - marked completed but please share more if there are more I was going to use hilite.me but I prefer having something resembling the racket documents -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

Re: [racket-users] Re: custom keybindings (AltGr)

2016-03-19 Thread Matthew Flatt
I think the issue with Control-Alt-a is that Control-a is mapped to "beginning-of-line" as "c:a". Probably that should be ":c:a". A "c:a" binding doesn't show up in the keybindings dialog for Windows, but it does for OS X. My guess is that the keybindings list is filtered to omit combinations

[racket-users] dynamic-require

2016-03-19 Thread Jos Koot
Hi, The following example of dynamic-require in the reference manual works in the interactions window of DrRacket, but not in its definitions window: (module a racket/base (displayln "hello")) (dynamic-require ''a #f) How do I do this in the definitions window? The reason I use

Re: [racket-users] Re: Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Jens Axel Søgaard
2016-03-16 22:18 GMT+01:00 Greg Trzeciak : > > Thanks Dan, seems to be exactly what I need (especially the combination > with ractive.js! BTW you couldn't find js framework with name more fitting > to work with racket ;) > I am only curious what racket subset does urlang

Re: [racket-users] Re: custom keybindings (AltGr)

2016-03-19 Thread Matthew Flatt
Thanks for the helpful table! The problem with Control combinations was a mistake in my code, fixed in the enclosed "key.rkt". The problem with dead keys was harder. It seems that ToUnicode() has the same effect as TranslateEvent() for dead-key combinations, so using ToUnicode() multiple times

Re: [racket-users] predicate as an atom within a regexp?

2016-03-19 Thread Andrew Gwozdziewycz
On Thu, Mar 17, 2016 at 1:27 PM, Matthew Butterick wrote: > What is the best approach to destructuring strings using predicates? For > instance "match a substring for which `string->number` is true." > > I am imagining an API that utilizes SCSH style regexes but allows you to do

Re: [racket-users] Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread Matthew Butterick
> and more ambitiously, a Racket (subset) ->JavaScript compiler (rjs), taking a > distinct approach from Whalesong. The short answer: +1 The longer: I am no fan of JavaScript, which I consider a brain-eating virus. [1] But IMO the "frameworkification" of JS has made it even worse. Yes, the

[racket-users] Setting return address in Racket's sendmail

2016-03-19 Thread Marc Kaufmann
Hi all, I am using send-mail-message as follows: #lang racket (require net/sendmail) (send-mail-message #f "Test sendmail" '("fake-em...@marcs-server.com") '() '() '("Testing Racket sendmail.")) It works as expected when I send something to myself, since sendmail goes and gets the email

RE: [racket-users] dynamic-require

2016-03-19 Thread Jos Koot
Thanks very much. I'll try that. I wonder what happens when I already have a file test.rkt in the current directory, but I'll find out. Thanks again, Jos. _ From: Scott Moore [mailto:sc...@thinkmoore.net] Sent: miércoles, 16 de marzo de 2016 18:03 To: Jos Koot; Racket Users Cc: Jos Koot

Re: [racket-users] Web server catch exceptions, print stack trace to error-logs, display simple page to user

2016-03-19 Thread Marc Kaufmann
Yep, printing that out is indeed all I want. I hadn't thought about the fact that 'print and 'display will show up in standard output. John, how do you use drrackt's log handlers, are you running the server via Drracket or did you mean something different. I can't use daemontools for reasons to