News for hackers. Stuff that matters.

florianfmmartin

How about instead of an AI generating a regex we can't understand, we put energy using actually well developped method for parsing & validating text? Why put code you can't understand in your database?

For complex inputs, use actual peg parsers : https://docs.rs/peg/latest/peg/

For simplet inputs, express your intent with readable methods using a lib : https://github.com/sgreben/regex-builder/ & https://github.com/francisrstokes/super-expressive

Re:Making a Keyboard Layout on Sunday February 26, 2023 @10:43AM (#34946362)
I use something very close to this http://thedarnedestthing.com/daily%20beakl

I also forked a tool of github to evaluate layouts considering multiple languages (ex: 40% french 60% english) https://github.com/florianfmmartin/kb-layout-evaluation

But i have not updated it recently, take a look at original repo also ;)

Re:Ask HN: Where are the simple Git GUIs? on Friday November 25, 2022 @07:51AM (#33741915)