« first day (875 days earlier)      last day (4082 days later) » 

10:00 AM
~let's make an api that's in C++ ... except it's not~
 
You don't C the benefits!
 
Of the API.
 
which API. and which benefits
because honestly, that's a bad troll
DirectX and WinAPI are so bad it's not even funny
 
0
Q: Can't call functions needed for VBO implementation...not declared error

kalkinHi I want to use VBO in my native applicatoin for bb10 (C++). I want to call functions like glBindBufferARB. But It says glBindBufferARB was not declared in this scope I am using opengl-es 1.1. I can call `glBindBuffer' function though. EDIT: I included these header files #include <EGL/e...

@BartekBanachewicz ?
 
10:05 AM
1.1
sigh I don't have spec for that even downloaded, gimme sec
but 95% he uses an extension which isn't loaded properly
 
51
A: Why can't C++ be parsed with a LR(1) parser?

Rob WalkerThere is an interesting thread on Lambda the Ultimate that discusses the LALR grammar for C++. It includes a link to a PhD thesis that includes a discussion of C++ parsing, which states that: "C++ grammar is ambiguous, context-dependent and potentially requires infinite lookahead to res...

^ interesting
 
Basically, C++ is an asshole.
 
it's also the most awesome language here :3
 
user142019
False.
 
The wife that beats you, but you come back to it anyways.
 
10:10 AM
@Zoidberg Chart doesn't lie
 
user142019
People lie.
 
Because her sexual purrformance is great and she always knows how to rub you right, even at the lowest levels.
 
user142019
They don't know any better.
 
@BartekBanachewicz Zoidlang is not even on the chart.
 
@MartinJames Zoidlang is nonexistent
 
user142019
10:12 AM
If you deleted my percentages there is fraud in the game.
 
I didn't
I only corrected Wide rating because it was fucking up the chart
also, history of edits is public IIRC
 
@FredOverflow so what type of parser does C++ use then?
 
user142019
@TonyTheLion the impossible type.
 
Please reopen the bomb question
It's too awesome to be closed.
 
10:15 AM
@rubenvb 70?
70 upvotes for this???
 
And it fits perfectly with the 3 of the four points:
    a specific programming problem
    a software algorithm
    software tools commonly used by programmers
    practical, answerable problems that are unique to the programming profession
 
it's basic dynamic programming question
 
no it isn't Bartek
solve it then
anyway voted to reopen
 
@BartekBanachewicz it can be solved by simple maths as well...
I already voted last time, so I'm cockblocked.
 
I've reopened too
 
10:17 AM
There has to be something 'off' about a language whose compiler issues 12000 error messages before it realizes that maybe a semicolon was missing.
 
what the fuck?
 
lame compiler
 
who adds the homework tag to something?
 
@Rapptz where
 
that question
someone actually approved that edit because he's a <2k user
 
10:17 AM
I just removed it.
it's not homework.
 
@Rapptz Retagging doesn't need 2k.
 
@Mysticial Oh right.
I forgot :(
 
Yeah, something I was reminded of on Anime.SE where I have fewer privileges.
 
@Rapptz some retard from Iran
 
@rubenvb Why was the bomb closed anyway? It was an interesting algorithms puzzle and I enjoyed reading it, (though I had no better suggestions to those already posted).
 
10:19 AM
Someone should lock that question to "open".
 
no smurfs around
@ThiefMaster?
 
in C# Android Developer, 1 hour ago, by urveshpatel50
hey dnt worry give me your email id i will give you doc
Wtf....
 
This comment got my attention though:
This can be solved using a constraint optimization algorithm. Let's say the given matrix is A. Imagine a new matrix C where each entry denotes the number of bombs thrown there. We seek to minimize sum(c_ij) where for each c_ij, the sum of that item along with all its neighbors is greater than or equal to a_ij. So there are mn constraints and mn variables to assign. — darksky 5 hours ago
 
10:22 AM
I cn nly us de txtspeek
 
okey, let's have fun with ubuuuuntuu
now that's gonna be funny :/
 
Hm.
I kinda like the services my loader provides right now.
But it needs... ... more.
 
user142019
@rubenvb idiot, ban, problem solved.
 
user142019
Optionally skewer if he comes back.
 
@TonyTheLion I have never studied any C++ parsers, so I wouldn't know.
 
10:29 AM
hmmm ok
 
But I find it very interesting that even a * b; is ambiguous in C, and they didn't bother choosing a non-ambiguous syntax for pointers.
 
The bombing answers all think never bombing the perimeter is a good idea. I disagree
they all bomb the second to corner, but don't even consider the outer corner's direct neighbours.
wait
I haven't thought that through
 
@FredOverflow symbol table's enough.
 
@rubenvb ...obviously
 
ughh
i need another keyboard
and another mouse
 
user142019
10:32 AM
@FredOverflow what I find most confusing is that the syntax acts like * is part of the variable instead of the type. You see this with int* a, b, c;, function pointers, arrays…
 
@AndreiTita you're friendly.
 
@BartekBanachewicz is there a sc2 group for Lounge people or something?
 
@rubenvb Also, I'm not at all convinced that reducing the problem to 1D helps much.
 
@rubenvb Thank you.
 
@AndreiTita yes
 
10:33 AM
@Zoidberg Part of the expression, yeah. I think the C declarator syntax was a bad mistake. For example, int a[10]; implies that a[10] is an int. On the type level, indeed it is, but evaluating a[10] invokes undefined behavior :)
 
user142019
@FredOverflow type names uppercase, everything else lowercase. :^)
 
@MartinJames I agree with that. 2D is wildly different from 1D except for harmonic oscillators and infinite wells.
(sorry for the physics speek)
 
1
Q: A little category theory

MathematicalOrchidOne of the standard newbie Haskell questions is a remark isomorphic to "what the holy hell is a monad?!" The canonical answer to this question is infamously defined as "a monad is simply a monoid in the category of endofunctors, what's the problem?" Now obviously a monoid is simply any set beari...

dup?
 
@DeadMG Right, but wouldn't it be much cleaner if you could parse without a symbol table at hand? I guess nobody thought about tooling (IDEs and stuff requiring another parser) back in the days...
 
10:35 AM
@TonyTheLion Tony dabbling in category theory? :)
 
@Rapptz ARMA?
 
yes
 
@FredOverflow You have to have a symbol table for analysis/codegen anyway.
 
I've seen some pretty funny stuff in that game.
@BartekBanachewicz Mind if I join?
 
@AndreiTita want to do it now?
 
10:36 AM
@BartekBanachewicz Yeah, gimme 1 min to log on.
 
@DeadMG You don't need codegen in IDEs.
 
@FredOverflow I'd say more like a + 10 is an int*, which it is.
 
@rubenvb I would maybe start with a 3*3 matrix.
 
@FredOverflow They do need analysis, though.
 
@DeadMG I was talking about arrays, not pointers.
 
user142019
10:37 AM
int[10] a; would be much better syntax.
 
@Zoidberg Hello Java (well, kinda, without the 10).
 
@FredOverflow I know.
 
@DeadMG right :-/
 
..or 4*4
 
user142019
int^ a; for pointers would do.
 
10:38 AM
I would prefer @Zoidberg's syntax.
 
user142019
Or & or whatever.
 
For the arrays, that is.
 
@Zoidberg Still ambiguous.
@Zoidberg Also ambiguous.
 
user142019
@DeadMG how?
 
Oh shit, I've been bombed..
 
10:38 AM
template<typename T, size_t n> using c_array = T[n];
c_array<int, 10> a;
 
user142019
@DeadMG how?
 
user142019
^ has no meaning in C.
 
@Zoidberg typedef int x; x ^ a;
@Zoidberg Binary XOR.
 
user142019
Oh yeah right. Fuck.
 
pwnd
 
10:39 AM
it has exactly the same problem as *, and so does &.
you need a symbol which is not also a binary operator.
 
user142019
a$ x :)
 
What's an unused symbol in C?
@ ?
 
there are loads
 
int@ ?
 
@BartekBanachewicz Done.
 
10:39 AM
@FredOverflow no, I just wondered if those close votes are valid?
 
$, §, @, ~
 
% feels kinda weird.
 
@ThePhD You mean "unused", right?
 
But it's not better than @, really
 
@FredOverflow and C#.
 
10:40 AM
@rubenvb % is modulo.
 
@FredOverflow :3
 
@ThePhD @ and $ are awful
 
@Rapptz But they're hte only ones left. =/
 
user142019
I propose a🍌 b;.
 
10:40 AM
@Rapptz Practically every "Hello Java" also implies "Hello C#", with some exceptions ;)
 
good
because they're awful.
 
I'm found the Lounge group
 
int* is just fine
 
how about unicode arrow?
 
but can't seem to request to join it
 
user142019
10:40 AM
@Rapptz $ before every variable name!
 
what's the problem with int* @DeadMG?
 
I think int@ would be nice, though.
 
@TonyTheLion Context-sensitivity.
 
user142019
@TonyTheLion a*b; is ambiguous.
 
10:41 AM
no it's awful :(
 
I meant, @ is kind of like "At this Integer"
 
@DeadMG meh
 
Like "At its location"
It's kind of nice.
 
how about
 
I vote for U+25BA
 
10:41 AM
ptr<int>
 
@ThePhD @ is the address-of operator in Pascal :)
 
We could also do #int or int#
 
user142019
x™ y;
 
how about using PILE OF POO?
 
@Rapptz Shitty. :c
 
10:41 AM
@Rapptz template<typename T> using ptr = T*; So let's just add templates to C ;)
 
@ThePhD hash has meaning inside macro definitions.
 
@Rapptz That would work if template syntax wasn't even worse.
 
user142019
x` y;
 
@FredOverflow yeah I know
 
user142019
x! y;
 
10:42 AM
1
A: viewing scaladoc in eclipse

anand patelBut, then again, I'm drunk so I'm sorry if I'm am not understanding.

^^ lol
 
Then @ is the only unused symbol.
 
@rubenvb But not after the preprocessor has run.
 
@Zoidberg !=
 
also, # always has to come at the beginning in the preprocessor.
 
user142019
@ThePhD ?
 
10:42 AM
intptr a;
 
so it wouldn't actually be ambiguous to have token # token and #define.
 
user142019
x? y;
 
int►
 
@Zoidberg And binary ! I think.
 
How about *int a?
 
10:42 AM
@AndreiTita Bajtek #751
 
dammit. We have pointer symbols. Use them!
 
user142019
@ThePhD there is no binary ! you noob.
 
@Zoidberg Oh, well okay then.
 
@rubenvb Unicode symbols suck horrifically.
 
I like int! or int@
 
10:43 AM
int|
 
user142019
a: b;
 
@FredOverflow Don't actually know. Could be difficult.
@Rapptz Binary OR.
 
`int\`
damn it :(
so shitty it even fails on markdown
 
user142019
a// b;
 
int a*;
 
10:44 AM
because fuck dual boot
 
user142019
pointer to a b;
 
int_ptr
 
@BartekBanachewicz I bought an LG 23" by the way :)
 
> In mathematics, a category is an algebraic structure that comprises "objects" that are linked by "arrows".
sounds like a linked list to me :P
 
user142019
@FredOverflow eww.
 
10:44 AM
@FredOverflow ... Y
 
@BartekBanachewicz Because I can plug my Wii in :)
 
user142019
a&&&& b;
 
OOH
 
@FredOverflow Definitely could work.
 
int~
 
10:45 AM
there's no other grammatical production that could be have *;.
 
I like int~ ~~~
 
@FredOverflow ah, 16:9
 
user142019
*a b;
 
Also star that for 2xRazer Blackwidow
 
Oh wait it's an operator already.
God damnit. =[
 
user142019
10:45 AM
Dim a As Pointer To b
 
@ThePhD Not a binary one, though.
so it could be doable.
 
a ptr b
 
Then I really, really like ~
 
int ptr b
 
@Zoidberg Beware, the a&&&& b; syntax is already reserved for pqvalue-references in C++14.
 
10:46 AM
Tilde would be awesome.
 
make a ptr keyword
 
user142019
@FredOverflow lolwot
 
@BartekBanachewicz Chiller#2442 ... did my friend request not come through yet?
 
@Zoidberg He routinely makes shit up about C++14.
 
user142019
a** b;
 
10:46 AM
@Rapptz int~ <--- you like?
 
@AndreiTita are you on EU?
 
no
 
=[
 
@BartekBanachewicz Yes.
 
YOU'RE NEVER HAPPY WITH WHAT I GIVE YOU ;~;
 
10:47 AM
it's already a unary operator
 
user142019
I thought about something similar to CoffeeScript but for C++.
 
@Zoidberg int* b; int a;
@Rapptz ~ is not a binary operator.
there's no such thing as x ~ y.
 
@AndreiTita that's fucking weird
 
user142019
@DeadMG Longest token.
 
user142019
** is one token.
 
10:47 AM
@DeadMG oops.
 
@AndreiTita I can't add you
 
In my language,
 
@Zoidberg Since when?
 
@BartekBanachewicz Ok I'll check if I'm really on eu.
 
int~ will be a pointer.
 
user142019
10:48 AM
@FredOverflow since I introduced a** b; syntax for declaring pointers.
 
user142019
So, a minute ago or so.
 
Could you please actually try it before answering, it's really not helpful. Anyway, it has nothing to do with the constructor either (you can confirm this by simply deleting the constructors). What I'm using as a key is just a pointer --just like the example in the documentation does. — John Smith 1 min ago
OMG what a fucking asshole
 
@AndreiTita ...
 
user142019
Use int& and bit_and instead of binary &. :v
 
b: Pointer[a] if Scala had pointers :)
 
10:50 AM
@TonyTheLion He got my downvote.
 
user142019
@FredOverflow can't you use JNI to implement that?
 
@BartekBanachewicz So how do I do that?
 
@rubenvb I spent half hour trying to answer and then he gives me lip
what a dick
 
@AndreiTita you should be able to choose region while logging in
 
10:50 AM
In unsafe C#, int* p1, p2, p3; declares three pointers. Interesting.
 
@TonyTheLion his epenis is too big for his own good. We can take it away from him by downvoting!
 
@FredOverflow So I think I'm keeping int~ as the pointer type. What about a reference, now?
 
user142019
@FredOverflow like a sane language.
 
@Zoidberg The J in JNI stands for Java. I'm not gonna touch that ;)
 
10:51 AM
Maybe int! a ?
 
@ThePhD Are you designing your own language?
 
@TonyTheLion He absolutely is undeserving of your help.
 
user142019
Ptr Int
 
user142019
Haskell wins again.
 
but he's also right- the constructor has nothing to do with it.
 
10:52 AM
@ThePhD you don't strictly need pointers and references...
 
@FredOverflow Everytime people bring up language discussion, I internalize and think about what a "Clean C++" would look like.
Or what my ideal language would look like.
 
@rubenvb but references are nice
 
I write these things down.
 
I think you should, considering that you miserably failed in doing so. — John Smith 34 secs ago
holy shit
 
whilst formally, it is indeed UB, in reality, it won't make a difference.
 
10:52 AM
Fuck him
 
smug overload lol
 
@ThePhD C# uses ref int i syntax, which I find very nice.
 
I feel like voting to close as too localised
 
@FredOverflow I often find that wordy, and confusing when they throw in the word out too.
 
@Rapptz I'll back you.
 
10:53 AM
I wish it was just ref, period.
 
@AndreiTita so?
 
@FredOverflow Though, prefixing ref would also solve the issue in my head of int~& (reference of a pointer to int).
 
@BartekBanachewicz Yeah, it defaulted to americas for some reason. My bad.
 
2
Q: Could operator overloading have worked without references?

FredOverflowAccording to Bjarne Stroustrup, references were introduced into C++ to support operator overloading: References were introduced primarily to support operator overloading. C passes every function argument by value, and where passing an object by value would be inefficient or inappropriat...

 
@Rapptz well I already voted to close.
 
10:54 AM
It looks much cleaner to say: ref int~
 
same
 
@BartekBanachewicz I should be on Europe now.
 
@FredOverflow I'm not talking about strict C++ semantics. I mean in general. I don't think both are strictly necessary.
 
@FredOverflow Eh, passing everything by pointers means you must always check for null.
 
10:56 AM
And I have no fundamental argumentation to back that statement.
 
References usually trap and guarantee that you're not dealing with null, unless you specifically deference a null pointer.
 
it's safer as a result
 
@rubenvb Well, C# also has both, but they were sane enough to restrict references to parameters :)
@ThePhD null checks are for sissies.
 
s/sissies/debug build
Though I guess debug build isn't as manly as release :3
 
@DeadMG So having made that struct a POD, what the hell is the problem then?
besides OP being a total dick
 
user142019
10:58 AM
@ThePhD uh no.
 
user142019
You just document null as UB if it's not a valid option. And you don't pass it to functions documented as such.
 
I can call glBindBuffer fine. But I cant and wanto call glBindBufferARB function and other like this to implement VBO. Thanks. — kalkin 27 mins ago
@TonyTheLion ^ sigh
that's what I get for helping those retards.
 
:( sorry
 
@TonyTheLion Dunno, I'm sure not gonna help him now.
 
np, not your fault.
 
10:59 AM
@Zoidberg For example, strlen(nullptr) is UB, isn't it?
 
user142019
@FredOverflow yes. Which is why you don't ever do it.
 
@DeadMG ok, well, at least I learned that the POD type requirement is not to be ignored. Especially with malloc involved :P
 
@Zoidberg And I never had a problem with that in practice.
 

« first day (875 days earlier)      last day (4082 days later) »