Raised This Month: $51 Target: $400
 12% 

Jansson wrapper


Post New Thread Reply   
 
Thread Tools Display Modes
plazma
Senior Member
Join Date: Oct 2013
Old 08-05-2014 , 18:15   Re: Jansson wrapper
Reply With Quote #11

What is this module JSON?
__________________
Free Palestine ♥
plazma is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-05-2014 , 18:34   Re: Jansson wrapper
Reply With Quote #12

Quote:
Originally Posted by plazma View Post
What is this module JSON?
This module's primary role is to aid you in parsing JSON files. If you don't know what these are, you most probably don't even need this module on your server.
klippy is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 08-07-2014 , 11:57   Re: Jansson wrapper
Reply With Quote #13

You can use socket module for your needed. If you want I can write some stock functions for this I want to implement thread pool module to call functions like socket send recv. If somebody whatnot I can do it
exeorb is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2014 , 13:00   Re: Jansson wrapper
Reply With Quote #14

I was thinking to convert the SM module as a json module since this would be welcomed in AMXX (now we have a parser API for INI and VDF config file) ; but that's too bad you're using std::!
__________________

Last edited by Arkshine; 08-07-2014 at 13:05.
Arkshine is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 08-08-2014 , 02:23   Re: Jansson wrapper
Reply With Quote #15

Why? I can rewrite it if there is a good reason
exeorb is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-08-2014 , 03:30   Re: Jansson wrapper
Reply With Quote #16

Here the reason:

Quote:
Originally Posted by BAILOPAN View Post
AMX Mod X and SourceMod require no dependencies on STL. They are not exception safe, and try/catch blocks add runtime overhead in MSVC. It's also really hard to properly and safely statically link libstdc++, and Linux doesn't guarantee the C++ ABI will be the same on all distros.

A particularly nasty bug is that hlds_* do not have PT_TLS headers. In older versions of libc (which are still floating around on servers that don't want to do a massive distro upgrade), PT_TLS sections cannot be late loaded, but newer libsdtc++ versions have them. So I have seen STL-dependent modules refuse to load with extremely confusing error messages.

I've also seen conflicts when linking with Valve libraries. I'm not exactly sure what happened, perhaps it was a name conflict (ELF names tend to be leaky) or something. Anyway our libstdc++ conflicted with Valve's and crashed.

If you can get it working, that's great - but we don't check in libstdc++ dependent code into the tree.
__________________
Arkshine is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 08-11-2014 , 06:57   Re: Jansson wrapper
Reply With Quote #17

Windows version v1.2
__________________
The functional way is the right way
GordonFreeman (RU) is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 08-16-2014 , 10:15   Re: Jansson wrapper
Reply With Quote #18

Now I don't use std vector, stack and string (see amx_handle.cpp) but I cannot abandon std::bind
exeorb is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-16-2014 , 10:37   Re: Jansson wrapper
Reply With Quote #19

That's not good. No STL. Well, if you can't, just keep your own version as you wish, it's ok, but this means I will have to convert this SM module myself, it's ok too. Not a big deal, but since you were working on it, I did not think it was necessary.
__________________

Last edited by Arkshine; 08-16-2014 at 10:38.
Arkshine is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 08-16-2014 , 13:15   Re: Jansson wrapper
Reply With Quote #20

Alright no stl. I will repair it tomorrow ;)

Last edited by exeorb; 08-16-2014 at 13:18.
exeorb is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode