« first day (948 days earlier)      last day (4001 days later) » 

1:06 AM
idrA left EG
 
@Borgleader You mean he was kicked out? Two weeks ago? Because he acted like an asshole?
 
yeah
 
what is illivid anyway?
 
but hes also retiring
 
"Hey, you look like somebody i should get to know. You're ____ right? And a sophomore? Well hey, I am _____ and I'm a senior. You know I've got your back...for the remaining 4 days haha."

If I approach a girl who keeps looking at me with that dialogue, would good things happen or bad things?
 
1:12 AM
@DemCodeLines Dat girl again?
@ScottW I'm such an idiot to still google that word.
 
Yeah still that girl. Saying it with a smiling face
 
@DemCodeLines So you've made a move, I presume? Congrats then.
@ScottW I'm pretty sure he has made a move for her to talk to him like that.
 
Kinda made some progress earlier by actually looking at her and multiple short quick conversations
 
@ScottW Ahahaha! Totally misunderstood the statement.
Sorry.
@DemCodeLines Congrats!
@DemCodeLines And just be honest. You'll likely to regret it someday if you're not honest with her.
 
@MarkGarcia Let me clarify that though: don't ever lie to her -- but you don't have to immediately tell her everything either.
 
1:25 AM
@ScottW And that is what @DemCodeLines should realize before it happens to him.
 
yiz
LOL this chat is for dating advice now?
 
@yiz Yes. Has been for a while.
 
@JerryCoffin Of course. But we don't know. She might that be accepting and open-minded to just laugh at those things.
 
@yiz well its certainly not for c++
also, notice how its called Lounge? you know like a place to socialize, meet people, and possibly date?
awww yisssss <3<3<3
 
1:27 AM
@MarkGarcia She might be -- but getting some idea of her likes and dislikes first doesn't hurt.
 
@JerryCoffin Only the instinctive nature of men when it comes to dating helps on that. Being too "explicit" in knowing someone, bad for the relationship.
 
www.sosuave.com/articles/wantsyou.htm
 
@MarkGarcia Problem is, for many of us nerds, dating "instincts" really need to be learned.
 
8th paragraph
That is where i got some motivation and an idea from
 
@JerryCoffin Ouch. That hit me. :)
 
1:31 AM
Anyways I need to catch her alone and I'm kinda afraid what her reaction would be
 
@MarkGarcia Believe me -- I'm speaking from (long) experience.
 
@DemCodeLines I'm speculating, but her reaction would likely be talking with you about serious matters (though not necessarily pertaining to your relationship). I often notice that on some girls.
 
@JerryCoffin I have no such knowledge of this instinct you speak of
 
@Borgleader Because its instincts! We do not know them until we see their side-effects.
 
@Borgleader I put it in quotes precisely because for many of us, it's not anywhere close to instinctive or obvious.
 
1:34 AM
@JerryCoffin Of course, that depends on what kind of girl she is.
 
What I meant to say was I'm part of the "many of us", not sure if that was clear or not.
 
@MarkGarcia Lack of instinct is mostly independent of the girl/woman.
@Borgleader If it wasn't before, it is now, anyway.
 
yiz
Part of the fun in dating is fantasize, sometimes when you know all the things about the other person, attraction faints
 
C++; // makes C bigger, returns old value
 
yiz
then again you can be attracted to each other but your personalities do not match and ends up apart
 
1:40 AM
@MarkGarcia what serious matters?
 
2 days ago, by Xarcell
C++; // makes C bigger, returns old value
again... really?
 
yep
:P
 
@yiz Certainly happens at times -- but even if it doesn't lead to a life together, can be a lot of fun for a while.
 
hey baby...
 
@DemCodeLines You know, things about life, some personal aspects of her life (but not the deep ones). What do you think of this and thats... Stuff like that.
 
1:41 AM
@ScottW As are we all. It's called gravity.
 
Weird Al + The Lonely Island :O
 
@ScottW What? You suspected I had no mass?
 
yiz
@JerryCoffin IMO crush is more fun than real love, but it does not last.
 
let me see if I can come up with a new joke...
 
yiz
And then there is timing
 
1:43 AM
"Knock Knock"
"Who's there?"
*very long pause*
"Java"
 
@yiz But love is happiness and joy.
 
@Xarcell I thought you said "new".
 
C > C++; returns true!
new to me...
 
@Xarcell how is that new?
 
it's new to me, because I've never seen it before.
 
1:44 AM
I am not so sure about the "I got your back" part, because i kinda have only 4 days left.
 
@Xarcell C > C++ gives UB.
 
Hah!
 
Before graduation, that is.
 
what's UB?
 
@JerryCoffin User-defined behavior?
 
1:45 AM
 
@DemCodeLines What? She'll leave the place after graduation?
 
Reminded me of sbi's video
 
@Xarcell Undefined behavior. IOW, it could give true, or it could give false, or it could make demons fly out of your nose.
 
No but i will.
I won't be at school one i graduate
duh
 
@DemCodeLines Then go for it! Make every minute count!
 
1:46 AM
Yes yes I know but i mean like the "I got your back" part. Maybe i should say something else.
 
@ScottW I've been accused of being a lightweight before, but I think this is the first time being accused of having no mass at all...
 
@DemCodeLines Make your instinctive nature work and do the job. @ScottW would be very happy if you succeed.
 
US
Massachusetts
 
@DemCodeLines But you're not leaving the country immediately, right? Right now, you only need her to want to stay in contact after school ends.
@ScottW We'll all attend...
 
I am not leaving the country at all but right now i only see her in school
oh haha Michigan is a nice place :D
 
1:50 AM
@JerryCoffin If he pays all the expense.
@DemCodeLines But surely she lives near your place.
 
@DemCodeLines That's my point: assuming you get to the point that you both want to stay in contact, it's easy to keep seeing her outside school.
 
Yeah well that point has to come first. My only concern is "I got your back" line. Isn't there a better line?
 
@DemCodeLines "May the Force be with you." That's better.
@DemCodeLines Don't worry about that. What matters is that we'll all be very happy if you succeed in even just talking for an hour with her.
And we would be very sad if you don't (can't).
 
@DemCodeLines Yes -- "Hey, you wanna hang out?"
 
yiz
@ScottW In scare her off, yes :p
@DemCodeLines 1) start having conversations 2) ask her out for a movie or dinner casually
 
1:59 AM
Dating advice on a programming chat? Interesting.
 
yiz
disguise it so even if she turns it down you can still be friends
 
I would reiterate though: doing at least a little emphasize what you know you have in common (photography) is probably a good idea.
 
@Pawnguy7 "Loung<C++>: Dating advice for nerds."
 
yiz
Now I need advice
This mod Gordon re-assigned the ownership of Troll Bin to me last night
but when I trying to get into that chat this morning, it is gone
room not found :(
have him or another mod played me? :'(
 
@yiz Creating a new chat room is pretty easy.
 
yiz
2:02 AM
yeah but that room was semi active
 
I think my room might die.
 
yiz
it would be frozen when it is inactive
 
@ScottW yes i already had the Prom. Senior dance is up around the corner and i need to buy the tickets this week only, so it's kinda too soon
 
LOL. Just noticed I've mispelled "Lounge".
 
first i need to see if I can find her alone which is pretty hard since even when i see her in the hallway, she is kinda in a hurry
They can bring whoever. Ill try, I want to avoid when she is with her friends.
Makes me sound so badass haha
Lol ill dig up some YouTube videos
 
yiz
2:15 AM
I am nursing my injured teeth 5000km, it will be romantic :p
I had strangers asking me out before ... it is weird because I am not even that pretty
true
<-
taken last week
 
Asking out on the internet is pretty easy tbh
 
yiz
I am not a big fan of internet dating
I consider dating "I see you, you see me" in real life
@ScottW you need to get together with ThePhd, you two are made for each other :p
 
2:31 AM
It's so hot here
 
Sorry Scott I wouldn't. Not right now :D
 
2:47 AM
For some reason...
 
Is the robot around? @R.MartinhoFernandes
I need his expert Unicode advice.
 
yiz
Robor is gone, I suspect Cat++ swallowed him
 
Probably wrong time of the day for him.
 
i think its probably 5 in the morning for him now
 
Yeah, this time it's serious. One of the WIP features of my pi-program has such messy string manipulation that I'm gonna convert it C++. And I need to properly handle Unicode strings. I also need it to be flexible enough should I decide to change the file formats in the future.
 
3:07 AM
why does a Pi program need Unicode strings
 
I'm implementing the checkpoint-restart. Which I need to deal with Unicode filepaths.
So I need to serialize binary data into readable text. Then be able to deserialize later on.
All text is stored as UTF-16 on the disk. But internally, the program uses wchar_t which has different sizes depending on the OS.
 
In Unix-like systems I believe everything is UTF-8 for files and path names while in Windows it's UTF-16 and they use wchar_t rather than char
 
All the string manipulation crap is bad enough for me to redo this part in C++ just for the RAII. But while I'm at it, I want to make sure I get the Unicode right the first time.
 
@Rapptz Yeah, which is why I currently have two layers in the program. Internally everything is wchar_t. But when I write to disk, it's explicitly converted to UTF-16. (I may decide to change that in the future.) So I want to make sure I get it right.
Furthermore, I need to be able to hash the output and verify those hashed upon deserialization to prevent intentional/accidental tampering of the checkpoint files.
 
3:17 AM
I got new headphones :3
 
Yo does anybody know how to deal with tlb files in Windows? I got this really annoying problem where my classes loose their methods when going from c# to C++ because those methods were inherited.
@Mysticial don't all cool people use HDF5 for checkpoints?
 
@Mikhail But I'm not cool. :)
Actually it's not the numerical data that's hard to save. It's the stack-trace and all the filepaths pointing to the chunks of numerical data that's already on the disk.
 
hey there are people in here
 
@Daniel hi!
 
hi @Mikhail how goes it?
 
3:25 AM
@Daniel trying to get a 32bit C# dll into a x64 c++ code. I want to kill myself.
 
why in the world would you subject yourself to that?
 
The people at Zeiss wrote a C# dll in 2001 and use it control all their microscopes. They sell the thing for 200k but can't get a decent SDK
BLAME IT ON THE OEM
 
ow
 
jeez
12 years later lol
can't turn on the ps3 nowadays without an update
 
My program uses every single framework and threading mechanism know to man. ATL,MFC,Qt,C#,CUDA,C++11,HSL,TimerQues
 
3:28 AM
ATL?
 
@Mikhail That sounds like a disaster.
 
@Mysticial it most certainly has been. The biggest problem is that these hardware manufactures outsourced their software: so somebody made it in 2001 and nobody can or has changed it since.
 
sounds like most of my freelance clients
 
@Mikhail Oh geez...
 
The real solution is to always expose DLLs and stick to only C++. This is what we do in Linux land.
 
3:30 AM
Or just start from scratch?
 
"all new episodes of 'I want to triple penetrate you'"... well, just heard that on a cartoon
 
Is there a way to force inheritance in c++ in the case of static libraries?
 
Do any of the answers here properly handle multi-byte UTF8 characters?
22
Q: How to convert wstring into string?

BЈовићThe question is how to convert wstring to string? I have next example : #include <string> #include <iostream> int main() { std::wstring ws = L"Hello"; std::string s( ws.begin(), ws.end() ); //std::cout <<"std::string = "<<s<<std::endl; std::wcout<<"std::wstring = "<<ws<<s...

Note that my code needs to be locale independent.
 
3:54 AM
AT_WC tempText[n];char textOutput[n];wcstombs(textOutput,tempText,n);
 
@Mysticial Looking through them, I see what look (at least to me) like fairly serious of one sort or another with all but Bart Van Ingen Schenau's. I'm not sure his is right, but I'm pretty sure all the others are wrong (in some way or other).
 
What a mess...
 
thats what you deserve for using wide characters
 
Not only do I need string <-> wstring conversions, I also need string <-> UTF16 and wstring <-> UTF16.
 
@Mysticial Yes. Worse, something that works, will probably be (or at least seem) almost worse.
 
3:58 AM
yes but why
you should also do qstring just for fun
 
yiz
I suspect robor is on hiding, his last call to flexo got me banned for a week
so now I am back he's disappeared
 
@Mikhail A couple design flaws from the beginning. Microsoft is fairly consistent the the use of UTF16. (including wchar_t) So I used wchar_t for everything that needs Unicode or that touches filepaths.
But in order to keep the outputs consistent, I need to write and parse UTF16 files - regardless of the size of wchar_t.
 
@Mysticial I guess we won't see a linux version?
 
@Mikhail Right now, the Linux version works fine with a couple of hacks. But it won't properly handle multi-byte UTF8 characters in filepaths.
 
@Mikhail I'd guess Linux (or anything but Windows) is a large part of the motivation to rewrite. As is, it's probably fine on Windows.
 
4:02 AM
I finally upgraded from WinXP32 for the first time in many many years.
 
woah...
 
@MooingDuck you should have done a clean install
 
@Mikhail er, yeah. I wiped everything first
 
AND ALL MY PROBLEMS WERE SOLVED WITH A CAST
OEM library didn't expose inheritance correctly in the .tlb file and I casted it and everything worked. Am I in-trouble or just fpermissive?
 
@Mysticial A remarkable number of those answers are complete fail. I can't tell for the accepted answer, it appears overly complicated.
 
4:11 AM
As it is, I think I'm probably gonna go with using manual implementations for UTF-8 <-> UTF-16 <-> UTF-32 and using macros to map them to the conversions that I actually need:
- string <-> wstring
- string <-> UTF-16
- wstring <-> UTF-16
 
Windows has a UTF-8 <-> UTF-16 conversion function in it's API. So that makes it easy.
 
Use ICU
 
@MooingDuck Yeah, that's what I was referring to.
 
Don't touch wchar_t esp if you want portability
 
4:12 AM
@CatPlusPlus Too late.
Internally the program is locked on wchar_t. The only thing I can change is the file-formats that it uses.
I (not too) recently started migrating all the internal error-codes back to char. But anything that touches filepaths or user-input will require Unicode support.
The program has been officially "Microsofted" from the start. (in terms of strings)
 
Microshafted.
 
@EtiennedeMartel It used to be worse. But I managed to inject my own API between all the other stuff like threads, FileIO, etc...
 
@Mysticial nonsense, just find all the wstring and replace with basic_string<char16_t> or whatever.
 
Unicode strings is one thing that isn't gonna be that easy to change. The only consistent about the program is the consistent use of wchar_t everywhere.
@MooingDuck I was considering something like that. But I'm not sure if I want to lock myself to UTF-16. Granted, it might be just as easy to do char32_t in the future.
But I'd need to make sure my build environment has enough C++11 support to do that.
 
If your code is wchar_t at this point, you're effectively locked into utf16 now anyway. char16_t just makes what you have work on linux.
pft, even msvc has had char16_t enough to do that. (not complete, but enough)
 
4:21 AM
@MooingDuck It actually works fine on Linux right now since the program consistently wchar_t everywhere that needs wide-characters. I just put in some hacks to make it output UTF16 files.
Anyways, I haven't decided on anything yet. But knowing myself, I'm probably gonna make a macro that maps to either wstring, u16string or u32string depending on what time of the day it is and whether or not I'm hungry.
 
Lol.
Is the memory size of your strings a concern?
 
I did that with SIMD vectors. I can totally do that with strings.
@ThePhD Not at all. And performance doesn't matter.
 
@ThePhD It always have been a concern for most people.
 
UTF16 is a good choice for Chinese Characters because they take only 1 code point in that case.
It's also a good match for windows' system internally.
However, since you're cross-platform, you may need something easier to deal with. Because your program is actively used by people all around the world, UTF8 seems like a poor choice because then you're taking 2-4 bytes for Chinese/Japanese characters
 
Yeah, I don't care about space or performance here. Computationally, there is very little string manipulation.
 
4:27 AM
UTF32 matches Linux's internal implementation (wchar_t), and it's trivially downgradable to UTF16 (in many cases it is a one-to-one deal)
 
@ThePhD I moved away from using char and relying on UTF8 since it was locale dependent. wchar_t and UTF16 works great on Windows.
 
to be honest
in the existing C++11 system, UTF-16 is the most viable choice.
UTF-8 is crippled by the whole no distinct char8_t type thing.
 
Yeah, it's only bonus is easy ASCII-char stuff and compatibility with some network protocols (protobuf for one).
Still, the pi program is on disk.
 
Never thought I'd have to fuck with Unicode in a program that computes Pi... lol
 
Almost entirely on-disk. No network components, and it's going to explicitly work with languages other than plain english, so.
UTF16 or UTF32 take the cake here.
 
4:30 AM
@ThePhD Good thing is that the only point of contention is the Unicode. All the computational stuff is already taken care of.
 
Because you're not processing mountains of text and just filenames, UTF16 makes it work with a lot of systems right off the bat (really just Windows. No idea what Mac OSX uses; probably UTF32 like the rest of linux).
 
Basically, I need to serialize and deserialize the entire stack-trace which consists of:
- integers
- and file-handles (with Unicode paths)
 
@Mysticial Why are you fucking with Unicode in a program that computes Pi?
 
@DeadMG filepaths. User can input unicode file paths. And the program may run from unicode filepaths.
 
orite
 
4:35 AM
At one point, I actually rigged the program up where you can edit the entire string table and change them to whatever language you want.
That didn't turn out too well.
 
Lulz
 
lol
I have just implemented the most disgusting hack ever
 
@DeadMG XOR swap?
 
no
try {
    return someshit;
} catch(...) {
    return someshitelse;
}
 
That can throw?
 
4:39 AM
won't it always return someshit?
 
@Mysticial Both might throw, but if the second throws I'm happy with it propagating.
it's a disgusting hack because someshit failing but someshitelse succeeding is normal behaviour :(
 
@DeadMG too much functional programming
 
This is just ugly in C++, it's equivalent to Maybe chaining
 
This is really weird. I'm humming in my mind "Strangers in the Night". Then suddenly my co-worker sang it. I'm sure I'm not making any sound here.
 
@MarkGarcia go home
 
4:44 AM
@Mikhail I wish I could.
 
@CatPlusPlus Well, really, I need to refactor the entire system.
but I can't quite be arsed right now
 
@Mysticial Just ~2.2K 'til 100K!
 

« first day (948 days earlier)      last day (4001 days later) »