66 karma · joined Oct 25, 2009 (17y ago) · 33 submissions
comment 16y ago · link · parent
This is wrong. Attempting to use random pointers to outside of what your compiler and malloc allocated is undefined.
And indeed, aliasing issues like in your example will prevent gcc from optimizing out excess strlen; it can only do so if it can prove that both global memory and the buffer passed to strlen have not been modified. Local variables and return values cannot alias anything, and part of the guarantee of pure functions like strlen is that they have no side effects.
comment 16y ago · link · parent
http://blogs.adobe.com/penguin.swf/2008/05/flash_uses_the_gp...
Also, Flash does not use any of the multiple hardware decode APIs on linux yet due to it needing readback support which apparently they don't have yet.
http://blogs.adobe.com/penguin.swf/2010/01/solving_different...
comment 16y ago · link · parent
I guess robux4 was talking about the old system, which I honestly didn't know existed before you brought it up. If the new system doesn't use the 16 bit format then yeah, it isn't well specified.
[1] http://forum.doom9.org/showthread.php?p=388815#post388815
comment 16y ago · link · parent
Cover art wasn't specifically defined in mkv I think, but it became standard to do an attachment named cover.jpg for it.
The spec on ReplayGain seems pretty clear to me: it's the 16-bit binary format defined at http://replaygain.hydrogenaudio.org/rg_data_format.html which is two links away from the mkv spec.
comment 16y ago · link · parent
Whereas ogg metadata is codec-dependant. In practice though, most (not all!) codecs in ogg just use vorbis comments, where the only official tags are http://xiph.org/vorbis/doc/v-comment.html
2. Mozilla's C++ style guide hasn't been updated since like 1996, when C++ was still grossly compiler-dependant. It shouldn't be taken as anything other than a sign that that's the era in which Mozilla is stuck.
And actually Safari supports AVI in <video>.
comment 16y ago · link · parent
comment 16y ago · link · parent
Anyway, an additional multitasking use-case is IRC and other apps where you're in constant contact with a server. With Colloquy, for instance, right now you need to setup a server to bounce off of or else you leave all channels every time you switch apps. Of course, this class of uses is one that you don't want running when the device is off or else the battery drains quickly.
I've always felt that Apple was waiting both for their hardware to become powerful enough (the original iPod touch consistently ran out of RAM with 2 open webpages + music for instance, and page rendering wasn't exactly snappy) and also to come up with a good way of limiting the number of background processes without user involvement. You don't want every other app you launch hanging around so that when you run out of resources, the OS kills the music player which you actually wanted open.
comment 16y ago · link · parent
Though afaik the latter hasn't really been improved since ~1960 and were only patented after rediscovering them in 1993, and I have no clue whether progress in elliptic curve cryptography stalled due to patents or because they don't offer any practical benefits over RSA.
comment 16y ago · link · parent
The bad encoder comes from QuickTime having the lowest quality H.264 encoder out of any commercial encoder (and all of them being worse than x264.)
comment 16y ago · link · parent
So instead, here's the same file with the junk stripped out: http://www.mediafire.com/?yuwj5zmmw4m
comment 16y ago · link · parent
comment 16y ago · link · parent
Similarly, there aren't any shipping devices with a 7-10" capacitive touchscreen. Whether or not any of the various tablets with one announced at CES beats Apple's to market, the kinks in said displays weren't ironed out before this year.
comment 16y ago · link · parent
http://www.axiotron.com/index.php?id=modbook if you want to pretend that Apple makes tablets.
http://www.alwaysinnovating.com/ smaller screen and thicker chassis but longer battery life for $300.
Various Windows laptops, harder to find since noone wanted to pay the premium for a touchscreen.
If you want a browser-only tablet, install Chrome OS or something.
$200 still is in the land of magic ponies and unicorns though.
comment 17y ago · link · parent
Obviously with exceptions, especially with the instructions added after armv4.
For instance, the allowed addressing modes vary depending on instruction: ldr allows a 12 bit offset, ldrd only an 8 bit, ldm and vld allow none, though vld allows a strided increment. Only ldr* non-exclusive allow a register offset.
Thumb-1/2 and exclusive load/store change things a bit more, but they aren't generally stuff to care about unless you're doing kernel or compiler programming. Also, none of the neon instructions can be conditionally encoded, but there isn't much reason to do that.
As for desktop arm, a massively multicore machine would be nice, but the average user doesn't care much about desktop CPU power consumption nor make good use of more than two cores. Netbooks have to watch out though.
comment 17y ago · link · parent
1. The little legitimate stuff they do that would increase pagerank (better website design, alt text, metadata, etc.) is incredibly overpriced for the actual value, especially compared against SEO claims. But companies that don't shell out for a website designer that can do this in the first place deserve to be ripped off.
2. The even shadier SEOs will use botnet linkspam and the like. This is actively destroying the web and companies that do this do not deserve to exist period.
comment 17y ago · link · parent
Also, it's not illegal C, it's undefined C and compilers are only allowed to do whatever they want within the undefined area (which is larger than I expected.)