« first day (2017 days earlier)      last day (2933 days later) » 

user1804599
2:00 PM
Is SC2 that fantasy game?
 
Btw, check out The Magic Goes Away.
It's fantasy, but it's worked as if it was scifi.
 
Does anyone still playing w3 Frozen throne?
 
It fails classification on the vast majority of criteria people come up with to separate the two genres.
 
@R.MartinhoFernandes Is it that one novel that echoes the exhaustion of resources through a mana metaphor in a magic world?
 
@Morwenn Yes.
 
Ven
2:08 PM
now i wanna play some sc2
@BartekBanachewicz damn you!
 
@Ven then do lol
 
Ven
@Borgleader i'm supposed to work :(
 
pop quiz:
struct is_this_valid_C { } ;
 
I don't think empty structs are allowed in C.
 
yes
it compiled so ofc
 
2:12 PM
@набиячлэвэлиь sarcasm?
 
@fredoverflow huh?
It compiled for me, so of course it is
 
Ven
he just tried to compile it
 
@набиячлэвэлиь with a c or c++ compiler?
 
@Borgleader of course with a C compiler the question is about C
 
Well, the truth is that gcc accepts it even though it's not allowed in C.
 
2:14 PM
p:\Rust\effective-sniffle>cat a.c
struct is_this_valid_C { } ;

p:\Rust\effective-sniffle>gcc -c a.c
 
> If the struct-declaration-list does not contain any named members, either directly or via an anonymous structure or anonymous union, the behavior is undefined.
Undefined? lol
I expected something less insane.
 
That's C for you.
 
p:\Rust\effective-sniffle>gcc -pedantic -c a.c
a.c:1:8: warning: struct has no members [-Wpedantic]
 struct is_this_valid_C { } ;
        ^
 
There's even UB in the preprocessor.
 
@BartekBanachewicz What is it?
 
2:16 PM
@Morwenn yes so
 
Ven
@fredoverflow that's absolutely retarded
 
division by zero can wipe your HDD at compile-time
 
Watch Forbidden Planet. It's from 1956.
@Ell But so is American Gods.
 
40
A: What is the size of an empty struct in C?

Johannes Schaub - litbA struct cannot be empty in C because the syntax forbids it. Furthermore, there is a semantic constraint that makes behavior undefined if a struct has no named member: struct-or-union-specifier: struct-or-union identifieropt { struct-declaration-list } struct-or-union identifier struct-or-unio...

 
lolwat
C is absolutely insane.
 
2:18 PM
yes good morning
 
> G++ treats empty structures as if they had a single member of type char.
 
Ell
I haven't read American Gods. I think being set in a different world isn't the only thing that can mean something is fantasy. I'm not sure I guess vOv
 
@fredoverflow IOW as if it's C++
 
Ell
I would call most of what I would call sci-fi fantasy thoug
but I don't read much.
or watch films much
I'm pretty unqualified :V
 
@Ell You're neither const nor volatile?
 
Ell
2:19 PM
yup
 
@набиячлэвэлиь ba dum tss
 
@Ell But it isn't a necessary characteristic of scifi, either. Plenty of examples.
 
user1804599
@fredoverflow no, you can't have empty structs in C
 
user1804599
@fredoverflow this is similarly UB in C++:
 
user1804599
\u00\
20
 
user1804599
2:25 PM
I have no idea why they do this. It seems retarded.
 
@набиячлэвэлиь Is it really so bad, re-tagging releases? >_>
 
I can't believe that I didn't know about git stash before this week.
 
How did you live before?
Did you, like, save git diffs into files and reapplied them later?!
 
whats funny about it?
 
2:28 PM
12 side buttons
My mouse has none.
 
@fredoverflow I have the molten version of that one
 
@Griwes Probably something like that, or just gave up on some modifications, or managed to commit what I could.
 
user1804599
Mice with more than three buttons suck.
 
@Borgleader Molten mouse? What did you do, overclock it?
3
 
Ell
my mouse has 2 side buttons
 
2:30 PM
@ThePhD yes
 
@набиячлэвэлиь :<
 
Ell
 
the fuck is that
 
What the fuck is that
 
Ell
logitech m570
 
2:31 PM
why the fuck does that exist
 
more like shittytech m570 amirite
 
Ell
it's very comfy
 
lol
 
Ell
man. I wish clang and gcc would use the same color flag
 
@набиячлэвэлиь Well, I retagged it anyways.
 
Ell
2:32 PM
-fcolor-diagnostics vs -fdiagnostics-color -.-
 
@BartekBanachewicz The reason they do it is because the distinction is a "I know it when I see it" distinction. You can't come up with a satisfactory set of necessary nor sufficient conditions to separate the two.
 
Welcome to 2016.
Also -ferror-limit vs -fmax-errors or whatever the broken GCC one was.
 
(Scifi stories with supernatural elements? There's a whole subsubgenre of time travel stories that just assumes magical time travel)
 
@R.MartinhoFernandes Does BSG (the more recent one) count as scifi with supernatural elements?
 
Hah, for that one using that classifier is a spoiler.
 
2:37 PM
@Borgleader Big Shooty Gun?
 
@R.MartinhoFernandes vOV its like a decade old
 
@набиячлэвэлиь I guess he meant Starbuck.
@Borgleader Oh, I didn't mean to not talk about it coz spoilers.
Just stating that making such a classification is a spoiler by itself.
 
ah yes i guess it would be
 
@набиячлэвэлиь Oh, I misunderstood you. Battlestar Galactica.
@Borgleader It's never explicitly described as such, but I think that was the intention of the authors.
 
user1804599
x
x + width * y
x + width * y + height * z????
 
user1804599
2:41 PM
I'm confuzzled.
 
What are you calculating, ridigfold?
 
user1804599
Array index based on (x, y, z) coordinates.
 
@Borgleader But that reminds me that there are also stories where it is never made clear whether the unexplainable phenomena in it are meant to be supernatural or just "sufficiently advanced technology".
 
@Zoidberg int index = y * width * length + z * width + x;
 
user1804599
Ok.
 
2:44 PM
@R.MartinhoFernandes Yeah like at the beginning, theres some stuff involving Baltar and him being "faithful" that could be either argued as "intervening hand" or just really good prediction models.
thats what i was referring to, theres more later on, but i guess starbuck is the one that stands out the most
 
@fredoverflow Pretty sure it's a historical thing: I'd guess at least a few compilers treated it as an error. But, there were probably some people with crufty code bases that defined structs with different contents depending on various preprocessor definitions--some combination of which would result in an empty struct, so they wanted it allowed. In cases like that, they often treat UB as a compromise position.
 
38
Q: Dividing by zero in a constant expression

fredoverflowMy toy compiler crashes if I divide by zero in a constant expression: int x = 1 / 0; Is this behaviour allowed by the C and/or C++ standards?

 
Yes, that's where I know it from :P
 
@набиячлэвэлиь Can't happen to me, I replaced my HDDs with SSDs a long time ago ;)
 
@fredoverflow SSDs, perhaps?
 
2:49 PM
@fredoverflow ~~nomenclature~~
 
twitter making sense
 
Is that Cicada? :p
 
@sehe I hate people who follow everybody as a form of advertisement
they follow you and you go check them out to see who they are and their description is like "hey look at this new thing i made, plz buy it/subscribe to it/..."
 
If it looks bad on my follower list I block them. These just didn't attract attention. But it makes zero sense from my POV
The Art Of Reading Knuth
 
@sehe image not found
 
3:00 PM
You think I don't notice?
 
its possible =/
 
I love the "Dwell upon your imposter syndrome". Relatable.
 
user1804599
PureScript's effect system is so nice.
 
Does it have top spin, back spin and side effect?
 
@sehe So true
I think I haven't reached anywhere far in reading TAOCP
 
3:03 PM
I haven't ordered it :| Too many books
 
It's only for the most determined
 
I have read some parts of volume 3.
 
Let me guess. The sorting department.
 
Ell
hmmm SDL is segfaulting on quit
 
PayPal settings are shitty as fuck.
 
3:07 PM
@Ell destructors on globals
 
Ell
No globals in sight
actually, I'm using a wrapper library
I should test that first
 
Write a recursive method which sorts the singly linked list and takes only one argument. And do not write another auxiliary method to support this recursive method.
can someone give me a helping hand
node* sort(node* head){
if(head == NULL)
return head;
node* temp = sort(head->next);
// temp is the head of the rest of the sorted linked list
//insert current head at proper position and return the new head
}
i am thinking something like this but it has some complecations
i just cant insert head at proper position and return proper head
 
@user2719152 WEll the question sounds complete . go ahead and post it on cs stacoverflow. tha'ts my help
 
@user2719152 You should really get on with that.
 
3:27 PM
I typed too fast on my girlfriend's computer and forgot a folder name in a rm command and typed:

sudo rm /*
 
so the argument is the list itself, u just need a function that sorts it the way you want
 
does anyone know opengl rendering calls at all?
 
no.
not one person on this planet knows ogl rendering calls.
 
@Puppy What's opengl? Is that a pokemon?
 
user406009
3:41 PM
@Charlie I am somewhat familiar with them. What's your question?
 
grrr vampire feeder
 
im hitting a bottleneck in my render/draw call
and im not sure what I should do to optimize it
 
@Bartek it's time for sc2 now
 
like i have a vector of around 200 objects, asteroids/debris circling a planet
the physics part isnt a problem at all, but but once i go to about 300 objects, it starts slowing down
 
3:45 PM
Uggh.
Don't wanna have to make game.
DON'T WANNA GOOO.
 
I feel I dont update the buffers correctly
@Borgleader that link is very good I think, its already making sense
 
I feel like your face isn't updated properly
 
user406009
@Charlie do you know whether the CPU or the gpu is the bottleneck?
 
user406009
Also, you will need to share your code.
 
Im not sure how well this chat takes code
..
 
3:56 PM
I've got warnings about inlining failure. Not whether I should care or not.
 
@Charlie You could have used the pastbin
 
ah yeah, my bad, let me fix
 
@Morwenn If it's just literally that the function could not be inlined, don't. If it's warning you about a problem with the ODR-related inline, that's something to notice.
 
@Puppy It just says that the function couldn't be inlined (inlining limit reached), which is a bit bothersome since I never wrote inline anywhere.
 
the compiler should not be issuing such a warning unless you used e.g. __forceinline
 
3:59 PM
This is the part I think is slowing me down. pastebin.com/1JtdGP1u mind you its about 250 objects
 
hahaha wat /cc @StackedCrooked
 
awesome
 
@Puppy Yeah, that's why I find that strange.
 
maybe you use a library that does
 
It could come from Catch.
 
user1804599
4:01 PM
dropSpecs :: Tile -> Array {item :: Item, min :: Int, max :: Int}
dropSpecs IronOreTile = [{item: IronOreItem, min: 1, max: 8}]
dropSpecs _ = []
 
user406009
@Charlie try to avoid changing state that much. At the very least, you probably don't have to gluseprogram on every draw.
 
Thats what I thought too, Ill probably set the shader before doing the array of draws instead
its just that I get the feeling im not using the vbos correctly, let me try that first tho
 
hello everyone , I am a beginner and something just hit me which I wanted to discuss. It is about the classical problem of sorting elements in an array
here is my idea , which hit me when I was learning about hash tables
 
anyone do any driver work on windows lately? M$ has this msdn.microsoft.com/en-us/windows/hardware/drivers/develop/…, but the install script is buggy as all heck. How viable is it to do a full gnu toolchain for this purpose?
 
1) take the array, find the max element 2) divide all elements by max 3) multiply all by twice the length of array and round off 4) hurray you have indexes in sorted order , collect them and form a sorted array
 
4:07 PM
For fuck sake... Intel and the GCC devs need to start talking to each other. I really shouldn't have to work around bugs like this:
 
user1804599
That doesn't sort the array.
 
#ifdef __INTEL_COMPILER
    "mulx   (%[A]), %[mH0], %[mL];      \n" //  mulx    mH0, mL, qword ptr [A]
#else
    "mulx   (%[A]), %[mL], %[mH0];      \n" //  mulx    mH0, mL, qword ptr [A]
#endif
 
@SourabReddy No please. It's the chat not about CS problems
 
@ProblemSlover ok , can you please suggest me the right room
 
Intel fucking switched the order of the operands... They can't just do that.
 
user1804599
4:08 PM
Step 0: 1, 3, 2
Step 1: 0.5, 0.333, 0.666
Step 2: 1.5, 1, 1.999
Step 3: 2, 1, 2
 
@Lalaland that helps alot actually, im getting nearly double the performance lol
 
@zoid
 
@Mysticial Just... why did they do that?
 
user1804599
You you have the indices in the order of the sorted elements.
 
4:09 PM
@Mysticial Why not?
 
user1804599
Still, due to rounding, in my example, you could end up with 3, 1, 2.
 
@Zoidberg multiply by an apropriate number ( twice of array length works most of the times ) you get an array with indices far apart , but sorted
 
user1804599
Not always far apart enough.
 
nobody cares about a sorting algorithm that works only most of the times anyway
 
@Zoidberg I hope you have understood my idea , I just wanted to know if there is any sort implementing this
 
4:10 PM
guaranteed correct outcome in all cases is the minimum to even enter consideration
 
@Puppy i know
some tweaking and it will give a correct answer always
it is just a random thought eperiment
 
you have re-invented radix sort/bucket sort but worse.
 
LOL , just learning , will look into those sorts , thanks !
 
hmmm
 
@Morwenn They probably didn't test it.
 
4:13 PM
I have tallied up my finances for the month and despite purchasing a whole bunch of stuff, I have still saved a reasonable amount of money.
this is suspicious.
 
Their converter from GCC-inline asm to Intel syntax flips the order of the last two operands of that instruction.
All the inline asm that I wrote which works with ICC is broken on GCC for that reason.
 
isnt there library for sorting?
#include <sort>; sort(list); and voila
 
@Puppy Have you tried to invest money? :P
 
Well, there's even a C++ library that has (almost) every sorting algorithm in the world
 
Its like people look for problems, not solutions
 
4:16 PM
Eh~, there isn't a single inline in my library, let alone a forced one.
 
imagine some random pleb making a faster sort
 
user406009
@Charlie often, you can make a faster sort if you know more about your data.
 
hm, I guess yeah
i still imagine typical sorting to be the same across the board
sorting by size or alphabetically
 
#include <cpp-sort/sort.h> cppsort::sort(whatever); and voilà.
 
;)
 
4:23 PM
@Charlie I still can't get what you trying to make using raw opegl api
 
lol
its to make it run faster?
 
lol epic fail
 
Id rather communicate with the gpu, than with an environment
maybe you should go to the unrealengine/unity lounge
 
@Charlie ok Sounds fun For Learning Purposes. I personally hate to reinvent wheels
though
 
If it solves the problem, its good I think
 
4:29 PM
Have you played with unreal engine. it's quite fun
 
@Charlie You seem to think that a) this place is about C++ and b) using C++ means randomly doing things the stupid way. Neither of these is true.
 
Its a stupid way?
Also I was just joking about unity/unrealengine lounge
maybe reads different than how i meant
 
yeah I figured that you were joking, but the joke stems from a complete misconception, which is what I am correcting.
 
ah please engligthen me then
i suffer delusions of correctness
 
this place is not about C++ and also doing C++ does not mean doing things the stupid way.
 
4:39 PM
I came to the chat was c++ related, and whats wrong with using "raw opengl calls"?
 
well, a) OGL is a giant pile of shit, and b), you're just doing things other people have already spent way more time doing and have done far better than you could ever hope to, and c), you're completely wasting your time achieving nothing, just download their work and use it for free.
 
they are considered randomly stupid?
right..
 
T-20 minutes until next Acquisitions Inc. shenanigans!
 
well obviously someone has made code that is more optimized than mine
but it might also be more generalized
besides, if Im trying to learn something, why not learn the fundamentals, and not how to talk to an environment
heck, its what put me on c++ to begin with
 
because the fundamentals are utterly worthless.
the only thing they're good for is to make unity/unreal.
so unless you wanna get hired at Epic, it's a complete waste of your time.
 
4:42 PM
thats your opinion I think
 
well, yes.
 
@Mysticial gcc has a thing for that. I have never tried it though
 
why not ignore me? I'm merely a professional who has been doing C++ for years.
 
You still havent said whats wrong with openGL calls tho
 
0
Q: AES implantation in C++

etamar211I have a server. I want to add to it AES encryption. I've tried using the Crypto++, after a lot of searching it compiled but it always throw exceptions that come from "CryptoPP::selfTestFailure". I've read somewhere that it has something with this define in the file fips140.cpp: // Define this t...

> implantation
 
4:43 PM
that sounds rather painful
 
Why let wrong dominate the discourse
 
> I have a server. I want to add to it AES encryption.
 
using "raw openGL" is how your supposed to do it afaik
suggesting otherwise, is well an approach for people that like unity and unreal engine
 
no, it's an approach for people who want to achieve things.
 
0
A: AES implantation in C++

PuppyTo implant AES, you'll need a rather small embedded CPU, a power supply, a rather crazy surgeon, and a fetish for sticking bits of metal in your body.

so it won't die when it'll be deleted ^
 
4:45 PM
right. if you spend 100 hours on unity, youll be 100hours better at unity
 
@Charlie yeah, and you also might have a program worth a damn
 
if you spend 100hours on openGL, youll be 100 hours better at openGL
 
@milleniumbug brilliant
 
@Charlie so you'll basically have nothing at the end.
 
@Charlie Come on Man. Focvus on your problem which you aree trying to solve. Debates are waste of time at least in this topic
 
4:48 PM
unity/ue, is for people that have time to make assets
like artists
 
well, you can make programmer art
or download free assets from various websites.
but yeah, making programs that aren't shit is hard, but if you don't do it, you definitely won't end up with a thing that's not shit.
 
there will be shader artists in the future
 
you need to at least aim for making something not shit before you can end up with something not shit.
 
imagine if michelangelo, or leonardo da vinci, were shader artists in 2016
 
@milleniumbug +1
 
4:49 PM
would they "sway" the world as easy?
 
what?
 
maybe some people prefer direct3d
 
it's pretty fucking terrible.
 
T-10 minutes!
 
@milleniumbug Note how the other answer didn't last longer.
 
4:51 PM
Grumpy @Puppy is grumpy.
 
@ForceBru Good call. Consider taking up botany. You can always wisit Lounge<Botany++> where the sub community. flocks. — sehe 18 secs ago
 
the gpu wants information, openGL can give it
 
well, not really.
the GPU needs a lot of information and OGL can give it if you want to spend a thousand years working on it.
 
std::sort(std::gpu, array);
Maybe someday.
 
so your argument is that its too slow?
to do, not to run
 
4:52 PM
well, basically, yes
 
I dont mind that
 
@Morwenn Nope.
@Charlie You don't mind spending your time and getting absolutely nothing in return?
in that case may I suggest assembling programs by typing in 0s and 1s into a hex editor bit by bit.
 
im getting stuff in return tho
 
@Puppy Sorry: maybe a compiler/standard library extension someday since custom execution policies are allowed.
 
4:53 PM
@Morwenn Still nope.
 
its all about how fast you can get it to run
 
@Puppy C'mon, you can have dreams too, right? :o
 
ive seen unity games struggle with having 2 2d boxes on screen
 
@Charlie You're not really getting anything. You're getting experience in a technology nobody needs or wants, and you're producing a program that has no features.
 
i.imgur.com/ZVj5qjH.png this took me a few days to make
 
4:54 PM
looks like about a 10-minute job to me
 
and its literally 500 spheres in orbit
with unity? hehe
 
yay basic struct support
 
u know the game guitar hero?
 
@fredoverflow useclangnoob ;p
 
is that the same as learning to play a guitar?
do people learn the guitar to become rock stars?
 
4:56 PM
@Charlie No, you just press some buttons. Don't you watch South Park? ;)
 
or because they want to have a nice hobby
well Im just saying, chat should be well informed
 
we are well informed
 
I learned some winapi
to abe able to draw transparent overlays
 
@fredoverflow Does it pretty print the syntax tree yet?
 
@fredoverflow AST visualizer?
 
4:57 PM
i learned openGL, to be able to talk to the gpu
i learned how to import/export binary files for faster loading
i know nothing about how to drag arrows between squares in unreal engine tho
 
pity, that might be a useful skill
 
theres a fast way
and theres a slow methodical way
 
there's a smart way and there's a "build everything yourself from scratch for no reason" way
 
slower* i should say
if there was a programming convention, we could run our inventions against each other
i still think openGL will have better results in the long run
 
Depends on what your goal is. If your goal is to make a game, using existing game engines is the way to do it.
Mar 29 '15 at 22:51, by milleniumbug
@Cinch Teach a man to make a game, he'll make a game. Teach a man to make a game engine, and he'll never make neither an engine nor a game in his lifetime.
 
5:02 PM
the biggest frustration is probably seeing the game you spent 6 months doing with raw open gl being made with unreal for less than an hour.
5
 
the real frustration is being able to play through ice and fire on extra hard on guitar hero
 
@R.MartinhoFernandes 20k leagues underwater
 
when you spent years learning how to play the old way
 
@Charlie um.
 
Wow, your biggest frustrations are so shallow.
 
5:09 PM
@Charlie what that has to do with anything
 
@Mikhail And here's the other retarded bug I found today: software.intel.com/en-us/forums/intel-c-compiler/topic/628013
 
Bwuh Finally.
 
@R.MartinhoFernandes I tried to bastardize repeat/repeat_n so that the stored value_ member was actually the result of "foo" and iterate through that instead of outputting the same value all the time, but i ran into more template errors than i could handle.
 
Weird chat group...
http://chat.stackoverflow.com/rooms/549/bin
Found this one in the bin.. love it. Oops Too large damn
 
5:27 PM
@Morwenn Depends on what you mean by that, but notice the two tabs on the top left ;)
 
I wonder why it was binned,. lol
http://chat.stackoverflow.com/messages/27233899/history
 
template <http_server_type server_type>
struct observer: public events::observer, public rest::driver<server_type>{
  typedef typename rest::driver<server_type> rest_driver_type;

  observer(boost::asio::io_service& service): events::observer(service), rest_driver_type(*this){}
};
 
@ScarletAmaranth lol sleepyheads
 
Is this code legal ?
because I am passing *this to a base class constructor in MI from derived class constructor ?
 
user1804599
> Recently, a man decided to make a sandwich from scratch. He grew the vegetables, gathered salt from seawater, milked a cow, turned the milk into cheese, pickled a cucumber in a jar, ground his own flour from wheat to make the bread, collected his own honey, and personally killed a chicken for its meat.
 
user1804599
5:39 PM
> This month, he published the results of his endeavor in an enlightening video: making a sandwich entirely by himself cost him 6 months of his life and set him back $1,500.
 
user1804599
@NeelBasu No it gets you in trouble when the cops see it.
 
would it cause UB ?
rest_driver_type takes events::observer& not the derived one
 
why this crap got so many dislikes lol
 
user1804599
Oh he even made his own tools.
 
5:47 PM
@ProblemSlover best song ever
 
@StackedCrooked Yea. No wonder it got binned
 

« first day (2017 days earlier)      last day (2933 days later) »