« first day (1512 days earlier)      last day (3663 days later) » 

00:00
In my experience I've only encountered two types of code: the inner loop and the not-inner-loop. Performance only matters in the former. There doesn't seem to be a middle ground.
Some cynical SO user just down voted my specific, non-duplicate question just because he ASSUMED I hadn't read the class ref (as you can see by his comments). Can someone up vote it just to counter it so people don't ignore the question?
-1
Q: What's the range of a parameterless std::uniform_real_distribution constructed object?

Benjamin RTo whit, will the resulting distribution of the following code snippets be identical? std::uniform_real_distribution<float> uf_dist(0,1); // half-open, i.e. [0,1) std::uniform_real_distribution<float> uf_dist; If I run a quick test on 10^8 generated numbers returned by uf_dist(mt) (mt19937) ...

user1804599
No.
okay...
@BenjaminR The injustice!
@Stacked
it kinda is
I'm sorry, when you are entirely innocent it's annoying. I find default cynicism intellectually invalid.
00:02
You should realize that asking for upvotes in this room will be interpreted as asking for downvotes.
<facepalm>
Run while you can.
@BenjaminR Sure, I don't mind downvoting it again.
@StackedCrooked I am surprised that the question still has not gotten any extra downvotes.
Ah, wait, there we go.
@Nican Yeah, we've been slacking.
00:03
Why?
oh yeah
'I'm creating a program that will represent fractions in binary system'. Well, that can never go wrong, can it?
http://stackoverflow.com/questions/27326629/c-results-of-simple-operations-on-doubles-get-weird-after-few-iterations
also, if you actually read the link, it explicitly states that you're a moron.
hth
I'm off to bed now
night!
00:04
@MartinJames lol
@Puppy Get in your basket.
People with ~100 rep making a fuss about a downvote.
That's so sad.
what a wonderful attitude. And it doesn't. Unless you mean it's because it is an explicit constructor which can therefore construct without brackets
@MartinJames Our dogs responded to that command.
There's no way to not be cynical
00:07
@StackedCrooked lol, they are logged in?
No, they died 10 years ago.
Don't hook up your dogs to electric network
I think I messed up a past tense somewhere.
Ell
Ell
@StackedCrooked well that escalated quickly
@StackedCrooked No, not really, just English language redundant tenses causing confusion.
00:08
Beer solves everything
Good idea.
@CatPlusPlus Works/worked/will work for me.
Had had been working
English will run out of words before it runs out of tenses
@CatPlusPlus It's a shit language that everyone speaks. Sorta like PHP or Ruby.
Everything people do is shit
00:11
@CatPlusPlus No - some of it is piss.
Esp after beer
Ell
Ell
Is a kernel necessarily single threaded?
I may have had a few.
Who put fuckin water in my alcohol I ask
user1804599
No.
Ell
Ell
00:12
I guess at that low level threads don't exist? (because the kernel has to provide them)
@CatPlusPlus what is your favourite alcohol?
Ell
Ell
...
@Ell Kernels can preempt themselves too
@Ell Kernel is code++. It doesn't need execution within itself. It's code is only executed when it is entered from a syscall or hardware interrupt/driver.
And schedule tasks on different CPUs
Run top on Linux and you'll see kernel threads
00:14
@Ell I bet 5 EUR on Polish vodka.
Dunno about Windows
Since it multiprocesses a lot
@StackedCrooked Not taking that bet.
Vodka sucks
Well plain vodka
Ell
Ell
what do you like then?
Whiskey, rum, good beer
Cider's gud
00:17
I read that as Cider's guid.
okay I am a moron, that's fair. But thanks laughing instead of telling me why...
Don't be a programmer programming sucks and will make you into depressed cynical alcoholic asshole
OK, someone post a link to @BenjaminR question so I can downvote it too.
@CatPlusPlus Yup - worked for me.
We talk about shooting yourself in the foot so much because it's much more pleasant experience than writing code for production
Ell
Ell
lol
00:20
Crime of all crimes, I have only one beer left
Ell
Ell
I finished my can of piss a while ago
@Martin
HAHA TOGGL SAYS "REMEMBER TO TRACK YOUR TIME" FUCK YOU TOGGL
@CatPlusPlus That sucks. I have 5 cans of Hobgoblin in my fridge.
00:21
@Martin, I deleted it because, not only was it moronic, but also redundant question once the moronicness was spelled out by someone more helpful.
@BenjaminR S'OK. I'll find someone else to downvote.
@MartinJames ...
Oh look more tasks
I'm so happy
grejt
I just quit work, why are you still working?
Is quit the appropriate word there?
Do you mean "left"?
00:29
50 shades of fucking grejt
@Ell The first time I ever got drunk, was on Strongbow. LOL
Last beer is the strongest so there's that
7% nom nom
Ell
Ell
@JohanLarsson hey, we can't all afford to retire ;)
@TonyTheLion I can't remember what I got drunk on first time
@Rapptz yeah you are right
@Ell hahah
00:31
Me on lemon vodka
Ell
Ell
Must have got pretty drunk :P
nah, I got drunk on this first time
Probably
Lounge<BeerFriday>
@Nican BeerSaturday here and now.
00:39
@rightføld They are pretty good ime.
Ell
Ell
Do Russians and poles enjoy vodka neat?
Ell
Ell
How?
When I was in Poland vodka was served with coke. Later I had a Polish colleague who abhorred that (and preferred neat).
@Ell How wat
00:44
@Ell I know few people who do. Most of them (including me), don't.
I used to think that vodka should not be consumed neat. However, I changed my opinion once I tasted a good one.
Ell
Ell
@Jefffrey how do you enjoy it?
It just burns
But it's a sweet burn.
Ell
Ell
I'd rather drink mouthwash
@Ell neat
Ell
Ell
00:45
Its still burning that makes me gag :P
Maybe I just need to try a good vodka
I've only had Smirnoff and other cheap ones
@Ell I used to enjoy it neat, because (at the time) thought the burning was better than bitterness of the other drinks.
Later my taste changed, and I got to know the taste of mead and cider.
Does anyone know any good decompilers to C? ida pro with hex rays just sucks completely.
@Praxeolitic Convoluted counterexample for C++98. Or for C++11 (in case the code might be ported): A parameter of a class type that has two non-explicit constructors: One that has a parameter of type const lvalue reference to vector<>, and one that is deleted and has a parameter of type rvalue reference to vector<>. Second demo. — Columbo 28 secs ago
If IDA sucks for you
You won't be satisfied with anything
00:52
@Gizmo What's sucky about them?
Wall of incomplete, complex code posted, together with 'I tried to debug this since this afternoon' - wow, how impressive:((
@milleniumbug well I decompiled my program and it doesn't include any of the strings or variables so you can't get any meaningful code back, it just blergh here some random code.
You can't get variables back
@Gizmo That's to be expected.
@milleniumbug well in ollydbg I can clearly see my strings are in the program
00:54
Unless you have full symbols
and are pushed onto other functions
in the C file which hexray produces.. nothing
IDA is one of if not the best disassembler/debugger/decompiler thingy
You probably just suck at the UI
IDA and hex rays are two different things
Ell
Ell
Someone explain to me why kissing is supposed to be an attractive thing
@Ell well if you don't find it attractive you don't have to, be different!
00:56
And Ollydbg is not a decompiler
kissing is just nice.
@CatPlusPlus it's not but clearly my program outputs a string which is not in the produced C file
Ell
Ell
I can understand kissing to show affection
so. magic. or sucky decompiler
@Ell It isn't for a third party
00:57
which means I need to get a better one
Ell
Ell
I suck at the UI in IDA
Or you're doing something wrong
isn't it just load the app, produce file-> produce C file, analyse?
how hard can that be
l o l
00:58
@StackedCrooked nice
P sure you're doing something wrong
@Ell you have great understanding
if so sure please tell me at which step I fail to comply to a correct decompilation process..
No idea
Read the manual
@Gizmo First: are you trying to disassemble (for which you use IDA) or decompile (For which you use Hexrays)?
01:02
@JerryCoffin decompile
@JerryCoffin I'm a politician. You'd think I'm lying, but that's what makes me a politician .
@Nooble You admit you're a politician, and you believe I only think you're lying?
@Gizmo In that case, I probably can't help you a lot--I've used IDA quite a bit, but never used Hex-Rays at all.
Coliru produces over 60k lines of log messages each day. Perhaps I should tone it down a little.
@Ell That's (probably) the problem then. Smirnoff is on the ragged edge between barely drinkable when mixed with something that has a strong taste of its own, and simply not being drinkable at all. I can hardly imagine anybody drinking it neat.
01:07
@StackedCrooked Install Kibana or something like that
Aggregate this stuff
@CatPlusPlus Apparently you ordered 0.9355 new IP addresses.
I had this IP address for months
I have no idea why they invoiced in like that
Forecasted up time? 🙀
@StackedCrooked Error messages?
Good logs are more than just errors
01:12
> Because it's called Dr who, not Nurse who.
Stackoverflow 📶
btw if you're not using Graphite yet
You should start using Graphite
> A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.
I'm your perfect match
01:13
Throw the apple at the shooter? Kinky woman ...
@Jefffrey No, just everything that happens.
I'm too irregular to match anything
HAHA GEDDIT PROGRMAMING JOKES
dude
I'm sad drunk and hungry
Not in that order
01:15
the fuck is sad drunk
Xeo
Xeo
@CatPlusPlus not that it needs any order
Cat ate his comma key
@Jefffrey Every drunk
many drunk
If u r drunk y r u sad?
Because I have to read you shorten three letter words to one letter
01:16
I should get a pita, but I'm to lazy to go outside.
Xeo
Xeo
Actually. Does Cat use punctuation at all?
It's cold outside
Xeo
Xeo
Except for question marks?
Still have a pizza in the freezer.
Ell
Ell
I get sad drunk sometimes
It used to be always
Xeo
Xeo
01:17
I never get drunk
The main reason why I drink alcohol is that it makes me happy.
No kind of atmosphere
Even then I don't drink it every day
@Xeo If I feel like it brings value
comedic value
Currently around 3 ºC in Poland. That's ok.
Xeo
Xeo
01:18
Wheee, time for my weekly dose of Denki-gai moe.
What the fuck does that even mean
^^ love the stuff you find there
Fuckin ANIME
Okay i seriously can't understand this..
`#include <iostream>
static const char * retetete = "Retetetete";
int main(){return printf(retetete);}`

now compile it. go to ida pro, file->produce file-> produce C file
Xeo
Xeo
01:19
@CatPlusPlus Denki-gai is an anime. An increadibly cute one.
you get three freaking thousand lines of code
and nowhere "Retetete" to be seen!
just completely sucks.
dont waste ya money, don't recommend hex rays decompiler
lol you're decompiling C++ program as C and you wonder why it's huge
You know someone's having a sad life when the only thing that keeps them happy is the anime ..
@CatPlusPlus Now I have to read you shorten seven letter word to six letters
@Jefffrey YESSSSSSSSSSSSSSSSSSS
01:20
@CatPlusPlus The problem is not it's huge or anything, the problem is that essential data is missing
@Gizmo Post the code
@CatPlusPlus denki means electricity
@CatPlusPlus the decompiled code?
I only know Genki
Xeo
Xeo
@CatPlusPlus and lengthen three-letter words to twenty-one-letter words!
01:20
@Gizmo No the fucking Christmas code
Xeo
Xeo
making up for the shortened ones?
@Gizmo Don't paste here, paste on the ideone or somewhere else and then post the link
@CatPlusPlus Hey
It's all Matrix don't pretend
01:21
@milleniumbug I am not new to this chat..
@milleniumbug 2/3 years old..
ofcourse not this account
@Gizmo lol
user1804599
Do it anyway.
Xeo
Xeo
> return (int)"system";
lol
user1804599
Also hi Cicada.
Xeo
Xeo
code generation sucks
01:22
yeah told ya it sucks.
but okay I can live with that
the problem is - data is missing
nothing of the real working of the program is to be seen
It's a mess, because it's C++ program
@Xeo wut
Wait.. ideone has a copy paste limit?
it's missing 1,7k lines
Compare it with disassembly
I would be amazed if they don't
01:24
compare with disasembly
ofcourse the disasembly shows Retetete will be printed
that's the point!
of the whole program.
The address bub
At least find the actual main
Are you seriously trying to compile #include <windows.h> on coliru?
> #error "There were 1 decompilation failure(s) on 150 function(s)"
LOL
Decompilers use a lot of heuristics to get anywhere
@chmod711telkitty you serously think I would compile a decompiled program?
I just pasted it there because ideone won't let me
01:27
And you're using C mode for C++ program for one thing
Get rid of the iostreams and it'll get rid of 80% of this shit
in the end assembly is assembly, producing C code from assembly is a perfectly valid form of decompiling, even when the input language is C++ or <name your other favourite language here>
but okay no one know how to get "Retetete" to appear in the decompiled file?
Very good.
A bit of assembly might be generated by more than one bit of high-level code
I wonder how a decompiler would handle SIMD.
Decompiling is hard, because there's a shitload of transformations going on and there's no exact mapping from assembly to high-level constructs
Even if there is the other way
Your data might have been mistaken for something else
Or it's just a pointer
01:31
I wonder which is worse decompiling or D compiling?
Technically, you could trivially decompile any application into a C program with 1 thread-local variable for each register. But that probably isn't helpful.
That's hardly decompilation
well whatever happened, thep rogram outputs it when ran, debuggers show it exists, but ofcourse hexrays needs to tell me it does not exist at all >_>
Decompile any executable into a C program with a big asm block.
There should be a translationparty site for compiling and decompiling until it converges.
01:32
That's not trivial because asm blocks suck :v
@Gizmo You're expecting easy answers from a very advanced tool aimed at professional reverse engineers
But yeah I'm sure you can find a better decompiler than one of the market leaders
glhfggnoreI'm running out of beer
This one is noticeably strong or I'm just drunk idk
SCIENCe
Almost
You should watch Trigun.
ok so I found out my "Retetete" text value is in extern char *Format; // idb now how to get these values into the decompiled file?
Ell
Ell
Decompilation is pretty much impossible
In my mind
I don't want to perfectly decompile, I just want to decompile as much as possible to study some logic..
ofcourse it's much harder to study logic when you actually don't know the values of the variables...
Decompilation to meaningful stuff is extremely hard with low-level opcodes because of that inexact mapping between streams of opcodes and high-level shit
You basically have many answers and have to guess which one is the most correct one
01:46
You know you are talking about actual code decompilation and I'm talking about just getting the declared data into the source so I can see which var = which value?
ah, magic then?
user1804599
They may be inlined.
Decompiler doesn't know which static data is the important static data you absolutely want to see
Esp that you're using a fucking C mode that doesn't know anything about C++
yeah tell you what, I compiled it using C
same.
Which would help because the heuristics for e.g. iostreams shit would exclude a lot of the stuff you're seeing
01:48
yeah, and <iostream> is a C library
...except it isn't
Decompiling is hard is what I'm saying
replaced with #include <stdio.h>
That your source is trivial
Doesn't mean it's trivial to decompile
@EtiennedeMartel understandable error; that clearly needed to be n'existe instead of s'existe o.O
01:48
Even if you use the right everything
int __cdecl sub_411253()
{
return printf(Format);
}
You have to be able to dig through unrecognised external data too
Ell
Ell
That code may as well be assembly
user1804599
Ugh, no monospace code. This isn't the C# room.
lines 24 and 154, my whole program decompiled.
01:49
cf
16 mins ago, by Cat Plus Plus
@Gizmo You're expecting easy answers from a very advanced tool aimed at professional reverse engineers
Now, the guy reading the decomiled source won't know in his WHOLE lifetime what it's supposed to output...
Also read the goddamn manual already
I bet there's a chapter about static data you know should be included
Ell
Ell
@Gizmo it sounds like your in over your head. Have you studied reverse engineering stuff before?
@Gizmo Yes, welcome to fucking reveng
Ell
Ell
I need to resume designing the perfect Linux distro
01:50
@Ell if you mean by "Study" attend to college on a RE course- no.
Ell
Ell
I just mean read, research
@Gizmo nice coding style.
talk to the powerful wizards of the land, etc
I edit (crack?) apps from time to time for fun (for 4 years straight), so I know how to do my stuff in ollydbg, now I wanted to see if this could actually help me (producing a C file from assembly code)
Ell
Ell
Isn't ollydbg a debugger?
01:54
yeah I do debugging alot, to study application logic and edit it, but producing a C file to understand the application logic faster won't probably happen.
@CatPlusPlus Yet there was something that called itself a decompiler that did pretty much exactly that. Actually, it was a bit worse than that: most of it used a very limited set of variables named eax, ebx, ecx, edx, esi, edi, esp and ebp, each of which was a union of int, int *, char *, and so on. Yeah, it was basically just translating assembly language into C syntax, with no attempt at actual C-style code at all.
@EtiennedeMartel Repost :-)
@JerryCoffin Damn.

« first day (1512 days earlier)      last day (3663 days later) »