Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Geek Talk & Media
A standard RPG gaming API
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Luke" data-source="post: 422769" data-attributes="member: 602"><p>Functional decorations is a big issue to watch out for. You don't notice it too much if you're always using the same compiler and libraries built with the same compiler.</p><p>Essentially, at a machine-code level, the functions in the DLL and the code calling the DLL, need to agree on many things for it to work.</p><p>This includes: what name-mangling is done (eg does an underscore get put on the front of the function name, or does the name get capitalized), how parameters are passed on the stack (left to right, or right to left), and who cleans up the parameters off the stack (the caller, or callee).</p><p>Generally things default to an industry standard of _cdecl, until Microsoft threw out a typical "decommoditizing protocol" on the standard, so that you virtually have to wrap every export function with another Microsoft DLL using properly "_cdecl"ed functions, to get cross-compiler portability happening.</p><p></p><p></p><p>Using C++ in DLLs is typically only any good when the same compiler uses the DLLs, as was used to create the DLLs. Just about every different C++ compiler does their own variation on name-mangling, which makes the function names in DLLs useless to any other compiler (or VB app).</p><p>You can get away with exporting 'C' functions from your C++ work, if you decorate them properly.</p><p>You can check out different compiler DLLs with utilities like Quickview, so see how different the name-mangling is.</p><p></p><p>This sort of thing is possible if you carefully set all the right standards in place, and all the developers stick to them.</p><p></p><p></p><p></p><p>In general, I'd have to agree that Java is, unfortunately, the best way to port code libraries around. You pay for that with speed and deployment issues. Suddenly, everyone needs to buy-in to the download and installation of a Java run-time on their machine. If you've noticed that PCGen requires you to occassionally update the Jave run-time you have from Sun, you start to appreciate that more standards need to be put in place for Java configuration management, that everyone has to adhere to. One person in your big chain of interconnected software can cause you to need a large download and update. I couldn't personally tell you if that would cause backwards-compatibility issues with other existing software, but I've certainly seen it where different versions of 3rd party material is used.</p><p>I gather that a segment of the PCGen community find the Java run-time updates a pain, and that's just for a *single* app.</p><p></p><p>I think that the SOAP/XML was perhaps the best portability solution mentioned so far. It is the single, genuinely portable way to pass information around, and call functions with parameters (web services). It's essentially is a "nice" layer on top of tcp/ip, with the benefit of working for those stuck behind firewalls.</p><p>Whilst this sounds attractive in putting together a massive RPG utility, composed of different RPG functions spread across the web, this too has a large number of problems:</p><p>- You have to be on-line to make it work.</p><p>- All contributors need to have reliable servers constantly on-line, with decent develop and testing procedures that keep the services available.</p><p>- You pretty much have to run a web server of some kind to make your service available.</p><p>- There is a *big* issue with version control, where the service providers and all clients are talking the same data formats. This is much harder than the very slowly progressing D20 XML project, where it addresses the relatively simple task of simply defining the database content.</p><p>- It's *very, very* slow, compared to binaries (EXEs, DLLs, SO). Just stop to think about calling a name generator service 20 times to generate an NPC party on the fly. That's just a *name*, with potentially classes, equipment, skills etc to follow. Though you could get single services to package large result sets independantly, that's not the spirit, or intent of capabilities.</p><p>- I'd predict that SOAP/XML is pretty unfamiliar to most people who would otherwise like to get involved in such a project.</p><p></p><p>In all, as a person reasonably experienced with managing and implementing medium to large size developments, I see so many pitfalls concerned with managing the whole process (from requirement specification, through to implementation on an agreed platform capable of delivering expectations, through to on-going configuration management), that I would predict a very hard (but perhaps fun!!) road for those embarking on it. Chances of success would be quite low, or at least, well under the expectations of those eagerly watching on and waiting for it.</p></blockquote><p></p>
[QUOTE="Luke, post: 422769, member: 602"] Functional decorations is a big issue to watch out for. You don't notice it too much if you're always using the same compiler and libraries built with the same compiler. Essentially, at a machine-code level, the functions in the DLL and the code calling the DLL, need to agree on many things for it to work. This includes: what name-mangling is done (eg does an underscore get put on the front of the function name, or does the name get capitalized), how parameters are passed on the stack (left to right, or right to left), and who cleans up the parameters off the stack (the caller, or callee). Generally things default to an industry standard of _cdecl, until Microsoft threw out a typical "decommoditizing protocol" on the standard, so that you virtually have to wrap every export function with another Microsoft DLL using properly "_cdecl"ed functions, to get cross-compiler portability happening. Using C++ in DLLs is typically only any good when the same compiler uses the DLLs, as was used to create the DLLs. Just about every different C++ compiler does their own variation on name-mangling, which makes the function names in DLLs useless to any other compiler (or VB app). You can get away with exporting 'C' functions from your C++ work, if you decorate them properly. You can check out different compiler DLLs with utilities like Quickview, so see how different the name-mangling is. This sort of thing is possible if you carefully set all the right standards in place, and all the developers stick to them. In general, I'd have to agree that Java is, unfortunately, the best way to port code libraries around. You pay for that with speed and deployment issues. Suddenly, everyone needs to buy-in to the download and installation of a Java run-time on their machine. If you've noticed that PCGen requires you to occassionally update the Jave run-time you have from Sun, you start to appreciate that more standards need to be put in place for Java configuration management, that everyone has to adhere to. One person in your big chain of interconnected software can cause you to need a large download and update. I couldn't personally tell you if that would cause backwards-compatibility issues with other existing software, but I've certainly seen it where different versions of 3rd party material is used. I gather that a segment of the PCGen community find the Java run-time updates a pain, and that's just for a *single* app. I think that the SOAP/XML was perhaps the best portability solution mentioned so far. It is the single, genuinely portable way to pass information around, and call functions with parameters (web services). It's essentially is a "nice" layer on top of tcp/ip, with the benefit of working for those stuck behind firewalls. Whilst this sounds attractive in putting together a massive RPG utility, composed of different RPG functions spread across the web, this too has a large number of problems: - You have to be on-line to make it work. - All contributors need to have reliable servers constantly on-line, with decent develop and testing procedures that keep the services available. - You pretty much have to run a web server of some kind to make your service available. - There is a *big* issue with version control, where the service providers and all clients are talking the same data formats. This is much harder than the very slowly progressing D20 XML project, where it addresses the relatively simple task of simply defining the database content. - It's *very, very* slow, compared to binaries (EXEs, DLLs, SO). Just stop to think about calling a name generator service 20 times to generate an NPC party on the fly. That's just a *name*, with potentially classes, equipment, skills etc to follow. Though you could get single services to package large result sets independantly, that's not the spirit, or intent of capabilities. - I'd predict that SOAP/XML is pretty unfamiliar to most people who would otherwise like to get involved in such a project. In all, as a person reasonably experienced with managing and implementing medium to large size developments, I see so many pitfalls concerned with managing the whole process (from requirement specification, through to implementation on an agreed platform capable of delivering expectations, through to on-going configuration management), that I would predict a very hard (but perhaps fun!!) road for those embarking on it. Chances of success would be quite low, or at least, well under the expectations of those eagerly watching on and waiting for it. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
A standard RPG gaming API
Top