Slashdot Mirror


User: GiganticLyingMouth

GiganticLyingMouth's activity in the archive.

Stories
0
Comments
150
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 150

  1. Re:C for insecurity on Huge Number Of Sites Imperiled By Critical Image-Processing Vulnerability (arstechnica.com) · · Score: 3, Informative

    Strictly speaking, those two aren't equivalent. The C example is using dynamic memory with runtime sizing, while the C++ one is using static sizing (and that array would be allocated on the stack). std::vector p would be the C equivalent. Other than that, I agree with you. Pretty much the only reason to use C these days is if your platform doesn't have a good C++ compiler.

  2. Re:Prototype as far as I can see on New Chip Offers Artificial Intelligence On A USB Stick (pcmag.com) · · Score: 1

    It has FP32, but no FP64. And most of the hardware filters, e.g. for convolutions are FP16 only. And yes, GPUs are faster (I've written code for GPUs and the Myraid2), but the Myraid2 does pretty well from the perspective of processing power to power consumption ratio

  3. Has been Postponed on Use Code From Stack Overflow? You Must Provide Attribution (stackexchange.com) · · Score: 2
    Well, the original meta post got heavily down-modded and has since been updated it with:

    Update: January 15, 2016 Thank you for your candidness, patience and feedback. We're going to delay the implementation for now - we'll be back soon to open some more discussions.

    So it's not been taken off the table, but it probably won't happen anytime soon.

  4. Re:I plan on ossifying on Ask Slashdot: How Will You Be Programming In a Decade? (cheney.net) · · Score: 1

    If you clink the link it should take you to an example program with that exact code. You can compile and run it and get the output. ideone is just an online compiler + environment where you can compile and run code in various languages. The URL spelled out is http://ideone.com/klyfLl

  5. Re:I plan on ossifying on Ask Slashdot: How Will You Be Programming In a Decade? (cheney.net) · · Score: 1

    I guess seeing is believing. It really does work. To make things easy for you, here it is in action.

  6. Re:I plan on ossifying on Ask Slashdot: How Will You Be Programming In a Decade? (cheney.net) · · Score: 1

    True -- lambdas and C++14 syntax also help with that. You can make lambdas that take lambdas as arguments, and that return lambdas. The syntax still sucks though e.g. auto add_f = [](auto a) { return [=](auto b) { return a+b; }; }; add_f (1)(2) --> gives 3

  7. Re:I plan on ossifying on Ask Slashdot: How Will You Be Programming In a Decade? (cheney.net) · · Score: 1

    The C++ analogy is using template metaprogramming, because it IS a functional, turing-complete (sub) language, albeit one with horrendous syntax

  8. Re:Why are they on Social Media??? on One Family Suffering Through Years-Long Trolling Campaign (dailydot.com) · · Score: 2

    If someone else sets up a fake account in your name, it still shows up when your name is searched. You can disavow it all you want, but it's still going to put off potential employers. If you have a generic name then it might not matter, but if your name is unique, you will have a much more difficult time.

  9. Re:FPS per watt on AMD Launches Radeon R9 380X, Fastest GPU Under $250 (hothardware.com) · · Score: 1

    As for CUDA - it is almost directly inferior to OpenCL. CUDA's prevalence is largely due to NVIDIA's attempts to jam it down every available throat.

    Not even close. CUDA came out well before OpenCL (CUDA in June 2007, OpenCL 1.0 in August 2009), and has remained ahead features, tools and stability-wise ever since. (yes I have used both). I would really like for AMD + OpenCL to be better than NVIDIA + CUDA, but I've been wishing for that for the last 6 years and it has yet to happen.

  10. Re:Peculiar omission on NVIDIA Jetson TX1 Performance Shines For GPU Computing (phoronix.com) · · Score: 1
  11. Re:Dramatic speed increase? on With TensorFlow, Google Open Sources Its Machine Learning Resources (blogspot.com) · · Score: 1

    I've never used it, but TBB flow graph does have graphical tool as well (https://software.intel.com/en-us/articles/flow-graph-designer). Looks like a two-part profiler and designer -- in their words, the design component "provides the ability to visually create Intel TBB flow graph diagrams and then generate C++ stubs as a starting point for further development."

    That tensorflow graph tool does looks pretty nice though

  12. Re:Dramatic speed increase? on With TensorFlow, Google Open Sources Its Machine Learning Resources (blogspot.com) · · Score: 1

    There have been tools to do this in the past but, they have frequently been clumsy internal tools and geared towards a specific set of algorithms

    Intel TBB's flow graph does a pretty good job of this.

  13. Re:Not dangerous? on Anonymous Begins Publishing Ku Klux Klan Member Details Online · · Score: 1

    Right, and al-qaeda hasn't done anything over here since 2001. Are they also unimportant?

  14. Re:old CIA trick involving hidden i-frames on Imgur Exploited To Channel Botnet Attacks At 4chan · · Score: 1

    That is not some CIA trick -- it's decades old and quite well understood. I even learned about it back in at Uni years ago in our intro to computer security class

  15. Re:Very sad - but let's get legislation in place N on Ashley Madison Hack Claims First Victims · · Score: 1

    Oh, sure, they might get a little bad PR, and the stock might slip a little. But that asshole executive who decided security was too costly? It's not his data being stolen, and it's not him who has to deal with it.

    While I agree with the overall sentiment, in this specific case the hackers look to have grabbed the full source of all the parent companies' websites, and the CEO's emails... which they recently released.

  16. Re:Incrementing on Lessons From Your Toughest Software Bugs · · Score: 1

    x = x++; It looks okay at first glance,

    TBH, it screams "@fixme, sequence points" even at a first glance.

    Whenever I see 'sequence points', I want to get all pedantic and point out that the term itself is deprecated as of C++11, in favor of using more precise terminaology concerning memory ordering (and we actually can now, because of the C++11 memory model). But then I refrain.

  17. Re:"NVidia Hopes to Sell"... CUDA on NVIDIA Hopes To Sell More Chips By Bringing AI Programming To the Masses · · Score: 1

    That's true in theory; the problem is that OpenCL still feels a few years (or more...) behind CUDA. I have used both, and while OpenCL is undoubtedly the future, CUDA is still by far the better choice for GPGPU today.

    The worrying thing is that I've been saying that for the past 5 years, and it hasn't shown any signs of changing. AMD's OpenCL implementation (everything from the drivers to the compiler) are a total crapshoot. With each release they fix one bug, but introduce 1 new one and 1 regression. (completely) innocuous changes in kernel code can make for dramatic swings in the compiled output. All too often AMD's OpenCL still feels like it's at its proof-of-concept phase, and Nvidia (those bastards) haven't released anything OpenCL related since OpenCL 1.1 (which was something like 5 years ago).

    OpenCL implementations are too uneven still as well; I have been working with an embedded system lately that has coprocessors and advertises as being OpenCL compatible. The problem is that their implementation is at best incomplete and at worst completely wrong, to the point of not being usable. Maybe in another 5 years OpenCL will be the better choice

  18. Re:Damn... on Woman Behind Pakistan's First Hackathon, Sabeen Mahmud, Shot Dead · · Score: 5, Informative

    These neat little theories are always so so convenient to explain why everyone else is inferior. Yet Pakistan elected a woman as prime minister: http://en.wikipedia.org/wiki/B.... Perhaps the world is more complicated than these little theories suggest?

    ... the fine print being that she too was murdered (in 2007), with Al-Qaeda claiming responsibility. Arguing that Pakistan doesn't have a problem with militant islamist groups murdering women is a pretty tough sell

  19. Re:Remind Me Again... on Qt Creator 3.4.0 Released · · Score: 1

    Why would anyone want to put a function definition in a class declaration? As I recall, defining a function in the class declaration automatically makes it inline, but that can also be achieved by declaring the function inline.

    I also recall that inline functions can considerably increase the size of the resulting executable, so having large inline functions is a bad idea. If you define all your functions in the class declaration you'd end up with a very large program.

    Declaring a function inline does not guarentee the function will actually be inlined -- the compiler decides whether it'll be inlined or not, and generally only small functions will be inlined, so if you're using a compiler made within the last decade, large inline functions are not a problem. What inline DOES do is modify the function's linkage specification, but that's a different matter.

  20. Re:The C family is more than C/C++/Objective-C/C# on How Relevant is C in 2014? · · Score: 1

    I expect OpenCL will move more and more towards C++ -- CUDA (the NVidia proprietary counterpart) also started off as C, but is now much closer to C++. (e.g. uses C++ compiler for host-side code, templated kernels, etc).

  21. Re:one of a kind on How Relevant is C in 2014? · · Score: 1

    C++ might not end up being faster, but it certainly has no reason to be slower*. Well-written C++ and C should run at about the same speed. However, C++ has the advantage of allowing you to use high-level constructs when performance isn't as much of an issue.

    * this is contingent on your compiler -- if you're using some compiler from a decade ago, some constructs (e.g. templates) may emit shockingly poor code

  22. Re:Very relevent for small target embedded stuff. on How Relevant is C in 2014? · · Score: 1

    Off topic: But I really don't know why so many people use C++ for non-embedded. It's perfectly valid for many - maybe most - applications to trade efficiency for safety, so use a different language. Why pick one that accommodates all the power of C then constantly beat on the developers with a giant list of coding guidelines? When the greatest attribute you seek in a developer is pedantry then something's wrong.

    C++ is great anywhere you need performance. Numerical computing, scientific computing, image processing, computer vision, machine learning, etc -- all of these benefit greatly from C++, as you can use it as a high-level language in the non-performance critical parts, but at the same time, be able to optimize effectively in the places where it matters.

  23. Re:C is very relevant in 2014, on How Relevant is C in 2014? · · Score: 2

    So why isn't there a _standard_ library for safe string handling? (I know there may be several third party libraries) A library could abstract away the management of pointers to chars, things like growing and shrinking storage of the strings, creating string objects, destroying them, etc. without programmer ever touching a raw pointer to memory containing the string data.

    Sounds like you're looking for C++ and std::string

  24. Re:C is very relevant in 2014, on How Relevant is C in 2014? · · Score: 1

    Actually, it's still possible to have some bugs if you improperly use auto_ptr and shared_ptr, etc, but it's still much better than the classic method of allocation.

    Of course, you're not using auto_ptr anymore, right? It's been deprecated in C++11, and there's little to no reason to use it in favor of unique_ptr. auto_ptr was the attempt at implementing unique_ptr semantics prior to having rvalue references as part of the language. As for the possible pitfalls... shared_ptr can still fall prey to cyclical dependencies, but unique_ptr is very good for enforcing ownership semantics.

  25. Re:Can Iowa handle a circus that large? on Former HP CEO Carly Fiorina Considering US Presidential Run · · Score: 1

    And his birth certificate is not a sloppy forgery.

    I find it amazing that there are still birthers out there.