jdev - 2023-04-18


  1. nicoco

    can a doap file extend another doap file?

  2. Ge0rG

    I haven't figured out a way, so I'm using `envsubst` as a templating engine for yaxim + bruno

  3. nicoco

    Thanks! I'll have a look.

  4. Ge0rG

    you might want to use jinja2 or some other templating engine that's already part of your build / packaging pipeline

  5. Ge0rG

    nicoco: for reference, here's my code: https://github.com/yaxim-org/yaxim/blob/master/rdf.sh

  6. nicoco

    I'm actually looking into simplifying my build/packaging tooling right now, so I'm not sure yet if I want to go down that road 🙂

  7. nicoco

    Thanks for the link anyway, it's saved

  8. pep.

    nicoco, extend doap? :P

  9. Ge0rG

    use XSLT

  10. pep.

    Or that

  11. Peter Waher

    Sidenote: XEP-0336 allows you to create dynamic XMPP-forms. One example would be to create UI that adapt to user input, by showing different controls/parameters depending on user input or context. https://xmpp.org/extensions/xep-0336.html

  12. Peter Waher

    Sidenote: XEP-0336 allows you to create dynamic XMPP-forms. One example would be to create UI that adapt to user input, by showing different controls/parameters depending on user input or context. https://xmpp.org/extensions/xep-0336.html

  13. singpolyma

    We've come close to looking at implementing that a few times. Likely will try eventually but we have a few other pain points that come up more often for now

  14. Peter Waher

    👍

  15. moparisthebest

    > use XSLT You have chosen... poorly

  16. moparisthebest

    I once wrote a Java decompiler in XSLT, to this day I consider it the worst thing I've ever done

  17. singpolyma

    That sounds amazing

  18. singpolyma

    I'd like to see a second impl of xslt past 1.1 someday

  19. Guus

    You wrote a Java decompiler in XSLT? As in, byte-code to Java source, using nothing but XSLT?

  20. Link Mauve

    Using XEP-0239?

  21. flow

    moparisthebest, what Guus asked

  22. flow

    plus "why?"

  23. moparisthebest

    Guus, flow: you really sent me digging, amazingly still there https://sourceforge.net/p/xmlvm/code/1322/

  24. flow

    but why?

  25. moparisthebest

    > XMLVM is an XML-based programming language build upon a virtual machine concept. Both Java and .NET byte code instructions can be mapped to XMLVM. XSL stylesheets allow manipulation of XMLVM such as cross-compilation to JavaScript for AJAX applications

  26. moparisthebest

    I just added an XSLT transformation to Java, at the time it was the only decompiler that worked 100% even with obfuscation (because it produced terrible source code that pretty much emulated bytecode, each method is just a big switch so goto instructions work)

  27. Guus

    am I reading this wrong, or is this a XMLVM-to-Java-source conversion?

  28. flow

    Guus, no java bytecode to xml xmlvm code

  29. Guus

    ... Let me re-iterate your question: why?

  30. moparisthebest

    Guus: it converts all sorts of inputs to "xmlvm" like Java and .net etc etc, then using XSLT converts that to all sorts of outputs, I just added the .java output :P

  31. Guus takes moparisthebest by the shoulders, shakes and with tears in his eyes, repeatedly cries: why?! why?!!

  32. moparisthebest

    Guus: for me personally, to decompile heavily obfuscated proprietary Java :)