Thursday, October 29, 2015

Getting Started with Emscripten: Transpiling C/C++ to JavaScript/HTML5

Transpiling multiple platforms

Writing code for multiple platforms can be a lot of work. It can be even more work to have to completely rewrite it for each one, too. What if you wrote an application in C++, but wanted it to be displayed in the browser somehow? Well now, with a tool called Emscripten, that's possible.

Emscripten is an LLVM based project that compiles C and C++ into highly performant JavaScript in the asm.js format. In short: near native speeds, using C and C++, inside of the browser. Even better, Emscripten converts OpenGL, a desktop graphics API, into WebGL, which is the web variant of that API.

I previously wrote a blog post illustrating what Emscripten is, and how it works in relation to some of my favorite game development tools: Unreal Engine 4 and Unity. Therefore, I won't go into great detail about how it works here, but instead wanted to focus on creating your own web project which takes advantage of Emscripten, so that you can take C/C++ code and get it running inside of the browser.

[author_more]

Platforms

I'm doing this on Windows 10, but the process is the same for the Unix based platforms, OS X and Linux. The only real change you'll need to make at this point is in the way you enter your code into the command line / terminal. For Windows, I simply write emcc. For Unix based environments, you must prefix your calls with ./ , so your command would read: ./emcc

Continue reading %Getting Started with Emscripten: Transpiling C/C++ to JavaScript/HTML5%


by David Voyles via SitePoint

Charles Milnes & Company

Single page parallax website with animated features for Charles Milnes & Company, an Insurance specialist for the media, technology, production and professional services sectors.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Inspiworks – Digital Agency

Founded in 2013, Inspiworks an award winning web/software design & development company. We work with organisations(mostly SMBs) who are serious about leveraging the internet for business results.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Rosa Tatuada

Fashion brand website featuring a fullscreen flexible grid, photos and typography.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Nasscom HR Summit 2015

NASSCOM HR Summit is an annual event that brings to you the latest innovation, strategies, insights and international best practices by the most influential and respected HR leaders and practitioners from around the globe. It promises to bring togeth


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

4 More Entrepreneurs’ Horror Stories About “The Struggle”

For entrepreneurs, horror doesn’t come in the shape of bloodthirsty mutants or evil dolls (unless, of course, you’re an evil doll manufacturer). It doesn’t chase you through the woods or transport you to a hellish underworld.

No, horror for entrepreneurs is a global financial crisis, an unexpected change to a very important law, a core app feature that just can’t be built.

The following entrepreneurs have tasted such horrors, and have lived to tell the tale.

Flynn Zaiger, CEO of Online Optimism

Continue reading %4 More Entrepreneurs’ Horror Stories About “The Struggle”%


by Joshua Kraus via SitePoint

Solving Design Anti-Patterns in Ruby: Fix the Factory

In the previous article, we examined some common coding anti-patterns used by programmers new to Ruby. This article will explore some of the design anti-patterns Ruby Rookies often apply to their solutions, offering some alternatives using of one Ruby's most used constructs: the Module.

Continue reading %Solving Design Anti-Patterns in Ruby: Fix the Factory%


by Fred Heath via SitePoint