Hacker News new | past | comments | ask | show | jobs | submit | techn00's comments login

Very useful for DDD, like having an Email type, or String100 (string of 100 characters)


Works very well too for any kind of validation or encoding. Anything that accepts input from the outside world can accept a string. And then everything else in the app can work with a "SafeString" and the only way to create a safe string is to send a string through a string escape function (or whatever makes sense for your app).

Works especially well if you're using any kind of hexagonal architecture, make your functional core only accept validated/escaped/parsed/whatever types, and then the imperative shell must send any incoming data through whatever transformation/validation/etc before it can interact with the core.


I wonder's what's the best quality/price translation service


I've always been curious how these apps that gamify productivity prevent "cheating" - turning it into a gacha game instead of improving productivity


> The code will be packaged up and sold by unscrupulous people who will not contribute back

Choose a good license then


A license wouldn't stop the unscrupulous people, they'll keep making clones of it and ignoring the license.

This means I have to start chasing any clones, engage legally and try to take them down. It's just not worth the time - I would rather spend the time on improving Monodraw instead.


To voice support for current state - do what you're already doing, and I agree on focusing on opening up the format.

Don't hesitate to charge for v2, if improvements pile up and you have affordances to do so. Will gladly pay.

It's pretty great already as-is. Thank you.


If unscrupulous people are willing to ignore the license anyway, wouldn't they just hex edit to change the branding to sell clones even while it's closed source?


Does Ollama support GBNF grammars?


No, but it does support json formatting


You're basically creating an expression language: https://github.com/expr-lang/expr


It seems like an awesome project, I'd say go for it, check /r/ProgrammingLanguages as well. However, typescript is "good enough" for the community, so I don't think it will take off in the sense that you mean.


You want grammars to restrict the output, search for "gbnf grammar". That and combined with a good prompt with an example, also check out outlines.dev



that's a fantastic document! thank you



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: