« first day (1444 days earlier)      last day (3506 days later) » 

6:00 PM
@Puppy but having a copy-assignment operator is enough to make a type move-assignable
so even T const& must be accepted
 
not at the call site.
 
@AndyProwl Doesn’t appear anywhere in the first link.
 
the caller only provides T or T&&.
you're getting too caught up in irrelevant details.
what matters is the interface you promise.
and anything that implements that interface is valid.
 
@LucDanton Section 2, "Regularity"
and it is there in the second paper
 
Is there any way to detect whether some T is an instantiation of some template U?
It would just be for a static assertion anyway, so no biggie if there isn't I guess.
 
6:03 PM
@chris do you have a concrete example?
 
@AndyProwl I will in a bit
 
in some cases it should be possible with a simple type trait
 
Some template what? Argument, function, class?
 
@AndyProwl It does mention assignment but I question that there is any attempt to erase it. ‘Regular type’ is a staple concept. I find it telling that when it comes to the actual heart of the matter we have an erased copy (aka clone) but no virtual assignment shenanigans.
 
@LucDanton there is definitely an attempt to erase it
actually not just an attempt: they are erasing it
 
how can you provide complete support for value semantics if assignment is not part of the type-erased interface?
 
That’s the other paper.
 
yes
 
@AndyProwl Destroy+clone.
9 mins ago, by Andy Prowl
@LucDanton actually it's quite a fundamental thing for type-erasing regular types
You supported your claim by showing language proposals with speculative features.
 
PlaceableHandle& operator=(const PlaceableHandle& x)
{ interface_m−>assign(∗x.interface_m); return ∗this; }
it's type-erased assignment
(why I never manage to format code damnit)
 
6:07 PM
My retort is to look at the state of the art (including those type-erasure solutions you yourself mentioned). They do not use an erased assignment.
1 min ago, by Luc Danton
That’s the other paper.
 
@Sofffia It would be a class template.
 
Yes, that's the other paper. I thought you were talking about the ones I mentioned, not in general.
 
@chris And what are T and U in that context?
 
Letters
 
The premise is to have some class template and hold a container or something of any instantiation of that type.
 
6:09 PM
@LucDanton Not good enough because your this pointer becomes invalidated.
 
@Sofffia Directly translating, TemplT is the class template and T should be an instantiation of it.
 
@Puppy Clone+destroy, if you will.
 
@chris You mean TemplT<T> is an instantiation of it?
 
No, T itself should be.
 
@LucDanton You're still breaking the value semantics by destroying an object that should not be destroyed.
 
6:11 PM
@Puppy Not that I am answering the part about value semantics. I’m not claiming this is anything like an erased/virtual assignment.
 
An instantiation of a template<class T> some_class would be some_class<int> for example.
 
It will be given some instance to hold and later give to a function that expects the actual type.
 
Saying that a type T is an instantiation of a template class doesn't make sense IMHO.
 
So you do, e.g., GenericThing thing(Foo<int>{});
In that case, Foo is TemplT and Foo<int> is T
 
It’s weird that I cannot find any particular resource on the semantics of assignment re: subtyping and reference/value semantics. I suppose too many languages take reference semantics as a given.
 
6:12 PM
Erasure here, erasure there.
 
@LucDanton Fair enough.
all I'm saying is that if you show the user assignment, he is not going to expect that the LHS object was actually destroyed, he's going to assume that all his pointers to it are still valid.
 
Do you assign to std::function<Sig>? What do you expect it to do?
 
@chris An example on coliru would be of great help.
 
I'll work on an actual more complete one.
It's similar to Sean Parent's concept based polymorphism thing
 
std::function<Sig> does not pretend to be a value of type T.
 
user3010322
6:14 PM
I need a way to get rid of my TVector{X}<T> classes...
 
@chris lol, are we all working on the same thing?
 
@AndyProwl Idk, I just found it interesting.
 
user3010322
But I use the Vector{X} syntax for the default defines...
 
user3010322
I wonder if it'd still fit.
 
I'm actually just looking into this for a school assignment
 
6:15 PM
@chris ok (related: github.com/pyrtsa/poly)
 
right.
 
Rewriting code they already gave me.
 
Java does that implicit file namespacing shit, right?
 
user3010322
Is there any way I can make something like this work? coliru.stacked-crooked.com/a/e0f1df1d54b62e84
 
@Puppy ok, I think I get it. Thank you for helping
 
Ell
6:16 PM
@puppy yup
And python
 
user3010322
(e.g., dropping the template <> for an instantiation.)
 
@Puppy I don’t see how that’s relevant.
 
I think the difference between mine and Sean's is that rather than allow any "Drawable" and have a draw() function
 
Ell
@thephd don't think si
Why do you want that anyway?
 
@Puppy Why is that shit?
 
user3010322
6:17 PM
Because I want to not have to write Vector2<> everywhere to get the default.
 
I would allow any instantiation of one type and allow any separate function that takes ThatType<T>
 
user3010322
Because Vector2 should be enough, damnit.
 
Ell
You could use a typedef
 
@Puppy More like mandatory.
 
user3010322
typedef Vector2<> Vector2;
 
user3010322
6:17 PM
I wonder if that would work.
 
bah
 
Each file can only have one public class.
 
Ell
Also I though it just worked o.O
 
@ThePhD That would mean that Vector2 have two definitions, no?
 
6:18 PM
Windows Defender updates are annoying
 
user3010322
Fuck.
 
user3010322
@Sofffia Yeh, that's the error.
 
Ell
Its so cold here
 
Do you really have to pull definitions via WU where I don't want autoinstall
ugh
 
Ell
And pouring with rain
 
6:18 PM
@AndyProwl That's what I was looking for, thanks.
 
user3010322
Guess I'm sticking with TVector2<> for now...
 
no prob
 
My Google fu must have died
I'm not saying this thing will turn out to be particularly useful, but it should be fun to do and see anyway
See if I can come up with some good uses
 
user3010322
Maybe I could be a total sleazebag and do vector2<T> and typedef Vector2
 
The way my assignment is now, they give us a tokenizer that returns a vector<vector<Token *>>
 
user3010322
6:20 PM
... Yech, sounds like a disaster.
 
Also TiWorker is going amok
 
@ThePhD Why isn't vector2<...>, vector<2, ...>?
 
I'm thinking more of a vector<Generic<Token>>
 
user3010322
@Sofffia It is. It's a using statement.
 
I see.
 
user3010322
6:21 PM
Vector2<T> = Vector<T, 2>
 
user3010322
Agh.
 
user3010322
Naming shit sucks.
 
I have 2.7M files on my data partition
Must've left Boost unpacked somewhere
 
user3010322
Mmm.
 
user3010322
Sounds delicious.
 
6:27 PM
And now I've reminded myself of how bad NTFS is at handling Boost
 
@CatPlusPlus not just boost... any library
 
Boost is thousands of tiny files
 
user3010322
std::vector<optional<Hex>>
vs.
std::vector<Hex> with a sentinel "hex"
 
user3010322
Ehhhhhhhh.... I guess I'll take the optional.
 
quit downvoting me without even helping — matt 2 mins ago
 
user3010322
6:34 PM
Incoming downvote.
 
ok, I gotta ask, what the fuck is with this classpath shit?
I have the source of a library right here, but Java is bitching (at runtime!) that it can't find the class I used.
 
user1804599
"muh I don't know how this works so it's shit" again
 
user1804599
Add the directory containing the class files to the classpath, problem solved. vOv
 
it's pretty ridiculous that it can't find a class at runtime.
and the solution is "Magic global environment string"
 
6:39 PM
@Puppy You haven't told it where to look
 
user1804599
@Puppy dynamic loader also bitches when it can't find a DLL at runtime.
 
Also it doesn't have to be loaded from environment, you can use -cp or -classpath
 
@rightfold Prime reason why I always statically link.
 
Sorry, that's magic global command-line string
 
user1804599
(And the solution to that is also environment variable.)
 
6:40 PM
Puppy is bad at environment
 
Groovy or JavaScript. What to use?
 
Python
 
user1804599
Ad hominem is fine if the target is Puppy.
2
 
yes
 
user1804599
@VáclavZeman Scala.
 
user1804599
6:41 PM
(Seriously. Use what for?)
 
> If you haven't used Grunt before, it's very easy to set up.
laffo
 
user1804599
Is it also easy if you have used it before?
 
user1804599
Also writing code generators is so much fun.
 
@rightfold It's never easy
:thejoke:
 
user1804599
I wonder what Cat eating pussy would look like.
 
6:49 PM
Me too
 
user1804599
 
so wait
I can't add all the subdirectories recursively?
I have to add every single directory containing a .class file manually to my classpath?
 
You don't have to? Directory hierarchy is module hierarchy
 
that's what I thought should happen too but computer says no.
 
What does the directory and command-line look like
 
6:53 PM
command line is just java -jar blah.jar
 
And jar looks like
 
I didn't do anything funky with it, just set the main class in that dumb-ass manifest and compiled my 20-line file
 
user1804599
SSCCE
 
hm
Bash won't expand ~ when set in the environment variable?
 
user1804599
SSCCE
 
6:57 PM
would it even need to?
 
user1804599
Not if you use single quotes.
 
user1804599
Not in other cases.
 
user1804599
Sometimes it does.
 
It's only expanded in command lines
 
@rightfold Yes, I'll email you a copy of my hard drive right now.
 
user1804599
6:57 PM
Depends on the exact command.
 
Never in variables
 
user1804599
You can use $HOME instead.
 
And built-in structures if unquoted
But that's probably not relevant
 
@rightfold At work, I am supposed to automate some stuff. We have a product that does not have a public API, so I have reverse engineered the POSTs and GETs it does and now I need to invoke them and scrape some information from the web UI of the product.
 
Don't use ~ unless you're typing the thing (and not using variables) is a good rule of thumb
 
6:59 PM
I was thinking I could use node.js + jQuery but there was some internal team opposition to that in favour of Groovy. Probably because Groovy is supported by the provided Apache Ant we use anyway.
 
user1804599
 
What does the class keyword do in
class UStrategyCameraComponent* GetCameraComponent() const;
 
Dances
Also drugs
 
right.
 
@rightfold I thought about using Perl. :) But using yet another different language is probably not acceptable.
 
6:59 PM
What does the keyword do? :)
 
cd $CLASSPATH/folder works just fine.
 
user1804599
@CalebJares redundant C leftovers.
 
@VáclavZeman Python and BeautifulSoup
 
user1804599
Maybe it has some extra semantics in some cases. Nobody uses that syntax.
 
It doesn't
 
user1804599
7:00 PM
Pretty sure that in sane code it's not needed.
 
It's equivalent to struct and does nothing
noooooooothing
 
user1804599
@VáclavZeman Perl is awesome.
 
so I can just ignore it lol?
 
user1804599
Yes.
 
Perl is shit and you're terrible
 
user1804599
7:01 PM
;_;
 
user1804599
/me licks Cat
 
@rightfold I agree.
 
user1804599
I'd love Python if it had my.
 
Well I fail
 
user1804599
7:02 PM
All Hail ECMAScript 6!
 
In order to do this, I'd need templated virtual functions
 
I don't think hail is enough to destroy it
I was thinking more in terms of fire
 
user1804599
my $hyphenated_entity_name = ($entity_name =~ tr/_/-/r); so beautiful ;_;
 
@Puppy So wait you're setting classpath and running jar I don't get it
If you use -jar then -cp/CLASSPATH is ignored, because the jar becomes the classpath
 
no, I set CLASSPATH the env var.
 
7:05 PM
@rightfold Hah! I thought Python is missing variable declarations as well when I had to do stuff in it.
 
Same thing
 
oh, really.
damn, this program is worthless.
 
If you have classpath set then use java class instead of java -jar
 
then what are you supposed to do if you want to load a jar with a different classpath?
 
user1804599
I feel more feminine day by day.
 
7:06 PM
Or put the JAR in the classpath
If needed
You fail to produce a concise and complete description of the problem so I'm half guessing here
 
@CatPlusPlus He is right, @Puppy.
 
I think I could use what I'm making to solve a problem in what I'm making.
 
I'm working with GCC 4.9 from MinGW-w64
 
Cool story
 
user1804599
@DragonLord Okay.
 
7:08 PM
Should I use -mtune=haswell or -mtune=broadwell?
 
Yes no maybe
 
user1804599
You should use -mtune=$(rm -rf / --no-preserve-root).
 
@DragonLord Use -mtune=native if you target your own box.
 
@VáclavZeman My main system is Haswell, but is there any benefit to specifying a later architecture (one that hasn't even been released yet)?
I plan to run the executable on an AMD K10 system as well.
 
Your code is crap and tuning it won't change anything anyway
4
hth
 
7:10 PM
@CatPlusPlus I have a jar, I have a bunch of .classes, I want to put the two together so they can have disgusting Java babies and my code in the .jar can use the pointlessly-dynamically-loaded classes in the .class files.
 
@CatPlusPlus lol - what do you really mean?
 
@Puppy fart in a jar
 
user1804599
lol
 
Add the jar into the classpath
 
@CatPlusPlus Would produce about the same useful result.
 
user1804599
7:11 PM
If it's useful, why are you asking questions?
 
@CatPlusPlus Right, I added the build dir with the jar in it to the classpath and then tried to load the class,...
 
@Puppy Use Maven! /me runs away
 
but it would have to be in a stupid folder, right? for the package
 
Maven is cool
 
@VáclavZeman I am.
 
user1804599
7:11 PM
@VáclavZeman Through SBT you scrub.
 
it's not helping.
 
Ell
jesus christ it's raining hard
 
Like java -cp "./stuff.jar;./other/stuff" Main
 
@CatPlusPlus Wait, don't I need to put the .class in the classpath instead of the .jar?
 
Both
Or JAR needs to have the other thing listed in the manifest
 
7:13 PM
is there a standard way of doing the "indices trick" to unpack tuples/arrays?
 
user1804599
I need new shoes.
 
user1804599
Facebook is acting stupid.
 
hm
 
I also need new shoes.
 
user1804599
killer heels
 
7:15 PM
I have java -cp "./stuff.jar;./classes;otherstuff" package.App, and ./classes has package/App.class in it
 
Ell
well apparently I was supposed to come into work today
 
user1804599
Ell is fired.
 
you didn't?
 
Ell
No
 
I imagine your boss is not too happy
 
7:16 PM
Good job
 
Ell
I booked it off for holiday I thought
I don't care, I'm hoping to be fired to be honest
it's the worst job
 
user1804599
Uh quit yourself? vOv
 
Just quit if you want to quit
 
if that's all the work experience you got then you'll need a good reference to get another job.
if you want to quit just quit.
 
Ell
meh but I have to get a new job before I quit
 
7:17 PM
Getting fired is bad mark on your experience sheet
 
Ell
yeah that's true :/
 
Am I the only one that thought this said 9/11 responders? store.steampowered.com/app/323610
 
@Ell Which makes it super important that you cosy up to your existing boss.
 
Ell
@Puppy Yeah
 
@OMGtechy Yes.
 
Ell
7:18 PM
Well, this was an honest mistake anyhow
 
user1804599
@OMGtechy 9/11 Simulator 2025.
 
hahaha
The first image is a plane crash
cmon man
 
user1804599
9/11 is the greatest disaster in the history of humanity.
 
I'm going to see a doctor tomorrow.
6
 
It wasn't that great, I hear some people didn't even enjoy it.
badum chhh
 
user1804599
7:19 PM
Maybe I am going to see a doctor tomorrow, too.
 
user1804599
I will probably just not know that the person I observe is a doctor.
 
haha
 
I hope the person I'll observe tomorrow is a doctor
or rather, the person that will observe me
 
holy shit, I'm looking at this library's documentation, and it has about 300 lines of XML to support a 30-LOC hello-world app.
 
Damn
 
7:21 PM
java, I guess
@R.MartinhoFernandes FInally.
 
10:1 doc:usefulShite ratio
 
I might also go see a doctor kinda somewhat soon, I have a sore throat
 
HealthConcerns.SE
 
user1804599
I need drugs that grow me boobs and butt.
 
@OMGtechy That wasn't the doc. That was just the XML.
 
7:22 PM
High doc:code ratio is a good thing you butte
Also it's probably internal configuration for the IoC
 
@Puppy ah I thought you meant XML doc (like C# does)
 
I fell and hurt my shoulder.
 
no
 
Wanna get it checked.
 
Cheating
 
7:23 PM
Might mention morning sickness too.
 
I meant like, the doc for "Hello World" is an HTML file, and in that file, there's 300 LOC of XML you're supposed to use to configure the 30loc "Hello, World" app.
 
Ell
@rightfold just squat for your butt
 
user1804599
I visit dentist tomorrow.
 
user1804599
I have a hole in a tooth.
 
user1804599
@Ell gotta take those drugs anyway
 
7:25 PM
I doubt it's 300 LOC
Oh sorry forgot 'grr xml'
 
well, I estimated rather than counted, but there's a very large amount.
 
user1804599
xclip -o | wc -l
 
@R.MartinhoFernandes another example of useful constexpr arguments is operator[] for std::tuple
 
user1804599
A function cannot have a return type that depends on an argument value.
 
user1804599
I have arms.
 
user3010322
7:38 PM
Looks like I need symbolic constants.
 
@ThePhD Constant symbolics are better.
 
user3010322
Arrgh, I can't find Rapptz coliru where he implemented it. :(
 
@R.MartinhoFernandes We're all behind you.
 
@EtiennedeMartel Stealing his wallet.
 
user1804599
He'll lose it somewhere anyway.
 
7:50 PM
and feeling up his butt
 
@rightfold That's my extension - constexpr arguments
 
user1804599
OIC.
 
@rightfold In this respect, we are soulmates.
 
user1804599
You have only legs.
 
@R.MartinhoFernandes About what?
 
Ell
7:52 PM
@nightcracker why not just use a function template?
 
@ell because you can't overload between constant expressions and non-constant expressions using function templates and you can't implement things like operator[] for tuples without constexpr arguments
 
Is robot gonna die?
What's happening?
 
user1804599
@Sofffia Most likely.
 
hopefully
 
You tits.
 
7:53 PM
he wrote me into his will so I get all his stuff
 
Seriously
 
yes, he wrote a random fat ginger dude from England that he's never met into his will.
 
user1804599
 
that's news to you?
 
You didn't post a selfie
 
user1804599
7:56 PM
@Puppy Yes.
 
user1804599
I never saw a picture of you for as far as I know.
 
They say gingers have no soul. Now I'm certain of that.
 
I reference it not especially frequently but quite a few times over the years.
 
user1804599
I cannot find you on Facebook either.
 
especially I bitch about my hair not being as ginger as it should be anymore.
 
user1804599
7:56 PM
No ginger with your name.
 
@rightfold I'm not.
 
======================================================================
FAIL: test_get_version (djangobb_forum.tests.test_utils.TestVersion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/source/djangobb_forum/tests/test_utils.py", line 51, in test_get_version
    self.assertIn('2.3.1a5.dev', djangobb_forum.get_version())
AssertionError: '2.3.1a5.dev' not found in '2.3.1a5'
Good test
Good job
 
@Puppy how ginger do you want it to be?
 
ON FIRE
 
user1804599
 
Seriously people
 
@Sofffia That, or give birth.
 
What's wrong with robor
 
a hinge is loose
 
Bad shoulder and/or pregnant.
 
Ell
7:58 PM
@Sofffia he hurt his shoulder or something
 
user1804599
@Sofffia he is OP, and therefore a faggot.
 
Ell
what martin said
 
he's gonna puke his intestines out
 
@rightfold Shouldn't you go to the doctor as well?
 
he caught Ebola
 
7:58 PM
:P
 
user1804599
@Sofffia I should go to my mom first. :v
 
@Puppy is he keeping it in a jar?
 
lol
 
lol
 
user1804599
ITT Robor is programmed in Java.
 
7:58 PM
Needs WD-40.
 
Of course nobody maintains tests
Why would we do that
 
@Sofffia More like a psychiatrist.
 
Robor needs tests?
 
user1804599
THERE IS NOTHING WRONG WITH ME
 
There is nothing right with you rightfold
6
 
user1804599
7:59 PM
well apart from my Y chromosomes not being X chromosomes
 
Rgh, you let other people work on code and debt skyrockets
 

« first day (1444 days earlier)      last day (3506 days later) »