Structorizer.Desktop
Structorizer.Desktop copied to clipboard
julia julia julia
how about support the new language julia ~~~ i think that's a good idea
@zhou11630 We will consider it. Thanks for the inspiration.
After some quick inspection, I think we have to differentiate a little the possible aspects of language support (where the term "executable" is to mean: running with the Structorizer debugger):
- Export
- Export of an executable diagram without code optimisation: feasible (but see notes below);
- Export of an executable diagram with code optimisation (i.e. making use of Julia-specific notation gimmicks like int-literal coefficients as in
2x^3
): slightly more ambitious; - Export of a diagram with non-executable Julia code in the elements as is: feasible;
- Debugging support (i.e. interpretation of Julia syntax in Structorizer): rather not feasible;
- Import
- Import as (nearly) executable diagrams: not feasible (not at least in general);
- Import as structural skeleton with Julia code as is (not executable): not impossible, but still very difficult;
Notes:
- A certain source of trouble is the one-based array indexing in Julia (at first glance, we might just add
+1
to any index expression on export, but that is not all to it, of course). - As it seems, there is no official grammar for Julia. At least I found some material in an IntelliJ project to support Julia (for JetBrains). This might be something to start with.
This will rather be a long-term project, I am afraid. So please don't expect solutions very soon. A rather dull export (concentrating on the algorithic structure and processing the contents rather superficially) might perhaps be a matter of few weeks or months, though (as soon as I can dedicate more time again - just having run out of contingent in a way).
@zhou11630 But what about a quid-pro-quo? I conclude from your GitHub account name (and some of the projects you are involved with) that you speak Chinese (possibly your mother tongue?). It would be great if someone like you could help with the Chinese localisation of Structorizer. You might know that Structorizer even includes a handy tool for it, the usability of which was just recently improved: Translator. Your contribution would be very welcome.