« first day (1539 days earlier)      last day (3414 days later) » 

user1804599
2:02 PM
It's obscure.
 
And it's on a fucking website specialised for "computers".
> The Voice of Business Technology
 
is it that bad?
my "tl;dr" comment was actually accurate
I can't be bothered to read that much
 
15
Q: make the meaning of /* for dereference and dividing not for commenting by adding some special character

InQusitiveI have a code like this: int quotient = 100/*ptr; where ptr is a pointer to interger. But it's taking /* as the comment. How can I make the meaning of divide by pointer dereference value? What extra special character I have to put to have this meaning?

rofl
 
PUT A SPACE THERE YOU TIT — Alec Teal 17 mins ago
lol
 
15 upvotes
18 upvotes for the answer
 
2:07 PM
snack overflow
 
You don't deserve 195 rep for this. — Alec Teal 18 mins ago
lol
the rep police
 
wow, that guy is so nice he would fit in here
 
How is the question off-topic?
 
Alec is so mad right now. — Alex M. 18 secs ago
whoops
I'm gonna get myself something to drink
 
user1804599
> This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting.
 
2:11 PM
@rightføld I have prepared an answer, and I want to post it, dammit!
 
user1804599
Become a moderator.
 
that guy should get 200 more rep from that answer
 
So, I watched Inglorious Basterds. And they all die in the end.
 
just to piss off alec
 
user1804599
I can confirm that the horizon is horizontal.
 
user1804599
2:12 PM
I see the horizon.
 
user1804599
The sea is very nice.
 
s/see/landscape/
@AlexM. upvoted
 
thx
 
user1804599
I need a gigawatt laser.
 
2:14 PM
@rightføld Only 2 more votes to reopen...
 
user1804599
I'll immediately vote to close.
 
Me too
 
Ell
Intuitively, is an unordered_map with fewer elements quicker to access?
 
Yes no maybe
 
Your mum is quicker to access
 
2:15 PM
doesn't umap use a hash table?
 
I'm sorry, I had to.
 
@rightføld At least give me a chance to post my funny answer!
@Jefffrey Come on guys...
 
user1804599
OK.
 
hash tables have constant access regardless of size except when collisions happen
then it depends
 
ok, but if it's not funny I'll downvote
:P
 
2:16 PM
but less items = less chance for collisions
so there's that
 
@Jefffrey Trust me, it's funny.
 
Ugh. EFI is supposed to be some kind of improvement but I can only feel the pain.
 
@FredOverflow You are building high expectations. You know how these things go...
 
get hyped for Fred's answer guys
 
Right, but it contains an expression I have never posted on SO before, and it looks very broken.
 
2:17 PM
"10/10 Best of E3" - Alex M.
trust me
 
"Best answer of 2015"
 
user1804599
@R.MartinhoFernandes What kind of pain? A baguette?
 
user1804599
Phantom baguette.
 
user1804599
Mental baguette.
 
The fuck is "EFI"
 
user1804599
2:18 PM
Chronic baguette.
 
user1804599
@Jefffrey BIOS++
 
the new kind of bios crap
 
oh, I think I used it
 
I don't understand how they work
I only use the bios to set up boot priority anyway
 
user1804599
@Jefffrey Virtually all of today's motherboards feature it.
 
2:19 PM
my robotitis is not allowing me to access the memories though
 
user1804599
robotits
 
Lounge<Robot's Tits>
do it
 
user1804599
inb4 room frozen
 
we just change the name and run away
 
hello guys, just want to share some humor!
checkout my answer.
http://stackoverflow.com/questions/27743021/incorrrect-output
 
2:21 PM
I can't checkout your answer, it's not a repo
 
user1804599
@user1 It's very bad humor. Please delete it.
 
@user1 You know you have to be 15+ to be on SO, right?
 
user1804599
Are you American by any chance?
 
user1804599
Americans are typically terrible at humor.
 
user1804599
Me gusta.
 
2:24 PM
u wot
 
@AlexM. Probably won't happen, question is still closed.
 
user1804599
Me gusta.
 
My eyelid keeps spasming out
 
user1804599
I don't want to vote to reopen.
 
I want Fred's answer
 
user1804599
2:25 PM
I cannot close it again if I do it.
 
wait what?
you cant?
since when?
 
just vote rightfold
 
user1804599
You cannot close what you have reopened.
 
user1804599
No, it should be closed.
 
if it's that bad
enough other people will vtc it
 
2:25 PM
yes you can
@FredOverflow Just post the answer here
 
coroutines are cool
 
I wonder if anyone will ask something like "Guys, how can I overload the comment operator (//)?"
 
lol
 
@AlexM. write your own preprocessor :P
 
@AlexM. #define // ...
does that work?
 
user1804599
2:28 PM
You cannot do that, you moron.
 
user1804599
// isn't an identifier.
 
user1804599
@StackedCrooked Stackful ones, to be exact.
 
calm down baguette
 
@rightføld yep, they are even cooler
the stackless ones are kinda lukewarm
 
@rightføld Does the macro engine even see the //, or is it immediately treated as a comment? :)
 
user1804599
2:29 PM
Comment.
 
can you not do a digraph trick or w/e
 
user1804599
Comments happen before preprocessing.
 
#define a 42 // lol
So a is replaced with 42, not with 42 // lol?
 
user1804599
Of course.
 
or were those trigraphs
 
user1804599
 
w/e n-graphs
 
user1804599
> If a universal character name (\uXXX (sic)) is formed on this phase, the behavior is undefined.
 
user1804599
This is so moronic. XD
 
@Jefffrey The answer is now on SO proper ;)
 
coroutines really give you the readability of sync and speed of async.
when used in boost asio
 
2:32 PM
@AlexM. There are no digraphs or trigraphs für /, I just checked.
 
int quotient = 100/0 [ptr];
thanks
 
user1804599
@StackedCrooked and the lack of duplicate interfaces
 
I'll show this to my colleagues
 
@AlexM. You're welcome ;)
 
user1804599
@StackedCrooked This is why I like Go, Erlang and GHC.
 
2:33 PM
@rightføld You can now vote to close.
 
user1804599
They do this for you implicitly.
 
there, you can vote to close after voting to reopen
 
user1804599
@FredOverflow lol your answer!
 
user1804599
@Jefffrey oh cool
 
@FredOverflow definitely good advice
 
user1804599
2:36 PM
[ and ] may be difficult to maintain for some people, so I suggest using <: and :> instead. — rightføld 6 secs ago
 
@rightføld LOL
Digraphs weren't deprecated/removed/whatever, were they?
 
user1804599
No.
 
no
 
you don't deprecate/remove/whatever smileys.
 
user1804599
2:38 PM
I like the ??!??! WTF operator.
 
user1804599
It would be nice if it behaved like || in JS or ?? in C#.
 
user1804599
So you could say foo ??!??! bar and it would return bar if foo was false after conversion to bool.
 
android.util.Log has a wtf(...) logging method
it stands for What a Terrible Failure but I'm pretty sure nobody reads it like that
 
user1804599
Perl has a goatse operator. See .
 
@rightføld How many more conversions to boolean does JS offer over C++?
 
user1804599
2:40 PM
@FredOverflow Let's see. Everything can be converted too boolean in JS.
 
Even, {} and []
[] == false IIRC
[1] == true or something
 
user1804599
> [!![], !!{}, !!true, !!0, !!'a', !!null, !!undefined, !!function(){}, !!window]
[true, true, true, false, true, false, false, true, true]
 
user1804599
Fun fact: typeof null === 'object' because of backwards compatibility with an ancient Netscape bug. null isn't an object at all.
 
Why is web programming so terrible?
 
null is not an object, null is cancer.
2
 
2:42 PM
lol @ function(){}
@Griwes amen to that
 
@FredOverflow Because it's a result of extensive duct taping.
 
user1804599
Fun fact: typeof new String('foo') !== 'string' && typeof 'foo' === 'string'
 
GTA 3 had good radio stations
 
user1804599
Fun fact: !('foo' instanceof String)
 
Can someone please kill JavaScript?
 
user1804599
2:44 PM
JavaScript's non-object types are so retarded.
 
@rightføld s/non-object types are//
 
user1804599
I wish JavaScript had multiple inheritance.
 
lol
Does it even have single inheritance?
 
user1804599
Yes.
 
user1804599
> function Base() {}
> function Derived() {}
> Derived.prototype = Object.create(Base.prototype);
Object {}
> new Derived() instanceof Base
true
 
2:46 PM
lol
 
Inheritance in JavaScript is weird.
 
I wish JavaScript had r-value references
 
I wish JavaScript didn't exist
 
lol what for?
 
user1804599
@FredOverflow It's not really weird.
 
2:47 PM
@Jefffrey What alternative do you envision? Java?
 
user1804599
What's weird is all the hoops you have to go through for super calls.
 
can't you just add anything you want to an object in JS whenever you want?
someObject.someNewFunction = function() { ... };
 
user1804599
You can.
 
@FredOverflow C
for extra fun
 
@Jefffrey C for portable web programming sounds like a really good idea!
 
2:49 PM
@AlexM. why would JS benefit from r-values?
 
Maybe assembly, then?
 
Something like Elm would be ok, I guess (yes, I know its based on JS)
 
Don't you just want value semantics?
 
@rightføld you can use ring.js it's a "workaround" for multiple inheritance.
 
@BenjaminGruenbaum He was probably being ironic.
 
2:49 PM
@BenjaminGruenbaum it wouldn't
that was the joke
 
@rightføld Object.assign, also you can create arbitrary chains.
 
user1804599
Does it work with instanceof?
 
@rightføld typeof is broken
 
user1804599
I know.
 
@rightføld lol
 
2:51 PM
The only reason to use typeof is typeof x === 'undefined' and having to do that is incredibly bad in most cases anyway.
In a language that relies on behavioral typing as a mental model it's bad to type check - the language also doesn't help you with anything like pattern matching.
 
I'm glad I don't do webdev
it looks scary
 
user1804599
@FredOverflow It's funny how it doesn't work with null: Unit = {}.
 
I'd like to be able to define functions and make them look like variables. X x; // actually X x();
 
@StackedCrooked I think you can, with typedefs
 
Never doing deallocation is best.
No problems :)
 
2:56 PM
Hm, no actually you can only declare them, not define them
 
@AndyProwl I wonder if that makes the compiler easier or more complex.
 
@FredOverflow No idea. Ask Puppy :)
 
@Griwes lol
 
lol i.imgur.com/9uZQM.jpg /cc @LightnessRacesinOrbit
 
@AlexM. that's so last year
 
2:58 PM
:(
 
@ShaU Yes, if you had to ask I do in fact think you are a fool. I don't see how that has to do much with anything here though. — Benjamin Gruenbaum 15 secs ago
 
(nah. probably not. probably so 2013, even
 
Too rude?
 
I got my cauliflower, but no cash:(
lol - anonymous downvoting on meta:
http://meta.stackoverflow.com/questions/281604/is-it-considered-good-etiquette-to-leave-a-comment-if-down-voting
 
user1804599
3:03 PM
I like how PHP allows the base class to access protected members of the derived class.
 
The common Lisp indenting is literally Hitler
 
in Java, 5 mins ago, by ShaU
I was annoyed at that time
^ this guy?
 
@Jefffrey lol, didn't know he was there.
 
he is not the same person AFAIKS
 
Just one more delete vote for that horrible question and this guy is gone.
@Jefffrey it's the same guy from meta.stackoverflow.com/questions/281585
Haha
 
3:08 PM
@CatPlusPlus Heil Lisper!
 
@BenjaminGruenbaum I started liking Hitler from now on. — ShaU 1 min ago
lol
 
@ShaU Yes, if you had to ask I do in fact think you are a fool. I don't see how that has to do much with anything here though. — Benjamin Gruenbaum 12 mins ago
 
@FredOverflow lol
 
@LightnessRacesinOrbit do you want a question? (I have not checked for dupes)
 
3:12 PM
I hate minority OSes.
Now I have some stupid linking issues on Oracle Solaris 11.2 with GCC 4.8.2 using Sun ld and Sun as.
 
that's OSist
 
@FredOverflow Not sure if we'd appreciate it if another room dumped a C++ discussion here.
 
@StackedCrooked The Scala room was dead for 11 days. Also, @rightføld is the room founder, so :)
 
there's probably nobody in Scala to not appreciate it anyway
3
 
@FredOverflow Ok. In that case :D
 
3:15 PM
@StackedCrooked In case there's any doubt left, look at the "list" of room owners ;)
 
Yeah, I do have some doubt, so I'll have a look.
Ah.
 
it's a subset of the lounge
 
One of the design goals of the Scala room was to relocate Scala brainfarts from the Lounge.
@StackedCrooked lol
 
@FredOverflow That's the story of many rooms.
See Haskell, Functional, Lounge<KSP>, ...
 
@Jefffrey bin, trash, trash can... ;)
 
3:17 PM
the best lounge subroom was LRiO's room with that Sweedyk chick
 
@Jefffrey What is KSP? Koenig substitution principle?
 
Debian installer insists on asking me about my wireless network when 1) it has no wireless drivers available and 2) there's a network cable plugged in.
 
user1804599
@FredOverflow Kerbal Space Program
 
Is there a way to search TFS history for a string?
 
I select "Configure the clock" and it asks me for an ESSID.
 
3:20 PM
How do I force vim to increase indent level after (, {, [ and level closing ones because jesus christ it's doing stupid shit
 
lol, this is a Romanian celebrity who posted this picture on Facebook some time ago ziarulring.ro/arhiva/images/andreea(23).jpg
one of the deleted comments said
"You're lucky you were born beautiful, otherwise you'd now be eating beans."
 
set cindent?
 
I really can't argue with that statement
 
"Configure the network" asks for an ESSID too. It's like I can't install Debian with wires. WTF
 
@AlexM. Beans are incredibly healthy.
 
3:21 PM
I like beans
 
cindent doesn't help, I don't know what the fuck, lisp is off, no combination of ai/si/cindent does anything
god
 
user1804599
Use a better editor.
 
Like what
 
real common lispers use emacs
 
It's Clojure but whatever, like I'll be able to convince fucking Emacs to do things my way
 
3:32 PM
thanks. please give me complete code for searching in binary file use struct in turbo c. — mahdi.manian 2 hours ago
no, GTFO
 
user1804599
Vim works fine for Clojure for me.
 
user1804599
WRT indentation and other things as well.
 
I don't want the stupid ))))))) crap
2
 
@milleniumbug s/GTFO/Turbo GTFO/
))))))) is how you Lisp properly
 
user1804599
@CatPlusPlus Oh, I do.
 
3:33 PM
It's retarded fuck that shit
 
user1804599
It's pretty nice.
 
(define (simon-says difficulty)
  (let [(current-sequence (make-sequence difficulty))]
    (show-sequence current-sequence)
    (if (player-sequence-matches? current-sequence)
      (+ 1 (simon-says (+ difficulty 1)))
      0)))
look at that
beautiful
 
@CatPlusPlus You only want the (((?
 
user1804599
And pretty doable with rainbow parentheses and shortcuts for moving to the corresponding brackets.
 
when I write lisp I keep the )))s to a manageable amount like 3 or so
I don't write very often but...
this is the last thing I wrote
6
Q: Simon Says in Scheme

Alex M.Ok, it's not completely like Simon Says, since it's text-based. There is nothing about memorizing based on visual cues and/or sound here, just memorizing long sequences of numbers. I wanted to do it in the language I write the least code in, Scheme (w/ Chicken), and see what happens. (use posix)...

 
3:35 PM
I'd be set if readable.sourceforge.net was ported to Clojure
 
I split things when there's too many ))))s
 
@CatPlusPlus SublimeText
 
lol no
 
Notepad
 
3:48 PM
People are now recruiting me to pt.so via comments on my answers.
 
fuck js
 
fuck.js
 
fuck, it was my mistake...
oh well
 
I need to abstract out controls somehow so that I can map input actions to stuff that happens in the game
so that "attack" happens if any of: mouse click, controller button A was pressed, virtual button for touchscreens was pressed
the goal is to find a way to build controls so that no platform causes a downgrade for the others
 
what do you mean?
make them all as shit as the shitest input?
 
3:54 PM
nope
 
shittest?
shitiest?
shittiest?
most shite
 
N separate input methods, all of them sharing the same interface so to say
 
shitty -> shittier -> shittiest
 
with a nice editor window to ease the work
 
@AlexM. Have do_attack() registered as a handler in 3 input interfaces, done.
 
3:56 PM
basically a set of functionality (func1, func2, func3) and each platform provides its own way of doing GUI to reach that functionality
the way unity does this is pretty limited (i.e. you select the keys/buttons that must be pressed)
so there's no way for me to say that on PC an attack is triggered as... a key press, and on mobiles as a long touch on something
 
Queue messages from the various input sources to a state-machine. Done.
 
@Griwes yeah but I need to make a nice editor window for this
 
Make a 'command' structure with a function and a name in it.
Function does the thing, name is used for display purposes.
Then there's a map between inputs and commands somewhere.
 
damn WPF has some seriously shitty semantics
 
Reverse lookup may be useful too to display tutorial prompts.
 
3:59 PM
@R.MartinhoFernandes you wouldn't be suggesting a... pattern would you?
 
"Press <whatever the attack key is> to attack".
 

« first day (1539 days earlier)      last day (3414 days later) »