[racket-users] srfi-171 transducers for racket

2019-12-10 Thread Linus Björnstam
Hi everyone! I was asked to port my srfi-171 (transducers) to racket by a staggering number of people (3!!), so by extremely popular demand (by my standards) I have done so: https://git.sr.ht/~bjoli/racket-srfi-171-transducers These transducers are more or less the same as the ones in clojure,

[racket-users] Working on 2D and 3D graphics.

2019-12-10 Thread Hendrik Boom
On Tue, Dec 10, 2019 at 08:13:32AM +, Stephen De Gabrielle wrote: > New week, new Racket! What are you folks up to? Answer here or Still tinkering with Rackettown. I'd love to convert it to typed Racket, but the association list mechanism is inherently typeless. (Or, I suspect, only typable

[racket-users] Re: srfi-171 transducers for racket

2019-12-10 Thread Jack Firth
This is great! Thank you for your work on this srfi. Transducers are relatively new to Racket's ecosystem and I'm happy to see more of the design space being explored. The documentation in the SRFI document still holds with some small caveats: > bytevector-u8-reduce/transduce is now

Re: [racket-users] Re: srfi-171 transducers for racket

2019-12-10 Thread Linus Björnstam
Hi Jack! The "tdelete-duplicates" uses a hash-table to store already seen elements: if the element is in the hash table, just filter it out. If it is not, we do: (hash-set! already-seen element #t). That should be constant timeish. This means that you cannot (and should not) use the same

[racket-users] Any examples of multi-language applications or packages

2019-12-10 Thread Stephen De Gabrielle
Hi Racketeers, Please let me know if you are aware of any examples of multi-language applications or packages. Specifically multi-‘#lang’ package/app examples. Kind regards Stephen PS I was looking at Polyglot and thinking about sorting out some sort of website when the question came up, and

Re: [racket-users] What’s everyone working on this week?

2019-12-10 Thread wanderley.guimar...@gmail.com
Started to read HtDP and I plan to training the design recipe while solving AoC challenges. So far, I am enjoying the systematic approach to right software. It is funny to realize that you started to solve a problem with a partial understanding of it. Playing a bit with rsound. My goal is to

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread Matthew Flatt
I’ve changed the distribution build to use HFS+ going forward. > On Dec 10, 2019, at 6:28 PM, James Platt wrote: > > >> On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: >> >> If it isn't too much trouble, I at least would really appreciate this. >> One reason I think this is important is

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: > If it isn't too much trouble, I at least would really appreciate this. > One reason I think this is important is because Homebrew has a cask for > Racket, which uses the .dmg distribution. It sets up $PATH (and probably > other things I don't

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 3, 2019, at 7:09 PM, John Clements wrote: > It sounds to me like an easy solution to your problems would be a > .tgz-bundled set, as e.g. we offer for Minimal Racket on the page > > https://download.racket-lang.org/releases/7.5/ > > specifically at the link > >

Re: [racket-users] What’s everyone working on this week?

2019-12-10 Thread Hadi Moshayedi
Started creating some slideshows on postgres internals using #lang slideshow: https://github.com/pykello/hadi-slides Not much content yet, as I've been struggling with getting things formatted as I like until now :) and this is my first time using slideshow, so I'm pretty slow. -- You received

Re: [racket-users] What’s everyone working on this week?

2019-12-10 Thread Christopher Lemmer Webber
Stephen De Gabrielle writes: > New week, new Racket! What are you folks up to? Answer here or > > * https://racket.slack.com/ (Sign up at https://racket-slack.herokuapp.com/ > ) > * #racket IRC on freenode.net https://botbot.me/freenode/racket/ > * Tweet @racketlang on Twitter > * Racket discord

Re: [racket-users] What’s everyone working on this week?

2019-12-10 Thread Ryan Johnson
C programming >:( On Tue, Dec 10, 2019 at 2:13 AM Stephen De Gabrielle < spdegabrie...@gmail.com> wrote: > New week, new Racket! What are you folks up to? Answer here or > > * https://racket.slack.com/ (Sign up at > https://racket-slack.herokuapp.com/ ) > * #racket IRC on freenode.net

[racket-users] How can I tell Typed Racket that xexpressions are xexpressions?

2019-12-10 Thread Marc Kaufmann
Welcome to this week's edition of "Confusing myself with Typed Racket".* I want to import `response/xexpr-wrap` -- a version of `response/xexpr` that does some additional styling -- in a typed/racket file. So thanks to Ben and Jon in another thread, I now do ``` (require/typed xml [#:opaque

Re: [racket-users] Re: srfi-171 transducers for racket

2019-12-10 Thread Jack Firth
> > The "tdelete-duplicates" uses a hash-table to store already seen elements: > if the element is in the hash table, just filter it out. If it is not, we > do: (hash-set! already-seen element #t). That should be constant timeish. > I understand how that works for the usual eq? / eqv? /

Re: [racket-users] Re: srfi-171 transducers for racket

2019-12-10 Thread Linus Björnstam
For racket it does not work out of the box, but for scheme srfi69 allows for arbitrary equality predicates and specialized hash functions. I believe r6rs hashtables has a string-CI-hash, but I can be wrong. For the racket port I removed that functionality, since I couldn't do it easily using

[racket-users] What’s everyone working on this week?

2019-12-10 Thread Stephen De Gabrielle
New week, new Racket! What are you folks up to? Answer here or * https://racket.slack.com/ (Sign up at https://racket-slack.herokuapp.com/ ) * #racket IRC on freenode.net https://botbot.me/freenode/racket/ * Tweet @racketlang on Twitter * Racket discord https://discord.gg/6Zq8sH5 Don’t forget to