« first day (774 days earlier)      last day (4175 days later) » 

user1182183
1:00 AM
now I need to compile it on linux..
 
user1182183
*hopes concurency queues are the same in linux
 
TBB and PPL's interfaces are exceedingly similar
 
Ell
I have bollocked my network >.<
 
user1182183
@DeadMG for the extra one thread I just use the simple code I have :P
 
user1182183
changing the threading code won't improve performance any further
 
user1182183
1:01 AM
34 ms is even faster than my goal :D
 
@ThePhD other than that, the only thing I can find online about that function returning that error is if you gave it the wrong type of handle.
 
@GamErix It will if you're only using one worker thread and you could instead use more.
 
Ell
which is why here at c++ we prefer type safety
 
user1182183
@DeadMG then I would have to make the graph and node system thread safe...
 
user1182183
*more bugs
 
user1182183
1:02 AM
as I already suck at programming
 
thread safe is a bullshit notion
 
user1182183
@DeadMG well the worker thread updates a global movecost variable and a list
 
user1182183
I would need to make separate for each thread
 
@GamErix You know that GPS stands for 'Global Positioning Satellite', right? I'm pretty sure you're not using it
 
user1182183
@sehe Well it stands for that but the project codename is Gamer_Z's Positioning System
 
1:04 AM
@GamErix Sleep, nanosleep, spinlocks or memory barriers are your friend
@GamErix Wokay
 
@GamErix What pathfinding algorithm are you using?
 
user1182183
@sehe sleep already reduced to 5 ms from 30
 
user1182183
@DeadMG dijkstra
 
A* is more efficient
 
user1182183
@DeadMG that's just dijkstra with an heuristic?
 
1:05 AM
and if you have the right circumstances, A* JPS or HA* can be way faster even than that
 
Once I learned about A*, I sort of wonder why anyone would use anything else besides some variant of that
 
@GamErix Right, but the heuristic is important.
 
user1182183
@DeadMG I asked already so many times on SO and everyone just recomends dijkstra
 
user1182183
an no one even gives sample implementations
 
then they're noobs
 
user1182183
1:06 AM
or they even recomend boost::dijkstra
 
user1182183
jeees..
 
there's no reason to use anything except A*, ever, unless you can use one of the more specialized forms of A*
 
Xeo
@StackedCrooked: Can you get rid of -Werror=unused-variable?
 
user1182183
Well there are so many implementation of A*, how can I find one so I won't fuck up my current code?
 
the reason A* is that way is because it's been proven to be the fastest algorithm possible. As in, it absolutely must be the fastest. Ever.
 
1:07 AM
@DeadMG what's the second one?
 
@MooingDuck Hierarchical A*.
 
@DeadMG pft, nonsense
 
user1174868
I suck at coding
 
@DeadMG oh, hey, that's what I designed
 
@MooingDuck Absolutely.
 
1:07 AM
@GamErix does that exist? I reckon BGL has one, but I don't remember it being called that. I think they do dijkstra using BFS visitors... IIRC
 
user1174868
I can't seem to figure out how to do code by hand, I always fail that stuff in class
 
Hierarchical A* and A* JPS are much faster because they solve a slightly more specialized problem.
 
@DeadMG general case maybe, but if you have large open spaces, A* is easy to beat
 
@Xeo done.
 
but A* is the fastest algorithm that can ever exist to solve the most generic form of the problem.
 
user1182183
1:08 AM
@sehe boost::graph:dijkstra as far as I know
 
A* probably isn't faster for very very small graphs
 
@MooingDuck More specialized problem.
 
user1182183
@Pubby I have 32k nodes
 
@DeadMG yes it is, true
 
if you have a more specialized problem, you can use something faster- like A* JPS
 
user1182183
1:09 AM
I have just a graph of nodes which are connected and can have directions,
 
user1182183
well just a sec
 
user1182183
i will posyt a link to my not-so-old question
 
user1174868
I just realized that I am so bad at what I do that I actually don't know anything, and that everything I thought I knew was based on false assumptions, and now when things get more complicated all those false assumption cause what I do to not work anymore because it was always wrong
 
Ell
a* can't handle negative edge weights I don't think
@deadmg how can it be proven there will never be anything faster?
 
Xeo
I remember implementing A* during lessons. That was fun.
 
user1182183
1:10 AM
0
Q: Which implemantation of which path search algorithm would be the fastest in my scenario?

Gam ErixI am looking for a path search algorithm which will allow me to find the shortest route between known points A and B which are nodes, and those are connected to other nodes. In my case there are around 20,000 nodes of which each can have a maximum of 16 connections (links) which are directed (by...

 
user1182183
@Ell I have no negative edge weights :P
 
@Ell Don't ask me, I didn't study the proof.
 
Ell
meh you can't prove an algorithm
 
Ell
well I guess you can
I just don't understand how :L
 
user1182183
1:12 AM
the problem with that question is that no-ones bothers to post links to code examples that apply to me..
 
user1182183
and I did ask it in the question
 
@Ell A proof is a program, or something.
 
with something as complex as a pathfinding algorithm, it's not common to post code examples.
 
I can run that with a Directory for the api string, and it will succeed if I have byte buffer[2048 + sizeof(USN)]; defined in that function on the stack.
Move that buffer definition to the top of a class or a struct and the call fails, with that being the only change made.
 
could be an improper alignment issue
stack members are normally aligned at 16bytes, I think, whereas heap members are usually just 4bytes
 
Ell
or I guess you use dijkstra when there is no heuristic
because a* with no heuristic is the same as dijkstra
 
@StackedCrooked Don't lose focus. Best commit ever.
 
@GamErix No drive by linking rage
 
@ThePhD It's a good description for the actual change.
 
Xeo
Anyways, I'm off to sleep.
 
1:16 AM
fuckdiddlies
I'm nearly done rewriting my CV but just not sure
 
Xeo
@LucDanton, if you're willing to investigate why min_arity doesn't work, here's the code.
 
user1182183
@Borgleader linking rage? I was actually discussing path finding algorythms here!
 
Ell
@stacked holy fuck how do you work productively for so long? teach me!
 
A* end of discussion :P
 
I just can't stop.
 
user1182183
1:17 AM
@Borgleader yea now give some sample code for my situation, that's the whole point
 
user1182183
;D
 
rofl
find your own sample code
not your babysitter
 
user1182183
i'll post my current implementation (which I already had trouble finding)
 
Or better yet, write it.
 
user1182183
1:18 AM
@ThePhD if I could / knew how to
 
pseudocode's on Wikipedia
 
user1182183
at least an A* implementation which I could copy paste & edit
 
off you go
 
So, stack alignment is an asshole.
Better figure out if I can make it work with the heap instead.
 
Ell
@gamerix a* isn't difficult IIRC
 
1:19 AM
@ThePhD Stack alignment is no different that heap alignment.
 
try allocating the buffer with _aligned_malloc
 
Oh god, it smells like C. :c
 
user1182183
@Ell all my attempts failed :P
 
@StackedCrooked I thought the default stack alignment was 16bytes, compared to 4-8bytes on the heap
 
user1182183
I already told you guys, I'm the worst here in the room xd
 
@GamErix Then you should get help with your most recent attempt
 
Oh, I didn't know that.
 
Ell
this is an awesome set of articles
 
16 bytes default aligment? So int a, b; occupies 32 bytes?
 
@DeadMG I thoguht it was the other way around
 
1:21 AM
@MooingDuck Heap alignment is certainly not 16 bytes.
 
user1182183
@DeadMG I think I can transform my current implementation into a*, I just need to find out how to create the "heuristic' shit because it's "supported" but always 0 atm.
 
@StackedCrooked Nah, probably just for the first variable or function parameters or something
 
@DeadMG new is aligned for all types, which is 8 at minimum as per spec.
 
8 or wordsize?
 
@MooingDuck Not all types, only most types.
 
1:21 AM
@DeadMG yeah yeah. I don't recall teh exact wording. primitives or something
 
for example, you can't new an SSE type.
C++11 changed wording to explicitly permit such behaviour
 
@DeadMG Call fails when using _aligned_malloc( 2048 + sizeof(USN), 4); : Maybe I should change it?
 
Types with fundamental alignments.
 
@ThePhD Specify the alignment at 16.
 
Xeo
Btw @LucDanton, this might also interest you. IIRC, you had some trouble with variadic expanding input ranges in your annex::tuples::slice.
 
1:23 AM
Still failing. ._. I think I'm gonna just make a fat buffer on the stack and just hope it works.
 
Ell
@gam then your a* is already implemented, just choose a heuristic and plug into H. does your graph represent a physical space?
 
@ThePhD Then almost certainly UB.
 
user1182183
@Ell it's just connected nodes
 
for example, if you corrupted your heap
 
user1182183
in 3d space of a game
 
1:24 AM
@GamErix Are the nodes spaced at regular intervals?
 
user1182183
@DeadMG totally not, sometimes each is 0.1m from each other and others are 100+ meters from each other
 
oh weel
well*
 
@GamErix in 3d space? If you have wide open spaces, you can easily beat A*.
 
@DeadMG This is literally the only function call in myprogram now. I can't have fucked up my heap: there's no heap to fuck up, and I just reset the computer. x_X
 
user1182183
@MooingDuck it's a road map
 
1:25 AM
resetting the computer won't do jack shit
 
@GamErix nevermind then
 
@MooingDuck If they're not regularly spaced, it won't do better
 
user1182183
@MooingDuck so the 3d space kinda converts into points, which are 2d
 
~Sigh~
Well, I don't know what to do. Apparently as long as I have my buffer on the Stack with the Function, it succeeds. If I don't have the buffer on the stack, the call fails.
I don't know why. Maybe I can ask MS one day.
 
file a bug on Connect
 
user1182183
1:26 AM
 
user1182183
this is my implementation
 
at least if it's a bug, they'll close it as WONTFIX
 
So they can ignore the shit out of it?
 
user1182183
main.cpp:65:30: error: concurrent_queue.h: No such file or directory
 
user406009
@GamErix Why don't you use priority_queue?
 
user1182183
1:28 AM
which GCC version is needed at least for this?
 
@Lalaland Because it's not concurrent, obviously.
 
user1182183
@Lalaland is that thread-safe?
 
@GamErix For what?
@GamErix Not a fucking chance in hell.
 
user1182183
@DeadMG > main.cpp:65:30: error: concurrent_queue.h: No such file or directory
 
@GamErix concurrent_queue is not part of the Standard, it's part of the PPL- Microsoft only.
if you're using TBB, then you'll have to install TBB.
 
user1182183
1:30 AM
I have it installed, what's the TBB equivalent of concurrent_queue?
 
I dunno
what do I look like, Jesus?
 
user1182183
@DeadMG for me, yes.
 
you should be able to cope with installing TBB and finding the damn header yourself
 
@GamErix There's your problem
 
user406009
Wait, wont' the constant sorting in your Graph.cpp slow down the algorithm quite a bit?
 
Ell
1:33 AM
hmm ima going to write a page of PHP!
 
user406009
Or I guess it's an acceptable cost for multithreading?
 
aright, fuck it
I'm calling this "Done."
good night noobcakes
 
Ell
Nighty night
Can you deduce the digest function from a hash?
ie could you tell if a given hash was sha-2/sha-3/bcrypt etc.
 
1:56 AM
 
2:32 AM
poop.txt
Damn, removed... coulda made jokes
 
Hey, quick question.
If I do something wonky like template <size_t n> Set ( char[n] ) { /* ... */ } would that be a legitimate way of getting a variably sized char arrays count without the need for an extra variable?
 
You need a reference to array, but yes
 
Fuckin' sweet, I'ma do that then!
 
You can't pass arrays by value
 
Uh. So char& arr[n] ?
 
2:36 AM
That's an array of references, which is not allowed.
 
id<char[n]>& probably works
 
Oh.
Umm...
... o_O What's id ?
 
template<typename T>
using id = T;
std::common_type<char[n]>::type& works too
 
... Uh.
.... Oh.
Yeah I'm gonna pretend I know why that kind of trickery is necessary. :D
 
It's not necessary, I just can't remember the reference to array syntax
 
2:38 AM
@ThePhD Thats how I felt when I asked my first question on StackOverflow.
(I was a noob)
 
char(&name)[N]
 
@Pubby Whoever thought this was a good idea needs to be shot.
 
@ThePhD Try to declare a pointer to an array, and then an array of pointers?
 
@ThePhD Which is why you should use id. Works on function pointers too.
 
Xeo
2:58 AM
Damn, I can find out if a type is contained in set in O(1) without recursion, but to test whether it's contained in a list which may contain duplicates takes O(n) thanks to recursion.
 
Aren't you supposed to be sleeping?
 
Xeo
Sleep typing, secret German skill.
8
Any idea how to make a compiler accept duplicate bases without recursive (aka indirect) inheritence? Just stuffing virtual in the expansion doesn't help. :|
 
3:15 AM
I... wouldn't know how to help you.
Even your sleep typing exceeds my awake intellect.
A question about unique_ptr, though: After I've constructed one, how do I put a new T* into it?
Do I release and then swap in a new value?
 
@ThePhD Why not just use reset?
 
Will reset call the deleter on the old value?
Or do I still have to delete / release ?
Wait a second, there's docs for this.
I can just read.
Sorry for bothering.
 
3:43 AM
@ThePhD Yes, it does.
 
damn you semantic satiation
typename looks weird now
 
4:10 AM
hey @ThePhD he did it... realz shaw answered my question and posted the benchmark results... I'm so excited... stackoverflow.com/questions/12290639/…
 
Adderall, good for programming?
 
Adderall is good for everything
 
I need more adderall
 
4:25 AM
@Crowz That stuff is dangerous. I had it prescribed to me during high school. And needless to say, I formed an addiction to it. It took me almost the entire summer after I graduated to finally break that addiction.
 
@Mysticial Why break the habit? Does it do any real damage?
 
The withdrawal effects of adderall (especially the dosages I was taking) are very extreme.
 
But the effects under it are great, especially with some caffeine
 
@Mystical what do you think of realz shaw's answer to my SO question?
 
@Crowz It's a long story. Not something I'm gonna talk about on a public forum.
 
4:27 AM
I can't concentrate on anything hah as y'all can probably tell. Like, nothing at all
 
@Homer6 Yeah, I saw it, upvoted. That shit needs at least 50-100 upvotes to do it justice.
 
I had to give him more rep... he spent all day on that
 
@Crowz But short answer, yes, it had some very serious affects on my long-term health.
 
I'm so impressed with his answer
 
You know computers should have chemical receptors
That'd be a lot cooler
 
4:28 AM
they do
that's why WoW is popular
 
@Crowz Why? So they won't let you code if you're drunk?
 
or dumb ? :-)
there goes BASIC
 
@Homer6 Huh?
 
@Borgleader So they can be all like DOPAMINE YO and then they get all sad and they're like "ohhh no serotonin or neuronephrine :("
 
WoW uses game theory that's statically proven to release endorphins... resulting in long term addictive effects
just because it's not directly connected to a computer, doesn't mean it's not connected
hence porn
 
4:31 AM
WoW is pretty meh
 
have you played SC2?
 
Yeah it's pretty meh. 1v1 gold league
 
I have played WoW (still do), SC2 (still do), D3 (stopped playing it)
 
how about leisure suit larry ?
 
I suck at RTS. I can't micromanage.
 
4:33 AM
now we're talking!
 
What keeps me playing WoW is the people in my guild. Not so much the game. It's on par with GW2 and to some extent SWTOR
 
I do a lot better in 3v3 or 4v4 games where I can concentrate on a specific aspect (such as defense, or economy) and such.
 
Play Dota2
 
I'd be interested in seeing the difference between men and women playing sc2
 
@Rapptz That game is complicated as fuck...
 
4:34 AM
I have an invite if you want it Alex
 
I play hello kitty island adventure
 
I bet you women would manage better...
 
@Homer6 I wouldn't be surprised. Women are biologically more capable of multitasking than men.
 
but they'd build tea parties instead of tanks
 
my ex-girlfriend plays SC2 and she's pretty good at it..
..better than me.
 
4:35 AM
acg !
 
I'm still best when it comes to FPS...
 
@Mysticial psychologically* :P
 
@Rapptz Same thing. :P
I'm not great at strategy games either...
 
pants party
 
Guys it's only Tuesday
Save the party for Friday
 
4:37 AM
Yeah tuesday is orgy day
 
Always get my ass kicked in board games. Competitive Pokemon...
 
... too far?
 
@Mysticial How do you suck at board games?
 
anyone know how to improve this?
The anterior cingulate cortex (ACC) is the frontal part of the cingulate cortex, that resembles a "collar" form around the corpus callosum. It consists of Brodmann areas 24, 32 and 33. It appears to play a role in a wide variety of autonomic functions, such as regulating blood pressure and heart rate, as well as rational cognitive functions, such as reward anticipation, decision-making, empathy and emotion. Anatomy The anterior cingulate cortex can be divided anatomically based on cognitive (dorsal), and emotional (ventral) components. The dorsal part of the ACC is connected with the p...
 
@Rapptz I overlook things. In chess, I always miss obvious lines of attacks. And I don't have the patience to think 2 or 3 steps ahead.
 
4:38 AM
Improve your cortex?
 
yes... your acg
 
acc not acg
 
it's what makes women better managers
 
I figure I'd probably do better in Chess if I'm allowed to write and use a program that will help me brute-force several steps ahead.
 
anterior cingulate gyrus
 
4:39 AM
Fuck
 
I'm probably better at poker than strategy games.
 
Someone vandalised the wikipedia page
The cingulate cortex is a part of the brain situated in the medial aspect of the cortex. It includes the cortex of the cingulate gyrus, which lies immediately above the corpus callosum, and the continuation of this in the cingulate sulcus. The cingulate cortex is usually considered part of the limbic lobe. It receives inputs from the thalamus and the neocortex, and projects to the entorhinal cortex via the cingulum. It is an integral part of the limbic system, which is involved with emotion formation and processing, learning, and memory. The combination of these three functions makes th...
oh it's fixed now nvm
 
I could look at brains all day... brain science is rad as fuck
 
neural science is okay
Depends on what part you find interesting because there are a lot of branches.
 
4:43 AM
Anyone here already using VS2012?
 
Dude whoever vandalised that page, vandalised it hard core
>_>
I do
 
lol
 
I'm using downloading it right now and will guinea pig it on my laptop. Just wondering if there's anything else besides half-assed C++11.
 
better compile times
 
-1
Q: Add Answer to a closed question (2)

noloaderLadies/Gentleman, At times, I really get tired of fucking with you folks. It becomes a complete waste of my time. If you read Add an answer to a closed question?, you will see that I asked how to have an answer added to a closed question. I did not ask how to re-open a closed question, or any ...

 
4:45 AM
also they're improving with the C++11 support
I like VS2012's UI better than VS2010 too.. :|
As long as you disable the all caps
 
I'll gonna be interested in how well it can optimize.
@Rapptz wut?
 
Nov 4 at 2:44, by Rapptz
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\SuppressUppercaseConversion
REG_DWORD value: 1
 
Wait, wut? It auto capitalizes something?
 
the menu is in all caps
 
oh fuck...
I'll see once I install it.
 
Why would they do that?
 
I don't know
 
As if Windows 8 wasn't bad enough already. That's just insult to injury.
 
I hate a lot of things about Windows 8.
They really added the ribbon UI instead of file explorer?
 
Most of the software that I've been using is severely out of date. So I'm using this new laptop as a guinea pig to install the most up-to-date of everything that I normally use.
 
4:50 AM
VS2012 is like $10k :|
 
10k?
 
haha, fuck that
 
lol
 
... o_O
Wow.
That's one mother fucking expensive IDE.
 
4:53 AM
I'm just trying not to overshoot my bandwidth cap too much...
 
I think it's a multiple user license, I don't really know because I don't work for tech companies. I'm a scientist damn it :(
 
@Mysticial I use the shit out of VS2012.
 
VS2012 is pretty isn't it
 
Eh, the usability is what I like out of it.
Though for native C++ is just does some dumb shit sometimes.
 
I use GCC w/ Code::Blocks for C++ lol
 
4:57 AM
160462 Directories in my 1 TB HDD.
Well, that's a lie: I'm only scanning 1 platter (500 GB), which is presented by itself as a single drive (C:)
So 160462 Directories in 500 GB.
Looking at the directory names, half of them are temps I don't even think exist anymore. I wonder if they're all real.
 
fucking /r/programming talking about W, X, Y, and Z.
 
@Rapptz I get my VS from MSDNAA ^.^
 

« first day (774 days earlier)      last day (4175 days later) »