- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Javascript feels left out, so...
[spoiler]Although with support for ES6 you'll be able to write "0".repeat(4096)[/spoiler]
Admin
That's why we're afraid
Admin
So, this is some previously unknown definition of TL;DR then? :P
Admin
Any excuse to use the CodeDom to over-complicate a problem. Now you can generate a "better" solution in the .NET language of your choice! ;)
Resulting output (C#):
Admin
It's also off-by-one1.
1: I hesistate to call it an error, given the number of intentional :wtf:s in this place.
EDIT: Nevermind, I am TRWTF.
Admin
This is a much more robust version
Admin
http://play.golang.org/p/PD62rlSZDk
Admin
Admin
Not enterprisey enough
in other news pasting that entire script before eliding causes chrome to shit its pants for about a minute trying to render the preview.... Maybe it';s something to do with the 160kb of text it tried to format?
Admin
or as anonymous097646764589806 pointed out to me OOB:
Admin
http://i.kinja-img.com/gawker-media/image/upload/s--eRk9T9Pz--/wtwgjhsf8d9hk3wry96y.jpg
Admin
That game BETTER have some Zero III action in it. Even if it wouldn't make any sense, being a direct sequel.
Zero III is the best.
Admin
Speaking of Zero III action, Aksys finally fixed the Virtue's Last Reward intro on Youtube.
https://www.youtube.com/watch?v=4h4xPoe4w1g
Admin
Was it broken?
EDIT: Alice's outfit is such a huge failure at being sexy, it blows my mind.
Admin
It was marked as Private at some point and thus no one could view it. Now it's just marked as unlisted, but it's linked from the main Virtue's Last Reward web page.
Admin
Admin
https://en.wikipedia.org/wiki/Zero_Escape:_Virtue%27s_Last_Reward#Characters
I like how the Wiki page shows Zero III right there in the lineup of characters as if he were playable.
And yet it does not include this screenshot:
[image]which is the best thing ever.
[image]Admin
Hmm, I've only played 999, so this may be interesting. But it's probably too anime.
Admin
I don't see the WTF here. Generating 4096 zeros at runtime comes with a performance penalty. This guy is writing compiler-efficient code!
Admin
yes, but how much of one? are we generating those 4k zeros ONCE and then using the same set of zeros for the entire lifetime of the program? in which case that cost can be amortized to zero. are we generating those 4k zeros multiple times, but for periodic operations like a nightly or hourly task? in which case that cost can be amortized to nearly zero.
Are we generating those zeros many thousands of times but the compiler is able to optimize the call to hand out the same set of immutable zeros each time in which case the performance cost is negligable (and a decent JIT compiler will do just this)
finally: is the performance hit significant enough to justify the developers and maintainers time in counting and verifying that exactly the right number of zeros is created for the operation, time and time, and time over througthout the years long lifecycle of the application? if not then fuck the cost because the dev and maintenance time costs are higher than the cost for the inefficiency.
Remember:
Admin
Admin
It's so you can select a random character from the string and know what to expect. It's probably used in a magic trick (pick an integer between 0 and 4095...any integer. Now, is this the string you selected in the first place? )
Admin
It is way too anime, but the writing and localization are good enough that it's worth a playthrough.
Admin
+212 that's brillant
Admin
Ok, firstly, omitting curly braces is terrible style, second, that fails for odd numbers.
Admin
To take this one step farther:
The writing and English localization were good enough to save the third game in the series from cancellation.
It was originally canceled due to Virtue's Last Reward's poor sales in Japan.
Edit: It's clear from the timing of the announcement that Aksys Games saved it... it's otherwise unusual for the localizer to announce that a new game exists.
Admin
There's nothing really they're doing that absolutely requires a Nintendo DS or PS Vita to run the game; if they were smart, they'd port the thing to every platform under the sun.
Admin
In Japan, only indie devs care about PC. Which is why all the ports are so bad.
Admin
I'm not even talking PC, although it would be nice. I'm talking iPad and Android and Samsung and Kindle and yada yada.
Admin
That's still PC as far as they're concerned. 90% of that is android anyway.
But Japan doesn't believe in ports. Then too, Aksys and Arc System Works, who are best friends, consider PC to be equivalent to 'filthy pirates'. They're getting slightly better now.
Admin
Japan ain't special.
Admin
No, that's not true at all. There are still companies that make RTS games, and Sid Meyer always makes sure we get things. So does Blizzard.
But yes, there are definitely companies that ignore PC. Most of them just don't make Tokiden Kiwami.
Admin
Have you played D3 on console? So much better.
Give it a year or two.
Admin
I didn't buy it until well after they'd stopped that.
Because of the above, yes :smiley: I missed out on the worst bits, so it was just a fairly alright game when I played it.
It was somewhat boring, though.
Admin
Ok, Firstly, had a parameter to customize the character, second, the fail was intended so WONTFIX_WORKS_AS_DESIGNED third, you are imposing your heteronormative styles as the only way. :tropical_fish:
Admin
[quote="Magus, post:87, topic:50112] Blizzard didn't ruin the PC experience at all. [/quote] Repressed your AH memories so soon? Can't blame you for that.
[quote] At which point the physics will still be locked to the framerate, because Tecmo Koei doesn't care. [/quote] No, other way. I'm saying that batman was just the beginning.
Admin
:rolleys:
Admin
if you ain't gonna play this isn't fun
Admin
It would be even more flexible and robust if we'd
We should use System.Numerics.BigInteger, otherwise rounding errors could interfere with the result:
So does - it throws an exception for any integer passed into total.(there seems to be no way to properly quote code...
Admin
In that the game started ruined and only gradually after months of patches became less ruined? Is that what you mean?
Admin
Maybe he meant with non-ruined PC experience the ruined game experience?
Admin
The nightmare was over before I bothered buying the game.
It's no real D2 sequel, but it works alright on PC. What brokenness there was didn't appear to be the result of forcing a console game on PC users.
Admin
I tried to put it on play.golang.org, but I got
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
.Admin
I'm sorry, it's just, there were so many things wrong with what I posted, and your response is that it's too ‘heteronormative’? I don't know what to do with that.
Admin
Even though not shorter Julia is still better:
Clearly string concatenation behaves more like multiplication (e.g. summation is supposed to be commutative, which concatenation clearly isn't). Therefore you get exponentiation when repeating concatenations.
Admin
Clearly you haven't been keeping up with the times. It must be nice being so privileged that you can ignore the world around you.
<No, I'm not serious.
Admin
Multiplication is commutative as well. You gain nothing and require two different operators to "add" things together.
Admin
You never exceeded behind primary school math? Noncommutative multiplication algebras are used all the time. Look up matrixes. Or just try out a Rubik's cube.
Admin
And we use noncommutative addition for strings. Any more questions?
Admin
Exactly. That's the reason why Julia is saner, because it adheres mathematical conventions.