« first day (499 days earlier)      last day (4450 days later) » 

11:00 PM
hmm
 
user1182183
that's what I did
 
I might try that after spring break.
 
That particular illusion never worked for me.
 
user1182183
But ye my friends sister was angry because of the fact we stole her glasses...
 
user1182183
and painted them with permanent markers lol
 
user1182183
11:00 PM
you need to keep it transparent though
 
lol
 
user1182183
a bit messy but after a few tries you'll get yourself a good pair of those glasses!
 
I wouldn't have guessed.
 
All it accomplishes is being annoying and duochrome.
 
user1182183
anyway it's important to keep the red and blue on the good sides, just google if red is on left/right and blue on right/left..
 
user1182183
11:02 PM
believe me it somehow doesn't work when you turn sides O_O
 
It doesn't work either way.
Green is better, anyway.
 
user1182183
It does, I'm living proof
 
user1182183
I've made such simple glasses and I did turn on 3D in crisis 2, and My friends also tried it out
 
user1182183
we all hae the same opinion: COOL!
 
Cheap tricks.
 
user1182183
11:03 PM
we even tried minecraft in 3D but nah,m doesn't look so great
 
user1182183
but Crisis 2 is really worth a shot, wven if you don't like shooters, just try it out in 3D
 
@RafalGrasman What if you don't like shooters and don't like 3D?
 
user1182183
then don't try
 
user1182183
simple, right? xd
 
Ok, rebuilding clang with fixed search paths.
 
user1182183
11:05 PM
S.W.A.T. 4 is also such a great game, especially the CO-OP multiplayer, up to 10 guys doing missions , !
 
Nothing beats Realm of the Mad God.
 
user1182183
 
Except for Overgrowth.
 
Xeo
@RMartinhoFernandes It's kinda sad that you need to rebuild it to fix the header search :/
 
user1182183
11:07 PM
My friend beat his record this weekend ;d
 
@Xeo It's even sadder that I had rebooted since I built it yesterday, and since /tmp was cleaned it's a full rebuild.
 
Xeo
Ouch
 
Clang takes a lot less longer than GCC though.
 
Xeo
Release build, yeah
Debug build is ... bad, though
 
user1182183
ByTheWay, about debugging, does anyone know a free way to debug made DLL's in windows?
 
user1182183
11:10 PM
I mean loading them into a app, then like attaching to it or something
 
@Xeo Do you know how I can set it to use libc++ by default?
 
Xeo
@RMartinhoFernandes Alias?
 
(I could grep the sources, but I mentioned before I'm feeling lazy today)
 
Xeo
That's what I did atleast
 
@Xeo Doesn't work for makefiles and shit like that.
 
Xeo
11:11 PM
Hm
 
Xeo
$ ../configure --with-cxxflags='-stdlib=libc++' or something...
 
My grep-fu tells me --enable-libcpp.
 
Is there a git interface for hg?
 
I think hg-git works both ways.
 
11:13 PM
I'm trying to download this comedy library for potential personal pleasure.
@RMartinhoFernandes That's what she said.
 
user1182183
So nobody got a DLL debugger suggestion? ; p
 
@KerrekSB lol
Why don't you use hg?
 
@RMartinhoFernandes I don't want to learn yet another thing...
 
user1182183
hg?
 
Btw, that thing is released with a note similar to the one found at the end of the nethack man page: "BUGS: Probably infinite."
@RafalGrasman Mercurial.
 
11:18 PM
I wanted to look at the value pointer. That recent question about deep-copying made me wonder why there's no such thing in the std
 
Ah, no. Seems I got confused. hg-git seems to be only for interacting with git from hg.
@KerrekSB There's a proposal: open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3339.pdf (does a lot more than mine)
 
I wonder if it's exception safe
What if in the copy constructor the new throws?
 
Nothing happens?
 
@RafalGrasman what debugger? anyway try OllyDbg, it debugs anything
 
value_ptr(value_ptr const& that) : p(that.p ? new T(*that.p) : nullptr) {} Here?
 
11:21 PM
Oh, wait, I misread the line and confused it with the move constructor
Yeah, it's fine
 
user1182183
It's about debugging with break points and to see at which source code the program crashed.
 
user1182183
I know it's cuz of a dll...
 
Is the default constructor constexpr and noexcept?
 
@RafalGrasman any debugger allows to set breakpoints
 
@KerrekSB Yes. defaulted constructors are always constexpr and noexcept if possible.
 
user1182183
11:25 PM
I'm not a pro, I mention that I am used to debug like the Visual Basic stylu, run the app, crash it and it takes you to the line where it crashes.
 
@KerrekSB What question btw?
 
1
Q: Deep copy a struct to another

Vijayi have a struct which contains strings and pointer within. Is there any library functions available to do a deep copy of the struct into another. I dont want to do a field by field copy since the struct im having is quite large. Does glib have any function that does the trick? thanks

This one. Where the real answer should be: Don't bother.
Were it not for the lack of value pointer.
 
Should I learn C++?
 
@RMartinhoFernandes I like the way it says "by no means industrial strength", and then goes on to define everything and the kitchen sink
@RMartinhoFernandes Oh, C...
I didn't even, pardon the pun, C that.
When all you have is infinite wisdom, everything looks like C++ :-(
 
11:31 PM
yeah C# is started to annoy me because of its limits
I just can't get why I have to convert a byte[8] array to short[4] array?
Its just its 2x
 
@haxxoromer Or "well defined constraints", as they might put it...
@haxxoromer Well, you can't do that in C++ either.
 
@haxxoromer Because eight bytes and four shorts are not the same thing?
 
well I go for assmebly then
2 bytes equals 1 short
 
@haxxoromer The size of one short is two bytes.
 
what am i missing?
 
11:34 PM
One System.Int16 is not 2 System.Bytes.
 
well thats not the point, I mean in memory its already
255 84 32 4 0 123 244 0
why C# can't read as blocks and serve as shortarray to me
its already there
I just can't get why I have to use loops
 
@haxxoromer First off, because byte is unsigned, and short is signed.
 
Ooops, typo.
 
I mean its something like byte[2] 00110101 011011101
why just cant' read it like short[1] 00110101011011101
I want a language which does it
 
11:37 PM
Because that rarely makes sense.
 
I guess'd C++ may be able to do it
 
What are you trying to do?
 
look let me clear it
byte[8] = 10 00 10 00 10 00 10 00 << its in memory I want to access this memory and convert instantly to short because the length of array is already a power of 2, I mean its
short[4] = 1000 1000 1000 1000
its also
int[2] 10001000 10001000
 
What is the point of that?
 
even maybe long [1] 1000100010001000
I need tihs
I can't explain
somehow I need this
 
11:40 PM
I highly doubt that, but anyway, look up MemoryStream and BinaryReader.
 
I want to write my own code I hate using libraries
 
That's an incredibly silly attitude.
 
thanks
 
You want to write your own code, but you don't want to write your own code?
If I remember correctly, you wanted to not have to do this yourself.
 
I can't get your pardon?
 
11:43 PM
You said you didn't want to do the conversion yourself, right? That you wanted the language to do it for you?
 
@RMartinhoFernandes Waddap?
 
no I wanted a language which can allow me to do
 
well how?
 
Using a MemoryStream and a BinaryReader.
 
11:44 PM
Look, I'm converting arrays
the only way to do is (as I've found) using Array.ConvertAll method
and if you read the article on msdn it says
It takes o(n) time to complete it... that means It is using a loop for each element in array
why we have to use a loop
It's already a short I mean
 
It's not already a short.
It's a pair of bytes.
 
well it is an acutally short
2 ints
1 long.
when you're declaring a long
 
It can't be more than one of those things at the same time.
 
just wondering...why the hell would anyone in a c++ channel care about your .net troubles? i had to ask, you see...it's one of those loose ends that makes ya want to tug at it and pull the whole thing apart.
 
That's how the language works.
 
11:49 PM
@RMartinhoFernandes How are you ?
 
@ManofOneWay Hi! Welcome back.
 
@RMartinhoFernandes: In Dwarf Fortress does the game pause on goblin/kobold attacks? Because I hadn't noticed that
 
@MooingDuck Yes.
 
@RMartinhoFernandes k, I haven't had that on either fortress, but just got a undead siege on the cpp one. It's.... going poorly.
 
@cHao well just wondering, how do you feel about C#?
 
11:50 PM
i rather like it. but i don't try and treat it like i do c++
 
well I want to learn assembly but It's just toooooo much low and primitive language
should I go for assembly?
 
You may want to try out C first to make a smoother transition to that low-level.
 
well, guess what? you wanna up and decide an array of bytes is now an array of shorts? it's c, c++ or assembly, pretty much
 
@cHao I don't think it's legal C, either.
Turn it whichever way you like, but you have to make a copy at some point if you want to play by the rules.
 
i know it's not portable...but legal? why not?
 
11:54 PM
@cHao Aliasing etc.
 
@RMartinhoFernandes Thanks. I'm sitting with x86_64 assembly now. It's nasty.
 
@KerrekSB There's an exception for char*.
 
well, then. that pretty much limits you to assembly, if you stubbornly refuse to convert stuff. :)
 
@RMartinhoFernandes Yeah, that's true. Byte sequences are OK.
But you have to start with the desired target type array
@cHao You can convert alright, but you have to make copies.
You can say int a[N];, and then you can read N * sizeof(int) bytes starting at reinterpret_cast<char*>(a).
 
still not portable, though :)
 
11:57 PM
@cHao The construction is portable. The values aren't.
But that's like saying that asking someone's age isn't portable, because you get different answers from different people.
 

« first day (499 days earlier)      last day (4450 days later) »