telehash / telehash-c

telehash tools library in c
MIT License
122 stars 31 forks source link

Support msvc 2015 update 2 #105

Open fire opened 8 years ago

fire commented 8 years ago

Poking around to see what is needed.

Errors encountered

quartzjer commented 8 years ago

I don't know msvc, but it may not support the label extensions which are the heart of the fast JSON parser.

This codebase is becoming more and more embedded focused, I'm of the growing opinion that it should only be used for that, and that a Rust telehash library should be established for traditional systems programming, C is very difficult to secure in general purpose/userland apps.

fire commented 8 years ago

How easily are you able to use rust as a c++ library? Also, how is the build chain tooling?

fire commented 8 years ago
#if defined(_WIN32)
#include <stdint.h>
#define u_char uint8_t
#define u_int uint32_t
#define __attribute__(A) /* do nothing */
#endif
fire commented 8 years ago

Investigating https://github.com/zserge/jsmn as a js0n.c replacement.

quartzjer commented 8 years ago

A c++ project would be much better off creating a native c++ implementation using other c++ libs for crypto, networking, eventing, etc. I'd advise against trying to adapt this c codebase to that environment, it's due for a cleanup pass this summer that is optimizing further towards embedded usage and some coming protocol simplifications.

On Apr 16, 2016, at 12:45 PM, K. S. Ernest (iFire) Lee notifications@github.com wrote:

How easily are you able to use rust as a c++ library? Also, how is the build chain tooling?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub