jdev - 2025-10-13


  1. jjj333_p (any pronouns)

    > var attrlen = StropheStanza.get_attribute_count(el); > var attrsraw: RawPointer<cpp.Void> = NativeGc.allocGcBytesRaw(attrlen * 2 * untyped __cpp__("sizeof(char*)"), false); > var attrsarray: RawPointer<RawConstPointer<Char>> = untyped __cpp__("static_cast<const char**>(attrsraw)"); > var attrsptr = cpp.Pointer.fromRaw(attrsarray); > StropheStanza.get_attributes(el, attrsarray, attrlen * 2); > singpolyma, perhaps i dont understand but this looks like what im doing now

  2. jjj333_p (any pronouns)

    but i checked and it legitimately seems to just be returning a single element which then my code is mishandling

  3. jjj333_p (any pronouns)

    https://downloadable.pain.agency/file_share/068ed83f-28c4-7b60-b060-9d35e03469c1/7577a769-3926-4da4-8bf4-bf3e4b70af24.png

  4. jjj333_p (any pronouns)

    my understanding was that it was gonna fill in every atribute key with a value right after, i dont think i was expecting it to be a single item

  5. jjj333_p (any pronouns)

    im also confused why my null checks arent working

  6. jjj333_p (any pronouns)

    https://downloadable.pain.agency/file_share/068ed853-fa2e-7e68-8b1f-d29966e3bc72/a1e3e36d-adb6-4973-8d56-393c3078d7fe.png

  7. jjj333_p (any pronouns)

    well its not null is it

  8. jjj333_p (any pronouns)

    okay turns out i think the error is elsewhere in my code, however why is the namespace on <body> a jabber:client

  9. jjj333_p (any pronouns)

    i thought there was no explicit namespace

  10. jjj333_p (any pronouns)

    im so fucking confused. it gets to the end of the constructor fine, (verified with a print) but it doesnt return back

  11. jjj333_p (any pronouns)

    i wonder if i got too clever with unique pointers

  12. singpolyma

    > okay turns out i think the error is elsewhere in my code, however why is the namespace on <body> a jabber:client is that is the right namespace on body for c2s

  13. singpolyma

    No element can ever have "no namespace" in xmpp

  14. moparisthebest

    🎡🎢 undefined behavior 🎢🎡

  15. Goot the ticklegoblin!

    Technically, if you use a prefix for both the stream namespace and the jabber:client namespace, and just don't use either for an element...

  16. singpolyma

    lol maybe if you're very careful you could. No XML doc ought to have elements with no namespace though, especially in xmpp where we make it hard on purpose