[racket-users] Exception throwing in web-server

2020-05-16 Thread Norman Gray
Greetings. I define a custom exception: (define-struct (my-exception exn:fail) ()) (define (my-error fmt . args) (let ((msg (apply format (cons fmt args (raise (my-exception msg (current-continuation-marks) The plan is that I can throw this within a servlet,

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

2020-05-16 Thread Ryan Culpepper
I wrote a little flashcard program in Racket to help myself learn Czech vocabulary (here: https://github.com/rmculpepper/racket-jazyk), and when run on a Mac it uses `say` for audio. IIRC, I had to install extra "voice" packages for Czech, but that consisted of clicking a few buttons in Settings.

[racket-users] raco setup --fix-pkg-deps needs --avoid-main on NixOS

2020-05-16 Thread unlimitedscolobb
Hi Racket+NixOS-heads out there, I was trying to use `raco setup --fix-pkg-deps` to get the dependencies of my package automatically fixed, but it would fail with a lot of "cannot delete file" errors. That's because `raco setup --fix-pkg-deps` looks at all packages, including the system-wide

[racket-users] Practical HTTP requests?

2020-05-16 Thread fixpoint
I'm on the search for a new programming language to learn, so I thought I'd check out Racket, but I'm having a hard time trying to do a very common task that would make Racket practical for my use at work: - Make a series of HTTP requests to an API that returns JSON responses - Reuse the

[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)

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

2020-05-16 Thread Sorawee Porncharoenwase
On Mac, there’s a say command, so this would do it. (system "say \"hello world\"") When I had a Linux machine, I recalled using a command named espeak, which is similar to say on Mac. On Sat, May 16, 2020 at 11:15 AM Sam Phillips wrote: > Stephen De Gabrielle and I are wondering if any Mac or

Re: [racket-users] JIT and futures on aarch64

2020-05-16 Thread Matthew Flatt
At Sat, 16 May 2020 17:21:28 +0200, Dominik Pantůček wrote: > after pushing futures on x86 and x86_64 to their limits (and helping > fixing two bugs), I turned my focus on ARM. Apparently everything should > work with 32bit arm without any hurdles (I am going to test that later > today), Futures

[racket-users] Re: Portable version for Windows

2020-05-16 Thread Stephen De Gabrielle
Thats awesome! Thanks for the updated version. (I note the original was form 2011!) s. On Saturday, May 16, 2020 at 6:55:05 AM UTC+1, Marcio Andrey Oliveira wrote: > > The original article can be found here: > https://www.wisdomandwonder.com/link/5656/portable-racket-for-windows-users > . > >

[racket-users] JIT and futures on aarch64

2020-05-16 Thread Dominik Pantůček
Hello fellow racketeers, after pushing futures on x86 and x86_64 to their limits (and helping fixing two bugs), I turned my focus on ARM. Apparently everything should work with 32bit arm without any hurdles (I am going to test that later today), however on aarch64 (64bit arm), there is no JIT and