« first day (1322 days earlier)      last day (3642 days later) » 

4:02 PM
Beer - 4 hours and counting...
 
@R.MartinhoFernandes but not running modern day memory-intensive applications like chrome
 
> Hi Jeffrey,

I noticed you have done some contributions on Github, so I´m getting in touch to find out whether you have a strong interest in PHP and the open-source community?
 
user1804599
lol
 
user1804599
One F is missing.
 
how about no :D?
 
4:08 PM
They are these guys: rocket-internet.de
 
no actual rockets
 
son i'm disappoint
 
The logo looks a bit like KSP.
 
If it wasn't for "consider a permanent position in Berlin", I'd actually give it a try. Mainly because I need money and I need experience.
 
user1804599
 
4:10 PM
@Jefffrey You need money and experience? Try prostitution!
 
:lol: x2
experience in the programming field, silly
 
that's not what you said! :)
 
@ScarletAmaranth That's not a permanent position in Berlin, no matter what the pimps tell you.
 
but yeah, working with PHP is the prostitution of our field
"know their way around frameworks such as Zend" -- lolno, I'm not crazy
 
hi
 
4:15 PM
> But the language he uses – including the world “blitzkrieg” – indicates an aggressive and potentially insensitive management style which appears to be a ‘modus operandi’ of Rocket Internet culture.
 
god i'm bored
@Jefffrey So, "business".
 
Banana Split badge:
http://meta.stackoverflow.com/questions/256789/introducing-the-controversy-badge-formerly-banana-split
 
good one
 
user1804599
Yeah, someone should change it from C# to PHP — PeterJ 4 hours ago
 
it should get the thread in the front
otherwise, anyway, horde bike pwned.
 
user1804599
4:23 PM
in portuguese is not cleary this irony. I understood the purpose of the ad, I'm here to discuss how this can be offensive to people who do not understand — Lucas Abilidebob 2 hours ago
 
user1804599
lol, what an idiot.
 
user1804599
@BartekBanachewicz dat vehicle
 
wow - nice rendering
 
@rightfold hell yeah
what rendering
 
Bike's
 
user1804599
4:25 PM
The shadow.
 
"For the Horde"
 
it's real.
 
@MartinJames I vote in favour. This badge should also be a banana icon not a medal one
 
it's a real riding machine
 
I never seen it in such detail...
hold on a minute
 
user1804599
4:25 PM
dammit I wish I were there this weekend :< fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/…
 
What do you mean by "real"?
Like someone built it?
 
@MeIr yes exactly that
 
Very cool!
 
there's an alliance one too
 
@MeIr I wonder if it's any good on snow?
 
4:27 PM
ummmmm.... probably not very good
Here is argument:
Problem is a front tire that is an actual tire
So it will sink into deep snow
Back is fine thou!
 
@MeIr well then
 
Here is it - much better
This one is also real?
 
of course
 
@BartekBanachewicz Neither machine looks very pedestrian-friendly:)
 
Man people have time to do stuff...
 
4:32 PM
@MeIr they are paid for that you know
 
Any other cool stuff?
How much?
 
Isn't kind an old news?
 
@MeIr i guess a lot
 
user3010322
4:35 PM
Uh oh.
 
user3010322
If I'm going to fix this bug report, I think I need function traits... =/
 
@rightfold uh
and how are you supposed to do that, again?
 
user1804599
Using quantum entanglement they say.
 
user1804599
I don’t know shit about it, so don’t ask me.
 
that tells me exactly nothing
imagine a pair of gloves
i take it and put into two boxes
 
user1804599
4:37 PM
Ask the guys at TU Delft. vOv
 
you take one box and ride away from me
you don't know which one you have
then you open it a thousand km from me
if you have the right one, i have the left one
woah
that's quantum entanglement
 
user1804599
You cannot teleport something that way.
 
lol new concept for the Internet
 
user1804599
I cannot mutate my glove and affect yours.
 
user1804599
4:38 PM
So you are wrong at what quantum entanglement is.
 
Tell me
 
well it's different in one way
 
more
 
Yes you can
 
it's not determinate which one do you have until you open the box
 
4:38 PM
@rightfold look up delayed choice quantum eraser.
 
we know that with regular gloves it's left or right
but with quantum state, it's the superposition of both
 
sweet
 
user1804599
@BartekBanachewicz What happens when I observe my glove?
 
This cannot power the Internet because it's intrinsically single-use. Once you determine a state, it's over.
 
@rightfold it becomes either left or right
 
4:41 PM
"... and it is GONE..."
 
Are you fucking serious. You make me manually insert all these and these tuples?
 
user1804599
@BartekBanachewicz what happens to your glove when I observe mine?
 
wtf
 
wtf what?
 
Ok, still have 7 km to cycle today. Later.
 
user1804599
4:43 PM
@R.MartinhoFernandes Not if all what’s given is what Bartek has just said.
 
@rightfold well, I gave an analogy
 
user3010322
There's an std:: function to walk n places of an iterator, no?
 
user1804599
I prefer anal orgy.
 
@ThePhD std::next
@rightfold I guess so.
 
Hi, folks. How can I get a mangled name of a function, that is a pointer looks at?
I mean: int foo(int) {return 0;} int (*p)(int) = foo; getMangledName(p);
How would you implement
std::string getMangledName (void*) ?
 
4:47 PM
@Necto why the hell would you need that?
 
What? You mean from the debug info?
 
Yes, probably
Because later I want to link some binary file with this function
 
woah
that's so not working
 
user1804599
@Necto look up dladdr.
 
@rightfold , that's a good start, thank you
 
4:51 PM
@Necto You can't.
random function pointers do not have to point at named functions at all
they point at random bits of executable memory.
 
@DeadMG Yep. But mine will
 
so what?
 
I won't examine a random pointer
 
the pointer does not contain or point at the data you need.
 
Why not?
 
4:53 PM
because it's not required for the correct operation of the program, and compiler vendors can produce smaller/faster binaries by not putting it there.
 
Right, but I run compiler with a debug flag
 
what the hell kind of program can only work when compiled in debug mode by design?
 
Actually I try to make a quite complicated system
 
user1804599
Don’t make complicated systems.
 
user1804599
Make simple ones.
 
4:55 PM
@DeadMG Well, actually.... :)
 
fixed.
 
@DeadMG lol!
 
user1804599
@MartinJames lel :P
 
Why do emulators need Hyper-V?
 
Some large framework has an API, that it registers to scripting engine
I want to substitute the engine by my binary, that will call the registred callbacks way faster
It is going to be accomplished in two passes:
1) dump all function names during a registration by linking a special stub instead of the engine
2) compile my module with the dumped info, and then link it seamless with the framework
 
4:58 PM
@DemCodeLines because it allows running native code safely
 
ok, I'm still not sure what you're trying to do here
you have a very large framework, written in native code, and it uses a scripting engine- dynamically linked?
 
@DeadMG I suspect it will turn out badly:(
 
recommend horror games ITT
 
no, statically
 
non-shooting preferred
 
5:01 PM
right.
so
 
But the framework sources are in my disposal
 
you cut out the scripting engine and re-implement the API, right?
 
Yes
 
then rebuild the framework.
okay.
 
Right
 
5:02 PM
OK - it must be warm in UK now - the pile of choc-ice boxes in my office is higher than the pizza boxes.
 
@Necto So the scripting engine API takes function pointers as callbacks, right?
 
@DeadMG yep
 
right.
and what is it that you want to achieve with these function pointers?
I mean, what is your end goal here
 
I want to compile the script, and link it instead of the interpreter
 
ok
are we talking AOT or JIT?
 
5:04 PM
@DeadMG AOT
 
ok
this seems a little fishy to me since the framework will be expecting the script to be interpreted, right?
 
@DeadMG What do you mean it "will be expecting"?
 
well, the framework will be coded on the assumption that the scripts will be loaded and interpreted at run-time.
 
Right
 
right.
 
5:06 PM
It makes no difference, except the load and response time
 
so you have a scripting API that takes function pointers and instead, you want to make AOT statically compiled calls to the argument.
 
Yes, I do
 
well, it's impossible.
 
Why?
 
simple
imagine that this is the source code of your framework
int main() { script_engine s; s.register_function("foo", &foo); s.call_script_function("bar"); }.
pretty simple
but imagine what if it's like this
int main(int argc, char** argv) { script_engine s; s.register_function("foo", argc == 2 ? &foo : &bar); s.call_script_function("bar"); }
what you gonna do now?
the function represented by foo in the script_engine is not determined until runtime.
 
5:10 PM
I can see where this is going. The debug info has only offsets 'cos it hasn't been loaded/relocated yet.
 
@MartinJames No, it's a totally impossible requires-solving-halting-problem thing.
 
Ok,
1) Such cases I could handle dynamically
2) There no such cases in my framework
 
ok
so, wait
you have a large framework and you checked the whole source code that the functions exposed to the script can never, ever change in any run-time scenario?
 
The above point is good. But yeah, I checked the whole source. It's not that large at the end
 
ok
 
5:13 PM
Probably I can't handle that at runtime. Just if there was such tough use, I wouldn't use this scheme
 
so when you check the source, just make a list of all the register_function calls you see, see what function is passed in, use that.
profit.
or you might be better advised to write a tool based on Clang or something to determine it
 
Why is use of debug info worse?
 
because then you can never compile in release.
and debug info is notoriously inaccurate if you're not actually running under the debugger.
and it ties you to a particular platform in a really hardcore way.
and parsing debug info is a fucking bitch.
 
The second pass could be done with debug info cut off
 
nah, too late.
what I say is, write a tool based on Clang that can find the register_function calls
it is easy to ask Clang for the mangled name of the second argument.
then you can AOT determine their mangled names, regardless of any debug info
and you can easily update the mappings when the source changes because you just re-run the tool
and you can be warned in advance if there's ever a conditional call to the function
but
I warn you that determining AOT which functions will be called is solving the Halting Problem- i.e., impossible, so you can make educated guesses but it's impossible to prove for sure, so I'd be cautious about depending on this, it would probably be better to JIT the script at run-time with the function pointers given, accuracy is guaranteed
 
5:20 PM
I have realized that Microsoft's Visual Studio is actually the best IDE out there. And by a large margin.
3
 
@DeadMG Heh - debug info is notoriously inaccurate if you are actually running under the debugger:)
 
what's amazing is that that's true despite the fact that it's incredibly shit.
 
On the last comment: I could leave a checker comparing the actual function addresses and the guessed ones during the registrations
 
yes, at least you would know at run-time if you made the right guess for that execution
there would be nothing you could do if the guess was wrong, though, except terminate the program maybe.
but I think that rolling a tool based on Clang is by far the easiest and most reliable option in all regards- assuming that you're set against JITting the script, which would easily solve the problem.
 
thank you, @DeadMG , I'll surely read up on Clang
 
5:24 PM
or you could guess AOT and if the guess is wrong, then JIT or interpret the script as usual as a fallback.
@Necto It's C++-compiler-as-a-library, so you write a bit of code, pass it the files you want, and you can search the AST, for example, and find all calls to register_function, and such like things. I assume that your framework is written in C++ or you wouldn't be here asking about mangled names
 
-6
Q: MySQL stores 0.00 as 0?

RaviHow can we store 0.00 as a float value? The number of decimal places for the column have been set to 2. The column is of float datatype. Whenever I try to insert 0.00, it automatically converts 0.00 to 0.

 
@LightnessRacesinOrbit Someone has failed his Basic Math 101.
 
my mum became a competent android user in a very brief time, and she's never asking me for help
if I tell her how to do something she's like "gtfo kid my phone my rules"
in contrast, after 5 years, my grandma still has no idea how to change the time on her nokia 1120
 
5:36 PM
@DeadMG I just realized, that Clang can't determine the callback's full name, because, it is kind of generated at runtime. The full name is the function name + a class host's the function
 
it's all about the 3210
my 5110 was pretty good, too
 
back when I was 10 or something I really wanted the 6610i
but the guy working at the store persuaded me into buying the much more superior SE K500i instead
when I loaded up that semi-3D splinter cell pandora tomorrow I was like :O
then I took it to school and everyone was like :O
 
@Necto If you can't determine the full name of the callback statically, how could you possibly resolve calls to the name statically to the target you want?
 
I'll compile the script, and Clang will compile the framework
 
> more superior
 
5:41 PM
My compiler can deduce type information, and select a right method from a right class
 
@Alex My Sharp GX10 was great. First non-Nokia phone (IIRC)
Then the GX15, which was also excellent. I have it here somewhere, actually
Following that, T-Mobile MDA Vario (and I had this wonderful thing for about four years) then decided to try Android with the T-Mobile Pulse. I had problems with that so borrowed a Nokia N95 for a while, then eventually got myself an HTC Desire HD, which I loved. Then, finally, the Nexus 4 I'm on now.... which is perfect. :)
 
But the full name of the registered callback is made through several calls, so it'd be a lot easear to have a runtime dumper
 
@LightnessRacesinOrbit never owned sharps
 
oh yeah
how were you possibly planning on compiling the script AOT by determining the mangled name at runtime?
 
my phones were: SE k500i, SE w810i, Nokia 5530, SE Xperia X8 and finally my current HTC One
also I just found a bone in my boneless KFC chicken strips
 
5:47 PM
at least you didn't find any chicken
 
and it was small enough to choke on it
this is fucking dangerous
 
living on the edge
 
KFC is disgusting anyway
I can't even smell that shit without practically puking my guts out
 
I sneezed on my KB and now the g, h, y keys are sorta sticking together.
 
protip: don't sneeze on KB
 
5:55 PM
@DeadMG I've got some q-tips on it.
 
neat stuff, Auchan starts its fifth beer festival in its supermarkets
when this happens they bring in over 300 different kinds of imported beer and sell it all
I hope my wallet can take it
 
@AlexM. Does sound like a terrible strain. I'm sure you'll muddle through somehow.
 
@DeadMG from time to time I feel like buying but right after I eat, the smell kind of makes me want to puke too
no idea why
@MartinJames I still haven't tried all of their usual import beers; I normally go and buy two different kinds each week
so you can tell how interested I am in this :D
 
@AlexM. I would help if I could:)
 

« first day (1322 days earlier)      last day (3642 days later) »