mudasobwa
Creator of Cure
Exvalibur is the generator for blazingly fast validators of maps based on sets of predefined rules.
Under the hood, it generates a module with many different clauses of the same valid?/1 function with explicitly hardcoded pattern matches and guards on the input.
Here is the blog post shedding a light on what goodness it provides and h)ow is it implemented β https://dev.to/mudasobwa/--smart-validation-in-elixir-4bcm
Trending in Announcing
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library.
The progre...
New
I fully migrated to my own harness from Anthropic/Gemini and I think itβs time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rustβs ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Iβve moved the strategies out of PowAssent and created a multi-provider framework for Elixir. This way the strategies can be used in any ...
New
Aloha gang,
Thereβs a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here:
...
New
Other Trending Topics
Hey there,
I havenβt seen a list of useful Elixir specific skills for the popular AI tools yet so Iβm starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something Iβve been building β NowBlind, a random chat app designed to help people discover ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. Iβm finding it pretty diff...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, Iβm not sure which exactly)
AI dream has many faces, but general...
New
With AI doing more of the implementation work, Iβve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
With advancements in AI gathering pace and set to increasingly accelerate, perhaps itβs worth having an annual thread on the topic - feel...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #elixirconf-us
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #elixirconf-eu
- #processes
- #security
- #api
- #forms
- #performance










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
mudasobwa
As I continue working on
Exvalibur, I have implemented custom guards and pattern matching of values.I just blogged about how I used custom sigils to allow quoted expressions in the rules.
OvermindDL1
Heh, interesting idea there!
mudasobwa
Where exactly? Do you mean a validator module generation? If yes, I can assure you it is worth it: we use it in production for several months and it shows itself
Depending on input, it runs 10β1000 times faster than standard validations.
mudasobwa
Starting with
v0.8.0Exvaliburaccepts module-based validatiors:fuelen
I tend to think that there is a convention that functions with
?should return boolean typemudasobwa
True that, but I struggled to find a better name to be short and self-explanatory. OTOH, I do not want to miss the opportunity to return what was indeed validated on success.
Maybe I should go with
validate/1to return whatvalid?/1currently returns andvalid?/1to return boolean.david_ex
For what itβs worth, hereβs the convention about trailing question marks and boolean return values: https://hexdocs.pm/elixir/master/naming-conventions.html#trailing-question-mark-foo
Qqwy
This is of course subjective, but personally I think that proposal is indeed more self-evident.
mudasobwa
It surely is. The only thing that prevents me of doing it straight away is itβs breaking change. I probably will go with deprecation warnings and
validate/1doing exactly whatvalid?/1does now and change the behaviour ofvalid?/1to return boolean as ofv1.0.0.mudasobwa
β
v0.9.0.