26,720 reputation
540107
bio website
location
age
visits member for 4 years, 6 months
seen 1 hour ago

Author of C++ tutorials and Wide language.

Foo


13h
comment How would you structure your code for a Neural Network?
This is too opinion-based- everybody and their mum would have a design.
2d
comment Why store flags/enums in a database as strings instead of integers?
This question is fundamentally an appeal to authority.
May
17
comment Does a Completely Full-Featured Intermediate Language Exist?
@Nathan: Of course it's a simple example, but it proves the point and there's no need for a more complex one.
May
16
comment Does a Completely Full-Featured Intermediate Language Exist?
That's not quite the same question because there are some features we clearly don't want, like COMEFROM.
May
13
comment How can I know if my data needs to be a react.js component?
@johnny: Ideally. If your website has a uniform look and feel, there will be lots of things rendered in the same way that can be re-used.
May
12
answered How can I know if my data needs to be a react.js component?
May
6
comment What makes a program cross-platform or not?
@JoshKelley: That is basically nothing compared to what most programs require. Also, some very common compilers like MSVC do implement overloading, SFINAE and name lookup differently with different observable results.
May
5
comment Why does C provide language 'bindings' where C++ falls short?
@prosfilaes: That time is about ten lines of code.
May
5
comment Why does C provide language 'bindings' where C++ falls short?
@prosfilaes: It's trivial to convert exceptions into return codes. You don't need to avoid using classes as those can be easily lowered into a C API and you don't need to avoid using templates in your implementation. And your users don't need to give a shit about C++ ABI clashes unless they're building from source, in which case, you have to deal with the source language no matter what that is.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@MasonWheeler: That is true but also irrelevant. Only the OP can state what's intended. Also, on Programmers, the community is quite one-sided I find.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@MasonWheeler: Well, the post explicitly mentions extern "C". I guess that he actually doesn't state whether his use of "C code" refers to a C interface (which can be specified in any language that supports it, including C++) or a C implementation. More generally, since a C++ library can easily offer a C binding as well as a C++ binding, having the C++ binding be weak in areas where the C binding is strong is pretty immaterial when picking C++ as an implementation language since it's easy to offer both or just pick the one that you need.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@Random832: Which is completely irrelevant when the C++ side can simply offer the C interface. You don't have to implement the binding in C to offer a C binding.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@Snowman: Having problematic C++ bindings has absolutely nothing to do with any problem with exposing C bindings.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@jhominal: It's a lot better than writing it in C, where you have to define a C interface and then you also have to implement it in C, whereas in C++ you can define a C interface and then you don't have to implement it in C. No matter what language you're implementing in, you still have to define a C interface- this is of course true in C++ as it is in C or any other language that can expose C bindings.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
The C++ ABI is irrelevant in the context of the question, where C++ libraries can be easily exported with extern "C".
May
4
revised Why does C provide language 'bindings' where C++ falls short?
deleted 2 characters in body
May
4
answered Why does C provide language 'bindings' where C++ falls short?
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@Basile: Qt isn't a genuine C++ library. Also, even for more painful libraries, it's only painful because they express actually useful semantics.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@Basile: That does not prevent them from consuming C++-based libraries.
May
3
answered What makes a program cross-platform or not?