[racket-users] Seeking expert opinion on how Racketeering tames web development chaos.

2017-07-30 Thread Sage Gerard
Hi! New to Racket. Looking for expert opinion on my question, but I should give some background. I worked on software for about 11 years. Started on Win32 desktop applications with C++ and then eventually moved to web, where I stayed on front-end development for about 6 years. Moved to

Re: [racket-users] Using ->i to allow only valid Sneetches for the McBean machine

2018-08-04 Thread Sage Gerard
gt;> (not demand]) >> (result (demand inputs) >> (and/c >> (non-empty-listof (and/c boolean? (curry boolean=? demand))) >> (compose (curry = (length inputs)) length >> (map (lambda (s) stars-upon-thars?) sneetches)

Re: [racket-users] Do I need macros to flag unbound identifiers as failing unit tests?

2018-08-12 Thread Sage Gerard
Regarding #lang racket/koans, I opened https://github.com/zyrolasting/racket-koans/issues/24 and would appreciate comments from those more familiar with defining syntaxes if there are rough edges in this design. On Sun, Aug 12, 2018 at 10:57 AM Sage Gerard wrote: > This is great feedback, th

Re: [racket-users] Do I need macros to flag unbound identifiers as failing unit tests?

2018-08-12 Thread Sage Gerard
This is great feedback, thank you both so much! I like using a language for this approach as the project evolves, and You's feedback is a good stopgap that does work, and can be applied in-place. On Sat, Aug 11, 2018 at 1:01 PM Matthew Butterick wrote: > > On Aug 11, 2018, at 9:00 AM

[racket-users] Do I need macros to flag unbound identifiers as failing unit tests?

2018-08-11 Thread Sage Gerard
Hi all, Still working the koans project and am hitting a design snag. My expected UX is that you clone the repo, run racket koans/all.rkt, and then see nothing but failing unit tests for you to fix. But since some exercises have unbound module identifiers

[racket-users] Racket koans module language bug

2018-08-26 Thread Sage Gerard
Hello all, First crack at a module language and stuck on a "expected only a `module' declaration; found an extra form" error. This is not a duplicate of this question since the error is slightly different and the error reproduces in the REPL. Here's

Re: [racket-users] Racket koans module language bug

2018-08-26 Thread Sage Gerard
n`, but maybe you have a > good reason to do it that way. > > Also, why not `(provide (all-from-out rackunit))` from your language? > > -Philip > > > On Sun, Aug 26, 2018 at 5:42 PM Sage Gerard wrote: > >> Hello all, >> >> First crack at a module language

Re: [racket-users] Cannot create an account on PLaneT

2018-09-08 Thread Sage Gerard
Thank you. On Sat, Sep 8, 2018 at 12:11 PM Laurent wrote: > It's because PLaneT is deprecated. The new package repository is located > at: > http://pkgs.racket-lang.org/ > > HTH, > Laurent > > On Sat, Sep 8, 2018 at 4:26 PM Sage Gerard wrote: > >> Hey a

[racket-users] Cannot create an account on PLaneT

2018-09-08 Thread Sage Gerard
Hey all, I cannot seem to create an account on PLaneT. No confirmation emails (even in Spam). Tried two browsers with extensions disabled. System does not see that my account exists and I don't see contact info for reporting an issue via the "Need Help?" link. Who do I contact for

Re: [racket-users] Racket koans module language bug

2018-09-02 Thread Sage Gerard
he koans) Thank you both. This has been more than helpful On Sun, Aug 26, 2018 at 10:03 PM Matthew Butterick wrote: > > On Aug 26, 2018, at 5:15 PM, Sage Gerard wrote: > > The intent is to reject code with blanks, and to treat code without blanks > as Racket code that still mig

Re: [racket-users] package for the RacketCon 2018 web devel workshop

2018-10-04 Thread Sage Gerard
gt; > I intend to polish the code and notes (that is, the package docs). If > there's any topic that you're especially interested in, I'm happy to > help; you're welcome to write to me privately, if you wish, with > questions. > -- *Sage Gerard* http://www.sagegerard.com -- You receiv

[racket-users] Seeking users to try file monitoring package

2019-06-21 Thread Sage Gerard
Hi all, I'm working on a filesystem monitoring package to contribute to the community. https://github.com/zyrolasting/file-watchers This is my first package and foray into threads with Racket, so there's much to improve. I'd appreciate your feedback to help me understand more about what the

[racket-users] Trying out a Racket-powered Webpack alternative

2019-08-24 Thread Sage Gerard
Hi Racket, I'm excited to show off two new packages if you'll indulge me: - unlike-assets: A build tool for interdependent assets. Similar to Webpack, if you are familiar with the JS ecosystem. - polyglot: A specific configuration of `unlike-assets` that builds static websites using any #lang

Re: [racket-users] Trying out a Racket-powered Webpack alternative

2019-08-25 Thread Sage Gerard
://pkg-build.racket-lang.org/about.html to see if I just needed to wait longer. Is there anything I did not do correctly? ~slg ‐‐‐ Original Message ‐‐‐ On Sunday, August 25, 2019 4:10 AM, Bogdan Popa wrote: > Sage Gerard writes: > > > - unlike-assets: A build tool for in

Re: [racket-users] Trying out a Racket-powered Webpack alternative

2019-08-25 Thread Sage Gerard
Disregard last message. Looks like I have results now. ~slg ‐‐‐ Original Message ‐‐‐ On Sunday, August 25, 2019 9:34 AM, Sage Gerard wrote: > I'd be thrilled to include those libsass bindings as an opt-in feature! > Starred and watched. > > Follow-up troubleshoot

Re: [racket-users] Re: third-party package tips and developer concerns (Was: New version of file-watchers)

2019-08-31 Thread Sage Gerard
I looked back and found my mistake: I only asked about blog posts and videos. I'll refrain from version update posts here from now on. ~slg ‐‐‐ Original Message ‐‐‐ On Saturday, August 31, 2019 10:38 AM, Sage Gerard wrote: > Hi Neil, and thanks for the helpful informat

[racket-users] Re: third-party package tips and developer concerns (Was: New version of file-watchers)

2019-08-31 Thread Sage Gerard
Hi Neil, and thanks for the helpful information and historical context. I do have some follow up questions if that's alright, because I want to make the most out of my time here and it seems like you can clarify that. > You probably don't want to be slowing yourself down with offering people >

Re: [racket-users] competition results.

2019-09-03 Thread Sage Gerard
Congratulations to all! :) ~slg Original Message On Sep 3, 2019, 10:09 AM, Stephen De Gabrielle wrote: > Hi All, > > All the entries are in for the summer picture competition. > Entries have been collated at as forked repositories at > https://github.com/standard-fish and in

Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-29 Thread Sage Gerard
Joining in. I want to be part of this. -slg Original Message On Aug 29, 2019, 12:31 PM, 'Joel Dueck' via Racket Users wrote: > On Thursday, August 29, 2019 at 11:27:41 AM UTC-5, Sam Tobin-Hochstadt wrote: > >> Thanks for volunteering! I'll follow-up off-list. >> >> Sam > >

[racket-users] Confirming receipt

2019-08-23 Thread Sage Gerard
Hello, My last few emails to the user mailing list have gone without responses, and I suspect that my emails were sent to spam or silently discarded since I cannot find them in the mirrors. I sent another just last night, but I wanted to confirm if subscribing to the Google Group fixes the

[racket-users] Where is the best place to post regular content about Racket projects?

2019-08-25 Thread Sage Gerard
I am producing videos and blog posts around my Racket projects. I don't want to announce each one here if it's poor etiquette/unwanted solicitation. Still, I would like to have a platform to share regular content with Racket users with the intent to promote my work. Is there a canonical place

Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Sage Gerard
First, thank you all for the responses. Originally I figured I would need to find some key contacts and ask them to review my Racket package* for written permission to publish under a proposed license. But if ownership itself is a question mark, I wonder if I should just pick LGPL for safety

[racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Sage Gerard
--I believe this email was lost due to me not being subscribed to the list last time I sent it. Sorry if this is a duplicate. Has someone tried to release an open source Racket project under a license that enforces paid commercial use of that project? Light Googling suggests this would be

Re: [racket-users] Re: third-party package tips and developer concerns (Was: New version of file-watchers)

2019-08-31 Thread Sage Gerard
31, 2019 at 02:45:02PM +0000, Sage Gerard wrote: > > > I looked back and found my mistake: I only asked about blog posts and > > videos. I'll refrain from version update posts here from now on. > > Whatever you originally asked for, I think this ensuing discussion abou

[racket-users] New version of file-watchers

2019-08-28 Thread Sage Gerard
Version 0.2 of the file monitoring package file-watchers is about to drop. Here's a PR for public review. There are no contributors, so I plan to merge in 48 hours if there is no feedback. Otherwise I'll play it by ear. https://github.com/zyrolasting/file-watchers/pull/4 The new release

Re: [racket-users] Where is the best place to post regular content about Racket projects?

2019-08-26 Thread Sage Gerard
n, Aug 25, 2019 at 4:23 PM Sage Gerard wrote: >> >> I am producing videos and blog posts around my Racket projects. I don't want >> to announce each one here if it's poor etiquette/unwanted solicitation. >> >> Still, I would like to have a platform to share regular

Re: [racket-users] Would it help to call racket2 something else?

2019-08-28 Thread Sage Gerard
:23 PM, George Neuner wrote: > On 8/28/2019 10:56 PM, Sage Gerard wrote: >> #lang new-coke >> >> -slg > > "New Coke" was horrible ... tasted like the bastard child of Pepsi and > Dr. Pepper. > > And no matter what they claim, "Classic Coke"

Re: [racket-users] Would it help to call racket2 something else?

2019-08-28 Thread Sage Gerard
#lang new-coke -slg Original Message On Aug 28, 2019, 10:39 PM, 'Joel Dueck' via Racket Users wrote: > On Wednesday, August 28, 2019 at 4:14:40 PM UTC-5, David Storrs wrote: > >> On Wed, Aug 28, 2019 at 5:08 PM Daniel Prager wrote: >> >>> I reckon #lang retack would at least

Re: [racket-users] Would it help to call racket2 something else?

2019-08-28 Thread Sage Gerard
Got it, thanks -slg Original Message On Aug 28, 2019, 11:48 PM, Jon Zeppieri wrote: > On Wed, Aug 28, 2019 at 11:43 PM Sage Gerard wrote: >> >> Why is the name Racket2 so important, anyway? > > It isn't. It's been mentioned several times that "Ra

Re: [racket-users] Re: Listing All Programs

2019-09-05 Thread Sage Gerard
This question can be read a couple of different ways too. What are you trying to do once you have the answer you are looking for? Original Message On Sep 5, 2019, 1:13 PM, Adam Golding wrote: > What is the shortest program listing the largest list of programs that can be >

Re: [racket-users] Re: Listing All Programs

2019-09-05 Thread Sage Gerard
egorizes them according to their behavior. >> >> The idea also came up recently in this context: >> https://www.facebook.com/adamgolding/posts/10106973704058242 >> >> On Thursday, 5 September 2019 13:17:32 UTC-4, Sage Gerard wrote: >> >>> This question

Re: [racket-users] Re: Listing All Programs

2019-09-05 Thread Sage Gerard
for). For example, enumerating possible racket programs from shortest to > longest source would be one order, and enumerating them from shortest to > longest runtime would be another... > > On Thursday, 5 September 2019 13:53:29 UTC-4, Sage Gerard wrote: > >> Thanks, that helps.

Re: [racket-users] Re: Listing All Programs

2019-09-05 Thread Sage Gerard
actor that depends on > the inverse of the prior of the program. > > IMO, Levin Search is one of the most important algorithms ever. > > On Thu, Sep 5, 2019 at 7:13 PM Sage Gerard wrote: > >> In all honesty, I think you are asking for something so broad that it would

Re: [racket-users] Re: Listing All Programs

2019-09-05 Thread Sage Gerard
design for what you want without a patent attached to it. ~slg ‐‐‐ Original Message ‐‐‐ On Thursday, September 5, 2019 2:09 PM, Sage Gerard wrote: > It almost sounds like you want a cleaner interface for defining a neural net. > > ~slg > > ‐‐‐ Original Message ‐‐

Re: [racket-users] Listing All Programs

2019-09-05 Thread Sage Gerard
With a Racket section to boot. Thanks so much for sharing this! I had no idea about this kind of application. Original Message On Sep 5, 2019, 5:26 PM, Josh Rubin wrote: > On 9/5/2019 9:05 AM, Adam Golding wrote: >> What is the shortest/smallest racket program (ithat

Re: [racket-users] [ANN] Racket-on-ChezScheme docker images now available

2019-09-07 Thread Sage Gerard
Super exciting news. Thank you for sharing! Original Message On Sep 7, 2019, 2:42 PM, Jack Firth wrote: > Thanks to the [hard work of Bogdan > Popa](https://github.com/jackfirth/racket-docker/pull/34), you can now run > Racket-on-ChezScheme inside docker containers using the

Re: [racket-users] [OT] Cities and GPS

2019-09-06 Thread Sage Gerard
Would geonames help? http://www.geonames.org/ Original Message On Sep 6, 2019, 8:28 AM, Hendrik Boom wrote: > On Thu, Sep 05, 2019 at 10:42:01PM -0700, Alex Harsanyi wrote: > ... >> >> > >> > A package containing a database of the positions of the major cities and >> >

[racket-users] Pitching use of Racket at work?

2019-09-18 Thread Sage Gerard
This question is more for private-sector programmers in firms using well-adopted technologies: How many of you tried to get your team to try Racket at work for smaller tasks? What was their reaction? I know there are not enough Racket programmers out there to justify many risks in maintaining

[racket-users] Distributing raco command without `raco`

2019-09-15 Thread Sage Gerard
If I release a package `foo` and want to distribute a command with it, I can make it into a raco command where users have to keep typing `raco foo-command`, etc. Javascript and Python ecosystems let me write a package such that I can install `foo` and the users can just run `foo-command`. Is

Re: [racket-users] Distributing raco command without `raco`

2019-09-15 Thread Sage Gerard
t; in an "info.rkt" file in any collection, not just at the top level directory > of the package. Here's an example "info.rkt" file from one of my packages > that uses `gracket-launcher-names`: > https://bitbucket.org/digitalricoeur/tei-utils/src/master/tei/tools/in

Re: [racket-users] Pitching use of Racket at work?

2019-09-19 Thread Sage Gerard
ould become permissible for people who can't choose whatever > tools they want, for reasons implied below. > > Sage Gerard wrote on 9/18/19 6:25 PM: > > > I know there are not enough Racket programmers out there to justify > > many risks in maintaining large Racket projects i

[racket-users] How do I secure secrets in memory?

2019-09-27 Thread Sage Gerard
I got sloppy here in a Stripe integration: https://github.com/zyrolasting/stripe-integration/blob/master/main.rkt#L31 I'm not an InfoSec expert, but I know I'd like to secure the secret key used here in memory instead of using a parameter. I'd probably encrypt the value provided by a client

[racket-users] Announcing Stripe Integration

2019-09-25 Thread Sage Gerard
Hi all, I didn't see one in a search so I just added a Stripe API integration library to the index: https://pkgd.racket-lang.org/pkgn/package/stripe-integration - Dependencies are all from base - Generates and escalates idempotency keys automatically in the event of network failure - Includes

Re: [racket-users] FFI Object Deallocator Not Called

2019-11-07 Thread Sage Gerard
To add: Is it wise to put (begin (sync (system-idle-evt)) (collect-garbage)) in a flush callback on the exit handler's plumber? ~slg ‐‐‐ Original Message ‐‐‐ On Thursday, November 7, 2019 1:02 PM, Bryant Curto wrote: > Thank you Matthew for your response! > >>One catch is that

Re: [racket-users] Help me understand FFI callouts in this context?

2019-10-30 Thread Sage Gerard
threads involves coping the C stack, which often annoys C/C++ > libraries. > > Will the callback definitely be invoked in the same OS-level thread as > calls to Vulkan functions? If not, then specify `#:async-apply (lambda > (thunk) (thunk))` alongside `#:atomic? #t` t

[racket-users] Vulkan integration: Contributors Update

2019-11-15 Thread Sage Gerard
New update on the Vulkan collection: https://sagegerard.com/racket-vulkan-contributors-update.html High points: - A CLI is now available to control code generators and Vulkan specifications. You can now generate Racket bindings that don't need a code dependency on the collection, and can keep

Re: [racket-users] xml library clarification - "" symbol parsing

2019-11-22 Thread Sage Gerard
I'm interested in this quote: > [...] creating a huge problems with even simple XML parsing. (I am basically > battling XML lib all day already to do most simple tasks) I think that when you asked about why the xml collection behaves the way it does, the conversation turned away from your

Re: [racket-users] Help me understand FFI callouts in this context?

2019-10-27 Thread Sage Gerard
, 2019, 1:56 AM, Sage Gerard wrote: > Hi Ryan, and thank you for the detailed and informative reply! > > I gathered that I should trust Racket's handling of values across the foreign > boundary more, > and used what I learned from your email to get past one error. Sadly, I > la

[racket-users] regexp-match + REPL leads to confusing output

2019-10-16 Thread Sage Gerard
I'd like to understand the reader better, and this seems relevant to it. In this REPL session I do not escape \S with a second \ in the first interaction. After I introduce the slash later, the REPL never really "recovers." Even a simple (displayln) stops producing output. What's happening?

Re: [racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-20 Thread Sage Gerard
> #:c-id vkEnumerateInstanceLayerProperties) > (define (vkEnumerateInstanceLayerProperties) > (define len (vkEnumerateInstanceLayerProperties/private 0 #f)) > (define props (malloc _VkLayerProperties len)) > (define new-len (vkEnumerateInstanceLayerProperties/private len props)) > (values new-len props)

Re: [racket-users] Re: I Need Help Bringing Vulkan to Racket

2019-10-21 Thread Sage Gerard
a non-trivial application and getting more people involved. ~slg ‐‐‐ Original Message ‐‐‐ On Monday, October 21, 2019 11:18 AM, Paulo Matos wrote: > On Wednesday, 9 October 2019 22:56:48 UTC+2, Sage Gerard wrote: > >> I'm resuming work on a very early-stage project that g

Re: [racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-21 Thread Sage Gerard
e this example work? If I can just understand that, I can bring that back to the prior example. ~slg ‐‐‐ Original Message ‐‐‐ On Sunday, October 20, 2019 7:24 PM, Matthew Flatt mfl...@cs.utah.edu wrote: > At Sun, 20 Oct 2019 23:07:58 +, Sage Gerard wr

Re: [racket-users] Re: I Need Help Bringing Vulkan to Racket

2019-10-21 Thread Sage Gerard
Yes, see https://github.com/zyrolasting/racket-vulkan/blob/master/examples/minimal.rkt ~slg Original Message On Oct 21, 2019, 6:17 PM, Hendrik Boom wrote: > On Mon, Oct 21, 2019 at 07:42:39PM +0000, Sage Gerard wrote: >> Thanks Paulo, I will follow up off-list. >

[racket-users] Help me understand FFI callouts in this context?

2019-10-24 Thread Sage Gerard
I am porting some C++ code to Racket that uses a function pointer. C++ origin: See 294 through 306: https://github.com/Erkaman/vulkan_minimal_compute/blob/master/src/main.cpp#L294 Racket destination: https://github.com/zyrolasting/racket-vulkan/blob/master/examples/mandelbrot.rkt#L240 How do I

Re: [racket-users] Help me understand FFI callouts in this context?

2019-10-24 Thread Sage Gerard
try/vulkan/specs/1.1-extensions/man/html/vkGetInstanceProcAddr.html ~slg ‐‐‐ Original Message ‐‐‐ On Thursday, October 24, 2019 8:54 PM, Ryan Culpepper wrote: > On 10/25/19 12:45 AM, Sage Gerard wrote: > > > I am porting some C++ code to Racket that uses a function pointer. >

Re: [racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-22 Thread Sage Gerard
a pointer to a `_VkInstance` happens on the C side. Taking it from the top: At Mon, 21 Oct 2019 19:07:40 +0000, Sage Gerard wrote: (define _VkInstance (_cpointer 'VkInstance_T)) So far, so good.`VkInstance` is defined in Vulkan to be a pointer to unspecified memory, so this makes sense. T

Re: [racket-users] What's "#"?

2019-10-23 Thread Sage Gerard
58 AM, Sam Tobin-Hochstadt wrote: > `#` is how a representation of one of the internal AST > types for the compiler is printed. When you see it, it definitely > means some memory got corrupted. > > Sam > > On Tue, Oct 22, 2019 at 4:52 PM Sage Gerard wrote: >> >> Her

[racket-users] What's "#"?

2019-10-22 Thread Sage Gerard
Here's a Vulkan app that prints the properties of the first physical device on the system: https://github.com/zyrolasting/racket-vulkan/blob/master/examples/mandelbrot.rkt#L39 If you comment out the call to `vkGetPhysicalDeviceProperties`, the main module works. I create a Vulkan instance,

Re: [racket-users] What's "#"?

2019-10-23 Thread Sage Gerard
‐‐‐ Original Message ‐‐‐ On Wednesday, October 23, 2019 11:04 AM, Sage Gerard wrote: > Alright, thanks. I have a couple of leads on what happened, but since the > implementation details are private I'm unsure of the best troubleshooting > technique in this context. > > For

[racket-users] Vulkan integration ready for first round of testing

2019-10-18 Thread Sage Gerard
I think I'm ready to do my first rounds writing/supporting Vulkan applications. It would not surprise me if some design gaps pop up, but I think we're in a good spot. Source code: https://github.com/zyrolasting/racket-vulkan/ Write up: https://sagegerard.com/racket-vulkan-before-testing.html

[racket-users] How do I represent a convenient two-step allocation using ffi/unsafe?

2019-10-19 Thread Sage Gerard
Consider the following C++ that calls a function once to learn how much it should allocate for a vector, and again to populate said vector. uint32_t count; vkEnumerateInstanceLayerProperties(, NULL); std::vector properties(count); vkEnumerateInstanceLayerProperties(, properties.data());

[racket-users] Seeking feedback on Vulkan integration progress

2019-10-17 Thread Sage Gerard
I finished generating C enums, bitsets, function pointers, structs, unions and handle declarations from the Vulkan API registry. I wrote an article on the topic with a link to the current output module [1]. I tried using dynamic-ffi but hit an issue re: header selection that I expect will be

Re: [racket-users] eq? of quoted expressions

2019-10-25 Thread Sage Gerard
By https://docs.racket-lang.org/reference/symbols.html, Two interned symbols are eq? to each other. But in the other example, you are comparing two lists each containing a single symbol. A new list is created in each expression, and eq? is comparing the object references and not the content.

Re: [racket-users] eq? of quoted expressions

2019-10-25 Thread Sage Gerard
Typo: Meant (let ([l (quote (a))]) (eq? l l)) ~slg ‐‐‐ Original Message ‐‐‐ On Friday, October 25, 2019 12:28 PM, Sage Gerard wrote: > By https://docs.racket-lang.org/reference/symbols.html, Two interned symbols > are eq? to each other. > > But in the other example, you a

[racket-users] How should I track versions for racket-vulkan?

2019-11-01 Thread Sage Gerard
Re: racket-vulkan, I'd like to have a version number that conveys which version of the Vulkan specification I'm tracking, as well as the version of the utilities I write surrounding it. Per the docs for (valid-version?) and package metadata, it does not look like I can do this well. I'm not

[racket-users] How do I typeset mixed-code for docs.racket-lang.org?

2019-10-08 Thread Sage Gerard
One of my projects allows for embedding Racket modules within elements, within a Markdown page. ## Hello World