« first day (924 days earlier)      last day (4040 days later) » 

5:00 PM
in English Language & Usage on The Stack Exchange Network Chat, 4 hours ago, by RegDwighт
The Read the Bills Act (RTBA) is proposed legislation intended to require United States Congress to read the legislation that it passes. It was originally written in 2006 by Downsize DC, a non-profit organization focused on decreasing the size of the federal government. The proposed act is a response to the passing of bills like the USA PATRIOT Act that are thousands of pages long and are passed without copies being made available to the members of Congress who vote on the bill. The bill is aimed at limiting the size and growth of the federal government. Senator Rand Paul (R-KY) stated hi...
 
@CatPlusPlus I've seen multiple people in this room replying to old messages (2-4 hours; lots of messages though) that weren't targeted at them. I guess most of people here are crazy then? :D
 
@JohanLarsson They need an act for that? Woah
@CatPlusPlus bad day?
 
Does the cat even have good days?
 
I hope so <3
 
Cat is nice when we talk about the games he likes. <3
 
5:10 PM
@CatPlusPlus Ya know, Jesus really doesn't need to be brought into the conversation :P
room topic changed to Lounge<C++>: Bad pun Saturday. [c++] [c++11] [no-helpdesk]
 
Punday tomorrow?
2
 
ahahahhh
@JohanLarsson have a star for a bad pun :)
 
@JohanLarsson 'Read the Bills' sounds doable. I can see a possible problem with 'Read and Understand the Bills'.
 
yeah
I don't know what an act means really, just thought it was interesting, proposed legislation perhaps
 
An Act of Congress is a statute by the United States Congress. It can either be a Public Law, relating to the general public, or a Private Law, relating to specific institutions or individuals. The term can be used in other countries with a legislature named "Congress," such as the Congress of the Philippines. Public Law, Private Law, designation In the United States, Acts of Congress are designated as either Public Laws, relating to the general public, or Private Laws, relating to specific institutions or individuals. Since 1957, all Acts of Congress have been designated as "Publi...
this ^
 
5:22 PM
I think we should go a step further: every congressman/senator must pass a quiz about every bill before s/he is allowed to vote on it (and pass/fail rates on the quizzes published).
 
@JerryCoffin I suspect that the bar would have to be set quite low, else Congress would never pass anything.
 
man, hiccups are annoying
 
@JerryCoffin publishing is a good idea
 
3
^ now watching, supposedly very funny
 
@MartinJames Probably. But it shouldn't be set low -- and the scores should be treated like tests in school. Scores persistently below, say, 70% result in removal from office (and no chance to run for public office ever again).
 
5:40 PM
Or you can save time and remove them immediately
 
@TonyTheLion Well, well.
 
hahaha
 
@FredOverflow shame it's an hour long. a 60 second skit based on that thumbnail would have been great
perhaps in the style of:
 
5:54 PM
For my blog, I want to try making some pixel art.
What should I try to make? :D
Ehm... other suggestions? :D
I wonder if somebody has actually done that...
 
@ScottW "Draw me like one of your french girls" FTFY
 
Not, you, specifically. But, I know painters have done such things. I wondering if it translates to pixels.
 
in C#, 28 mins ago, by drch
if i was in congress, id totally just scroll to the bottom and click i agree
 
@LightnessRacesinOrbit Ha.
What a clusterfuck.
 
so
 
5:58 PM
How about a sword?
 
what Wide feature should I do next.
 
That sounds simple enough for me.
 
y'know, I'm getting a hankering for user-defined types.
 
Xeo
Puppy
 
wat
 
Xeo
6:00 PM
do default-currying and partial application.
And typeclasses next
 
no way in hell
firstly, I don't give a shit about currying
secondly, I don't really know what you mean by partial application except that it's something like std::bind and I'm going to wait until I've seen it as a failed library feature
although it really wouldn't be that difficult I guess
but it doesn't interact well with overloading.
 
Xeo
Yep. Throw that one out. Variadic parameters and default-arguments to. And then rename the language to Haswide.
:)
 
std::has_wide?
by the way
would you try building Wide with Clang or something
I just want to check if I have made all the necessary fixes
 
Xeo
Lemme fire up my vbox
 
make sure you get Clang's full source, not just include/binaries, since I depend on some non-public APIs
 
Xeo
6:05 PM
I'm building Clang from source, so...
 
fair nuff
 
Xeo
I hope I can tell where Clang lives?
 
sure
I have no dependencies on Clang's location
 
Xeo
k
 
posted this before, but
 
Xeo
6:06 PM
repo where?
 
@LightnessRacesinOrbit Reminds me of that meme that circulated on the Web somewhere around the 2012 Olympics:
 
ahahahahah
 
And then I was like, "Suck it, Elizabeth"
 
Xeo
@DeadMG: Where do you assume include root for Clang? Or rather, what include paths do you want?
 
6:09 PM
@Xeo clang/include, clang/lib, llvm/include
 
Just to get some opinions, but which email's interface do you like the best. Hotmail, Gmail, Yahoo, Aol?
 
Incidentally, it seems that every time the Queen visits Canada, on July 1st, it's raining.
 
It's so she feels at home, it always rains over there :P
 
Yeah, that's what I thought.
 
there are actually blue skies outside my window
but I admit that this is an extremely rare event
 
6:10 PM
Better take a picture.
 
You live where?
 
indeed
 
Then people'll claim it's 'shopped.
 
@Borgleader England, foo
else there would be no joke
 
Well you could have been in some other rainy place
 
6:11 PM
not when we're discussing the Queen's homeland
 
Xeo
I guess I should ask wtf I actually have to build :D
 
uh
everything with a .cpp or .h extension in the ClangExperiments folder.
don't go building the .wide stuff.
 
Xeo
recursive, I assume?
 
or the VC++ project files.
@Xeo yuppers
oh, wait
also skip the stuff in WideLibrary.
that's for the compiler's run-time use.
 
> I swear (or affirm) that I will be faithful and bear true allegiance to Her Majesty Queen Elizabeth II, Queen of Canada, Her Heirs and Successors, and that I will faithfully observe the laws of Canada and fulfil my duties as a Canadian citizen.
 
6:13 PM
Anyone?
 
it should go in the working directory of the result
 
What do you think?
 
^ The above is the Oath of the Allegiance that anyone has to take before becoming a Canadian citizen.
Although, since I was born there, I never had to do that crap. Ha. Fuck the monarchy.
 
heh
 
Queen Belzebuth II :P (considering how old she is, theres definitely somethin unnatural going on)
 
Xeo
6:15 PM
You should seriously create an SCons or makefile.
 
but then I'd have to actually learn those build systems
 
Xeo
lol
 
last thing - if you intend to actually execute the compiler, you might want to change the settings for your intended output, standard library paths, and target.
 
> D:\\Backups\\unsorted\\i686-w64-mingw32-gcc-dw2-4.6.3-1-release-win32_rubenvb\\mingw32-dw2\\
 
Xeo
Haihai~
 
6:16 PM
This seems hardcoded.
 
@DeadMG Do you have an example of what Wide can do so far?
 
Xeo
lol
 
it is hardcoded.
 
No shit.
 
Xeo
Guys, I need a question upboat.
 
6:17 PM
I have little need for a driver program to take it from the user right now
@Xeo Link
 
Xeo
Any will do
 
done
 
55, 555 rep lollll
 
Xeo
Thx
Xeo, In your code
55.6k 13 105 196
 
it would be a shame if someone were to... mess it up
 
Xeo
6:18 PM
Aw, it cuts off
 
using test := cpp("WideLibrary/test.h");
Main() {
    test.f();
    x := test.std.vector!(int8)();
    test.std.sort(x.begin(), x.end(), get_helper());
}
get_helper() {
    test.std.cout << "get_helper";
    return helper;
}
helper(int8 lhs, int8 rhs) {
    return true;
}
helper(test.std.string lhs, test.std.string rhs) {
    return lhs;
}
 
Xeo
@Borgleader I already took a screenshot
Damn you, I and O!
 
is my current sample that I have compiled
and executed
despite Clang's best efforts to generate WHATTHEFUCK code.
 
Oh that's cool :)
 
actually
very strictly speaking, once I have some UDTs, I could start writing some library components.
 
Xeo
6:21 PM
/usr/local/include/llvm/Support/DataTypes.h:49:3: error: "Must #define
      __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
hm
 
oh yeah
that's a GCC/Clang header thing.
just define the macro in your build script.
 
Xeo
Too.. what?
 
I don't know
it's something to do with a C99/C++ incompatibility.
with stdint.h and cstdint.
or something like that.
 
Xeo
...
 
anyway, it has absolutely zilch to do with Wide, and as far as I know, if you just define the macro, there are no problems and Wide works fine.
 
6:22 PM
meh noone on mumble
 
No comments on my sword?
 
Xeo
Okay, just needs to be defined
 
@Pawnguy7 what sword?
 
Making pixel art to show anybody that might read my blog how bad I am.
 
@Xeo Oh, I finally realized that you meant "What should I define the macro to?".
 
Xeo
6:23 PM
pragmas all over the place
@DeadMG Oh, yeah, typo
"unused variable fty"
wrong initialization order in ctor...
 
@Xeo I mostly just use #pragma once, #pragma comment(lib, "..."), and #pragma warning(disable/default)
oh, uh
 
@Pawnguy7 it's unproportional
 
I might have hardcoded the names of all of the LLVM and Clang libraries.
 
@BartekBanachewicz the handles?
 
the hilt(?) is too short
 
6:25 PM
Ah.
I think you are right.
 
yes, hilt.
 
Like I said, I am bad :D
 
@EtiennedeMartel hey that's my username.
 
but if you just comment them out and add the libs on the linker command line, it should be fine.
 
meh. Everyone is it at some point
 
6:25 PM
@rubenvb Looks like it.
 
@DeadMG stupid msvc-isms
 
You dabble much in pixel art?
 
Xeo
@DeadMG unknown pragmas are just ignored.
 
@rubenvb I will add a conditional define for them.
@Xeo Ah, Clang doesn't have #pragma comment(lib, "path")?
 
@Pawnguy7 nope
 
6:26 PM
that's fine then :P
 
@DeadMG why use them at all? Now you have two places to keep your library dependencies up to date...
 
@rubenvb No, just one.
I don't use the linker properties thing in MSVC.
 
@DeadMG and for non-msvc builds?
 
what about them?
I don't even know for sure if Wide compiles with another compiler.
 
they just magically know about what libraries to link?
oh
 
6:27 PM
I suspect it does, but I don't know.
 
I bet you it doesn't
 
and currently, I do not explicitly support using another compiler.
 
If you've never taken a look.
But Clang doesn't support MSVC compatible code generation.
 
@rubenvb Actually, I spent two hours this morning fixing a number of cross-compiler bugs that StackedCrooked reported to me
@rubenvb What has that got to do with anything?
 
@DeadMG you're using one compiler to build your wide tools, but another to actually use them?
 
6:28 PM
yeah
it's a real funhouse.
 
sheesh
GCC 4.8 not good enough?
 
MSVC to compile Wide, Clang to compile C++ at run-time of the Wide compiler, and MinGW to provide the libraries and headers for Windows.
 
Xeo
Mind telling me which llvm libs Wide needs?
 
wow what a clusterfuck.
 
@Xeo All of them, as far as I'm aware.
 
6:29 PM
@Pawnguy7 I once did pixel art. I made a new image of size 1x1 and painted it black.
 
look at the bottom of stages/semantic/util.cpp and you'll see a giant list of #pragma comment
 
@FredOverflow You must be so proud.
 
Actually, I cheated; the pixel was already black to begin with.
 
@FredOverflow lol
 
@rubenvb Not much other choice. I can ditch MinGW when Clang gets Windows support for libc++ and LLVM's linker is mature.
 
Xeo
6:30 PM
Gosh, Puppy, get your ctor initializers right
 
@Xeo They are right.
Clang and GCC are just over-zealous about issuing that warning
 
although I admit that MSVC could do with issuing it more often (or, indeed, at all).
 
I think I'll buy Brutal Legend on Steam
 
@DeadMG oh, so in something like 10 years?
 
6:31 PM
lol
 
Some programmers can make pixel art, or music... needless to say, I am not one of them.
 
Xeo
./AST.h:176:28: warning: field 'condition' will be initialized after base
      'Wide::AST::Statement' [-Wreorder]
                : body(b), condition(c), Statement(loc) {}
 
@Xeo Except condition and the base class have absolutely no ordering dependencies.
so I could order them however I liked
specifically, the base is at the end since I added that more recently
 
Xeo
Yeah, but that introduces noise to an otherwise nice warning.
 
there were other warnings that Clang issues that I have introduced fixes for
like I have some uses of if(var = llvm::dyn_cast<T>(obj))
post the warnings and I will commit re-orderings that will make it shut up
 
6:33 PM
code uglies
 
Xeo
I have a feeling I could fill a small novel with those
 
lol
I bet that nearly every AST node, at least, triggers that warning.
 
Xeo
Oh gawd, do I seriously need to list all those libs? ugh
 
probably not; but I haven't had time to go through them all yet
 
that's what normal people use a build system for.
 
6:35 PM
there were about half as many
before the latest Clang update.
 
i.e. add_target_link_libraries(foo blablabla blabalba)
or LIBS += -lwhatever -land -lwhatnot
 
I had to use a Python script to generate the list.
from the output of the LLVM build.
 
Xeo
20 mins ago, by DeadMG
but then I'd have to actually learn those build systems
 
oh no
use SCons and be happy
 
Xeo
/home/xeo/llvm/tools/clang/include/clang/AST/ExprCXX.h:924:33: error: use of
      undeclared identifier 'CXXDefaultInitExprClass'; did you mean
      'CXXDefaultArgExprClass'?
    return T->getStmtClass() == CXXDefaultInitExprClass;
                                ^~~~~~~~~~~~~~~~~~~~~~~
                                CXXDefaultArgExprClass
the fuck
 
6:37 PM
use whatever, write the commands and place to get build machinery, and be happy
@Xeo Clang devs like renaming stuff... a lot.
 
Xeo
That's inside the Clang source!
 
hmm
I had a few of those with Stacked, and they were because of a bad enum forward declaration.
check the warnings for something about illegal enumeration redeclarations
 
Xeo
Oh, yeah, fuck. I recently updated Clang svn, but didn't make it yet. That'll probably also cause problems...
 
yeah
 
wow libgit2 fails its own tests with both MSVC and GCC. Microsoft really worked their magic.
 
6:39 PM
I just finished updating Wide to a Clang I pulled like, three days ago, I think.
 
Xeo
Do you use the STMT macro anywhere?
 
no
 
Xeo
hm
 
that's used for Clang's xmacros
 
@Xeo Software Transactional Memory?
 
6:40 PM
they use it to generate visitors and stuff from a list of all the possible statements
 
Xeo
In file included from ClangNamespace.cpp:16:
In file included from /home/xeo/llvm/tools/clang/include/clang/AST/ASTContext.h:26:
/home/xeo/llvm/tools/clang/include/clang/AST/RecursiveASTVisitor.h:2173:1: error:
      out-of-line definition of 'TraverseCXXDefaultInitExpr' does not match any
      declaration in 'RecursiveASTVisitor<Derived>'
DEF_TRAVERSE_STMT(CXXDefaultInitExpr, { })
Okay, something is going wrong here
And I can't pinpoint what it is
 
hmm
errors inside the Clang headers are a lot harder for me to diagnose
 
Xeo
Let's throw some -Wno-stuff in there to reduce the noise...
"unused variable 'lam'" lol
 
where?
 
Xeo
Analyzer.cpp:167
 
6:42 PM
so it is
 
Xeo
Also, seriously, with 'z'?
 
lol, where?
 
Xeo
Analyzer
I thought you were British :P
 
eh
 
Xeo
But we had another instance of you forgetting which English is which...
 
6:43 PM
I never really felt that s vs z was important.
also, yep, I always preferred z.
 
Xeo
There was also that fty unused somewhere
I think in Codegen
Not sure which cpp :P
 
yeah
I wouldn't go anywhere near the Codegen.
not if you wish to keep your sanity
 
Xeo
lol
 
the only serious logic there is dealing with the infinity of shit that Clang can pull.
and ten billion debug variables and checks
 
Xeo
I rummaged through VC's STL headers when I started with C++, I can keep my sanity easily.
 
6:46 PM
those didn't involve debugging LLVM IR by eye.
 
Xeo
lol
 
in any case
 
VS C++ headers are an incomprehensible workaround for a bunch of compiler bug workarounds.
 
Xeo
./ClangInclude.h:8:23: warning: private field 'a' is not used
      [-Wunused-private-field]
            Analyzer& a;
 
I'm not going to remove dead variables from the Codegen because if that shit is not broke, I am not going anywhere near it
 
Xeo
6:48 PM
I still have no clue wtf is going on with Clang...
 
@Xeo Good point GCC/Clang/whatever you're using.
 
Xeo
Did I forget any includes or what.
@DeadMG Clang -Wall
 
@Xeo If you did, you would get missing header errors.
and I only require llvm/include, clang/include, and clang/lib (and Standard, of course)
 
Xeo
No, I mean, implicitly assumed includes :(
I wonder if I'm accidentally picking up a wrong include somewhere
 
Warblegarble?
 
6:49 PM
tbh
if I were you, I'd delete everything Clang, pull from the repo, and build it from scratch
that's what I had to do recently as well.
 
Xeo
Erm. See you tomorrow, then :P
It takes forever to build
 
lol
 
Xeo
And also, I think my Hidden evening is coming up.
So I can't just have it run in the background
I'll let it run overnight later, and check back tomorrow, I guess.
 
fair enough
maybe I'll look into making a CMake makefile, that can serve VS as well.
 
Bleh.
Hm.
I'm confused.
How do you guaranteee atomicity for any type of T ?
 
6:55 PM
align_max_t... would an int64_t's alignment qualify on x86(_64) systems?
 
@ThePhD std::atomic<T>
 
For a really big struct, do you just run a bunch of atomic CPU operations for all the necessary parts of the struct?
 
locking
 
Oh.
 
"a bunch of atomic operations" can never be atomic. Because there are a bunch of them
 
6:57 PM
Even std::atomic<int> will lock if the underlying architecture has no appropriate atomic operation.
 

« first day (924 days earlier)      last day (4040 days later) »