« first day (861 days earlier)      last day (4093 days later) » 

8:00 PM
[End of section: 'official' 132 of 36754 assertions failed]
 
@R.MartinhoFernandes That was for setting values, which applied it directly to a ShaderParameter. Unfortunately, the current code inside ShaderParameter only keeps track of a single variable.
 
Rewrite rules are cool
 
The problem I've encountered now is that individual methods report uses of the same variable from different functions - and unfortunately enough, sometimes they put them in different constant buffers.
 
Xeo
Rewrite was a good VN.
 
Which reminds me..
I had some trouble getting the patch to work. Shall try again tonight.
 
8:02 PM
Oh well. I guess I will just have to doubt the sanity of past self and fix up this shit.
 
Xeo
@StackedCrooked Hm, I had no trouble at all.
 
man
it's 8pm but I already drank all my beer.
 
I thought you didn't like beer.
 
Xeo
Puppy is sounding like some drunkard, lately
 
You're gonna have a beer belly.
 
8:03 PM
You went from not drinking beer to drinking all of it. Impressive.
2
 
thanks for reminding me I have not opened my first
 
@StackedCrooked My belly is already way in excess.
 
Ah, then you're good.
 
the problem is that I opened them and then I went to rebuild Clang, so I had little to do with my hands but drink it
 
:lol:
 
Xeo
8:04 PM
ITT Puppy problems.
 
Can you still write code then? I know I can't.
 
of course I can
it was only two beers, dude
 
Xeo
@StackedCrooked Remember the Ballmer Peak.
 
@Xeo Right :D
 
8:05 PM
fixed it now
 
Xeo
Hm. So, what should I do now...
I think I'll reboot to Windows, I don't have anything for coding set up here.
Brb
 
VM ftw.
 
Xeo
On windows, I'll code in my Debian vbox. :P
 
user142019
I don't remember where I installed the DirectX SDK. :(
 
Xeo
Hm, if only I could just mount the vbox image...
 
user142019
8:08 PM
DirectX headers where are u.
 
Why Debian?
More lightweight?
 
Xeo
Dunno, was the first thing I found, and for my bootable HDD, the only thing I had on my other HDD that I could put on here. :)
 
@Xeo dear. did you find the solution to your overload resolution riddle?
 
WOO
Fuck yeah, solved the problem!
I'm a genius~
 
Xeo
@JohannesSchaub-litb Yes. :(
 
8:09 PM
I have a ubuntu-server running in a headless VM. I access it with ssh.
 
@Xeo looks good
 
Xeo
But it's too simple! D:
 
:P
it's like the struct random_access_iterator_category : forward_iterator_category {}; pattern
 
Xeo
I fiddled around with ICS before. I could rank 13 overloads with two conversion ops, one to some struct X, and the other to int, and then had overloads with all kinds of qualifications .
 
8:11 PM
neat
 
user142019
Is DXSDK_Jun10.exe the latest version of the DirectX SDK? Does it contain the header files?
 
@DeadMG lol, might as well get shitfaced now
 
Xeo
@JohannesSchaub-litb Brb, on Windows I still have the tab open.
 
DirectX SDK is part of Windows SDK now
 
user142019
Oh. :L
 
8:13 PM
@Zoidberg If you need your application to work on Windows 7 or older, you have to pull headers from the DirectX SDK and reference them first and foremost in your projects.
 
user142019
I use Windows 8.
 
Xeo
Gah, no hibernate on this Debian.
 
If you're using SharpDX and building for backwards compatibility, just target an older version of the .NET Framework.
 
user142019
I'm not using SharpDX.
 
Okay then, all the headers are present in the Windows SDK and includable by default:

#ifdef FURROVINEDIRECTX11
#define INITGUID 1
#include <d3d11.h>
#include <dxgi.h>
#include <dxgidebug.h>
#include <d3dtypes.h>
#include <d3dcommon.h>
#include <DirectXMath.h>
#include <DirectXPackedVector.h>
#include <d3dcompiler.h>
#include <d3d11shader.h>
That's everything you could possibly need for DirectX
Make sure to have #define INITGUID up there.
 
8:15 PM
is there some tutorial for std::allocator_traits<> and scoped allocators in C++11 ?
 
If you need Controller or Audio Support, you'll need:
#include <xaudio2.h>
#include <xaudio2fx.h>
#include <Xinput.h>

Unless you're doing RAW_INPUT with the windows message loop.
 
user142019
@ThePhD ohh nice :) thanks.
 
user142019
What about any DLLs?
 
All the DLLs you need are shipped with Windows 8.
 
user142019
So I don't need to link them explicitly?
 
8:17 PM
Fuck it, not fixing this crap today. It's less than 1% of tests failing.
 
@JohannesSchaub-litb Bjarne has an example on his page IIRC but it's concise.
 
You do not need to draw XInput1_4.dll, d3dcompiler_46.dll, or related into your directory.
For static libraries, these are all the ones you will need:
dxgi.lib;dxguid.lib;d3d11.lib;d3d10.lib;d3dcompiler.lib;xaudio2.lib;xinput.lib;
 
4
Q: Is accessing bytes of a __m128 variable via union legal?

Violet GiraffeConsider this variable declaration: union { struct { float x, y, z, padding; } components; __m128 sse; } _data; My idea is to assign the value through x, y, z fields, perform SSE2 computations and read the result through x, y, z. I have slight doubts as ...

hmmmm
 
__m128 is defined as a union in the first place (on Windows).
So it should be compatible.
 
@ThePhD What members are in it?
 
8:21 PM
typedef union __declspec(intrin_type) _CRT_ALIGN(16) __m128 {
     float               m128_f32[4];
     unsigned __int64    m128_u64[2];
     __int8              m128_i8[16];
     __int16             m128_i16[8];
     __int32             m128_i32[4];
     __int64             m128_i64[2];
     unsigned __int8     m128_u8[16];
     unsigned __int16    m128_u16[8];
     unsigned __int32    m128_u32[4];
 } __m128;
 
Then what the OP is trying to do is already provided?
 
@R.MartinhoFernandes FACED WITH ALL THE SHIT
 
@R.MartinhoFernandes Essentially.
Aww, you wrote what I wrote as an answer in your comment. =[
 
Xeo
FFS, how do I get Debian to hibernate without it immediately resuming. oO
 
user142019
8:26 PM
MSVC y u no = default.
 
Xeo
$ cat /proc/acpi/wakeup shows only SLPB as enabled, which I guess is the sleep button itself. Grrrr...
 
> error: no matching function for call to std::__debug::vector<std::basic_string<char32_t> >::emplace(__gnu_cxx::__normal_iterator<const char32_t*, std::basic_string<char32_t> >, __gnu_cxx::__normal_iterator<const char32_t*, std::basic_string<char32_t> >)
 
Xeo
I don't want to shut down every time.
 
user142019
Or brace initializers. :o
 
What am I doing wrong?
Oh.
Gosh.
That was so stupid.
 
Xeo
8:28 PM
Do tell.
 
emplace_back, not emplace.
 
We're all listening. :3c
 
Xeo
lawl
 
I was done writing my testcase and about to :make when it hit me.
 
Xeo
What, everyone having revelations now or what?
 
8:29 PM
No I wanted to help with that error.
 
Xeo
Ah
 
I flagged "http://stackoverflow.com/questions/15044330/using-delete-in-overloaded-in-derived-class/15044405#comment21147316_15044405" as offensive, but the mods don't seem to remove it
 
Xeo
Oh FFS, I'll just shut it down normally...
 
@JohannesSchaub-litb It needs some N (three, I think) flags for auto-removal. I don't think mods care much about it, since there's auto-removal.
 
@R.MartinhoFernandes ohh i see now
 
8:32 PM
@R.MartinhoFernandes Auto-removal? How is this not abused?
 
there's no need to degrade into name calling just because of dislike of a person's book
such blind hate is not good
 
@LucDanton Needs N people to do it?
But I know it is automatic because I have cast the final flag on some occasions before.
 
Doesn't sound like an impediment given the usual traffic on SO no?
 
Xeo
Okay, back on Windows.
 
user142019
What is the cannonical way to prevent code duplication when having a friend function in a template class that is common to all specializations? I want to overload operator<< for std::ostream and a custom vector class.
 
8:34 PM
SECTION("issue-0019","test for issue #19") {
    using text = ogonek::text<ogonek::utf8>;
    std::vector<text> words;
    for(auto word : ogonek::words(std::u32string(U"ABC DEF GREG"))) {
        words.emplace_back(word);
    }
}
This works fine.
Someone filed a bug saying it doesn't compile.
 
I'd help flag but I don't find the comment offensive
 
Hating the move operations. Compiler elide copy / assign seems like a win already if performance matters; Need them for certain C++11 std (stl) algorithms though.
 
user1182183
hm does anyone know how to access a pointer if you have multiple offsets?
[Base Addr + offset1] -> ptr2 [ptr2+offset2] -> ptr3 ?
 
@Zoidberg There are basically no ways to prevent code duplication when dealing with specs for any code that can't be moved out of the template class.
 
I think we've had this here before.
Moves are not just an optimisation. Grep the transcript.
 
user142019
8:38 PM
> error C4716: 'voxx::math::operator<<<double,3>' : must return a value
 
@BrettHale Ellision can't cover anywhere near as many cases as move semantics; and they're also important for correctness, like unique_ptr.
 
user142019
Why is that an error. :|
 
user1182183
I have this:
`int * speedpointer = (int*)0x004B4740;//base addr`
`int * nextptr = speedpointer + 0x0000010C;//offset 1`
`int * nextptr2 = nextptr + 0x00000004;//offset 2`
But when accessint `nextptr2` it just gives a random value, not the value I expect to see ..
 
@Zoidberg Did you forget to return the ostream object?
 
user142019
Yes.
 
user142019
8:40 PM
But should be warning not error.
 
@GamErix Pointers are not numbers.
 
@Xeo The technique appears to be solid. I can write several overload subsets that each have their own constraints (e.g. rank<0> is constrained on is_copy_constructible<T> and Not<is_copy_constructible<T>>), and have a final forwarding template that tag dispatches to the whole overload set.
 
@DeadMG - I know, I know. Just starting to make classes look incredibly ugly and contrived. Especially with the very fine <type_traits> distinctions.
 
user1182183
@R.MartinhoFernandes should I use void? I know the final address I want to access is an int
 
That doesn't sound normal.
 
8:41 PM
@BrettHale Move semantics doesn't make classes look more contrived.
 
@R.MartinhoFernandes He's hacking
So he has hardcoded addresses
 
if move semantics are causing problems then you're doing it wrong.
 
@Rapptz I know. But adding offsets to int* does not work. He should add the offsets to the numbers.
 
show code
 
Xeo
@LucDanton Cool.
 
8:41 PM
@R.MartinhoFernandes Oh just saw that.
 
making use of move semantics makes classes more complicated though :(
 
user1182183
@R.MartinhoFernandes eh sorry to ask but how would you do that with my current code? (I hate to ask give codez questions)
 
@DeadMG - needing to define explicit move operations is contrived. It often requires more implementations if the class is not trivial.
 
Robot you might need to add something to your hatred of libraries list.
The header files are from a library. So I cannot add header guards there. What must i do now ? — Ritwik G 1 min ago
 
@GamErix Just do the math only with numbers. Convert to pointers only after the math is done.
 
8:43 PM
^ a library without include guards, what the hell?
 
@BrettHale The vast majority of move operations should simply be the defaulted version.
 
@Rapptz WTF, that's too silly for that.
 
@ScottW IMO, no
 
Xeo
@LucDanton Mind posting the test code somewhere?
 
@DeadMG - should, but don't. That's why the signatures are provided, no?
 
8:44 PM
whether I write "I am Johannes." one time or one hundred times doesn't make it look more complicated
 
@BrettHale What?
 
or when I am writing "I am Johannes." and adding "I am Peter." afterwards, it stays as complicated as before, IMO
 
@Xeo Okay. Let me make it less stupid though.
 
user1182183
@R.MartinhoFernandes you mean like this:
 
user1182183
int speedpointer =		0x004B4740;//base addr
int nextptr = (int)((int*)speedpointer	+ 0x0000010C);//offset 1
 
user1182183
8:45 PM
?
 
@BrettHale The vast majority of classes don't need explicit the lifetime special members at all.
@GamErix No.
 
@ScottW then what is it?
 
@GamErix lol
 
@GamErix (int*)(speedpointer /* rename it to baseaddress or something */ + 0x0000010C)
 
@JohannesSchaub-litb - what's with the Justin Bieber photo?
 
user1182183
8:47 PM
@R.MartinhoFernandes hm okay
 
@BrettHale it's me! hate it or mate it
 
Hateful mate?
 
@JohannesSchaub-litb - "you hate me, cause you 'aint me". Excellent answer!
 
@GamErix You should use my function.h
 
Xeo
@JohannesSchaub-litb: This was the original idea. As you can see, I made use of the second SCS to go from 9 to 13 rankable overloads. Then I got the idea to make use of the first aswell, and that's where I ran into the problem with the multiple conversion operators. After you solved that, I realized that derived-to-base conversions already had a total ordering imposted on them, so I could just use that and be done.
^ /cc @R.MartinhoFernandes @LucDanton
 
Woot, bug closed as norepro.
 
Xeo
@LucDanton lol, lazy bastard. :P
 
You have your own >.> and if you don't, you're the lazy bastard.
 
Xeo
I have mine... somewhere in an LWS link in the transcript of this room. :(
 
Oh yeah, I was working on a nothing this morning. And it wasn't getting anywhere.
2
 
Xeo
8:52 PM
lawl
 
Because if I have anything close to an Optional concept, then it must have a ValueType, and then how can it be polymorphic?
 
Xeo
It can have a value type or static constexpr bool is_nothing = true; flag!
Or something like that, anyways.
 
@Xeo what does this code do?
i mean, what's the goal?
 
Yeah, so clients of Optional have to handle that now. I hit the problem because e.g. ana uses TupleElement<0, ValueType<T>>.
 
Xeo
@JohannesSchaub-litb The goal was to impose a total ordering on overloads, so you don't have to worry about overlapping EnableIf conditions.
@LucDanton I see.
 
8:56 PM
I sense a new blog entry coming about this..?
 
Xeo
I was pondering about actually writing one.
 
So you can do range::ana([](int) -> optional<std::tuple<int, int>> { return nothing; }, 0) but can't just have [](int) { return nothing; } in there.
 
Anyway, I'm still keeping it for things like foo ? optional_bar : nothing. And nullopt is a dumb name.
 
@Xeo in the testing part, how could we use it with enable_if ?
I don't understand it yet :(
 
Xeo
8:58 PM
@JohannesSchaub-litb Just comment any function out to simulate a failed enable-if condition.
 
ah you mean that if multiple enable_if matches, you wanted to have "prefer this, then that"
 
Xeo
yep
 

« first day (861 days earlier)      last day (4093 days later) »