Slashdot Mirror


User: snemarch

snemarch's activity in the archive.

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

Comments · 384

  1. Re:Parent is trolling on The Future of C++ As Seen By Its Creator · · Score: 1

    I've never been much of a fan of intrinsics, they tend to lock you both to specific hardware and a specific compiler vendor - unless you accept #ifdef hell in your source files.

    I prefer to have as much of the platform-specifics as possible in the build system, where it's pretty easy to use either a foo-x86.asm or foo-x64.asm file.

    For some of the lockless algorithms where you'd want to use CMPXCHG16B I know it's not too pretty to rewrite the entire thing in assembly, and doing a function call just for that instruction kind of defeats the purpose - and for other stuff, like writing an OS kernel, you might not care how portable your source is (for anybody talking about how portable linux is, do realize the difference between toolchain-portable and hardware-portable).

    Btw, there isn't a 64bit version of "InterlockedCompareExchange"? With some IFDEFs (sigh :)), that set of API call turns into instruction-emitters.

    Btw there's a lot of free (including source) assemblers that'll work for multiple systems and support both x86 and x64... FASM, NASM, YASM to name a few.

  2. Re:Parent is trolling on The Future of C++ As Seen By Its Creator · · Score: 1

    Smart developers don't use inline assembly, but use external asm modules. Easier to port source between compilers that way, you can use a full-featured assembler with macro support etc.

    If you complain that it's too big a fuzz compared to inline assembly, well, chances are good that your piece of code is so small/insignificant you shouldn't be dealing with assembly at all - or at least you should refactor the code and do a larger chunk in (external) assembly.

  3. Re:In related news... on BitTorrent Closes Source Code · · Score: 1
    My above post might have made a bit more sense if the "Mu" sign hadn't been cut out :) - it should have read "people are using utorrent though" and "cling on to ut religiously", but of course with a Mu sign instead of the 'u'.

    The point is, of course, that with the purchase of utorrent, BitTorrent inc. have purchased a pretty large marketshare...

  4. Re:In related news... on BitTorrent Closes Source Code · · Score: 2, Insightful
    If BitTorrent inc. hadn't purchased torrent, it'd be entirely a non-issue since their client more or less sucks, and the current protocol is already well explained far and wide, with lots of opensource clients available.

    a lot of people are using torrent though, so if BT inc starts doing protocol changes, they could potentially shatter the BT "community". We can only hope that, in case they do this, people won't cling on to t religiously but move to another client...

  5. Re:Personally on Replacing Atime With Relatime in the Kernel · · Score: 1

    Try using 'find' instead of locate and search through your entire filesystem - you should be able to tell the difference with and without the "noatime" option, especially if you don't have a 10.000rpm drive. I've been using the NT equivalent (NtfsDisableLastAccessUpdate) since win2000, and I use noatime on linux/bsd boxes as well.

  6. Re:They want me to upgrade on SWSoft Out of Compliance With the GPL · · Score: 1

    A CD or DVD is a medium customarily used for software interchange. So, what if you recorded a DVD video scrolling through all the source files in an editor? :)

  7. Re:Screw speed, size reduction: gimme compatibilit on Exhaustive Data Compressor Comparison · · Score: 1

    ...and then you have to join the split-up files again before you can extract. RAR (and other archivers with split archive support) automagically extracts without wasting time and disk spice on a 'join' operation.

  8. Re:What about the other holes? on DVD Security Group Says It Has Fixed AACS Flaws · · Score: 2, Interesting

    bypassing hardware dongles requires that you reverse engineer the driver to the dongle, this is just plain easy, all you need to do is find a disassembler that can handle the format, or if it's a kernel mode driver, then you just use a kernel mode debugger... Or keep using IDA on the driver. Or do a mix of IDA and one of {windbg, softice, syser}. And probably add some private/homecoded tools for dealing with obfuscation and protection.

    when you locate where the driver is being attached to from the program itself, then you just emulate the hooks. Even the most advanced dongles are easy to hack this way. Yes, it's obviously always this simple, also when the dongle actually runs code... *cough* Bottom line: while you're basically right that anything will eventually be broken, you're making it sound a bit easier than it really is.
  9. Out of this world on Bad Math Causes Explosion at CERN Collider · · Score: 1

    Man, that's just out of this world...