« first day (1099 days earlier)      last day (3840 days later) » 

1:00 PM
and when doing crypto it's basically a godsend: gist.github.com/nightcracker/d9afde1973d120f495da
 
Right, I stand by what I said.
 
user1804599
Use a loop.
 
@not-rightfold Please, do tell me how
 
user1804599
Store the __m128is in a structure you can loop over.
 
user1804599
Also eww C-style casts.
 
1:03 PM
it's C
 
user1804599
Oh, it’s C. Nevermind.
 
what do you expect
but looping over structures is a no-no
 
user1804599
Write a function or a macro.
 
passing these arguments over a function is a no-no
 
user1804599
The compiler will inline it. vOv
 
1:04 PM
yeah, no
been there, done that, the t-shirt was on fucking fire
besides, I'm not sure how a function would help compressing anything here
 
@not-rightfold Infinite SublimeText Einstein!
 
user1804599
@FredOverflow lol:P
 
user1804599
@nightcracker Line 8 through 21 does the same thing thrice except on different variables.
 
user1804599
Duplicate code => function.
 
and there we go again
4 return values = impossible
meaning we have to go through pointers
meaning the compiler will fuck up all optimization
 
user1804599
1:09 PM
delete temp;
free(temp);
 
user1804599
Fail.
 
@not-rightfold Who wrote this?
 
user1804599
0
Q: Writing a delete algorithm in an ordered linked list

Larry T.I am trying to write a delete algorithm for an ordered linked list. Search and traverse I think I have down but delete is giving me fits. It crashes every time. Any help is greatly appreciated! I have a private pointer to a ListNode strcuture called head in my TestLL class. The ListNode structu...

 
user1804599
This guy.
 
"delete is giving me fits. It crashes every time"
 
1:14 PM
if (0 != p)
{
    delete p;
    p = 0;
    free(p);
    p = 0;
    p = (void*)&p;
    *p = 0;
    // Just to be sure!
}
 
@FredOverflow Can you add two items at a time to a list comprehension in haskell?
One item being always constant
 
user1804599
[ 42 + x | x <- xs ]?
 
http://gcc.godbolt.org/#{%22version%22%3A3%2C%22filterAsm%22%3A{%22labels%22%3Atrue%2C%22directives%22%3Atrue%2C%22commentOnly%22%3Atrue}%2C%22compilers%22%3A[{%22source%22%3A%22%23include%20%3Cemmintrin.h%3E\n\n%23define%20ORLEIN_ROUND%28...%29\n%23define%20ROTV1%28x%29%20%28x%29\n\nvoid%20orlein_3gamma_sse%28unsigned%20char%20*out_0%2C%20const%20unsigned%20char%20*s_0%2C%20const%20unsigned%20char%20*p_0%2C\nunsigned%20char%20*out_1%2C%20const%20unsigned%20char%20*s_1%2C%20const%20unsigned%20char%20*p_1%2C\nunsigned%20char%20*out_2%2C%20const%20unsigned%20char%20*s_2%2C%20const%20unsigned%
Where's my cookie?
(Gosh, those links are ginormous)
 
user1804599
@R.MartinhoFernandes nom nom nom.
 
@GamesBrainiac Not sure what you mean, flatten [[42, x] | x <- xs] maybe?
 
1:18 PM
@not-rightfold Take a look at the following python code:
mystring = 'ABCELKJSDLHFWEHSJDHFKHIUEHFSDF'
print [item for x in mystring for item in ['^', x]]
You need to use two for loops in order to add a constant character to the list.
 
What is the result of that example? I don't speak Python.
 
@FredOverflow I need to run that.
@FredOverflow Well, I can't paste the question, Dead will kill me :P
 
I want you to paste the OUTPUT.
 
['^', 'A', '^', 'B', '^', 'C', '^', 'E', '^', 'L', '^', 'K', '^', 'J', '^', 'S', '^', 'D', '^', 'L', '^', 'H', '^', 'F', '^', 'W', '^', 'E', '^', 'H', '^', 'S', '^', 'J', '^', 'D', '^', 'H', '^', 'F', '^', 'K', '^', 'H', '^', 'I', '^', 'U', '^', 'E', '^', 'H', '^', 'F', '^', 'S', '^', 'D', '^', 'F']
 
user1804599
concat [ ['^', x] | x <- mystring ]?
 
1:20 PM
@GamesBrainiac Wait, what lowercased things?
 
@not-rightfold Oh right, flatten is called concat in Haskell :)
 
do { x <- xs; ['^', x] } (ideone.com/kYbSDz)
 
@R.MartinhoFernandes Sorry, my mistake.
@not-rightfold Thats really cool.
 
Prelude> "hello world" >>= ('^':) . (:[])
"^h^e^l^l^o^ ^w^o^r^l^d"
There you go. And I didn't even need to consult with lambdabot!
 
lol
Hmm, arrite. Haskell kicked Python's but in this.
 
1:24 PM
holy fuck. I looked at the compiler output here and thought that coliru started to write errors in Russian. Then I looked at the code :)
 
I cant believe something so simple requires imports and all kinds of shit in python
 
user1804599
'^' : intersperse '^' mystring
 
Silly me, (:[]) is return, in case you find that more readable:
Prelude> "hello world" >>= ('^':).return
"^h^e^l^l^o^ ^w^o^r^l^d"
@not-rightfold Wow, that's almost readable Haskell code!
 
Arrite, I'm gna learn Haskell.
Really well this time.
 
1:28 PM
@GamesBrainiac for great good!
 
@FredOverflow Learn You A Haskell For Great Good :P
 
That was the point. Excellent book. Have it in dead tree form.
Someday, I'm gonna write a non-trivial Haskell program that does something useful.
5
 
That must be the most common statement about Haskell.
 
@R.MartinhoFernandes did you already write some?
 
1:31 PM
I wrote a compiler and a theorem prover.
 
@R.MartinhoFernandes You're a robot.
 
@R.MartinhoFernandes what compiler?
 
@R.MartinhoFernandes is it really non-trivial?
 
Is it trivial?
 
What is the meaning of life?
 
1:32 PM
dunno. some compilers are trivial
 
brainfuck is pretty trivial
 
Brainfuck is the meaning of life
 
@rubenvb For some made-up language we made up in Language Processing class.
 
hi
 
@Abyx And some theorem provers are?
 
1:34 PM
@rubenvb He probably made a calculator :P
 
@R.MartinhoFernandes oh academic.
@GamesBrainiac lol
 
@R.MartinhoFernandes dunno, I never wrote one and have no I idea how they work
 
Sounds like non-trivial to me.
 
I tried to write a Physics problems solver, and it was trivial - just a search on graph of formulas.
 
I once wrote a brute-force boolean expression simplification program in Haskell.
 
1:37 PM
@FredOverflow I use an IDE for that.
 
@Abyx You can't write a physics problem solver just like that. Physics problems are expressed in words. And concepts.
 
Where's the fun in that?
 
@rubenvb Physics problems are expressed in whatever way the people expressing them expresses them.
3
WTF
 
which is mostly words.
Once you have the formulae it's a "piece of cake".
Well, at least you're halfway.
 
Just, sigh.
 
1:39 PM
@rubenvb well, problems in textbooks can be converted in formal form, like "given A and B find C"
 
@Abyx those are the stupid kind of physics problems.
 
...so you you just find a chain of formulas from A and B to C
@rubenvb yep.
s/textbook/problem book/ probably (dunno if it's the right word)
 
@rubenvb Or, I don't know, hand signs.
Physics problems are not related to the way they are communicated.
(And you can even s/physics//i because game development is not special)
 
I wasn't talking about game physics. Sheesh :-)
 
usually physics related to game development are taught in high schools
 
1:43 PM
bunch of seriousos
 
@rubenvb Me neither.
 
it is not like you need formulas for special relativity in your games
 
I was just dropping a gratuitous reference to "gamedev exceptionalism" to insinuate that there's no "physics problem exceptionalism".
 
I'm bored. I'm gonna go browse the gamedev.net forums.
 
1:57 PM
> I've been game developing for around 3 years now and most of my games, I give up on since they seem hard to code because of a lack of structure. I've always wondered how to write games in a way that it is easy to read and object oriented so that I can easily get and set a players health. lol
 
user1804599
lol
 
> the best thing I done was learning how to use UML and (way harder) learning to always use UML
good god
 
user1804599
lol UML
 
@FredOverflow Now that's certainly disturbing (not to mention "disturbed").
 
@not-rightfold UMLOL
 
user1804599
2:01 PM
@FredOverflow You know what’s the opposite of UML?
 
@not-rightfold Productivity?
2
 
user1804599
Lack of UML.
 
You guys are saying the same thing.
 
user1804599
You know what’s the opposite of saying the same thing?
 
user1804599
Not saying the same thing.
 
2:05 PM
room topic changed to Lounge<C++>: You know what's the opposite of Belgium? Belgium. [c++] [c++11] [c++1y] [no-questions]
 
user1804599
lol
 
Why would somebody learn algorithms and recursion and Design Patterns, but not build anything with it?
 
user1804599
lol
 
user1804599
Maybe he has written libraries.
 
nah
 
2:12 PM
@FredOverflow Because they're in a university. They need to pass exams, thats it.
 
^
 
Morning.
 
> Suspected U.S. drones fired two missiles into a Pakistani region regarded as a safe haven for al Qaeda and Taliban militants, killing at least five insurgents, residents and an intelligence official said.
What did he say??
 
> "coursea.org"
 
@sehe applicatin, robert sedgeiwck, realy...
 
user1804599
2:15 PM
> c++ YOUTUBE
 
@GamesBrainiac what IDE simplifies your boolean expressions? (I know R# has some things in this area (and I've spotted a bug in the condition splitting, once too)
@FredOverflow oh, I just scanned to my first wtf)
 
user1804599
()
 
So many distractions Family needs a mute and snooze button
 
user1804599
So many abstractions.
 
What is the point of a splash screen?
 
2:17 PM
brand awareness
 
user1804599
Making the marketing department happy.
 
user1804599
(i.e. nothing)
 
Hrm. Wouldn't you already know who made it?
 
no
 
I don't suddenly forget who makes Visual Studio.
 
user1804599
2:18 PM
If your program has a splash screen, it’s already too slow.
 
user1804599
If your program needs a splash screen, it’s way too slow.
 
That seems to be what it indicates.
 
@Pawnguy7 The same as the "click here to enter website" homepage.
 
user1804599
I want the program there usable immediately after clicking/double clicking its icon.
 
user1804599
Otherwise it’s crap and slow.
 
2:19 PM
@FredOverflow I cannot say I have seen that.
 
user1804599
Add music to the splash screen.
 
Subtract splash screen from the music.
 
user1804599
Have it waste clock cycles and bandwidth loading both a splash screen and audio.
 
I feel I would find that more annoying.
 
@sehe PyCharm and IntelliJ
 
2:22 PM
> I have a java book but it's mostly on C++ and only the last chapter is on java. lol
 
user1804599
> I'd stick with Java for at least a year and then learn C++ as well.
 
user1804599
Even more C++ noobs with Java-infected minds! :c
 
user1804599
in Java Sucks, 9 secs ago, by not-rightfold
room topic changed to Java Sucks: Enter here to cleanse your Java-infected mind. [boilerplate] [checked-exceptions] [design-patterns] [erased-generics] [inheritance-hierarchies] [jar-of-bloody-eye-balls] [java]
 
@not-rightfold this precisely the thing for you, I think: namethatblue.com
 
user1804599
:D
 
user1804599
2:26 PM
leuk
 
@FredOverflow that picture is so small
 
user1804599
@sehe Oh god that quiz is so easy.
 
10/11 so far ;_;
 
I don't know what most of them are.
 
18/20 ;_;
 
user1804599
2:28 PM
17/21 correct.
 
user1804599
Time to shit.
 
33/40, and I'll leave it at that
@not-rightfold That time of month again?
 
who works with scons?
 
@visDEVion You sounds like you're leading an investigation or something.
And then I could be like "Who wants to know?"
 
2:42 PM
:D
 
user784668
Folks, anybody familiar with SCons? How can I test whether some compiler option -ffrobnicate-all-foos is recognized by the compiler?
 
This is the second time I see the word frobnicate.
 
@Pawnguy7 What picture?
 
and how do you make scons find headers in subfolders? At the moment: fatal error: glm/glm.hpp: No such file or directory
 
She's always looking angry.
 
2:48 PM
@FredOverflow in that post
 
@visDEVion Beat it with a stick until it complies
 
@CatPlusPlus cmon... Just giv me a little codez
4
 
user784668
@visDEVion How about no?
 
@Fanael how about why not?
 
I can't help you, I'm a car
 
2:51 PM
carr carr
I'm not a car and I don't care.
 
@CatPlusPlus Car Plus Plus.
 
Is Quora the new expert sex change dot com
 
Looks like it.
 
I got a notification that I got a badge
I clicked through and there's this gem
Facepalm. And I don't understand why any self-respecting programmer would insist on having others do the most basic of work for them. You're including an unnecessary library for something that can be accomplished in less than 5 lines of code. What do you expect to learn if you can't do anything yourself? — b1naryatr0phy Mar 19 at 23:44
I'm sure we already laughed at it in March, but whatever, we can do it again
 
3:11 PM
His answer is misinforming too.
 
user1804599
@Fanael lol nice timing.
 
user784668
@not-rightfold Now I see.
 
3:26 PM
@CatPlusPlus Starting his comment with "Facepalm." only reduces his credibility IMO.
 
There was no credibility to begin with
 
Don't worry guys, @jalf is on the case.
 
Poor guy will be destroyed.
 
All of his comments are incredibly funny in the context of SO
Don't use third party code STUPID, here use my third party code
6
 
4:09 PM
@not-rightfold I had 17 out of 24 at one point, but I didn't know how long it would would continue. Did you reach an "end"?
 
user1804599
There is no end.
 
user1804599
Is there some ncurses-like library that doesn’t have a terrible API?
 
@not-rightfold The end is not the end is not the end is not the end is not...
 
Use the ", " instead of the Enviornment.NewLine. — Edward Karak 42 mins ago
 
wtf
 
4:17 PM
@not-rightfold No
 
What do you need ncurses for
 
Ell
4:28 PM
making menus in console applications?
building llvm can't cope with spaces in directories :(
 
4:40 PM
Many things can't
 
user1804599
Many things are bad.
 
Tools designed and tested primarily under *nix particularly
Because nobody uses spaces in directory names there (except OSX but eh)
So don't use spaces in directory names
 
@CatPlusPlus I learnt this the hard way.
With Python, you need to install PyWin32 before you can work with directories that have spaces in them.
 
Not really
 
user1804599
>>> object()
<object object at 0x1005eb080>
>>> object()
<object object at 0x1005eb090>
>>> object()
<object object at 0x1005eb080>
>>> object()
<object object at 0x1005eb090>
 
user1804599
4:49 PM
This is funny.
 
Hi-fucking-larious
 
why? you overwrite the _ variable
>>> object() is temp = new object(); _ = temp;
 
@not-rightfold yes, python does piss me off sometimes. The main reason I'm seriously going to learn Haskell.
 
user1804599
How is that related to this example? :V
 
@GamesBrainiac Wut. Do you mean /that/ pisses you off? If you care about addresses of things, DON'T learn Haskell
 

« first day (1099 days earlier)      last day (3840 days later) »