[racket-users] Re: new racket-lang.org website

2020-08-26 Thread Darren Newton
Congratulations on the new site! Was a nice surprise this morning. Always 
interesting to watch the messaging evolve over time.

On Tuesday, August 25, 2020 at 1:51:57 PM UTC-4 Robby Findler wrote:

> Hi all: as you may know if you follow dev@, we've been revising the 
> website. The new version went live last night; please have a look: 
> https://www.racket-lang.org/
>
> A big Thank You to Matthew Butterick for the previous design which, as you 
> can tell, inspired the current visual design.
>
> Matthew, Robby, Sam, Jay, John, and Matthias
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a415eb0d-eea8-451b-bb96-cb3d8ea71724n%40googlegroups.com.


[racket-users] Re: graphql library?

2020-03-15 Thread Darren Newton
Not yet but have thought about it. We use GraphQL pretty heavily at work 
now. gRPC / Protocol Buffers as well.

On Saturday, March 14, 2020 at 2:26:13 PM UTC-4, 'John Clements' via 
users-redirect wrote:
>
> Uh oh… another protocol! Has anyone done any work on a GraphQL client 
> library in Racket? 
>
> https://graphql.org/code/#graphql-clients 
>
> John 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/da13b6ca-11ad-45e1-aa5e-5835aa166fd9%40googlegroups.com.


[racket-users] Re: resources for learning JS / React?

2020-01-26 Thread Darren Newton
For learning JavaScript these two resources are very good:

Eloquent JavaScript https://eloquentjavascript.net/
You Don't Know JS https://github.com/getify/You-Dont-Know-JS

The tutorial on the React site itself is pretty good and provides a solid 
foundation in the framework - https://reactjs.org/tutorial/tutorial.html



On Saturday, January 25, 2020 at 1:56:57 PM UTC-5, 'John Clements' via 
users-redirect wrote:
>
> I have a graduate student that wants a self-guided introduction to JS and 
> React. The problem here, to some degree, is that there are so *many* 
> introductions. Does anyone here have specific references that might be 
> helpful? (Say, e.g., if Gregor Kiczales did a JS course on coursera… that 
> would be pretty much perfect.) 
>
> John 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4dc7e361-7ea1-490a-993a-210a364c70f7%40googlegroups.com.


[racket-users] Re: resources for learning JS / React?

2020-01-26 Thread Darren Newton
Were you looking specifically for a video course that covers both? I can 
recommend some very good resources for JavaScript as a language and how to 
wield it (in book form). React gets dicier as its a constantly moving 
target.

On Saturday, January 25, 2020 at 1:56:57 PM UTC-5, 'John Clements' via 
users-redirect wrote:
>
> I have a graduate student that wants a self-guided introduction to JS and 
> React. The problem here, to some degree, is that there are so *many* 
> introductions. Does anyone here have specific references that might be 
> helpful? (Say, e.g., if Gregor Kiczales did a JS course on coursera… that 
> would be pretty much perfect.) 
>
> John 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20a875a5-fe1b-4c19-9c83-685bb1e2901a%40googlegroups.com.


[racket-users] Re: [ANN] New update, Magic Racket for VS Code

2019-10-24 Thread Darren Newton
This looks very cool, thanks for putting in the work.

I haven't had a chance to play with it yet so please pardon if this is 
already in, but were you planning on adding Paredit type features as well, 
or should we rely on existing plugins?

On Wednesday, October 23, 2019 at 6:25:08 PM UTC-4, Evžen Wybitul wrote:
>
> As you might already know, I'm developing a Racket extension for VS Code, 
> called *Magic Racket*. Until now the main feature was near-perfect syntax 
> highlighting (supporting everything from binary numbers to weird constructs 
> like |variable name|). However, a recent update introduces simple, but 
> useful, REPL integration (run file, load file, execute selection).
>
> VS Code marketplace link: 
> https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket
> GitHub link: https://github.com/Eugleo/magic-racket
>
> The next milestone is better integration with the repl, most notably 
> fetching docs using *,doc*. Also, some support for formatiing the Racket 
> code would be nice (that's what I miss the most coming rom DrRacket — I 
> only write simple sripts most of the time). The milestone after that would 
> be adding support for the Racket LSP, but that is still quite far away. If 
> anybody would be willing to participate on this project, please let me now 
> through GitHub, or on this email! 
>
> Evžen
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/fda0876a-6384-4c88-866a-c06a97e3acfc%40googlegroups.com.


Re: [racket-users] What is a (the?) way to track requirements for a web or app with Racket?

2019-09-17 Thread Darren Newton
I've found Greg Hendershott's Makefiles to be super helpful with this 
https://www.greghendershott.com/2017/04/racket-makefiles.html

I use that article as a base and then make mods, such as this 
https://github.com/DarrenN/cuttlefish/blob/master/Makefile

On Monday, September 16, 2019 at 6:04:43 AM UTC-4, Bogdan Popa wrote:
>
>
> Marc Kaufmann writes: 
>
> > So the easiest to do is to create such an info.rkt file and call `raco 
> pkg 
> > install app-name/` -- and that should work even if I don't do the `raco 
> > exe` and `raco distribute`? 
>
> Yes, that's right.  `raco exe' and `raco distribute' are not required. 
>
> I realize now that I should've mentioned a couple caveats to treating 
> apps as packages like this.  I often need to tell Racket to recompile my 
> package after I make certain changes because the interpreter doesn't try 
> to recompile stale dependent modules of changed modules on the fly (if 
> `a.rkt' depends on `b.rkt' and you change `b.rkt', without recompiling 
> `a.rkt', the interpreter won't do it for you).  This means you can run 
> into errors along the lines of "instantiate-linket: mismatch".  When 
> that happens, you can either remove all the compiled bytecode from your 
> project 
>
> $ find app-name-here/ -type d -name compiled -exec rm -rf \{\} \; 
>
> or tell Racket to recompile all the modules in your package's collection 
>
> $ raco setup --avoid-main --tidy --check-pkg-deps --unused-pkg-deps 
> app-name-here 
>
> I usually do the latter, because large projects can take a very long 
> time to compile/load from scratch.  That said, that also comes with its 
> own downside in the form of worse error reporting.  `errortrace' can no 
> longer peer into the source code since it's been compiled which leads to 
> some pretty terse error reports. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/93640acf-507c-4fda-919f-890d389c2829%40googlegroups.com.


[racket-users] Re: nannou

2019-06-11 Thread Darren Newton
I spent a couple of weeks working through Daniel Shiffman's The Nature of 
Code 

 
approximating Processing with Typed Racket. It was pretty fun, but I had to 
work up a lot of basics on my own (and also moved from an OO to functional 
design using Big Bang). It would be very cool indeed to see a more fully 
featured creative graphics platform develop in Racket. 

On Tuesday, June 11, 2019 at 1:35:59 AM UTC-4, Neil Van Dyke wrote:
>
> A platform for multimedia artist programmers is using Rust.  I think 
> it'd be interesting to see how what has been and could be done in Racket 
> (including DSLs) could compare.  https://nannou.cc/ 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/ac00bfbb-e48b-4882-93b5-b0a90de2318e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Emitting structured logs

2019-03-31 Thread Darren Newton
Ah yes, that worked great!

was able to generate

```
{"data":{"foo":["a"]},"timestamp":"2019-03-31T11:22:57", 
"level":"INFO","name":"log-name"}
```

using 

```
(log-message app-logger 'info "" (hasheq 'foo '("a"))) 
```

On Sunday, March 31, 2019 at 8:43:00 AM UTC-4, Matthew Flatt wrote:
>
> At Sun, 31 Mar 2019 05:13:45 -0700 (PDT), Darren Newton wrote: 
> > However, I would like to pass a jsexpr? to the logger [...] 
> > 
> > As far as I can tell, the log procs only accept strings. 
>
> The primitive `log-message` function accepts arbitrary data for the 
> logged message after the message string. That data is communicated to 
> each log receiver. 
>
> The `log-info`, etc., macros currently support only a message string, 
> but you can create your own macro if that's helpful. If you know that 
> some receiver will exist a `log-level?` test as built into the existing 
> macros isn't helpful, and you might just as well call `log-message` 
> directly. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Example "RealWorld" web application

2019-03-31 Thread Darren Newton
This is a great idea. Curious if you plan to do the front-end in 
Racketscript?

On Wednesday, March 27, 2019 at 8:03:57 PM UTC-4, Philip McGrath wrote:
>
> The RealWorld  project defines a simple but 
> realistic client–server web application (a Medium-like blogging platform) 
> for different front- and back-end frameworks to implement as an extended 
> tutorial example. The API is standardized, so different front- and 
> back-ends can be used interchangeably. (The rationale was announced here 
> .)
>
> I think an example implementation in Racket would be a great way to get 
> some visibility for Racket in the web development community. I would see it 
> as complementary to Continue . 
> (Maybe part or all of it could even be a literate program?)
>
> I've made a stub repository at 
> https://github.com/liberalartist/racket-realworld-example-app in the hope 
> of doing some work on this in my spare time. If anyone is interested in 
> collaborating, please get in touch!
>
> -Philip
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Emitting structured logs

2019-03-31 Thread Darren Newton
I'm currently working on an application that uses structured logs (JSON) 
instead of the traditional string formatted logs. 
I currently have a log message handler based on some work Greg Hendershott 
put together:

```
(define (handle-log-message receiver)
  (λ (out)
(match (sync receiver)
  [(vector event-level event-message event-value name)
   (displayln
(jsexpr->string
 (hasheq 'timestamp (date->string (current-date) #t)
 'level ((compose string-upcase symbol->string)
 event-level)
 'msg (regexp-replace #rx"(^[a-z]*): " event-message "")
 'name (symbol->string name)))
out)])))
```

When I setup a log-writer this works well with simple logs like

```
(log-app-info "START")
```

Which will emit a log entry such as:

```
{"msg":"START","level":"INFO","name":"log-name","timestamp":"2019-03-30T18:27:29"}
```

However, I would like to pass a jsexpr? to the logger, such as `(log-app-info 
(hasheq 'tags '("a" "b" "c")))`
to get a log entry such as:

```
{"msg": {"tags": ["a", "b", 
"c"]},"level":"INFO","name":"log-name","timestamp":"2019-03-30T18:27:29"}
```

This is pretty common when working with AWS and other log services and is 
something I do at work with a Python lib 
(https://www.structlog.org/en/stable/)

As far as I can tell, the log procs only accept strings. Would l need to 
convert my log message into a JSON string, then in the log handler 
convert it back into a jsexpr? and then back into a string? If that is the 
case is it possible to wrap the the `(log--)` procs
in a macro to automate this?

Thanks in advance for any tips

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.