« first day (782 days earlier)      last day (4148 days later) » 

9:00 PM
@DeadMG const std::initializer_list<codepoint> <--- Looks good?
 
no const
 
Clients need support for non-Unicode characters.
 
Or should I drop the const?
Ah.
 
@CatPlusPlus By "gain control" does it mean that the debugger takes over and emulates the process's operations one-by-one?
 
@R.MartinhoFernandes There's a character that's not in Unicode?
 
9:00 PM
Or is there a more efficient way of doing it.
 
Yes, motherfucker, you heard that right. I am working with Unicode at home, and beyond Unicode at work.
 
@Mysticial No, but the debugger does gain a few special rights
 
@R.MartinhoFernandes Do you expect the codepoint const* in things like case_properties to be null-terminated? I mean they're almost like strings.
 
@DeadMG Yes, several. And apparently there are enough people using them to justify paying me a salary.
 
9:02 PM
@ThePhD They are strings (essentially)
 
user1182183
First-chance exception at 0x76F4B9BC in samp-server.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0361FE9C.
 
So then all the initialzier lsits will have to have a {/* ... */, 0 } at the end.
 
user1182183
how to track back where the call comes from?
 
@ThePhD As is, yes. That can be changed to use the end of the initializer list, but is probably easier to just generate the null for now.
@ThePhD Yeah, do that.
 
user1182183
it just shows me a } in throw.cpp (read only) =.= Genius
 
9:04 PM
Call stack window.
 
So a debugger thread just takes over the signals that the main process throws? Or does it actually allow instruction-by-instruction execution?
I don't see how the latter can happen efficiently.
 
@Mysticial Yes, it does.
 
@R.MartinhoFernandes Yes to instruction-by-instruction?
 
FWIW, I use a debug build of InDesign. Not sure if that matters.
@Mysticial Yes.
 
Xeo
@Mysticial Who said debugging happens efficiently?
 
user1182183
9:06 PM
ideone.com/RxGKCV from 134... something in between ;/
 
If the main process is allowed to run natively, the only way to stop it at a certain point is to context switch it out at exactly the point where you want to break.
 
@Mysticial How else would you do step-by-step?
 
user1182183
view>other windows> call hierarchy?
 
Debugging API is exposed by the kernel, it can do whatever it needs to do
 
@GamErix Debug > Windows > Call Stack IIRC.
 
9:07 PM
So I surmise that the OS has the ability to switch in a process for exactly N instructions?
Like, if I set a breakpoint. How does the main process know to break out at that instruction. If it runs natively then there's no way to tell unless there's hardware support. (maybe the hardware does support breaking at a specific address, I dunno)
 
there are hardware breakpoints, at least on x86, I think
a lot of it is OS support
 
Traps, traps, traps
 
@DeadMG I guess that does it. There's hardware support.
 
OS couldn't function without hardware support
 
Without it I couldn't see how it's possible to implement a debugger without running the main process in emulation.
@CatPlusPlus My computer wouldn't turn on without hardware support.
:)
 
user1182183
9:10 PM
 
user1182183
doesn't tell much..
 
Stepping is done with trace flag
Then CPU traps after every instruction
@GamErix It tells everything
 
@CatPlusPlus ah ok. I see how that works.
 
@Mysticial That's why there's hardware support.
 
user1182183
@CatPlusPlus how do I know which line in my code crashed? can't read it from there ;o
 
9:11 PM
Yes, you can
 
I am getting this src/ucd_data.c++:25:41: fatal error: ucd/age.g.inl: No such file or directory
What now?
 
No one reads the instructions. You were right @Etienne. Sigh.
 
Haha.
I skimmed!
 
@GamErix Click on parts of that window and it jumps around. Click the one that mentions your code.
 
@R.MartinhoFernandes Hey hey, I read the instructions. D:
 
9:13 PM
@R.MartinhoFernandes Told ya.
 
You don't really have to jump anywhere, you can just read it from the stack
Even what exception was thrown
Magic
 
Hm.
 
@wilx So, yeah, get the zip in the downloads page and inflate it. Does not work on MSVC; only tested on GCC 4.7; may work on recent Clangs; has at least one known bug.
 
user1182183
@CatPlusPlus black magic for me
 
It involves reading
 
user1182183
9:14 PM
PolygonTemp.push_back(amx_ftoc(temp[3].X));? this is the next statement that WILL be executed
 
user1182183
does that mean the previous line crashed?
 
Ok, got it, read it, it is compiling now.
Got /home/wilx/bin/ld: unrecognized option '--out-implib' this time.
 
Oh.
That is generated by SCons to build libs. :S
What compiler are you using?
 
Ubuntu, GCC 4.7.2
 
Hmm, I usually compile on MinGW. Gimme a sec to test this on Linux.
 
9:17 PM
There are no import libraries on Linux
 
Indeed.
 
@NolwennLeGuen Whoever told you that should probably be slapped. — njk 21 secs ago
 
And by a sec I mean, potentially five minutes, because the poor Raspberry Pi swaps like there's no tomorrow to build this thing.
 
ELF supports unresolved externals, so it doesn't have to do that double indirection shenanigans Windows compilers do
 
user1182183
fuck it Ill just turn on 10000 breakpoints
 
9:18 PM
> virtual memory exhausted: Cannot allocate memory
It did not swap this time.
Hmm, what can I kill...
 
You can only swap so much
 
I can also make more swap space.
resize2fs, here I come.
Wait, that will require a reboot anyway.
 
Create a swapfile
 
Ohh wait.
[rmf@calypso ogonek]$ swapon -s
Filename                                Type            Size    Used    Priority
[rmf@calypso ogonek]$
I never enabled the damn partition.
 
@CatPlusPlus What double indirection shenanigans?
 
user1182183
9:25 PM
huh wtf
 
user1182183
it's going like line 100,99,100,101,102,101,102...
 
@DeadMG __imp stubs
 
Ah, and there we go now.
 
user1182183
can statements go back? :O
 
@CatPlusPlus Those are deprecated now.
 
Xeo
9:26 PM
@GamErix Loops?
 
user1182183
@Xeo no loop
 
@GamErix Are you debugging optimized code?
 
user1182183
it's compile in Release yes
 
user1182183
compiled
 
9:27 PM
Do you know that that is a bad idea?
 
user1182183
how is optimization "going back to a previous statement" ? ;S
 
user1182183
hmm ok will fix thhe debug ;
 
@GamErix It might not be running the code it is showing you.
 
user1182183
<compile errors>
 
If you can't even read the callstack, you won't be able to debug optimised builds
 
user1182183
9:28 PM
Even if I copied the pdb etc into the app directory?
 
Debugging optimized builds is something we avoid unless you cannot repro the issue in a debug build.
 
user1182183
@R.MartinhoFernandes ah okay
 
@R.MartinhoFernandes LF / CR, LF, or CR ?
 
it's CR/LF
for Windoze
 
Yeah, but I have no idea what R. uses in the Repo.
 
9:30 PM
Use LF everywhere
 
@ThePhD I use LF all over.
 
Interesting!
 
hi , I need a little help with g++ . Can somebody help me ?
 
Ah. The copyright notice in the UCD compiler generates CR/LF
 
what's LF/CR?
 
user1182183
9:31 PM
Why do I always forget to attach to proces.. -.-'
 
user142019
@bamboon line feed/carriage return
 
@bamboon Reverse Windows.
 
@R.MartinhoFernandes: Yours is actually the first significant in size piece of C++11 code that I have seen. :)
 
@CatalinFestila No.
 
It looks like a different language from the C++ I know :)
 
9:32 PM
@wilx It looks like the future that MSVC isn't apart of currently at the moment.
 
Screw MSVC
 
Why?
 
maybe is another chat where can I find help ?
 
They seem to be progressing on C++11 as well.
@CatalinFestila: Ask the actual question first?
 
@wilx :3c I'll let you live in that fantasy land for just a little while longer.
 
9:33 PM
Chats are not for questions
 
@ThePhD Hard to argue that when they've just dumped a shitfuckload of C++11 features
 
@ThePhD: Evidence.
 
Why is this so hard to understand
 
@wilx Are you building a static or shared lib?
 
9:33 PM
The static lib built just fine here.
 
@R.MartinhoFernandes: Since the shared has failed I have tried static and that worked well.
 
@CatalinFestila Have your courtesy downvote
 
Ah. Building shared now.
On Windows it builds a DLL fine.
 
It's not even C++
Bad question, bad tagging, bad code, bad everything
 
user142019
@CatalinFestila it was already downvoted (so it’s a crappy question) and you dare to post it here. This means even more people will see and downvote it.
 
9:34 PM
 
@Zoidberg'-- No, I downvoted it. It was at 0 when I did that.
 
I made it -4
 
user142019
@DeadMG oh. Oh well, it’s crappy anyway. :P
 
@ThePhD You're bad at typing
 
@CatPlusPlus Exceptionally.
 
9:36 PM
and where I can post my issue ? maybe it's a wrong chat . It's another chat about g++ ? I don't find it.
 
user142019
3 mins ago, by Cat Plus Plus
Chats are not for questions
 
10 secs ago, by Zoidberg'--
3 mins ago, by Cat Plus Plus
Chats are not for questions
 
I don't know that
 
user142019
 
@CatalinFestila Try tagging it or
 
9:36 PM
@ThePhD: That's fairly old. Sutter has mentioned some of the features they are working on that will be in CTP.
 
@CatalinFestila Change parameter of textRead to char const*
 
@wilx "Will be"? The CTP was a month ago.
 
user142019
It’s time to take a shower come up with good ideas.
 
@wilx Yes, it definitely is.
 
Well, I have seen some videos, I have not actually tried to d/l it.
 
9:38 PM
Ah, pure LF output.
 
Oh, it's Nikolaustag.
 
Xeo
And nobody put something in your boots?
Maybe you should've been at @sbi's place yesterday night, I'm sure he would've put something in for you. :)
 
user1182183
tips on how to debug a loop with 15 lines x 300 loops?
 
300 loops?
 
Xeo
@GamErix Burninate code, start over.
 
9:40 PM
300 what=
 
user1182183
@Xeo I have to loop all nodes..
 
4500 lines of code you mean?
 
Ohhhhh.
300 iterations.
 
@Mysticial dafuq are you doing here?
 
user1182183
@R.MartinhoFernandes yeah
 
9:41 PM
Phew.
 
weren't you banned?
 
user1182183
for(unsigned int k = 1; k < tbcway.size()-1; ++k)
 
Xeo
@LuchianGrigore Wat?
 
@LuchianGrigore me? haha nope
 
user1182183
@LuchianGrigore whoa mE?
 
Xeo
9:41 PM
Why would @Mysticial be banned?
 
size() - 1 looks wrong
 
user1182183
a mystical
 
@Xeo it was requested...
 
@LuchianGrigore Hehe, you made a mess now.
 
@Xeo See the starboard.
 
user1182183
9:41 PM
@Pubby k-1,k,k+1
 
Oh, I didn't see the k = 1
 
Haha
I'ms tepping through the UCD Compiler
Checking one statement at a time.
 
185$ for 10 extra cm...
 
Jesus christ, I need a life.
 
yea, right
 
user1182183
9:42 PM
I have narrowed my problem to this code: ideone.com/hnHjCS
 
@ThePhD What for?
 
@LuchianGrigore flight?
 
haha
 
Xeo
9:43 PM
@LuchianGrigore Dafuq.
 
@R.MartinhoFernandes Just making sure it's writing out everything alright. I've checked the codepoint stuff DeadMG did, then I'm waiting to hit the { } stuff for the initializers list.
 
@LuchianGrigore Is that a penis enlargement site or whatever?
 
@Xeo the troll you missed this morning
 
@Xeo Evan wanted to ban me. He got himself banned instead.
 
Xeo
Ah
 
9:43 PM
@R.MartinhoFernandes reduction*
 
user1182183
ok 15x300 F5 presses left...
 
AGH damnit Id di it wrong and put too much spacing.
 
@GamErix Just insert a few prints.
 
user1182183
my fingers will be broke :(
 
Don't do it line-by-line.
 
9:44 PM
@GamErix Do you know what you are looking for? If so you can make conditional breakpoints.
Or tracepoints (like breakpoints, but they print stuff instead of breaking).
 
... Wow holy shit, I forgot C# outlines teh code you're currently stepping through in BRIGHT MOTHER FUCKIN' YELLOW.
 
If I had to debug line-by-line it'd take me trillions of to debug anything.
 
Can't read shit in this whole block.
 
user1182183
@R.MartinhoFernandes how to make tracepoints? :D
 
user1182183
else Ill just use cout...
 
9:45 PM
Not sure :/
 
user1182183
well, cout is the way then.
 
I think you can right-click a breakpoint and select "Action" or something.
Then you tell it to output instead of breaking.
@wilx yeah, I get the same error :S
Dafuq scons.
 
:)
 
user1182183
if I edit the code, do I havetto recompile or will it apply on-the-fly?
 
Autoconf/Automake/Libtool FTW!
 
9:48 PM
Oh, wait.
env = Environment(options = vars, ENV = os.environ, tools = ['mingw', 'gcc'])
This might have something to do with it.
I have a feeling it is picking mingw always.
@wilx Can you test that for me? Remove that mingw part (or reorder it) in the SConstruct file and try building it shared?
 
Ok, on it...
 
user1182183
Warning 1 warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' z:\programs\microsoft visual studio 11.0\vc\include\xutility 2176 1 RouteConnectorPlugin
 
user1182183
hmm could it be this?
 
well that basically implies that you passed a bunch of raw pointers
it doesn't necessarily mean that the call is actually unsafe
 
9:50 PM
Ah.
It warns if you pass pointers? WTF.
 
Xeo
@R.MartinhoFernandes Yeah, it's annoying.
 
No wonder people ignore warnings.
 
Xeo
> To disable this warning, use -D_SCL_SECURE_NO_WARNINGS
 
That probably disables useful ones too.
 
@R.MartinhoFernandes: Reording does not help. Removing it breaks the build.
 
9:52 PM
Ah. Ok. Thanks anyway. I will investigate more.
 
Removing , tools = ['mingw', 'gcc'] entirely seems to help. Tests pass.
 
Oh, neat.
Maybe the tool name is not "gcc".
 
"robotisanubbery" is the real tool name
 
@R.MartinhoFernandes It is, but they're loaded in the order you give
I think
 
@CatPlusPlus Well, just "gcc" does not work :/
 
9:57 PM
Hey folks.
 
And I would expect mingw to not be loaded on Linux at all.
 
I've used ['gcc', 'g++', 'gnulink', 'ar', 'filesystem', 'install', 'packaging'] for Kyro
 
hi catz
 
user1182183
hmm
 
user1182183
loop number 296
 
user1182183
9:58 PM
array size 298
 
user1182183
when it begins with loop 297
 
user1182183
even before that
 
user1182183
it crashes
 
Though mingw does look for mingw32-gcc, not gcc
vOv
 
Where is the packaged tools folder on Linux?
 
9:59 PM
I think I've found a bug in libstdc++'s std::vector, but I'm not sure if the C++11 standard actually guarantees what I think it guarantees. For background, see pastebin.com/sPmfWKKM — basically I'm trying to make an "aligned_allocator" that always allocates with a certain alignment. But it doesn't work when I use it with libstdc++'s std::vector. (It does work with libc++'s std::vector.)
 
....
Holy shit.
I've done it.
ucd_data.c++ compiles
A... Ahahaha
 
@ThePhD Neat.
 
YEAH FUCK YEAH WHO'S THE BOSS NOW MSVC EAT A DIIIIIIIIIIIIIIIIIIIICK
 

« first day (782 days earlier)      last day (4148 days later) »