Lurker News

Comments (146) 44 threads

Earlier comments
tomlong#
Yesterday a friend remarked to me she had lost a recipe for something or other and I resolved to start recording some I use, I was thinking of something like MD/Obsidian but this looks really good.

Great to have the iOS app, an easily convertable human readable and writable format and hang on to your own data.
Going to give this a good look over today. Might think about an Obsidian plugin as well.

ltr_1 reply#
interesting language, didn't have the time to read the details/spec but, what i found most difficult when reading recipes on the internet that the ingredient names change dramatically between countries(event with the same spoken language), does this language attempt tackle that problem? also it would be nice to have alternatives for some ingredients.
dubadub#
Agreed, recipes often need localisation. The language itself agnostic to ingredients and doesn't provide any database. It's up to a user to tag ingredients so tools can recognise them and use in different ways.

It's very easy to update a recipe file in a text format, so there shouldn't be an issue to quickly change names in a recipe you get from your friend overseas.

pintxo1 reply#
Also, any plans on how to convert between units?
dubadub1 reply#
Not yet solid, but there are ideas. For example, define units config in a way like that: "1l | 1000 ml | ...". The first value will be a preferred one and everything else will be converted. What do you think?
pintxo1 reply#
Might be the only viable way, as conversion factors are ingredient specific (e.g. Milk/Flour, Cups vs Liter/Grams)
rkangel#
The language parser has the information to know what ingredient the unit is for though, so you could build a database of those conversions.
amir734jj1 reply#
What did you use for lexer and parser?? I couldn't find it on the GitHub front page/source code.
dubadub#
The parser is hand-made https://github.com/cooklang/CookInSwift. I was reading a book "Crafting Interpreters" by Robert Nystrom (fantastic and atmospheric book!) and was eager to try it myself.

Load more comments