Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
tekashi4730217dSo im writing some multithreaded shit in java.
Thats it, thats all the story you get, figure the rest.
Fast-Nop1650217d@tekashi after two hours, the build chain aborts with some strange error. Having fixed that, the program runs five times slower than what C/C++ would have allowed. You're happy because sales can upsell faster hardware. Also, you're finished faster so that you can browse shitty memes on devRant.
hash-table442217dNice! Love the fact (or jealous of fact) you can write C that good. Amazingly I could follow all that. Sometimes miss having to free and malloc my own memory. fork() I remember years ago trying to mess with that (and jump()) but just got myself in trouble. Awesomeness.
Alot of stuff at my work is C-only.
For the larger software suits I put my foot down and enforced C++17.
Still must be as close to the C-Core as possible, but man, you have no idea what a blessing <thread> and <atomic> are!
Cross-platform multi-threading in pure C is no fun... 🤔
@Fast-Nop Yeah, but part of our customers who'll run the software use Windows. 😭
So I have two possibilities: VS with clang to support OpenMP 4.0, or C++17.
The latter is feature complete, and the ui will be Qt 12 anyway.
For software running on Linux only I am pushing slowly towards C++, but all library API headers I write must be C99 compatible.
Strange, I know...
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job