« first day (1688 days earlier)      last day (3486 days later) » 

16:01
As for hello.wide, uncommenting only //local := m.std.vector(std.string)(); and nothing else and g++ complains about lacking __gxx_personality_v0
Interesting
@meet I was really puzzled by the mail. Are you studying for an exam or something? The questions seemed so random.
user562566
if you're using mingw 64 you should explicitly define your target to both the compiler and linker phase as well as the standard library you're linking against. -m32/-m64 -lstdc++/-lstdc++11/-lgnu++11 (not sure what the gnu extensions one is named)
user1804599
@Ven I was dining.
Ven
Ven
@rightfold oh! was it good
user1804599
yes it was friet met frikandel speciaal en een bockworst.
user562566
16:04
@milleniumbug add -lstdc++
@TechnikEmpire I don't think that's it
@TechnikEmpire Tried that earlier
user562566
@milleniumbug note about order of where it should appear stackoverflow.com/a/6045967/562566
@TechnikEmpire Didn't change anything. Note that I'm not dealing with typical g++ setup, I'm dealing with Wide.
I'm out of ideas for now. brb, need to eat something
@milleniumbug Also an EH implementation internal function.
user562566
@milleniumbug right but still, the errors you're getting are clearly that you have no implementation for the things you're #including, and since they're standard things, it's missing a link against the standard library somewhere somehow
user562566
16:15
out of curiosity what is this Wide
user562566
oh nvm I see
links fine for me
crashes when executed though which is probably a codegen bug in the compiler
user562566
in mingw?
user1804599
/dev/full is nice.
g++ -print-search-dirs prints expected search directories (the ones that point to the 4.6.3 version)
16:24
you need to link libgcc_s_dw2-1.dll
I'm pretty sure that's the DLL holding the EH implementation
g++ should be linking it for you but try linking it manually
Ok, maybe that's more rudimentary issue
how so?
Nevermind, I'm just dumb
what was the issue?
16:29
@TechnikEmpire No in Wide
@milleniumbug Oh, really?
that's stupid of me.
oh no wait
it's stupid of ThePhD, apparently ;p
user562566
lol
but that certainly explains why you can't find Itanium EH support libraries.
user562566
the joys of using mingw. don't feel stupid, anybody
I just downloaded it without looking
Downloading DW2 now
reasonably enough
16:31
Worked with premake4
I uploaded that one
the base MinGW4.6.3's Standard headers do not all work out of the box with Clang- some of them require some fairly trivial syntactic modifications to work around a bug in Clang's parser
it's nothing you should not be able to handle easily but I just though I'd mention it ahead of hand
user1804599
I need string view.
std::experimental::string_view
user1804599
Boost.
user1804599
Y u no string view.
16:33
it already has string_view
it's called std::string
#define NUM_ELEMS(a) (sizeof(a)/sizeof 0[a])
user562566
isn't string_view same concept as string_ref
That space is for sissies, isn't it?
#define NUM_ELEMS(a) (sizeof(a)/sizeof0[a])
lol
user1804599
That doesn't work.
user1804599
16:34
sizeof0 is an identifier.
ah crap
I was so eager to save a space.
@TechnikEmpire Yes pretty much the same thing.
hmm interesting
user1804599
@fredoverflow (sizeof(a)/sizeof+0[a])
16:34
Main() {
    std.cout << "Hello";
    local := std.vector(std.string)();
    local.push_back("Hello, World!");
    std.cout << local[0];
    return true;
}
works fine as a JIT test
same code fails when built through the command line and linked with G++
Ok, the compiled and linked
user1804599
@TechnikEmpire holy bukkake.
It crashes later, just like you said
user1804599
Awesome!
user562566
@rightfold it's been in there for a few versions
user562566
16:35
lol
test runner executes it fine
It compiles return true; in Main()?
It signals Main() did not return an int32, int64, or void. for me
return true is for the test harness
Oh, I see
officially in Wide the Main signature can be whatever the fuck your environment is happy with it being.
for the CLI driver that's currently the above, but the test driver always wants bool()
16:41
Had Wide ever used SJLJ?
no.
but there was a time before it supported Itanium exceptions
the upload to bitbucket could be that old
2013-06-22 is the date of that MinGW's upload
hm got it
@Ted I got bit by your two-year old upload of MinGW g++ with SJLJ on old Wide repository :P
set the target triple in CLI to i686-pc-windows-itanium
Clang has generated different code for EH and some calling conventions because of the different target triple.
16:47
Yup, nailed it
I think that must mean that 3.5 really wants 4.7 or up, and it's only 3.4 that's capped to 4.6.3, maybe.
C:\__MOJE\PROJEKTY\NotMine\Wide\Wide\CLI>a.exe
Hello, worldHello, World!
worth a shot unless you're happy just setting the target triple ;p
Maybe later. For now I have to set other parameters anyway.
o btw
16:51
hellew
Wide implicitly references the stdlib, which sets up std for you
which will reference the vast majority of stdlib files that I could think of that were likely to be useful
@Puppy Nice.
#include <iostream>#include <string>#include <vector>#include <algorithm>#include <tuple>#include <array>#include <set>#include <deque>#include <sstream>#include <cassert>#include <cstdlib>#include <type_traits>#include <utility>#include <new>#include <functional>
not all of them but a good start
Most commonly included ones anyway
yep
I have no idea if it's possible to define a function type in Wide to use std::function, though.
user562566
16:53
@ScarletAmaranth oh hey person that compares writing a few thousand lines of code to being a world class mathematician
I suspect it may be impossible
rename back to Wide C
no.
C/C++/Wide
B/C/C++/D/Wide
I don't think there was A... unelss I'm mistaken
17:07
You forgot Wide with classes
user1804599
B/C/P/L
4
A: Is it OK to return a literal by const reference?

Alok SaveIt is not okay. Returning reference to a temporary is not okay because accessing it outside the function causes Undefined Behavior.

Actually, the grammar is alright.
No, it's not: He's missing an indefinite article
> What I'm trying to do is to return a some value to const &
Why???
17:25
@fredoverflow Performance, DUH
everybody knows a reference is faster
</troll>
Ell
Ell
I thought literals had static storage duration
I like how he bolded undefined behavior
Ell
Ell
Idk why
it should be a flashing gif
with warning signs
disclaimer i didnt read the question/answers
17:27
like the public announcement
@Ell Only string literals have static storage duration.
Ell
Ell
That makes sense
@Puppy set but not map?
@rightfold boost::string_ref?
@Ell I think integer literals have static storage duration in Fortran :)
user1804599
17:42
0
Q: Whats Is The Defination For Relative Atomic Mass

Arsalan AhmedAnswer It Please I Need It Badly During Eams

user1804599
lol
At least he's honest. :)
user1804599
Synthetic setae emulate the setae found on the toes of a gecko and scientific research in this area is driven towards the development of dry adhesives. Geckos have no difficulty mastering vertical walls and are apparently capable of adhering themselves to just about any surface. The 5-toed feet of a gecko are covered with elastic hairs called setae and the end of these hairs are split into nanoscale structures called spatulae (because of their resemblance to actual spatulas). The sheer abundance and proximity to the surface of these spatulae make it sufficient for van der Waals forces alone to...
user1804599
This is cool.
17:56
@TBohne Doesn't matter, you can always add your own.
@rightfold wE mEET aGAIN, cAPTAIN cAPITAL!
@JohanLarsson dayumn
It doesn't look quite right.
18:15
:3
@Prismatic texting while driving
So tired of your bullshit C++
18:19
@Nooble that utterly shameless starbait
template<typename V> void f(T&& v); takes universal reference
no
that's a stupid name
but template<typename... Args> void f(AClass<Args...>&& v); doesn't
it's an rvalue reference
learn your collapsing rules will you
Doesn't behave like a rvalue reference
18:20
it doesn't, because universal references don't exist
it's de facto and de jure an r-value reference
even with deduction involved
Now, the question is does template<template <typename...> class V, typename... Args> void f(V<Args...>&& v); work
I have no clue! but - you can try it out vOv
No. It fucking doesn't
recently, both VS and GCC started finally parsing typename even in template templates
It works.
It does the only sane thing you could expect.
18:24
which is, I'm making a note here, huge success
As in, it works, but doesn't take in lvalues and rvalues
I can mentally picture templates easily but template<template< makes me wanna cry
That's the sane behaviour
@Prismatic Shhhh.
I would take T&& v but I also want the variadic parameter pack
18:25
@Prismatic uhh? what if you need to parameterize the type you're taking as a template argument...? - have you ever pattern-matched deeper into the structure? (as in, don't just pattern-match on the outer-most constructor - if so, you understand template templates)
I understand onions. They still make me wanna cry.
starbait_detector.exe has stopped working and needs to be restarted
Okay, this is really dump. I'm finding myself having to implement my own unique_ptr just so I can dllexport the class that uses it.
4
you don't like templates though, right?
@Mysticial wow really? =/
18:33
22
Q: std::vector needs to have dll-interface to be used by clients of class 'X<T> warning

MiloI'm trying to make my library exportable as a DLL but I'm getting a lot of these warnings for one specific class that uses std::vector: template <typename T> class AGUI_CORE_DECLSPEC AguiEvent { typedef void (*AguiCallbackFptr)(T arg, AguiWidget* sender); std::vector<AguiCallbackFptr> events...

@ScarletAmaranth There was sort of an A, if you count Algol. The order was: Algol, CPL, BCPL, B, C, C++, D (and, of course, many others). That said, although CPL was clearly influenced by Algol, that relationship probably isn't quite as close as these others.
@JerryCoffin well, might as well mention Simula if you mention CPL (whatever that is :P)... and C with classes :)
never realized algol could be an A tho!
18:50
@ScarletAmaranth Sort true--but the descent from CPL to BCPL to B to C to C++ is very direct. From Simula to C++ is more that he'd used Simula, and wanted to provide/support at least some of the same basic ideas.
@JerryCoffin fair enough
19:06
@Mysticial Just disable the warning.
2
> My experience is that exporting STL classes from DLLs on Windows is fraught with pain, generally I try to design the interface such that this is not needed.
That's pretty horrible.
Xeo
Xeo
@Mysticial Whut, why?
user1804599
bored wat do
@rightfold make a game
Play agar.io
user1804599
@Prismatic OK.
user1804599
What kind of game?
@rightfold Whatever you want I guess? Make it have lots of cool fancy effects
photo realism necessary
user1804599
Hmm.
user1804599
19:29
> Allah said:

Exalted is He who took His Servant by night from al-Masjid al-Haram to al-Masjid al- Aqsa, whose surroundings We have blessed, to show him of Our signs. Indeed, He is the Hearing, the Seeing. (17:1)
user1804599
Allah never said that.
user1804599
This must be a misattributed quote.
user1804599
19:40
lol
user1804599
> I also believe that it does NOT condemn homosexuals to hell (a sin is a sin is a sin). When a person receives Christ in them they are saved and ALL their sins are forgiven.
user1804599
> homosexual
> receives Christ in them
user1804599
These sites are pure goldmines.
running pacman -Syu, in case you don't hear from me ever again, I'm dead.
woho, the bug in zathura has finally been fixed in [community] - no more annoying black edges around the viewport!
19:56
hmm
why do people troll you into banning them and then complain when they get banned?
@rightfold Bleh ..
"Christian" actually sucks, and may bark up all about the wrong tree, regarding morality.
user1804599
20:08
@wilx I thought about that, but a lot of the times, it's a legit warning. For example, debug and release builds have different STL layouts which crash if I try to link against a release .dll from a debug binary.
@Mysticial True. But you will notice that very fast. Rewriting the whole of standard library just to silence it is stupid.
@wilx It's just unique_ptr. Everything else I'll just change it to a unique_ptr to the object.
@Mysticial Still.
This is actually the first time I've run into this problem. I've done DLLs in the past, but that was all C. So no problems there.
20:24
@rightfold Well, raking and killing adders from your foregarden is a good deed. How is that actually related?
user1804599
> Lounge<C++>
user1804599
> related
^Pffffrrr! Or should I say Zshissshhhh?
user1804599
> If I got $1.00 for every pixel on the screen, I would have $0.50
user1804599
lol 144p video
20:28
@Prismatic He is pretty useless in explaining stuff to people that doesn't already know what he is talking about.
Xeo
Xeo
I wish you could construct PODs from their base classes.
struct base_data { int i; };
struct data : base_data { int x; };

base_data bd = { 42 };
data d = bd;
assert(d.i == 42);
like that
user1804599
bunch of rightfoldphobes
Why do I always delay my tax declaration until the last day possible? Oh yeah, because I'm lazy.
Xeo
Xeo
I just don't do taxes (I have nothing that forces me to do taxes)
I could get some money back, but eh
20:43
I enter two nonces, then I get my tax return into my account a month later.
@Xeo But I do.
user1804599
@fredoverflow the longer you keep your money, the longer you receive interest over it.
user1804599
Unless the declaration results in you receiving money, then you should do it ASAP, of course.
user1804599
I always pay bills as late as possible.
@Xeo doesn't work because of a name hiding issue?
Xeo
Xeo
20:48
@StackedCrooked nah, just doesn't work in general.
@StackedCrooked doesn't work because there is no initialization through data that accepts an object of type base_data
Xeo
Xeo
data has no ctor that accepts base_data
@CatPlusPlus GET OFF MY WLAN!
@Prismatic Love the drawing, especially the pointer guy. But what exactly is the Java vs C# guy doing?
@fredoverflow I heard you have a new fan.
user1804599
@fredoverflow not knowing that pointers are.
20:53
Hello
@Borgleader Not anymore, I don't.
So, i was thinking, there are hdd caddies which can replace the dvd drive in laptops with hdd's, are there soms caddys which add an ethernet port or even act as a switch?
@fredoverflow hehe
no.
Xeo
Xeo
@fredoverflow Did you take his mother hostage or something? That guy sounds genuinely scared!
21:09
just a socially awkward guy
@Xeo If "I don't know the answers to your questions" means taking one's mother hostage, then I guess that's what I did...
user1804599
10k+ dat answer
Xeo
Xeo
hahah
user1804599
I wish valance bonds were discovered by a guy named James so you could speak of James bonds.
user1804599
> Techniques are being developed for creating pressures of up to 500 GPa
user1804599
lol 500 GPa.
@rightfold lol first comment on my link
user1804599
XD
user1804599
> I knew someone that was frozen to absolute zero once. He was 0K.
user1804599
21:50
dat pun
user1804599
22:08
Why does @NASA follow @AngryBirds on Twitter?
22:28
welp
back to work tomorrow
The average complexity of insertion sort is (n^2 + n)*.5 ---> O(n^2)
22:44
user image
6
lol
Xeo
Xeo
And no hoverboards :<
@fredoverflow I didn't draw it, so I don't mind lol
@Prismatic Where did you find it, if I may ask?
@fredoverflow /vg/agdg
I have no idea what that means :)
22:54
its a 4chan board where people talk about game development
lol
Man why does Java get so much hate
Ell
Ell
4chan has a gamedev board? I never knew
@Prismatic At one point it tried to be like C++, and kinda failed, IMHO
@Prismatic Because it's cool to hate Java.
You do it here, you get free stars.
Java sux cos its slou
-- just testing
To be fair Java is a boring language.
23:09
@Xeo I always dreamed of going to school on one of those :(
(disclaimer: I'm not hating on Java)
@nabijaczleweli why not
1. Why would I?
2. It set the basics for much better/more versatile languages (scala)
Ell
Ell
I dislike java because of checked exceptions and terrible generics
Checked exceptions? What's wrong with that?
23:12
@Ell I kinda agree here with generics. It kinda tried to be like C++, and failed, IMHO
@Jefffrey Ask any language designer who isn't James Gosling.
@Puppy Why are checked exceptions in Java wrong?
@fredoverflow such as Blob
@Jefffrey Did you know C++ had checked exceptions at runtime, once? It didn't work out, and they got removed.
my language > java
23:14
How does Hello World look like in your language?
i forgot, it's been like 4 months
i think it's something like << "Hello, World!"
@fredoverflow It still has some form of checked exceptions at runtime. I'm talking about Java's compile time checked exceptions (at least a good subset of all of them).
I think it's quite an improvement compared to
class HelloWorlder {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
@Jefffrey What? No, it doesn't. If you defined void foo() throw (X), and at runtime, anything other than X was thrown, the program was aborted. That feature is gone.
@Jefffrey This kinda sucks, when writing Java, because (most of the time), your code is 60% exception handling. (again, not hating on Java)
@fredoverflow Isn't that nasal daemons now?
23:17
There is no throw (X) syntax anymore. The code won't compile.
@fredoverflow The form I was talking about is noexcept, which has pretty much the same behaviour in case some code marked as noexcept actually throws.
The whole point of checked exceptions is to tell the client what exceptions can get thrown (IOException or whatnot).
Which I find very nice.
Saying "This method does not throw" is a totally different use case.
It's a special case of general checked exceptions. It's the case where you are saying that the possible exceptions this function throws are {}.
But in C++ are checked at runtime too, which is suboptimal in general in my opinion.
23:21
244
Q: The case against checked exceptions

TofuBeerFor a number of years now I have been unable to get a decent answer to the following question: why are some developers so against checked exceptions? I have had numerous conversations, read things on blogs, read what Bruce Eckel had to say (the first person I saw speak out against them). I am...

If you ever want to check exception specification, that should happen at compile time.
Also this, this, this, this and that.
18
Q: Deprecated throw-list in C++11

Peregring-lkJust as I can see in cppreference, the classic "throw" declaration lists is now deprecated in C++11. What is the reason of leaving this mechanism and how should I have to specify what exceptions throws a function of mine?

@fredoverflow I totally agree with the upvoted answer. At least up to half of it.
@fredoverflow 15.4.1 in N4140 (and probably N4141, which is the officially accepted C++14)
Oh, and in N3337 (closest to C++11)
23:31
> In general (from how Java was designed), Error is for things that should never be caught (VM has a peanut allergy and someone dropped a jar of peanuts on it)
@Jefffrey lol
I agree with the whole answer. Damn it's a long answer.
man kung fury was... idunno
am I too cynical
Whoops, 15.4.17 (N337), 15.4.28 (4140) states, that they are deprecated. Disregard me...
@fredoverflow You don't agree with it?
I find the peanut analogy hilarious.
Here is, in a nutshell, why I don't like the way Java implements checked exceptions: If a calls b and b calls c and c can throw an exception X and a can handle it, b has to know about X.
3
23:41
Yeah, this
Very much this. What do you call it? Coupling?
It essentially makes visitor pattern and other callbacks annoying
@nabijaczleweli Let's refer to it as coupling until we find a better term.
@milleniumbug Not that Visitor pattern wasn't already annoying to begin with ;)
Why is somebody starring random crap
Ell
Ell
Multi methods are much better than the visitor pattern!
23:44
Yes, but C++ does not have them (yet).
@milleniumbug Hey, my argument wasn't crap :( Was it?
I just used it
@nabijaczleweli Yes, but is there a term that fits even better for this scenario?
@fredoverflow It wasn't, but someone is just starring every message bashing Java, which is annoying
23:46
@fredoverflow Not sure, but I'd need to search WikiWikiWeb for a better one.
Which I don't have time for now. It's nearing 2am here...
Sorry, starboard is only for bright minds and thoughts.
Ell
Ell
@fredoverflow they can be implemented quite satisfactorily in library IMHO
40 mins ago, by Etienne de Martel
You do it here, you get free stars.
@fredoverflow This point isn't too valid now, in times of jqs and super-fast microprocessors.
23:48
@Borgleader Oh, I see
But "hello world" style programs mostly end before Java starts up. Doesn't have too much of an impact on bigger projects, really.
My variant implementation is about 700 lines now (together with tests)
That was more than I imagined
What's wrong with boost::variant?
this ^
Nothing, really. This was an exercise in TMP for me.
23:52
variant is a union, but OO-supportive (after simplification, of course)?
Yeah, an union that's more high-level and more useful.

« first day (1688 days earlier)      last day (3486 days later) »