« first day (1216 days earlier)      last day (3746 days later) » 

12:04 AM
@ThePhD ^
 
If anyone uses firefox, consider installing Aurora
they just released a new UI it's really cool
 
hmm
static at TU-scope means TU-local, right?
 
Internal linkage, yes
 
hmmm.
if I interpret a C++ expression in terms of Wide, then the results will be in terms of Wide's semantics rather than C++'s.
perhaps it would be easier to simply define a new C++ function that returns the value of that expression?
ah well, I guess that shit is to be expected when you're dealing with this kind of thing.
ah well, I only really need to handle a few kinds of default arguments to hit virtually all use cases anyway
 
It's your rabbit hole and it goes deeep
 
12:19 AM
lol
fortunately, I can get out whenever I want to.
 
@LoïcFaure-Lacroix they merely copied Chrome
there was a thing about this here last week
 
I thought Firefox's existing UI was basically copying Chrome.
 
That would be impressive given the timeline
 
Firefox UI iteration starts with looking at what Chrome did in their last iteration and then carefully duplicating it
I wish they'd fire everyone involved with UI already
Preferably out of a cannon
 
I love this one:
I hate how every single goddamn interview inevitably ends with a line like this:
> We've received no real help other than one boat passing asking us to evacuate. They say they'll send sandbags but it's too little too late.
Like, the government isn't some magical deity with unlimited resources and teleportation powers, there to step in to solve every single problem you may face. The entire country is flooded. Deal with it. Take your own responsibility!
Ah well, g'nite
 
12:32 AM
@LightnessRacesinOrbit lol
 
Don't fall asleep now
that would be a waste of time
 
hmmm
I guess it says something about how rarely I use file-local variables that I actually can't seem to make it link.
 
Xeo
define 'file-local variable'
 
well it's actually a constant.
which I defined as const in TU A and then extern const in TU B.
 
12:47 AM
Erm, you don't want that with internal linkage.
 
yeah, but I also don't want it mutable :P
tried non-const anyway and it didn't have any effect.
 
Didn't you say you marked it static?
 
no, it was static originally and I removed that first.
 
@DeadMG Needs to be extern const in both.
const is fucked up.
 
user3010322
@BartekBanachewicz Kinky. I hope I can do that with NCurses.
 
12:50 AM
Yeah const implies internal linkage
 
user3010322
But quite honestly, that sort of defeats the point, doens't it?
 
@ThePhD What?
 
user3010322
It's already colored. You may as just use colors as that point.
 
@ThePhD Uh
 
user3010322
12:51 AM
@CatPlusPlus Like, if you have colors you can control, why not just make the block one big fat thick color of your choice?
 
Because that looks horrible.
MMMMMIIIIIMMMMMIIIIIMMMMMIIIII
 
It's hard to create 3D illusion without shades
 
@ThePhD There are only 16 colours available.
 
user3010322
@R.MartinhoFernandes Oh. That changes things then.
 
You need to do dithering, with predefined shapes.
 
12:53 AM
256 :v
 
well I figure that most default arguments in the C++ stdlib are default constructions of various function objects.
so if I support the kind of const T& = T() form, then I should be able to handle most uses of default arguments I think.
 
user3010322
@R.MartinhoFernandes I think I'll just stick to black and white for now...
 
Okay, I've made some work of this. I've included any elements of "Good Spirit Style" I thought was relevant, and ended up with adding transformation of the AST to your legacy :) XNODE_ type. Even with that added, the code shrunk by 100 lines. Read all about itsehe 16 secs ago
I've satisfied my OCD for today. Let's go sleep.
 
struct allocator {};
struct string {
    const char* p;
    string(const char* x, allocator a = allocator())
        : p(x) {}
};
bool f(string s = "lollerskates") {
    return true;
}
not too far from the real std::string interface
turns out I forgot to change my test case to point to the real header :(
 
Xeo
@R.MartinhoFernandes sure it's only 16? 3 base colors, 3 light versions, 3 dark versions, 3 white tones, 3 combinations (rg, rb, gb) and again 3 light and dark versions of those. or am I missing something?
oh wait, there are no dark versions
 
1:09 AM
@Xeo It's 8 colours + 8 light colours
In computing, ANSI escape code (or escape sequences) is the method of in-band signaling to control formatting, color, and other output options on video text terminals. To encode this formatting information, it embeds certain sequences of bytes into the text, which have to be interpreted specially, not as codes of characters. Although hardware text terminals have become increasingly rare in the 21st century, the relevance of this standard persists because most terminal emulators interpret at least some of the ANSI escape sequences in the output text. One notable exception is the win32 con...
It can be 256 though :v
(That game from that video is not a console app at all, though)
 
hello sirs
I big fan of barket
 
and jefff
 
You lost
 
@Jefffrey k maybe
 
So quiet
 
user3010322
1:30 AM
@AlexM. You love the Braket too?
 
@CatPlusPlus what makes you say that?
 
@CatPlusPlus what video?
 
@LightnessRacesinOrbit no, it doesn't look like chrome. And the dev tools are nicer than in Chrome now
 
@ThePhD that is an entirely different matter, and I am glad you have brought it up
the long answer requires me to recall past events in my family, and lay them down here
the short answer is "No."
 
1:35 AM
@A.H. terminal don't have "mouse" event for movement
 
The guy has style. Too bad it's really past my bed time. Night all
 
@LoïcFaure-Lacroix nice catch
 
@A.H. also if it has sound, it's probably not coming from the terminal too unless it's a beep, if it was a terminal it could be possible to select the text
 
@LoïcFaure-Lacroix actually he said the sound was added after
@sehe night
 
anyway gnight too. cya Sehe
 
1:39 AM
@LoïcFaure-Lacroix night
 
night (obviously directed at everyone going to sleep)
 
user3010322
1:51 AM
@AlexM. So you participate in GameJam's on GameDev?
 
motherfucking good night everybody
 
@ThePhD never participated myself, but I guess you could say I organized them
 
Xeo
@thecoshman increadible UHC season
 
though that would not be entirely true, as there have been people helping me out
@Jefffrey night
 
user3010322
@AlexM. We're having a Game Jam here! You should come. :D
 
1:52 AM
on the lounge?
 
Xeo
9 hours ago, by R. Martinho Fernandes
Official page of The 2nd Great Lounge Game Jam here.
 
I'll take a look
 
who wants to join Team Rapptz
I got calcium carbonate in my eyes by accident
:(
 
are you kidding me?
at first I was like "meh" but now that you said that
I'll totally join Team Rapptz
 
MY COMPUTER JUST UNHIBERNATED ITSELF
SPOOKY
@A.H. I don't know because I downloaded and checked?
@LoïcFaure-Lacroix Not really true
@LoïcFaure-Lacroix Or that
 
@CatPlusPlus are the 3d transformations even possible in a terminal ?
nvm the sound and mouse
 
@LoïcFaure-Lacroix what's stopping him from using X11 APIs to get mouse input?
 
what video are you guys talking about
 
Xeo
@A.H. just take every character as an output pixel and it's just like normal
 
@A.H. you've never heard of a software renderer?
 
2:07 AM
HAVE YOU HEARD ABOUT ASCII MATRIX
Anyway, I should return to sleep
 
@doug65536 I was thinking of the characters
 
Goddamn spooky things
 
@CatPlusPlus yes, they are way faster than normal matrices I heard
 
@CatPlusPlus your computer doesn't want you to sleep
@CatPlusPlus TIL
 
Dude it's like 2004 where the fuck have you been
 
2:09 AM
masturbating
 
I'm gonna poweroff so it doesn't unhibernate itself again HA
And also outstanding updates anyway
 
Xeo
@CatPlusPlus remove wake-up power from mouse and keyboard
 
rule #2 needs clarification
WinAPI is technically a library isn't it?
 
@Rapptz it's multiple libraries technically
@Rapptz kernel, user, gdi are the main ones
 
I know the ones from MinGW are public domain but iunno about MS ones.
 
2:14 AM
@Rapptz mingw provides prototypes for everything. they didn't reimplement anything significant
it's just headers
 
yeah true
 
you're really just dynamic linking to the system's libs
and they provide a zillion structure and macro declarations
there is an open source re-implementation of win32 though: Wine
 
user3010322
@AlexM. How are you feeling about the second Game Jam? :D
 
so it's one day long only?
 
Xeo
5h
 
user3010322
2:23 AM
It's meant to be super quick and lulsy.
 
yeah, I meant all of it happens during the same day
 
user3010322
Yeppers.
 
well since it's that short I can't really think of a reason I won't be able to participate
 
user3010322
Saturday, February 22nd, IIRC.
 
user3010322
2:24 AM
You can form pairs. I'm not so sure I want to make a pair with anyone, though... except maybe @Rapptz. I'm sure nobody else would want to work with me: I'd make them pull their hair out. :P
 
user3010322
I know I already drive @Rapptz insane. :D
 
We had a -1 Great Lounge Game Jam but no one speaks of it anymore
 
it's 20:00 in my timezone
that's quite decent
 
why is there std::real
Oh wow. It was added in C++11
 
yup, I'm in
I'll add it to my calendar
 
2:27 AM
At some point we should put up a registration thingy.
Wait.
I know.
OMG SO OBVIOUS
 
R. Martinho Fernandes has added an event to this room's schedule‌​.
 
done
I also added it to my calendar
 
registered for great justice
 
I'll be there.
 
2:36 AM
same rules as last time?
 
Current generally agreed upon rules are on the wiki.
 
ITT @Rapptz got told to RTFM.
 
@R.MartinhoFernandes Ah.. so no text game requirement so far :(
 
Wasn't too popular.
 
We'll get nuked by whoever picks Unity.
 
2:38 AM
If we make it a regular monthly thing, we can do more focused ones.
 
I promise I won't use unity
too much
 
Unity is not open-source, is it?
 
don't think so
 
@R.MartinhoFernandes No, otherwise no one would pay 1000+ dollars for it
(the pro version that is)
 
I was thinking about using Godot, to be honest
it got released as open source two days ago
it does what Unity does, and was battle-tested and developed by a team making games for both consoles and PCs
it also does what Unity doesn't; that is, it allows you to develop on Linux and build for it
 
user3010322
2:41 AM
Heh.
 
@R.MartinhoFernandes It's free, but not open source.
 
user3010322
I still need to port my shit to OpenGL and FreeType.
 
user3010322
Then I can probably just run in OpenGL mode 99% of the time.
 
2:53 AM
And who the hell accepted that shit!
 
lol
 
next up, hashtags in questions
 
@Rapptz Done.
 
2:59 AM
why do my tag wiki edits need to be approved.
 
WHY THE FUCK CAN'T I JUST EDIT THE DAMN THING MEANWHILE
 
I don't get why I have to go through that process :(
Holy shit man.
20k to edit tag wikis without this nonsense?
Isn't that some sort of fatal design flaw?
 
@R.MartinhoFernandes Me too. I think it's due to @Rapptz's pending edit.
 
Tag wikis are bit more global, so I guess it makes some sense to have a higher bar.
 
yeah but 20k?
 
3:05 AM
But it's fucking bullshit that your edit blocks me from just fixing the damn fucking thing.
 
@Rapptz If that is so, then they should also raise the tag edit review privelege bar.
 
Xeo
> , but keep it civilized.
we should update that
 
You can edit anyone's post at 2k rep
10x more just to edit a tag wiki which no one sees..
 
Xeo
also, approving done
 
I should get 2k rep in which the case
 
3:07 AM
@MarkGarcia You should not be able to approve anything on a tag wiki without a corresponding tag badge.
It used to be a lot worse though.
 
what if no one has a tag badge for a tag?
 
The tag wiki had become a total cesspool.
@Rapptz At 20k you can edit any.
 
I still think that's a fatal design flaw
 
And yeah, it makes no sense that I can just edit the damn thing, but my approval doesn't get your edit through immediately.
I could just make it myself.
 
couldn't you do "improve"
change one minor thing and say "helpful"?
 
3:10 AM
Hmm, maybe.
And that would have approved it immediately.
Edit suggestions are so fucking broken.
 
why can't tag wiki edit privilege be... "5k or have a badge for the corresponding tag"
@R.MartinhoFernandes Doesn't seem like it
 
@Rapptz Oh, I know. I'm saying how it should be.
> Rephrased the whole shebang. Got rid of lots of crap that accumulated due to... bad reviewers approving lousy edits? I don't know. Remove the abusive use of [tag:] markup; my eyes were watering from that. Removed hello world; the tag wiki is not a tutorial. Made the source not disgusting in general.
Ha, that was the big clean up that I had to some years back.
They were already abusing tag: back then.
 
just like people abuse code formatting
 
> WTF? Who cares about the etymology of C++? Also, next time you copy-paste from wikipedia, please don't copy the [citation needed] markers.
 
@R.MartinhoFernandes lol
 
Xeo
3:16 AM
@CatPlusPlus THAT GUNNERKRIGG COMIC HAS TOO MANY PAGES
 
In 1998, the C++ standards committee (the ISO/IEC JTC1/SC22/WG21 working group) standardized C++ and published the international standard ISO/IEC 14882:1998 (informally known as C++98).[citation needed]
lol
 
@MarkGarcia Someone added a wall of text about the etymology of C++ to the tag wiki... character by character copy from wikipedia, include the [citation needed] things. It was approved by some morons.
 
why does this need a citation... hmmm
 
@Rapptz i think the "citation needed" refers to the "informally known as"
 
3:18 AM
Also, I think hyphens are overused in the tag excerpt. "widely-used, statically-typed, free-form, compiled, multi-paradigm, multi-level, imperative, general-purpose, object-oriented"
 
Xeo
wtf is 'multi-level'
 
@R.MartinhoFernandes lol so I checked the editor's top answer
 
When Wikipedia requires SECOND-HAND sources, I think it reflects that the maintainers are non-technical. It works well for politics. Not for technical stuff.
 
24
A: What is The Rule of Three?

Sachin MhetreThe rule of three (also known as the Law of The Big Three or The Big Three) is a rule of thumb in C++ that claims that if a class defines one of the following it should probably explicitly define all three[1]: -destructor -copy constructor -assignment operator These three functions are specia...

 
@R.MartinhoFernandes Wait, just two reviewers.
 
3:19 AM
wikipedia copy paste there too
@MarkGarcia back then it used to be 2.
 
@Rapptz That's dumb.
 
there was a short overhaul on the system a while back since it was unbelievably shitty
it still is, but it was worse back then
because people would just spam "approve" for their shitty badges
 
democracy doesn't work for science and engineering facts
 
831
A: How does Facebook disable Developer Tools?

AlfI'm a security engineer at Facebook and this is my fault. We're testing this for some users to see if it can slow down some attacks where users are tricked into pasting (malicious) javascript into the browser console. Just to be clear: trying to block hackers client-side is a bad idea in general...

831 upvotes, 706 rep!
 
tasks.schedule([]{ }); // not fun to type
tasks += []{ }; // cleaner syntax?
No closing bracket!
 
3:27 AM
@StackedCrooked IMHO, the C# delegate style is cleaner, but not necessarily clearer for non-obvious types (tasks though says for itself).
 
@MarkGarcia What does the C# style look like?
 
Xeo
+=
 
@EtiennedeMartel candyswipe.com/king.html
 
Xeo
I think having += implies having -= though, which isn't gonna happen so easily in C++
 
@Rapptz King are douchebags. I hope you did not just learn this now.
 
@Rapptz lol
 
@EtiennedeMartel iunno man, this is a new low
 
Kinda like when John Carmack showed up on SU.
 
@Mysticial SU?
 
3:31 AM
SuperUser
 
He had a linux related question? :P
 
tasks += seconds(2) + []{}; // delayed invocation
ok now I'm probably stretching it
 
user3010322
Probably, yeah.
 
@StackedCrooked Well you could do tasks += [] { waitlol(2_s); []{ //do stuff } };
 
3:34 AM
Oh, no that would require a operator+ overload of chrono::seconds and F&&. Way too general.
 
@Borgleader The least you can expect: superuser.com/questions/419070/…
 
@Borgleader I don't want one task to do a blocking wait.
But, anyway, I was just fooling around with operators :)
 
@MarkGarcia Looks like Eric Lippert has beaten that.
 
@Mysticial What did Eric Lippert beat?
 
@StackedCrooked Or something like what standard sync types does, like wait_for and wiat_until.
 
3:36 AM
1143
A: How are pseudorandom and truly random numbers different and why does it matter?

Eric LippertLet's play some computer poker, just you, me and a server we both trust. The server uses a pseudo-random number generator which is initialized with a 32 bit seed right before we play. So there are about four billion possible decks. I get five cards in my hand -- apparently we are not playing Te...

 
@MarkGarcia Currently I have dispatch(F&&) and schedule(F&&, duration).
 
Xeo
@Rapptz seriously? how fucked up is it to buy a trademark just to debunk another?
 
You clearly need to figure out how to use Europe as a display technology. — wfaulk May 3 '12 at 14:29
LOL
 
@Xeo this is pretty much scum of the Earth material as far as I'm concerned
6
 
@Mysticial I don't see the link between randomness and pixel refresh time (or transatlantic ping times) ?
 
3:38 AM
@Xeo Welcome to 'merica?
 
Xeo
@Rapptz this whole copyright, trademark and patent stuff is just so fucked up
 
@StackedCrooked I meant on the site itself.
 
@StackedCrooked He got more upboats than Carmack on SU
 
@Mysticial Not really a fair comparison.
 
Well, he explains how to cheat with online poker.
Naturally that's gonna get some attraction :P
Wow, the post got really long with the UPDATE.
Btw, anyone know if the C++11 random library would get good points in the light of this post?
 
3:42 AM
What do you mean by "good points"?
 
Seems you missed Eric's point :(
 
@R.MartinhoFernandes Everyone wants to be on the RNG leaderboard.
 
Xeo
@StackedCrooked he wasn't judging prng implementations
 
user3010322
If I understand it correctly, he was comparing RNG types. A TRNG (truly random generator), a CPRNG, and a regular PRNG.
 
3:46 AM
Berlin people don't sleep?
 
I only had a brief look at his post. I noticed the "Generating truly random numbers is difficult" and wondered if the C++11 random would be any good in his pov. And then I .. er.
...I should just read the post and stop embarrassing myself.
 
@sudorm-rfTelkitty Party 24/7.
 
on the internet, in a programming lounge ~_~
 
@Stacked seems like a good idea :P
 
I had 6 hours sleep for the previous two nights and I am as tired as f*ck ... that's 12 hours in total :'(
 
3:48 AM
the whole post read to me like "some poor chap might be bored enough to be able to guess your randomness so make it better"
 
I didn't think he meant to give any advice.
 
I need 7.5 - 8 hours every night
 
The fact the some poor bored chap could do it is the distinguishing characteristic
Not a cautionary tale
 
At the end of the day, it just feels like I'm making it slightly harder for mr. chap.
They could still try if they want to
 
I have a wedding to attend to tomorrow
 
user3010322
3:52 AM
@sudorm-rfTelkitty Free food!
 
shopped for some dresses yesterday
 
user3010322
Take pictures!
 
user3010322
Or... ... or don't.
 
@ThePhD which my parents is paying for (because it is a relatives wedding). $100 per person from us
 
user3010322
Eww. Gross.
 
user3010322
3:53 AM
If I get married, it's going to be super cheap.
 
Same here
 
user3010322
And all the money I didn't spend on the wedding will go directly to having the most badass honey moon in the world.
 
But I won't get married
 
user3010322
Wedding Dress << Butler in Beach-overlooking Hotel in Aruba
 
user3010322
For a week.
 
3:54 AM
If I ever get married, it would be a small wedding, only close family & best friends are invited ... although it probably won't be cheap because intent to hire a small island or medium cruise or both
 
That's what you meant by super cheap?
Don't tell me what expensive would be
 
@ThePhD TIL about Aruba. Looks like a nice place.
 
user3010322
@R.MartinhoFernandes What I mean is, I will exchange the expensive parts of the wedding for the more fulfilling, lasting, expensive parts of a Honeymoon.
 
I used to go there.
Beaches are nice and clean
@R.MartinhoFernandes Cheaper than going to Berlin!
More than likely anyway, if you scrap the butler.
 
user3010322
3:56 AM
Anything I can experience on my Honeymoon will vastly exceed the experience of a single wedding night in stuffy dresses and suits meeting relatives I do not give a flying shit about.
 
user3010322
Especially with my family.
 
user3010322
(Dunno about hers. :D)
 
@ThePhD A Honeymoon lasting doesn't sound right to me.
 
how long do you think these things last?
 
user3010322
@MarkGarcia 2 weeks versus 1 week is much more fulfilling and awesome.
 
user3010322
3:58 AM
I've seen people take 3 weeks out for getting married and honeymoons and stuff, combined.
 
user3010322
I'd rather have 2 or 3 weeks of honeymoon and a day of just doing boring court clerkwork for the marriage.
 
I have seen people taking a year traveling the world ...
 
user3010322
That sounds crazy expensive. :D
 
working holiday maybe ...
working manual labour/waitressing while traveling
 
@ThePhD Most do remote work, but I don't think that alone can support the expenses.
 

« first day (1216 days earlier)      last day (3746 days later) »