HNHacker News
TopNewBestAskShowJobs

llovan

249 karma · joined January 26, 2016

GitHub https://github.com/jester7/ Twitter https://twitter.com/jovanjester
submissionscomments
llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
Thanks for catching this. I had implemented the cards as HTMX-clickable divs, which broke native link behavior. I just shipped a fix: search result cards are now real anchor links, so middle-click/cmd-click/ctrl-click work normally while plain clicks still use the in-page HTMX transition.
llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
Thanks for the suggestions, they are valid concerns and I didn't know that about Chrome and Lighthouse. ty for the tips
llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
Thanks for the feedback. Currently in addition to fuzzy matching the search system will match against synonyms broadly, so some unintended leafy greens would match Spinach as in your example results. I'll have to tweak the fuzzy matching a bit.
llovan··on Show HN: Nutrepedia – nutrition info in 29 locales built with Clojure and Htmx
thanks for the feedback. That's a good suggestion. I will be adding some tweaks soon for improved unit handling. Also another idea I had that I want to implement is being able to compare several foods side by side in a split view (on desktop or tablet landscape modes).
llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
The only source currently for all data is the USDA's Food Data Central. I'm planning on adding more nutrient data sources in the near future.
llovan··on Show HN: Nutrepedia – nutrition info in 29 locales built with Clojure and Htmx
lol, ty, Clojure + HTMX have been an amazing combo for this project. and postgres too, for the DB.
llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
Thank you! Each locale has its own route terms, UI strings, portion terms, localized food names, synonyms, slugs, and search behavior.

The app uses ICU MessageFormat for pluralization/units and locale-aware number/unit formatting. Search varies by script: Latin languages use pg_trgm/unaccent, CJK and other non-Latin scripts use PGroonga, and romanized aliases are indexed separately so Latin-keyboard queries can still find native-script foods.

For localization I do use multiple LLM passes, but mostly as a structured localization pipeline rather than a one-shot translator: generate localized names/aliases/slugs/content from canonical food and nutrient data, then run separate review/evaluation passes and human spot checks.

The hard part is regional naming and portions, not basic translation. For example, in Spanish, "Potato" as papa vs patata is the simple version of the problem.

llovan··on Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx
Hi HN, I'm Jovan. I've been building Nutrepedia part-time from Monterrey, Mexico.

It's a multilingual nutrition reference site: 1,635 foods rendered into 47,415 localized pages across 29 regional locales. Each page has nutrition facts, localized names, portion terms, regional routing, imagery, and short food context.

The stack is Clojure, HTTP-Kit, Compojure, Hiccup, HTMX, and Postgres. Postgres handles the food data, localized content, admin workflow, task queues, search, and evaluation records.

The search piece has been the most interesting technically. Latin-script fuzzy search uses pg_trgm and unaccent. CJK and other non-Latin scripts use PGroonga. Romanized aliases are indexed separately, so a query like "rasbhari" can find a Hindi food name like "rasbhari" / "रसभरी".

I built this because most nutrition tools feel calorie-first, signup-first, and English focused. I wanted the reference layer to be free and useful before asking anyone to track meals or create an account.

I'd especially appreciate feedback on search, localization mistakes, whether the pages are useful before tracking exists, and any obvious technical blind spots.

llovan··on Show HN: Nutrepedia – nutrition info in 29 locales built with Clojure and Htmx
Thanks for catching that. Will fix soon.
llovan··on Show HN: Generate startup ideas based on HN comments
> Create a dating app that matches people based on their interest in software development history. Use the BRL-CAD source code repository, the oldest known public version-controlled codebase in active development since 1983, as a conversation starter for tech-savvy singles looking for a unique and intellectually stimulating dating experience.

I learned about BRL-CAD today, not sure I would use it in a dating context, though.

llovan··on Meta Releases New AI-Based Photo Segmentation Tool to Everybody
I haven't tried Meta's yet but Photoshop's tool though decent struggles with complex scenes
llovan··on Show HN: A battle game for any of your EVM blockchain NFTs
it doesn't work on mobile for now unfortunately
llovan··on No one is certain what Roman bronze dodecahedrons were used for (2018)
Maybe Romans were getting those for the cool factor, similar to how the tungsten cubes are en vogue today.
llovan··on Worker pay isn’t keeping up with inflation
The cumulative inflation will not be undone even if the inflation rate falls next year.
llovan··on Sublime Clojure
I got my start in Clojure with ClojureScript. If you do front end web development it's a great way to jump in. I think I actually now prefer ClojureScript with the Reagent and Re-frame libraries more than standard React using js/TypeScript.
llovan··on Clubhouse “Leak” Might Be a Simple Data Scrape
It is not as bad as some sensationalist headlines made it seem, but they should still implement some kind of rate limiting to prevent mass scraping.
llovan··on Vitamin D: The truth about an alleged Covid ‘cover-up’
I get extreme migraines if I take it every day for more than a week. For me, eating Vitamin D fortified foods and sunlight seems to be more than enough.
llovan··on The DreamBank, a collection of over 20k dream reports
I've had some pretty strange dreams over the years. Including some that were 2D animations, others that were like video games with cutscenes and text overlays. And that's without considering the precognitive dreams and those with side effects in the real world.
llovan··on LightSpeed: Rewriting Messenger’s codebase for a faster, smaller, simpler app
RIP React Native
llovan··on Registrars raise alarm over proposal for big .com fee hikes
ICANN seems to be a corrupt organization.
llovan··on Coinbase Wallet to remove DApp browser to comply with Apple's policy
Decentralized App
llovan··on How to Make Remote a Success
I'm convinced that some of the downsides to remote work will be solved through technological means; probably some kind of VR or AR solution, where you can be inside a shared virtual space and glance over to see what your coworkers are up to, and perhaps give them a virtual tap on the shoulder.

This kind of virtual office would not help as much, of course, in cases of highly distributed teams split across continents. Even then though, it would be cool to drop into someone's virtual office and leave a note on virtual post it or whiteboard.

llovan··on 3-year-olds consuming alternative milks were 1.5 cm shorter on average
Yeah I've seen those but I was referring more to the potential health downsides not earnings possibilities: http://www.slate.com/articles/health_and_science/science/201...
llovan··on 3-year-olds consuming alternative milks were 1.5 cm shorter on average
The average height has been increasing steadily all over the world for the last century or so, perhaps since industrialization. Though malnourishment played a part in not letting people reach their genetic potential in height, there is evidence linking taller heights with disease such as cancer and shorter lifespans.

I do not think it has been conclusively proven that taller statures are desirable. I would think adequate nutrient intake from a variety of food sources that leads to a sufficient and healthy height would be better than attempting to maximize for greater height at the expense of health in later years.

llovan··on Why bad-tempered people earn more and live longer
Well, just anecdotally, blunt or angry contrarian responses seem to be downvoted in most online communities.
llovan··on Why bad-tempered people earn more and live longer
Maybe, but they have lower karma on Hacker News.
llovan··on Do low-carb diets work?
Calorie deficits are more important for weight loss than specific macronutrient ratios.
llovan··on Humans are the highest energy apes, making us smarter but also fatter
The homo genus needs a new species: Homo Sapiens Corpulentus
llovan··on Triplebyte Engineer Genome Project
For a second I thought they were going to start sequencing genomes of engineers and start screening via DNA...
llovan··on ‘Utopia for Realists?’ – a review
I would imagine as time goes on and with increasing advances in automation and AI, even those jobs would require less hours, though probably not doable in 3 hour workdays. More likely, those jobs would require "checking in" 10 or 15 minutes every hour around the clock.
Page 1 of 2Next →