#filemethod though, which isn't on the class unfortunately
Yields a context object with an #update(data : String | Bytes) method available.doesn't really sound very obvious for using with files :)
ClassMethods, so they're all on there https://crystal-lang.org/api/1.1.1/Digest/ClassMethods.html
mfiano: i already shared some code and i don't really have more. well maybe a less cut-off example. but i don't have access to the code for the moment.
loading shaders at runtime is the normal mode of operation. just a string value. then u can use runtime interpolation, not only ECR.
and i didn't compose programs, I'm not big on shaders.
@spencerwi do you know if you can write a tree-sitter implementation in Crystal rather than in C?
@asterite I've done an initial cursory search, and haven't come up with anything promising. From what I can tell, the "normal" path with tree-sitter is a
grammar.js file (that gets "processed" and generates a
parser.c file), and an optional accompanying
scanner.cfile for cases where you need custom lexing. Presumably both of those eventually get compiled into a third artifact that tree-sitter uses, but I haven't yet found what that is.
If we could "cut out the middle-man" and jump straight to producing that third artifact from the existing Crystal compiler, that'd be pretty sick -- we'd just have to "wrap" it in something that converts Crystal's AST/intermediate-representation into the sort of Scheme-ish AST representation that tree-sitter expects to see as output from its parsers, I think?
Hello Everyone, I want to share with you a small shard that I have been working on. The shard name is called JoobQ (https://github.com/azutoolkit/joobq) and is a job scheduler very much like Sidekiq, It has a nice set of features and a dashboard UI (https://github.com/azutoolkit/dashforge) https://dashforge.io/
Priority queues based on number of workers
Retry Jobs with automatic Delays
Cron Like Periodic Jobs
Stop execution of workers