News for hackers. Stuff that matters.

vc5

Re:Parsing EDIFACT in Python with syntax trees on Saturday October 24, 2026 @05:26PM (#50225504)
Mentioned elsewhere in the thread, but it's possible to parse the (mostly) machine readable specs for EDIFACT messages to create schemas for reading massages.

A library that I wrote decades ago has some Perl which can do that to produce XML definitions from the UN/EDIFACT published directories. I hope that it can be useful to others: https://github.com/davidcoles/medici

Re:Parsing EDIFACT in Python with syntax trees on Saturday October 24, 2026 @05:17PM (#50225407)
This takes me back 20+ years to when I had to create/parse EDI messages for various retailers when I worked at an independent record distributor.

I wrote a C library to parse the messages with callbacks in the style of Expat. There's binding for Perl to make it a bit easier to use. EDIFACT, X12 and Tradacoms are supported.

Anyways, unlikely anyone might need it these days, but there are some Perl scripts which can interpret the EDIFACT "directories" (basically message schemas), so you don't have to build your own message syntax definitions. It should be possible to convert the XML output that it generates into the Python needed to define message syntax, element definitions, etc.

Best of luck with it - there's a whole world of crazy industry standards to explore.

Oh, and consulting is a possibility if anyone needs it ;-)

-- https://github.com/davidcoles/medici

Re:Ask HN: What Are You Working On? (Nov 2025) on Monday November 10, 2025 @11:03AM (#45877229)
Best of luck with this. If you get the web hosting part going and need to stick a load balancer in front of web servers/front end proxies, may I suggest that you give my project[1] a go? Speaks BGP directly to your routers to advertise healthy services and scales from small VMs (for services that are only a few gigabits/s) to physical servers if you need to serve tens of gigabits/s traffic.

Shameless plug, sorry (not sorry!) but I would have killed for it when I worked in web hosting :-)

[1] https://github.com/davidcoles/vc5

Re:Ask HN: What are you working on? (September 2025) on Monday September 29, 2025 @05:09PM (#45418791)
An XDP/eBPF load balancer with Golang control plane library and an application to replace high capacity legacy appliances with COTS servers.