[External] : Re: Question about circular references

Archie Cobbs archie.cobbs at gmail.com
Tue Jul 4 20:43:12 UTC 2023


On Tue, Jul 4, 2023 at 2:06 PM David Alayachew <davidalayachew at gmail.com>
wrote:

> I spend a lot of my time writing front end code, path finding algorithms,
> and natural language processing. These are basically the 3 realms I spend
> 90% of my time in. All 3 of these treat State Transition Diagrams as the
> holy grail for representing control flow and decision making. Literally ALL
> of the business logic I write for these initiatives involves me emulating a
> state transition diagram directly into Java code.
>

This sounds like a scenario where a domain-specific language might be
appropriate. Have you considered taking that approach?

An quick & easy way to experiment with this idea is to use XML+XSLT to
generate whatever (e.g., Java source files). Once I used XML+XSLT to
generate RPM spec files, which were then compiled into RPMs, as a way to do
some DevOps automation. That's a random example but it worked well in terms
of the cost/benefit trade-off.

Obviously, Java is a general purpose language, so for any particular subset
of the programming universe, it's probably going to be sub-optimal. That
shouldn't be a surprise, right?

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230704/c3ef0aaa/attachment.htm>


More information about the amber-dev mailing list