b1naryth1ef / dscord

Discord Library for D
http://b1naryth1ef.github.io/dscord/
zlib License
51 stars 15 forks source link

Windows Support #11

Closed TheGag96 closed 8 years ago

TheGag96 commented 8 years ago

I tried compiling on Windows using DMD v2.071.1 (so 32-bit binary by default) and I got this:

..\..\..\AppData\Roaming\dub\packages\fast-master\fast\source\fast\json.d(1475,9): Error: static assert "Not implemented" ..\..\..\AppData\Roaming\dub\packages\fast-master\fast\source\fast\json.d(97,1): instantiated from here: Json!(0u, false)

It seems fast's JSON library doesn't support Windows at the moment... Until that changes or a different library is used, this library is unfortunately Linux/OS X only.

srhinos commented 8 years ago

Not sure if he said it anywhere on Github but on Discord hes said it a few times that this library wouldn't compile on Windows under any circumstance. :(

TheGag96 commented 8 years ago

That's a real shame... Why was it designed this way? (And you do mean "this library" as dscord and not fast, right?)

b1naryth1ef commented 8 years ago

Because windows is a terrible platform. This libraries specific intention is to provide an extremely fast and efficient interface to Discord, one that can be used to build extremely large bots without the need to shard extensively. Windows is both a terrible platform for development, and also extremely slow, inconsistent and inefficient. Although its entirely possible I could add support for this in the future through version guarding, it was not an initial design goal, and nothing something that's currently on my roadmap.

b1naryth1ef commented 8 years ago

Should compile fine on windows in 0.0.9