« first day (963 days earlier)      last day (4003 days later) » 

6:00 PM
ohai
 
@TonyTheLion You didn't like to be inside bitches
 
@CatPlusPlus I like to be inside bitches, but I acknowledge it's not for everyone.
 
@CatPlusPlus I spend most of my day inside, everyday, on occasion I need to just be outside. Its one of those things.
 
hi
@TonyTheLion Freak.
 
lol
talking about outside, what part of this century are we going to actually meet up?
I suppose you're pretty broke, and if we did want to meet up I'd have to fund it?
 
6:07 PM
er, actually, it wouldn't have been a problem about three days ago :P
 
fuck sake, why you no say something?
 
How do you deal with flags from the JS room?
 
Ignore? Invalid?
 
In other news, teenagers
 
6:10 PM
@TonyTheLion Mostly sick.
 
We're so superior to them teenagers.
 
@DeadMG :'(
 
my doc is on holiday this week so next week I can talk to him
 
oh good
 
@TonyTheLion You missed it
 
6:13 PM
meh
 
YOU MISSED IT
LOOK AT MY IMPECCABLE TIMING
Ahahaha my brain is flipping out
 
@TonyTheLion Meh - kids will be kids, let them have their bit of fun. Then invoice their parents en-masse for the cost of renting an aircraft for 45 minutes, policing costs and compensation for the other passengers.
 
> inside bitches
?
 
@TonyTheLion Fucking christ.
 
Hmm. This is weird. I can connect with RDP to localhost:3389, but if I tunnel that through SSH it fails.
 
6:15 PM
@MartinJames Urgh, parents should teach their kids manners and how to behave. Fuck sake
 
> The flight was delayed for about 45 minutes while the students filed out of the Boeing 737, which seats about 137 people, leaving the plane mostly empty.
 
It is a double entendre
 
it took them 45 minutes to get them off the flight?
 
@R.MartinhoFernandes But SSH works?
 
I suppose, after trying to get them to sit down
and turn off their phones
 
6:16 PM
@TonyTheLion Yes, and thy probably would do once the airline bills arrive.
 
@Rakkun Erm, ye.s
 
@MartinJames true
 
how the hell do you not sit down on a plane, not like there#s a lot of room
 
@R.MartinhoFernandes And what exactly is the failure?
Also, hi.
 
@melak47 Never underestimate the kids' capacity to be annoying
 
6:18 PM
@Rakkun ha, you think you would get a meaningful failure message from Windows RDP client?
It's the exact same message I get if I mistype the port.
 
@R.MartinhoFernandes Oh. Since SSH I assumed Linux :(
 
@CatPlusPlus how could I, with you here :p
 
@TonyTheLion I can see it going both ways. On the one hand, do as you're damn well told. On the other, everybody knows that cellphones are no threat whatsoever to aircraft.
All flights have people who blatantly ignore the instruction to switch them off. Nobody dies.
 
@R.MartinhoFernandes what are you using to tunnel it?
 
@TomW Well, cellphones not a hazard, almost certainly true, yes, especially with the airctaft still at the airbridge :) Not sitting down/seat belts is more of a problem if the aircraft is ready to move - you can get quite a jolt from a pushback tug.
 
6:22 PM
@TonyTheLion SSH
 
@TomW Captian's instructions are the law on a plane, if you ignore, you deserve to be kicked off.
good song - Primal Fear - Suicide and Mania
 
but there's airplane mode for that :p
 
@R.MartinhoFernandes And are you sure the tunnel is set correctly? I see no reason why that would fail.
 
@melak47 what?
 
@TonyTheLion on cell phones, which turns off the radios? :p
 
6:25 PM
oh I see
well, still, my previous point still stands
 
@TonyTheLion I don't disagree, but I wonder whether there's precedent for something similar to copyright law, where if you fail to defend yourself against the first infringement, all future action is null and void. Since airlines don't take any action against people ignoring them most of the time, maybe those students would have a case
 
@Rakkun Yes, I'm quite sure :S there isn't much to fuck up. -R 22222:localhost:3389
 
@TomW not sure
 
@TomW I'm pretty sure airlines have reserved the right to kick anyone out of a plane if they refuse to comply with crew instructions.
 
@R.MartinhoFernandes I'm sure they have - but they rarely do
 
6:27 PM
@TomW A defence against refusing to obey an order from the captain of a vessel?
 
but annoying teenagers
 
I've ignored the instruction about phones numerous times because it's pointless, it's inconvenient and (the important one) I'm near certain I'll get away with it
 
@R.MartinhoFernandes Is there any reason you use remote forwarding and not local forwarding? Although that should work too...
 
@TomW oh you.
 
@Rakkun I want to connect to this machine, which is not visible from the outside. I don't see how local forwarding would help at all
 
@rightfold who lives in a pineapple under the sea?
 
user142019
SpongeBob SquarePants!
 
@R.MartinhoFernandes Oh, I thought you were testing your tunnel locally. (I can connect with RDP to localhost:3389). So what if you try with a local tunnel first?
 
Xeo
@rightfold That's a mighty-big caps-lock button
 
user142019
Damn.
 
6:36 PM
@Rakkun Well, I am. But I want to use it from the outside.
 
user142019
UnicodeData.txt omits some stuff and now I have to write code to derive it but I'm so lazy. :(
 
@R.MartinhoFernandes Try with -L first then!
 
It's where the light shows. It's not a button.
 
@Rakkun No. That's worthless.
 
@R.MartinhoFernandes You'll know if the failure comes from SSH itself or from the network, that isn't too worthless IMO.
 
Xeo
6:38 PM
@R.MartinhoFernandes What's wrong with unfinal? Putting "un" in front of things works fine for everybody! :P Also, there's no std::is_final. :3
 
@Rakkun Even if it works, it means nothing. I am setting this up precisely because I can't connect to this machine.
@Rakkun No, I won't, because there's no way to meaningfully do that test.
 
As you wish. Good luck!
 
-L 22222:localhost:3398 means "when I connect to localhost:22222 I am really connecting to the machine with the SSH server:3398"
That says nothing about the RDP connection, and I can connect to the SSH server from everywhere just fine.
 
Wireshark FTW
you'll have to get it to decrypt the SSH packets though
 
You say: I can rdesktop localhost::3389 just fine. Then you say: Remote tunnelling from rmartinho@somehost:22222 to localhost:3389 doesn't work. I say: Try local tunnelling from localhost:22222 to localhost:3398.
 
6:42 PM
I don't have a SSH server running on this machine...
If I had I wouldn't be tunneling RDP.
3 mins ago, by R. Martinho Fernandes
-L 22222:localhost:3398 means "when I connect to localhost:22222 I am really connecting to the machine with the SSH server:3398"
I don't want to test connections to the machine with the SSH server.
 
I understood that.
 
Then what do you expect me to test?
 
stuff!
 
You can't possibly expect me to test....
No, Mr. Bond, I expect you to die!
 
@R.MartinhoFernandes I expected that test to tell you if the failure came from (tunelling over ssh) or (tunelling over the network). In other words "is MSRDP angry because he doesn't like being tunelled at all or is there some issue with a network equipment fiddling with packets"
 
6:47 PM
And how do I perform such a test?
 
@R.MartinhoFernandes Well with a local tunnel but since you don't have a ssh server I guess you can't. I assume you already tried verbose mode? To know if the connection request is effectively forwarded and all.
 
Xeo
@TonyTheLion What a blatant lie. I trusted your words, went outside, and it was just horrible.
6
 
@Xeo thank you, now I know I shouldn't go there
it's really better inside, with you my imaginary friends
 
@Xeo :'(
can a class template have a default template parameter?
 
Xeo
ya
 
6:54 PM
ah good
 
Xeo
It was function templates that couldn't until C++11
 
@TonyTheLion even function templates can have'em
 
using MyFoo = foo<???> when foo<> only has default template param, what do you put there, if you want the default?
 
template<typename T = int> using MyFoo = foo<T>;
 
eh, never saw that construct before?
TIL Programmers in this Lounge don't like to go outside. I'm an exception to the rule.
throw tonythelion;
 
6:57 PM
hi btw
 
C++ is too complicated for lions
 
0
Q: compile time variable name/enum value name information

DukalesIs it possible to obtain variable name or enum value name at compile time? In particular, namespace::/class::/struct::/union::-qualified (with adjustable depth, like have UNIX patch unility -p/--strip= option). In gcc 4.8.1 I can write: #include <iostream> #include <ostream> #include <cstdlib> ...

I have no idea about this?
 
fuck. I gotta work, fix bugs and crap but I don't want ='(
 
@Abyx yea
@Abyx I know that feel bro
 
7:00 PM
life is so hard =\
 
yea, fuck life, go outside and have fun
 
hi fellas
 
Anyone know how to get a top-level github domain? like Ambrosia.github.com instead of the current rubenvb.github.io/Ambrosia ?
 
7:02 PM
@rubenvb hi. btw, what is that thing on your avatar?
 
or is it only for organisations?
 
@rubenvb I'd assume you'd have to apply for one on Github somewhere. Or make an organization account.
 
@rubenvb Google could help.
 
The Buddhabrot is a fractal map related to the Mandelbrot set. Its name reflects its pareidolic resemblance to classical depictions of Gautama Buddha, seated in a meditation pose with a forehead mark (tikka) and traditional topknot (ushnisha). The map is created by counting the number of times in the iterative creation algorithm a point is revisited. Discovery The Buddhabrot rendering technique was discovered and later described in a 1993 Usenet post to sci.fractals Previous researchers had come very close to finding the precise Buddhabrot technique. In 1988 Linas Vepstas relayed sim...
 
@rubenvb hey that's cool
 
7:03 PM
@rubenvb oh, cool
 
3D Mandelbrot.
I wonder what 3D Burning Ship looks like.
The Burning Ship fractal, first described and created by Michael Michelitsch and Otto E. Rössler in 1992, is generated by iterating the function: :z_{n+1} = (|\operatorname{Re} \left(z_n\right)|+i|\operatorname{Im} \left(z_n\right)|)^2 + c, \quad z_0=0 in the complex plane \mathbb{C} which will either escape or remain bounded. The difference between this calculation and that for the Mandelbrot set is that the real and imaginary components are set to their respective absolute values before squaring at each iteration. The mapping is non-analytic because its real and imaginary parts do n...
 
I used to know someone called Ruben
 
It's a simple adaptation of Mandelbrot.
It would be so cool in 3D.
 
@R.MartinhoFernandes I don't care at all, although I do tend to avoid doing EBO myself. I'd rather delegate to std::tuple.
 
Well, what do you know
looks Guild Wars-y
 
7:05 PM
@rubenvb woah.
Looks Battlefleet-Gothic-y
 
@rubenvb funky awesome
 
The math is dead simple
it was a first year programming project.
The actual drawing code was provided though.
But we had to code zooming in and stuff;
It was Java though :(
If only it was Qt, I'd be proud.
 
Qt has a lot of Java-esque elements
pointers everywhere too
 
true, but it's done natively, so no ugly stuffs.
 
7:08 PM
@TonyTheLion and all QObjects should be created with parent objects which magically clean up after themselves.
 
yes
this is true
 
So, in what C++ can provide, they chose the most elegant way possible :-)
what advantage would a one-person github organisation have?
 
donno
 
Bragging rights.
 
lol
I got emailed by someone from the Google hiring department the other day.
 
7:12 PM
can I use bold in code in markdown?
 
No kidding.
@bamboon double asterisks **this should be bold if not in code**
or was it underscores? I forget.
 
Xeo
@rubenvb Wait, I thought the extension to the complex plane was 4D, i.e. quaternions - how does this work with 3D?
Also, @R.MartinhoFernandes, whatcha gonna do for std::is_final?
@rubenvb Both
 
@Xeo which extension exactly? Quaternions are a bastardized attempt at generalized vectors, which is mathematically hackish.
 
there should be a constexpr bool std::does_this_code_suck() { return true; }
 
Anyways, the wiki page explains how 3D Mandelbrot works.
 
Xeo
7:14 PM
@TonyTheLion Your code sucks, should be constexpr
 
badumtish
Anyways, my friends were struck with awe.
Apparently, the Google person noticed my SO account.
 
I've been struck with many things, never awe though
 
And was interested in my uber skills displayed on the site.
 
Xeo
"uber skills"
 
@TonyTheLion they were actually kind of jealous :P
@Xeo note the sarcasm.
not that I don't have skills.
 
7:16 PM
@rubenvb it doesn't work in code, somehow.
 
@bamboon hence the "if not in code" bit.
 
Xeo
@rubenvb Did they message you just to tell you you suck? :P
 
@Xeo harhar
 
Xeo
@bamboon Well, for good reason, really.
 
Updating my CV now. You never know what they say when they see the sleek LaTeX resume.
 
7:17 PM
@rubenvb and what did you reply?
 
@bamboon nothing yet.
 
@Xeo probably yeah
 
I have a paid PhD fellowship currently, which is quite nice for the next 3-4 years. But Google is, well, Google.
although I am absolutely not sure of my value to them.
@AlexDan the prepreprocessor.
or the precompiler
or the precompileprocessor.
 
oh you
 
Seeing that the preprocessor needs to know what characters are in the file, I'd say the conversion happens before everything else.
 
7:21 PM
@AlexDan you need to make sure your source is the correct encoding before you compile it
 
Xeo
> You could also explicitly move a return value. That didn't stop us implementing it before.
@DeadMG: Because that would actually hinder an optimization - RVO
 
what, and the same argument doesn't apply equally to returning a lambda?
 
Xeo
> This should not be lambda-specific, could be applied to all automatic variable:
And here come the people with no clue...
 
I have no clue
 
I also have no clue
 
7:26 PM
 
@AlexDan if you say tell compiler you're going to pass UTF-16BE, then don't pass anything but UTF-16BE. Simples.
 
FTR, for Wide, I was planning on massively relaxing the elision rules
 
its not an encoder/decoder, just a compiler
 
Xeo
@DeadMG I actually talked to some guy about relaxing the ones in C++
 
@DeadMG I'm happy to know that, but I'm not sure that is any use to me
 
Xeo
7:27 PM
Or rather, the auto-move rules
To not rely on elision
 
@TonyTheLion Er, was talkin to xeo :P
 
@TonyTheLion so when I use UTF-16BE who convert the source code to the compiler default encoding ?
 
@AlexDan you do, or some tool you find does
not the compiler, preprocessor
 
is there any visualization about application execution process?
images or video
 
7:32 PM
@microsoftarmy a debugger.
 
@TonyTheLion then what -finput-charset exist for
 
@AlexDan to tell the compiler what charset the input source will be in
its not that hard to comprehend.
 
i mean how os load data and then execute it
 
Tony, don't feed the help vampires
I'd have thought you'd have learned that lesson by now
 
oh meh
 
7:34 PM
@microsoftarmy well, it reads stuff in memory and then execute it
 
@microsoftarmy Magical pixy dust.
 
@DeadMG yea, I wanted to feel useful :/.
sometimes I still think that they will get it
and just move on
I need some faith in humanity
 
I lost all mine years ago
if I ever had any
 
:(
We can have faith in Loungers
 
"imagination is more valuable than knowledge" - albert einstein. but yet its hard to imagine something like that, lol
 
7:36 PM
ok I'm going to watch Breaking Bad
bye bitches!
 
aw man
you got my hopes up that it was airing
 
no, Netflix
 
user142019
Ok.
 
I'm catching up
 
user142019
7:38 PM
Is it safe to use placement new on a std::malloc(sizeof(T))ed pointer for any T w.r.t. alignment requirements?
 
only for types aligned <= std::max_align_t
 
@microsoftarmy Yep, that's it. See what a little Googling can do?
 
user142019
OIC.
 
user142019
Thanks C++ master.
 
that usually means if you're not dealing with SSE and other "special" types
then it should be fine
 
user142019
7:39 PM
I can static_assert it right?
 
sure
 
user142019
Fucking awesome.
 
alignof(T) <= alignof(std::max_align_t) should do it
 
@ShotgunNinja sometimes it's good to see high seo blog without content
 
actuallyu
check the documentation for malloc, because those guarantees are for new and I think they hold for malloc too but I'm not quite certain
 
7:43 PM
How's that? It took me three seconds to find that.
 
user142019
I need this for implementing my object model. Some types (strings, arrays, integers, etc…) have special members which aren't Ø types.
 
Is it bad to use alignas for giving data members their own cache line?
 
well if it's only regular primitive types
@Pubby: No.
 
user142019
@DeadMG Also ogonek::text<ogonek::utf8>. :P
 
is not going to be composed of SSE types
why not just use new T?
 
user142019
7:45 PM
And std::vector<object*> and probably hash tables and mpz_class.
 
user142019
@DeadMG well, for most objects I need to allocate N bytes where N is given by LLVM.
 
user142019
I would like to have a uniform allocation and deallocation function in the GC.
 
user142019
class klass in C++ has an std::size_t instance_size; member.
 
user142019
Which is given by LLVM for regular types, and by C++ sizeof for built-in types.
 
ah
well, you're wrong.
 
user142019
7:47 PM
And klass has a destructor member which is invoked by the GC when an instance is collected.
 
LLVM does not take into account alignment.
you have to insert padding yourself
 
user142019
For the built-in types that should call ~T().
 
1
A: No members available in C++

9827085704First thing is that class Test{ public: Test(){};(Your Default Constructor when you will make the object this constructor will call) ~Test(){};(when you will release this object your destructor will call) void test() {cout<<"test"<<endl;}; }; Here you don't need to call manually.

 
trust me cause I just had to do this with Wide
 
@ShotgunNinja that's good but not enough picture to explain, example : "how program executed in os?" ans : "For starters, a modern CPU has (at least) two modes, a mode in which it's running the core........." sometimes makes visual learner student going crazy :D
 
user142019
7:48 PM
@DeadMG all members of the LLVM types are pointers.
 
user142019
Oh wait fuck, one isn't. :v
 
no offense, lol
 
if they include C++ types, it's not enough
 
user142019
They don't.
 
hmm, well I guess that if you're not including C++ types you won't have to worry
 
user142019
7:49 PM
LLVM doesn't deal with the built-in types. It only deals with the types that are generated at runtime.
 
then how are you gonna deal with a type with a string in?
that string has to have some LLVM representation
 
user142019
All objects, including those of built-in types, have a klass *is_a; member at offset zero and they're all standard layout. All other members of non-built-in types are pointers to other objects.
 
er
LLVM doesn't have standard layout.
as in, you define the layout.
 
user142019
C++ does.
 
user142019
As long as is_a is at offset zero, everything is fine. :P
 
7:51 PM
ah, you mean the "Holyshitmylanguagehasthedumbestnameever"'s primitive string class?
 
user142019
struct object { klass *is_a; };
struct string { klass *is_a; ogonek::text<ogonek::utf8> value; };
// static_cast<object*>(someStringPointer) is fine because standard layout
 
er
actually, it's not fine, you're violating strict aliasing.
standard layout is mostly for unions, IIRC.
 
user142019
Oh. :v
 
you need to have string : object.
 
user142019
I'm a fucking noob.
 
7:53 PM
so basically
1. All "Holyshitmylanguagehasthedumbestnameever"'s types have what basically amounts to a vtable pointer at position 0.
 
user142019
Yes.
 
so what's the oldest c++11 feature
probably auto
 
therefore you can just basically give LLVM i8*
 
but one could argument that lambdas are
 
user142019
@Nils auto is about over twenty years old.
 
user142019
7:54 PM
@DeadMG Yes, that was the idea.
 
lambda :D
 
why do you know this?
 
I would recommend making a special type
 
user142019
n + 1 i8* LLVM struct type members for n Ø data members.
 
like struct __vtable or something
 
7:55 PM
haha @microsoftarmy love ur nick, just imagine drill instructor Ballmer! :D
 
er, why would you have more than one?
 
user142019
type Person {
    var name;
}
// LLVM type: { i8* /* is_a/vptr */, i8* /* name */ }
 
@Nils just because my university supplied with free microsoft product
 
so "Holyshitmylanguagehasthedumbestnameever" is dynamically typed now? I forgot
 
user142019
Yes.
 
user142019
7:57 PM
lol
 
every university does this @microsoftarmy
 
user142019
Should I rename it.
 
yes.
do not use characters that are not part of the basic English/ASCII set.
 
@Nils but not every student make money from this advantages
 
nobody is gonna be arsed to find the Unicode shit
 
user142019
7:58 PM
Then I'll call it foldr.
 
ok
 
user142019
After myself, since I'm an egocentric bastard.
 
you call yourself dumb, how about me :o
 
@microsoftarmy and how do you ?
 
well, fortunately for you, LLVM doesn't have strict aliasing unless you ask it
 

« first day (963 days earlier)      last day (4003 days later) »