hi @vaporeon_ what are you parsing json for
@vaporeon_ @wallhackio question, can you not use jq...?
@onfy @wallhackio I've no idea what jq is, is that a library for C?
@vaporeon_ @wallhackio well........ guess not https://jqlang.org/
what you're doing does sound impressive...
@onfy @wallhackio Initially, my goal was to write the client such that it works on any platform that can compile C89, but after looking at this https://pcjam.gitlab.io/tut0.html, I've concluded that supporting DOS might be difficult, so I guess the goal is revised to "works on any UNIX that can compile C89"... (Though it seems that the maximum size of a segment is 64 KiB, and there's no way I can use up this much memory, so perhaps I can just get away with making all those pointers near pointers, not sure, I am tired and not thinking very well...)
Of course, another problem is the TLS, I am not going to implement my own TLS, and of course, there's no TLS library for DOS... I guess I'll have to generate unencrypted HTTP requests and proxy them through a modern computer that adds the encryption...
And currently, it's not even valid C89, but I've decided that I can make the JSON parser logic work in C11 first and then figure out what to do about noreturn being new in C11...
@vaporeon_ @wallhackio i can say, as long as long as you're ok with a hard requirement of a 386, you should be able to use protected mode to have access to the entirety of system memory with a flat memory model... as for tls, i wonder what dojs is doing... i didn't need to proxy it...
@onfy @wallhackio MbedTLS supports DOS? :O
I wonder whether it would support something like IRIX or Solaris 7, too... Those are totally fine UNIX platforms, but lack IPv6 and the C compiler can compile at most ANSI C, not the newest C with the newest features...
@vaporeon_ @wallhackio it says c99, but it appears you can build it for dos! idk
@onfy @wallhackio That web page I was looking at said that Open Watcom supports some, but not all, C99 features, so perhaps that's how it works...
In any case, it may be a better choice than OpenSSL for such an old system, and perhaps it won't be too difficult to patch C99-specific things, I'm not sure, I'll have to look into it
@vaporeon_ @wallhackio hm, thinking about this in regards to windows nt and... that's another severe limit for risc platforms, isn't it? i don't think watcom can compile a ppc target, and msvc4 is probably more limited in comparison!
@onfy @wallhackio Oh, interesting! While it's kind of disappointing that the program can't run on 16-bit x86, all the hardware that I have for testing is already 32-bit, so I guess that's fine and if I can figure out how to talk to the network on DOS, there's no reason not to support DOS...
Is dojs the JavaScript Mastodon client for DOS? If it somehow works without needing a proxy, I really should go look what they're doing once I can think more clearly...
@vaporeon_ @wallhackio it does work! speed is horrible but why let that stop you copying their homework? (as long as it's not genai, i don't think it is...)
16-bit x86 does pretty much always have this pain in the ass segmented memory afaik, it's something that turns me off too... same for the planar memory for some of the interesting graphics modes... and i'm not as good at understanding this to start
@vaporeon_ oh shit thats cool
@wallhackio @vaporeon_ God forbid a vaporeon have hobbies
@wallhackio To write a Mastodon client!