<hightower2>
Hm if a C function returns a Pointer(UInt8) without length... is there any way to convert this to a slice other than manually providing max size, like Bytes.new str_thing, 1024 ?
<hightower2>
Or maybe the same question from a different perspective -- I need any way to (efficiently) convert Pointer(UInt8) into an argument accepted by IO#write, similarly to how a slice is one of accepted types to it
<FromGitter>
<tenebrousedge> what project did you duplicate?
<FromGitter>
<watzon> I had already done a lot of the work for RSA inside of this library, and today started working on a solo RSA library. Ended up doing a lot of the same work over again.
<FromGitter>
<erdnaxeli:cervoi.se> oprypin, cool ! (the MSC)
<FromGitter>
<bararchy> Hi Everyone, I'm pretty happy to announce that NeuraLegion has released it's free-for-devs plan, so if you want application security testing done on your Crystal apps, feel free to sign-up and use us to make the whole community more secured π β https://nexploit.app/signup
postmodern has quit [Quit: Leaving]
<FromGitter>
<Daniel-Worrall> Do you have an info page of what it's all about?
<FromGitter>
<erdnaxeli:cervoi.se> hi, is there a way to do profiling?
<o5r>
Is there any library available for Crystal to write my own weird custom ssh server? would the libssh bindings allow that? They seem to be more client-oriented
<frojnd>
I'm passing arguments to array and then make it a json: https://carc.in/#/r/a5v8 but I don't want empty values inside that json. Is there a way to remove empty values?
<FromGitter>
<Blacksmoke16> or manually define the to_json method to exclude blank values too
<FromGitter>
<watzon> Man I could really use Int128 support in the parser
<frojnd>
@BlackSmoke16 great, thank you
<FromGitter>
<watzon> @o5r I donβt believe the current libssh bindings will help you much, but you can always add new bindings. Just reopen the lib definition, add the types and functions you need, and then wrap them in a more user friendly Crystal interface
<o5r>
watzon: Thanks, I'll poke in that direction
<FromGitter>
<watzon> No problem. Crystal has one of the better C ABIs that I've ever seen, so it shouldn't be too difficult
<o5r>
Yeah, C is more of a problem for me. I've been woefully insulated from that universe. from what I can gather from the man pages, libssh2 seems to be much more about clients than about servers. If at all about servers.