Hi friends! I recently had some discussions about PLC4X for different types of protocols and languages (esp. C#).
So I wanted to “rewarm” an old discussion (and also point it out for newer community members. As you all know we have this m x n problem (where m being the protocols we support, while n is the languages we support). Some time ago we decided to go the way of code generation to tackle this. Chris made incredible efforts and came up with mspec which is, I would say today, the new core of PLC4X and one of its biggest assets as its just so… cool. Another alternative we discussed a bit was the idea that Apache Tika [1] went. Basically to have one interface and behind this interface we integrate all kind of tools to get the job done. E.g. also third party libs, probably also adapters for proprietay stuff and so on. One concrete example for this is the OPC UA protocol. The current Implementation done by Matthias is basically an adapter to Eclipse Milo (or a differently named project of Kevin) which only does “mediation” between the full OPC UA Stack and the PLC4X Frontend. The other way is currently engineered mostly by Ben who works on integrating OPC UA via mspec that it is a PLC4X “native” driver. There already were some discussions what would be better and I’m totally unemotional about it but I also see value in the “adapter” approach. For me, PLC4Xs main benefit is the unified API we can provide that makes it awesome. And, the discussion doesn’t need to be an either or it can also be both. I agree that a well written native driver always beats “external” ones. But from a time and material perspective it is usually easier (as a first step) to integrate existing work into the project to get it out there. And we can also mark that on the homepage or elsewhere as “native” or “non-native”. And regarding our n-Languages Problem there already was the idea to come up with a Java based Web Server and other language Bindings e.g. via Thrift, Protobuf or gRPC (which where thrown out due to the build complexity they brought). But If someone (looking at you Josh) is willing to experiment a bit with it, I would definetly be in : ) What are your thoughs on these matters? Best Julian [1] https://tika.apache.org/
