« first day (616 days earlier)      last day (4348 days later) » 

2:00 AM
It's not called base character, what's it called?
 
@RMartinhoFernandes Well, you could do Regex("a")
 
A noncombining character?
 
huh, it appears that I have left off an operator which simply matches A then B
lol
 
@DeadMG That assumes the string uses combining characters and not the composed characters
 
Regex("a").Then(Range("U+whatever", "U+whateverelse"))
 
2:01 AM
I see.
 
@Insilico It's the user's responsibility.
the regex matches Unicode codepoints
 
Okay so I would run my string though a normalization function first.
 
except in a couple cases, but those are thankfully covered by the Unicode description of their algorithms.
 
I like separating text and binary streams on the type level.
 
as do I
 
2:04 AM
It's a pain when those get mixed up accidentally, and there's no good reason to do so on purpose.
 
however, it's worth noting that I have not really finalized my interface for converting from int to string and such things
I will probably re-write that section
 
@RMartinhoFernandes What's your definition of a text stream and a binary stream?
(just to be clear)
 
@Insilico One provides characters and the other bytes.
 
when you write 42 to the stream
a text stream writes "4" "2" in ASCII
the other writes 42 in binary
 
Ah, I see.
 
2:05 AM
But a text stream needs to accept other encodings than the Unicode ones. (Unfortunately) people use others.
 
well, I figure that you can simply provide an extension if you need that.
I don't want to force implementations to accept all the extended ASCII uglies
 
@StackedCrooked Awesome
 
@Insilico I'd say the first one is appropriate for writing HTTP requests, the second for writing ICMP requests. I think that makes the distinction quite clear.
@DeadMG Add an Encoding concept.
 
@RMartinhoFernandes I ask because someone might confuse it with fstream's concept of text and binary files, which has to do with newline conversion, I think.
 
@RMartinhoFernandes But it still comes down to the fundamental question- what are the mandated supported encodings?
 
2:08 AM
@Insilico it has to do with text vs. binary files actually, as handled by the (POSIX) os
 
@DeadMG Oh, sure that makes sense. My point is that you need a hooking point for others.
 
an implementation can just provide additional members in the enum?
 
@DeadMG Make Unicode the absolute minimum, the OS/implementation provides the rest?
 
But the spec doesn't allow it!
> They shall be constructed with a string that is the file path, and Unicode encoding which represents the encoding of the content of the file. (emphasis mine)
 
right
the actual text encoding enumeration isn't physically specified anywhere, which is an oversight
but it's my intention that Unicode is the minimum, not the maximum.
 
2:10 AM
Jesus Christ, can these PHP-implementing douches write uglier code?
 
That's why I'm here filing the DRs.
:P
 
lol
 
@DomagojPandža You mean the "developers" of the PHP interpreter?
 
@DomagojPandža your fault for looking at it
Also, hi
 
@DomagojPandža You go near something related to PHP and come back complaining?
 
2:13 AM
@DomagojPandža Ohai Domagoj
 
Evening, it's so ugly. Not only it's in C and a shitload of bad ideas, they have no sense of writing readable code. Statement on a statement on a statement, ever heard of some partitioning? And their idea of Win32 is VC6.
 
I went back and played some Max Payne 2 today
it's actually amazingly disappointin
 
Hard to adjust to Max Payne 2 after 3? :D
 
well
 
I tried playing Max Payne 1, catastrophic.
 
2:14 AM
TBQFH, the bullet time is broken.
Max can't shoot for shit
what's the point in bullet-timey super-accurate putting the dot, if Max then shoots a mile away?
although at least Cutscene Max isn't a goddamn moron
 
Yeah, the narration is amazing. But it was a lucky combination with Rockstar's improvements from the physical animation engine, Euphoria from Natural Motion and all that nice, tight locking in on the target dot.
 
yeah
I gotta say that I prefer MP2's characterization and plotline, but MP3 has the better gameplay
also, MP2's idea of "autosaving" is once every half an hour, the main reason I always put down the game the first time I die.
 
I was hoping for Max Payne to somehow return back to NYPD in the third iteration.
A good cop game would've been good.
 
@DeadMG You can't ask it to save whenever you want?
 
@Insilico I can, but that somewhat breaks the immersion.
 
2:18 AM
Well, in the heat of action, you don't really think about saving.
 
@RMartinhoFernandes Here's one: the Compiler links are broken.
 
And then when it reloads 12 years before, you lose the will to play.
 
@DomagojPandža What about if you're not in the heat of action?
 
coulda sworn I checked that before uploading
oh, if you go compiler index, those links work
only the full index links are teh brokens
 
@DeadMG Oh, I noticed, but I thought they just weren't ready yet.
 
2:19 AM
@RMartinhoFernandes No, I cut almost all the dead links.
 
Gamers shouldn't worry about saving. Either make it a gameplay element or do it automatically.
 
but if you just uncapitalize the first letter, you should get a valid page
 
Pressing Esc kills the game
 
@DomagojPandža Apparently in one of the newer Final Fantasy iterations, there's a monster which disguises itself as a save point :P
@RMartinhoFernandes Pushed new version so front index is not teh brokens.
at least, it will be pushed in a minute
Amazon, y u only allow me to UL at 2kbs
good thing the whole job lot is only 200kb
 
`new_entry = pemalloc(sizeof(user_config_cache_entry), 1);
new_entry->expires = 0;
new_entry->user_config = (HashTable *) pemalloc(sizeof(HashTable), 1);
zend_hash_init(new_entry->user_config, 0, NULL, (dtor_func_t) config_zval_dtor, 1);
zend_hash_update(&CGIG(user_config_cache), path, path_len + 1, new_entry, sizeof(user_config_cache_entry), (void **) &entry);`
So sexy. -.-
 
2:22 AM
I know
 
PHP needs to go away.
 
Patience
 
"PHP is installed on more than 20 million Web sites and 1 million Web servers." - How can something so lousy, something that came from a sucky experiment for editing one's personal homepage, become so successful?
 
because noobs who don't know how to code can bash out utter shit in it quickly and cheaply
 
No love for middle-endianness, I see.
:P
More seriously, I'd name the enum ByteOrder, with members BigEndian and LittleEndian.
"Endian" is not a noun.
 
2:35 AM
Endianness is the usual term, IIRC
 
That works too.
 
ByteOrder seems fine, but does endianness not imply word ordering as well?
That C++ refactoring demo is nice. I'd love to see some of the applications Chandler is mentioning (automated tools that scan for and apply c++11 code style (const expr, range-based for, variadics (!) etc)
The link needs more stars, IMO
 
@StackedCrooked Y U NO LINK TO TIME DIRECTLY?
(append #t=37m50s to link)
 
@RMartinhoFernandes Because the demo is meh. You want to look at the slides that actually show the code
 
y they have a video titled "C++ refactoring" which doesn't actually get to the refactoring for the first 38 minutes
 
2:40 AM
@RMartinhoFernandes I can't remember how to do that and I'm to lazy to look it up each time. I'll try to remember it this time though.
 
@RMartinhoFernandes Really the demo adds nothing. You can't see it. It is in likelihood not even clear what it does without the rest of the presentation
 
@sehe SFINAE!
 
@DeadMG Why you complain about things you only assume about? Have you watched it?
(cue: Sheepish "yeah a bit; I don't need to")
 
@sehe Stacked's link clearly states "Demo starts at 37:50". I took his word for it.
 
2:42 AM
"For over a decade, C++ developers have envied the tooling support that languages like Java have."
 
@DeadMG So... Don't. End of story. Jumping to conclusions is bad for your health. Blindly judging stuff negatively is just bad.
 
@DeadMG The first 38 minutes talk about the thing. Then he shows it running. Also, they were waiting for the Stargate to close first.
 
@RMartinhoFernandes niiice Stargate reference
 
Huh. Lulz I guess
 
@sehe Wasn't blind at all. I received word from a person who I believe ought to know WTF he's talking about
 
2:45 AM
Whatever. Abandon all critical thinking!
 
hey, I'm usually the one doing all the critical thinking :P
you guys always bitch at me for being negative or contrary whenever I critically think
 
Define critical
 
I looked at the subject/topic/object/whatever and judged it based on the merits I knew of
 
@StackedCrooked I'll remember you're trying to remember, so be ready to be delivered a link to that message next time you forget :P
 
2:48 AM
7 mins ago, by DeadMG
y they have a video titled "C++ refactoring" which doesn't actually get to the refactoring for the first 38 minutes
^ When you find yourself surprised, perhaps it is time to check your assumption/interpretation. Cause, yeah really, that would not make sense.
 
@sehe In his defense, bad titling is not unheard of.
 
True. In @StackedCrooked's defense, though, he didn't actually say "doesn't actually get to the refactoring for the first 38 minutes". He said 'the demo is at'...
Also, in Chandler's defense, he is also "a person who I believe ought to know WTF he's talking about". So, 'bad titling' is less likely
Now, in general, I thought it was strange to point at the start of the demo, since, again, the demo was really meh. I'd rather check out the code myself
 
@RMartinhoFernandes Thanks for being convenient :p
 
so
things to do to finish the Wide specification
#1: SPECIFICATE ALL THE THINGS
ok, that's not terrifically helpful
 
2:56 AM
specificate > specify
using words that exist is for suckers
 
Actually, some googling seems to reveal it may be an actual word.
We all know our hated C/C++, C(++), C\C++, C/++, etc. Now behold the C/C:
0
Q: How to accomplish this function in C/C

Miles ChenI need a macro which helps to output the given parameter's name and value. It's something like the following code. #define AA "Hello" #define BB "World" #define PRINT(input_param) printf("input_param: %s\n", (input_param)) void main() { PRINT(AA); PRINT(BB); } I'm expecting the result: AA:...

 
lolwot
just lolwotthefuck
right
I've officially determined my future road map
Step 1: Sleep. Step 2: ??? Step 3: Profit.
never has that been so true
 
Step 2 is amazingly fleshed out!
 
lol
@DeadMG Have fun.
This includes a Student class, this must be homework! :) — EitanT 1 hour ago
 
3:03 AM
"Let's make C++ more fun than Java."
What the fuck is this guy talking about?
Java is fun?
 
You clearly don't know what he's talking about.
 
Python is fun. At least at first.
Has IE got support for HTML5 canvas yet?
I think I will learn myself canvas anyway.
 
Ignore IE, Firefox/Chrome/Safari have it.
 
Hello PHP.
"Fun & easy"
Bad ideas are bad.
 
3:11 AM
Right, you ask if Java is fun, but you're using PHP. I love the irony.
 
Who is using PHP?
I'm just going over its codebase.
 
That doesn't sound any more fun.
 
Well PHP apparently uses ICU strings?
 
May I ask why you're doing so?
> Internationalization extension (further is referred as Intl) is a wrapper for » ICU library, enabling PHP programmers to perform » UCA-conformant collation and date/time/number/currency formatting in their scripts.
@CheersandhthAlf Seems so.
 
Curiosity mostly, I like going over how things are implemented. Be it lousy, terrible or amazing. I like to see it all.
I just deem when people make something fun, it means to be dumbed down. And then all sorts of shit arises out of bad code and lack of understanding for the core principles. Simplification with the goal of "being fun" intimidates me. I like to know what is going on. And I like for things to be logical and well implemented.
 
4:01 AM
oh wtf... one my answers just got deleted...
 
Ah, the question was killed.
 
I should edit the question and then flag for undeletion.
 
I edited the title. That one was horrendous. Wanna go undeletion?
 
4:05 AM
@RMartinhoFernandes gimme a sec to improve the body as well
 
Oh, can't undelete if deleted by mod.
Once you get the body fixed, we shall flag.
 
So I have to fit this in here, because it bears repeating: PHP is a community of amateurs. Very few people designing it, working on it, or writing code in it seem to know what they’re doing.
This man is my hero <3
 
Which man is your hero?
 
Eevee, jalf's message contains the linky. Upstairs.
 
edited, time to flag
 
4:11 AM
Flagged.
 
I also flagged. That should do it.
 
@DomagojPandža Oh, that. Yeah.
 
I'm wondering why you can flag it as "Very low Quality" when it's deleted.
 
lol
"Please pulverize with extra prejudice"
 
It'll be interesting to see if I get back the tick. It seems that deletions now remove it.
 
4:23 AM
I think I agree with Alf that sometimes people NARQ questions because they can't answer them.
(Not by malice, I mean)
-1
Q: Convert Java to C++

Fourthmeal70I have this jave code that sorts an array. First it sorts the Even numbers and then the odd numbers and at teh end combines the arrays to print one sorted array with Even numbers first, odd numbers last. Now I've written some sorts in C++ but I'd like to get an understanding on good ways to conve...

Too localized.
 
> I have this jave code
Jave?
It's a rave party with Java programmers?
 
Jave is amazing.
 
I don't know why he doesn't just use a single comparison function
 
room topic changed to Lounge<C++>: We're not having a jave. [c++] [c++11] [c++-faq]
 
wouldn't is_even(a) == is_even(b) ? a < b : is_even(a) work?
 
4:35 AM
Yes.
@Pubby I'm guessing because Java lacks decent comparator composition facilities.
And incompetence to implement them.
 
Does Java have something equivalent to function pointers or first class functions?
Function objects maybe?
 
That would be a .OrderBy(IsEven).ThenBy(x => x) in .NET. The awesomez.
@Pubby No.
Single-method interfaces is the closest you get.
 
@Pubby It's my biggest gripe with Java.
No first-class functions.
 
Jave is stupid
 
Tell me something new.
 
4:38 AM
It is ugly too
 
Alright, your new nickname is "Captain Obvious".
 
Captain Pubvious.
 
Captain Pubvious of the O.O.P. Enterprise
I go where every man has gone before
 
@EtiennedeMartel They will have them in Java 8! (They said the same for Java 7...)
 
@RMartinhoFernandes I'm so excited.
 
4:45 AM
Meanwhile, C# gets nice asynchronous continuation support.
 
Maybe it'll be good enough to make me switch from C#! Although C# 5 has async/await.
 
@EtiennedeMartel I doubt it will.
 
I'm starting to wonder if "design by committee" is such a good idea.
After all, C# keeps getting new features because if they stop adding new ones, then they're all out of work the next day.
In the case of Java, nobody gives a shit if the language stagnates for a few years.
Perhaps nobody gives a shit about Java.
 
A camel is a horse designed by a committee
 
Even the Java developers. They're too much content to just get in at 9:00, do their work, get out at 17:00, and never ask themselves if the grass is greener on the other side.
 
4:47 AM
@EtiennedeMartel async/await is so awesome there's no way Java will be good enough.
Btw, any idea when Roslyn comes out?
 
I thought it was already out.
 
No, still in CTP.
There was a new preview up this month.
It's for post-VS2012.
 
My god, maybe we'll get a nice FOSS alternative to ReSharper.
 
Does anyone remember that one blog talking about C#'s future/promise stuff in C++?
 
Nope.
 
4:49 AM
@EtiennedeMartel That'd be really awesome.
 
@Pubby Eric Lippert sometimes blogs about it.
 
@RMartinhoFernandes Looks different. The guy who wrote it had messy black hair. He did Haskell stuff though.
 
Bartosz does have a messy black hair, and does Haskell.
 
He has two things going for him.
 
@RMartinhoFernandes Yeah, it was Bartosz
Dunno why it was moved to a different blog
 
4:53 AM
Meh, still no codegen in the latest Roslyn preview. Dammit. I want to play with that thing.
 

« first day (616 days earlier)      last day (4348 days later) »