Re: [racket-users] Defeating Racket’s separate compilation guarantee

2019-04-24 Thread WarGrey Gyoudmon Ju
Great article, thanks. I like the logging facility, now I see it is more powerful than I known. On Thu, Apr 25, 2019 at 6:25 AM Gustavo Massaccesi wrote: > We can extract an feature request from the end of the post: > > Make the module that define `set` a cross-phase persistent module, so all

Re: [racket-users] Defeating Racket’s separate compilation guarantee

2019-04-24 Thread Gustavo Massaccesi
We can extract an feature request from the end of the post: Make the module that define `set` a cross-phase persistent module, so all the phases can share the `set`s. Gustavo On Sun, Apr 21, 2019 at 7:41 AM Alexis King wrote: > Hello all, > > I just published a blog post on defeating

[racket-users] Re: Online IDE’s for Racket ?

2019-04-24 Thread Stephen Foster
Wow! This is is cool. Also +1 -- since I'm interested in this very topic and curious to know what's out there. P.S. You probably already know about wescheme.org, right? On Tuesday, April 23, 2019 at 5:17:40 AM UTC-7, Stephen De Gabrielle wrote: > > Hi > > I found that you can run DrRacket on

Re: [racket-users] Getting JSON to work with the DB module

2019-04-24 Thread David Storrs
Okay, thanks. I wonder if this is a problem space that the sql module could fit into? Perhaps tag the fields with wrapper functions. Regardless, I've found a clean way around it by looping through a smart struct defined using the struct-plus-plus module. #lang at-exp racket (require

Re: [racket-users] Concurrent map / andmap / for-each

2019-04-24 Thread Dexter Santucci
  I'm aware, and that's what I intended to do. There's the excellent pmap package which uses futures, but I wanted threads for concurrency on one CPU. It works very well for launching processes and getting the returns all at once. Dex On 2019-04-24 6:09 p.m., Robby Findler wrote: Thanks for

Re: [racket-users] Concurrent map / andmap / for-each

2019-04-24 Thread Robby Findler
Thanks for working on this, but Racket's `thread` construct is not parallel (in the sense that you will not see more than one CPU active on your machine at a time with code that uses `thread`). Check out places and futures for alternatives that do support parallelism. Robby On Wed, Apr 24, 2019

[racket-users] Concurrent map / andmap / for-each

2019-04-24 Thread Dexter Santucci
Hi folks,   I made concurrent (multi-threaded) versions of map, andmap and for-each for Racket: https://github.com/DexterLagan/pmap   Because I'm a little slow and lazy, I haven't checked packages for a proper version.   If this isn't too much asking, can somebody give me some feedback?

Re: [racket-users] Discovery of a secret society

2019-04-24 Thread David Storrs
This is epic. Can we get more like this? It's giving me ideas for plot hooks in my next novel. On Wed, Apr 24, 2019 at 11:19 AM wrote: > A product has been placed in my body (resembling a gadget well known to > the general public, but very different) that can be used to locate me, > listen to

Re: [racket-users] Re: db module 'query' does not return insert-id

2019-04-24 Thread David Storrs
Yep, thanks. I've been using RETURNING pretty extensively to get not just the ID but other fields as well. It's ridiculously convenient. Unfortunately, I'm migrating to SQLite now and they don't support RETURNING so I was trying to use the simple-result struct. I'm not sure why I used a Pg

[racket-users] Re: db module 'query' does not return insert-id

2019-04-24 Thread Simon Schlee
> > (require db) > > (define db (postgresql-connect ...args...)) > > (simple-result-info (query db "insert into collaborations (name) values > ('foojalskdsfls')")) > '((insert-id . #f) (affected-rows . 1)) > With postgresql instead of doing a plain insert you can use returning to return your

[racket-users] Discovery of a secret society

2019-04-24 Thread mailkior
A product has been placed in my body (resembling a gadget well known to the general public, but very different) that can be used to locate me, listen to me, etc. A Canadian company, for criminal reasons, used this technique to try to kill me by piercing my heart. This company has corrupted

Re: [racket-users] Question regarding the function printBoard board

2019-04-24 Thread orenpa11
Thanks On Tuesday, April 23, 2019 at 10:12:00 PM UTC+3, Stefan Schmiedl wrote: > > > "orenpa11" >, 23.04.2019, 20:53: > > > Hi > > I am using the functionprintBoard board (DrRacket Pretty Big) > > > > (printBoard '((0 0 2 0) (0 0 0 0) (0 0 8 0) (0 0 0 0))) > > and the result is > >

Re: [racket-users] How would you implement autoquoted atoms?

2019-04-24 Thread rocketnia
Instead of a new `#%q-expression` form, I think there's potential to use `#%datum` or `quote` itself for this. Potentially, the only thing that makes numbers (for instance) special is that the reader, printer, IDE, and bytecode systems already know what module(s) the number structure type(s)