Slashdot Mirror


User: igomaniac

igomaniac's activity in the archive.

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

Comments · 124

  1. Wrong comparision on Reactions To Apple's Plans To Open Source Swift · · Score: 4, Informative

    ... It's a lot more appropriate to compare the open sourcing of Swift to the LLVM/Clang projects than to Darwin. LLVM is by any measure a thriving open source project with lots of contributers, both individuals and from many large organisations (Intel/AMD/ARM/Google/Microsoft, etc. etc.). I also follow Webkit development to some degree and it's far from "the Google style of closed development followed by a public source dump", a fact that should be clear to anyone who takes a minute to look at the webkit-dev mailing list.

  2. Re:Address space randomization does not help. on Project Zero Exploits 'Unexploitable' Glibc Bug · · Score: 1

    1) if you make exploitation less likely than an astroid hitting the earth, then for all practical purposes you can say that it is prevented.
    2) 'repeatable crash bug behavior' doesn't matter, it will be repeatable if it is run in valgrind/address sanitizer or via a debugger which is really all that matters to a developer. An end user couldn't care less about repeatable crashes and would prefer if it occasionally/usually continued running.

  3. Re:So misleading. on New Watson-Style AI Called Viv Seeks To Be the First 'Global Brain' · · Score: 1

    I have no idea why you would believe that "our genetic code is a type of program", I don't think anyone working in molecular biology has this interpretation. And even if you view the genetic code as a type of program, then it is a program that primarily deals with how the individual cells that make up our body operates and _not_ how the brain processes input.

  4. The pinnacle of elegant code on Ask Slashdot: What Do You Consider Elegant Code? · · Score: 5, Funny
  5. Re:Miles? on Portal 2 Incompatible With SELinux · · Score: 1

    Do you really think MSS has not been developed since the 90s? Admittedly I haven't used it since 2004, but back then it was pretty much the only way to get good, performant 3D audio running with a variety of sound cards. I'd imagine it has grown a whole lot of features and platform support since then.

  6. Annotated game record on 23-Year-Old Chess Grandmaster Whips Bill Gates In 71 Seconds · · Score: 4, Informative

    An annotated game record is available here:

    http://en.chessbase.com/post/carlsen-mates-bill-gates-in-79-seconds

  7. Re:Public libraries on Ask Slashdot: What's the Best Way To Work On Projects While Traveling? · · Score: 1

    That's what I've done, and what I would do again if I needed to find a quiet space to get some work done.

  8. Re:Developers on New GPU Testing Methodology Puts Multi-GPU Solutions In Question · · Score: 1

    It's generally desirable to have the AI and physics run at a fixed time step because it allows you to reproduce results exactly. That way you can record gameplay by just recording the inputs. So usually you will have a 'simulation' thread running at a fixed tick rate and a 'render' thread producing frames as fast as possible. I agree about the Vsync, there is not point whatsoever in making frames faster than the display can display them.

    And in fact that's the problem with this frame-time benchmarking, if the workload is such that it's artificially rendering more frames than can displayed it doesn't really matter much if they are displayed at a consistent rate. If you want to see how much better a multi-GPU solution is, you need to test a workload that is being rendered at less than the Vsync rate (or at least around that rate).

  9. Get an espresso machine on Ask Slashdot: Really Short Time Wasters? · · Score: 1

    ... and practice making the perfect espresso - that's a five minutes break where you also have to be focused. When you can make a perfect espresso you can move on to latte art. As an added bonus you can get a job at Starbucks if/when the singularity happens.

  10. Re:Key issue in kernels, atomicity on Linus Torvalds Answers Your Questions · · Score: 1

    The unconditional pointer update approach is by no means atomic unless you use memory barriers or atomic instructions. There is a reason C++11 added <atomic>.

  11. Not very hard on World's Hardest Sudoku · · Score: 1

    /Users/morten/Project/Sudoku> time sudoku worlds_hardest.sudoku
    |8 1 2|7 5 3|6 4 9|
    |9 4 3|6 8 2|1 7 5|
    |6 7 5|4 9 1|2 8 3|
    |1 5 4|2 3 7|8 9 6|
    |3 6 9|8 4 5|7 2 1|
    |2 8 7|1 6 9|5 3 4|
    |5 2 1|9 7 4|3 6 8|
    |4 3 8|5 2 6|9 1 7|
    |7 9 6|3 1 8|4 5 2|

    real 0m0.083s
    user 0m0.073s
    sys 0m0.003s

  12. Re:Avoid UML, unit testing, instant messaging, Git on Ask Slashdot: What Defines Good Developer Culture? · · Score: 1

    You're almost right, but the main problem is when a team gets obsessed with other issues than actually writing code. You want as little time as possible to be spent on debugging and rewriting. In order to achieve that you need some tools. To avoid rewriting you need some way of specifying what the software is supposed to do before actually making it. UML can be used for that, but it's not a goal in itself. To avoid endless debugging session you need tests, unit tests can be used, but I've found it far more productive to write code that has a lot of debugging code in it. Since I'm mainly writing C/C++, this will be in the form of asserts and #if DEBUG ... #endif, but the main idea is to catch errors as early as possible during program execution. In my experience it's far more productive to get dedicated testers to test end-user functionality and file bugs than to make the programmers who wrote the code write code that checks if the code they wrote did what they thought it should do. The reason is that most bugs occur because the programmers who wrote the code failed to consider some particular corner case when they wrote the code, and they will likewise fail to write a test to test it...

    In conclusion, the primary goal is to develop a product, not to write tests, not to make specifications and not to make clean revision histories. However, when used right, specifications, testing and version control enables you to develop the product faster and with higher quality.

  13. Re:007087 on Van Rossum: Python Not Too Slow · · Score: 1

    Yeah, C++ and Java is probably equivalent in the time it takes to solve the actual problem -- but then you spend 4 times as long debugging your C++ code because you have some weird write-past-the-end of an array or use-after-free bug that somehow works most of the time and when it goes wrong it only affects some completely unrelated piece of code from where the bug is that got it's data structures ruined. These classes of bugs can bring down novice programmers who can spend weeks trying to figure out where it's going wrong, and they just don't happen with Java or C# or Python.

  14. Re:007087 on Van Rossum: Python Not Too Slow · · Score: 1

    That's just bullshit - compilers often get it wrong because of things like alias analysis and register spilling/rematerialization. Not to mention the really crappy autovectorization they do. If you really care about performance you use vector intrinsics and check the assembly output of the compiler for any obvious cockups.
    There are also many programmers writing code for embedded procesors and DSPs that don't have compilers as mature as those for x86 and doesn't have any cycles to waste.

  15. Re:Java Script not a real computer Language on Khan Academy Chooses JavaScript As Intro Language · · Score: 1

    Javascript has closures and functions as first order objects, Java doesn't. Java has classes and inheritance, Javascript doesn't (but you can sort of implement it yourself). They are just completely different languages and need to be treated as such.

  16. Re:I don't understand the issue on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    The 64-bit linker can link 32-bit object files, albeit without link-time code generation.

  17. Re:whose bloat on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    Here: http://msdn.microsoft.com/en-us/library/5wy54dk2(v=VS.80).aspx ... However it does not support link-time code generation when you're linking object files in a non-native format.

  18. Re:Works for me ... w/o link time code generation on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    Ah, sorry -- I see the difference now, you're using link time code generation which the x64 bit linker is not capable of when the machine type is x86.

  19. Works for me: on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    hello.c:

    #include
    #include

    int main(int argc, char *argv[])
    {
        printf("Hello world!\n");
        return EXIT_SUCCESS;
    }

    hello.bat:

    @ECHO OFF
    SETLOCAL
    CALL "%VS80COMNTOOLS%..\..\vc\vcvarsall.bat" x86
    cl /MT /c hello.c
    ENDLOCAL
    SETLOCAL
    CALL "%VS80COMNTOOLS%..\..\vc\vcvarsall.bat" amd64
    link /MACHINE:x86 /LIBPATH:"%VCINSTALLDIR%\lib" libcmt.lib hello.obj
    ENDLOCAL

    output:

    C:\Project>hello.bat
    Setting environment for using Microsoft Visual Studio 2005 x86 tools.
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86

    Copyright (C) Microsoft Corporation. All rights reserved.

    hello.c
    Setting environment for using Microsoft Visual Studio 2005 x64 tools.
    Microsoft (R) Incremental Linker Version 8.00.50727.762
    Copyright (C) Microsoft Corporation. All rights reserved.

    C:\Project>hello.exe
    Hello world!

  20. Re:VS 2005? on Firefox Too Big To Link On 32-bit Windows · · Score: 1
  21. Re:VS 2005? on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    You might want to look into the /Machine:X86 option to the 64-bit linker...

  22. Re:VS 2005? on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    Why can't you use the 64-bit toolchain from VS2005 to produce 32-bit binaries?

  23. Re:VS 2005? on Firefox Too Big To Link On 32-bit Windows · · Score: 1

    Are you dumb? ... You're using the VS2010 IDE to run the _exact same_ linker they are having problems with. How does that solve anything?

  24. Re:whose bloat on Firefox Too Big To Link On 32-bit Windows · · Score: 1, Informative

    You're wrong, you can easily output 32-bit binaries with a 64-bit toolchain with MSVC - even from within the Visual Studio IDE if you set up the environment from the command line and then type "devenv /useenv". However you need to be running a 64-bit Windows which presumably the Firefox buildbots aren't.

  25. Raytracing vs Rasterization on Wolfenstein Ray Traced and Anti-Aliased, At 1080p · · Score: 1

    The future of rendering in video games has always been evident if you look at high-end rendering for films. If you look at a product like Renderman, ray-tracing is used for specific materials in the scene, but not commonly used for rendering the whole frame. Getting realistic materials out of the renderer is the real problem, not rendering mirror balls.