« first day (1664 days earlier)      last day (3290 days later) » 

2:00 PM
Most of the time it seems to be more work than it actually is, at least for me
 
const fields are annoying since they disable assignment operators.
And IMO the const fields rarely useful.
 
Yeah, if your type can be used with value semantics const members are hurting
 
Can't be PCH related because now I disabled PCH and it's still failing.
 
What kind of error message are you getting?
 
> c:\program files (x86)\microsoft visual studio 14.0\vc\include\utility(21): error C2206: 'swap': typedef cannot be used for function definition
 
2:03 PM
@AndyProwl :(:(
seriously MASSIVE bloat though
like these constructors will become 75% of my fucking types
@milleniumbug I like it and my type is non-copyable anyway :)
 
Ell
@LightnessRacesinOrbit generate them vOv
 
Ell
I don't know
 
Yeah it's annoying, but from a usage perspective the bloat is not hurting
 
@milleniumbug I had loads of fun the other day writing a class where everything is either const or mutable.
 
2:04 PM
like, you can use brace initialization and stuff
 
~~~magic~~~
 
@AndyProwl I can't though
 
oh, C++03?
 
user1804599
Jun 5 '14 at 20:31, by Tony The Lion
This discussion is unacceptable
 
@R.MartinhoFernandes Sounds fun indeed.
 
2:05 PM
@AndyProwl yeah but still it's the type definition itself that bothers me, which wouldn't change between C++03 and C++11
well, except possibly for the use of inheriting constructors
 
Right, that wouldn't change
 
sigh fine
thanks anyway ;p
 
lol no problem, I didn't solve anything
 
I love C++ but this sort of bullshit is just so unnecessary
 
mutable is cool for memoised structures.
 
2:06 PM
Maybe refp or some other C++ mad scientist could figure out a workaround
 
@CatPlusPlus I downloaded this, but then I realised I don't have any friends.
 
@AndyProwl The problem with those workarounds is that no one will want to use them.
 
@R.MartinhoFernandes Well, Lightness was looking for a workaround
I can't come up with one myself
 
Xeo
aaaaaaa this makes no seeeeeeense
 
user1804599
> Scala chat has started using Slack. Vlad Derjavin, the administrator, has invited you to join.
 
user1804599
2:09 PM
ITT Vlad uses Scala.
 
@milleniumbug That's sad man.
 
> c:\program files (x86)\microsoft visual studio 14.0\vc\include\utility(35): error C2988: unrecognizable template declaration/definition
dafuq Q_Q
 
Xeo
lol
error before the include?
 
I don't even know what included that. There's no trace.
Just a ton of bullshit in utility.
 
2:11 PM
@R.MartinhoFernandes Sounds reasonable, if it can't recognise it, it can't know if it's a declaration or a definition.
 
Wait a second. Isn't that the death star from the SW version of Angry Birds? @CatPlusPlus
 
shhhh
 
Ven
@rightfold were you invited? :o
 
Xeo
@R.MartinhoFernandes got a ton of bullshit here too
it makes no seeeeense
 
> c:\program files (x86)\microsoft visual studio 14.0\vc\include\utility(17): fatal error C1075: the left brace '{' was unmatched at the end of the file
But but
 
Ven
2:16 PM
unmatched!
 
@rightfold That whole transcript is lol. It's too bad you missed your opportunity to be a penis engineer
 
@R.MartinhoFernandes too stronk
 
user1804599
@Ven yes.
 
user1804599
And I deleted the email since I have no idea what the fuck it is about.
 
Ven
@rightfold did you submit a bug to their tracker?
 
2:19 PM
@Jeremy rotfl "penis engineer"
 
user1804599
@Ven To whose?
 
user1804599
Slack's?
 
Ven
@rightfold scala's
 
user1804599
Yes.
 
user1804599
A long time ago.
 
user1804599
2:20 PM
About this bug:
 
user1804599
scala> () == null.asInstanceOf[Unit]
<console>:8: warning: comparing values of types Unit and Unit using `==' will always yield true
              () == null.asInstanceOf[Unit]
                 ^
res0: Boolean = false
 
Ven
nice one.
So, apparently, I managed to compile an obj-c app with a Makefile. wooh.
 
user1804599
That's fucking easy.
 
user1804599
all:
    clang main.m
 
user1804599
Then replace the spaces by a tab.
 
2:23 PM
@rightfold lol
 
user1804599
This is interesting:
 
Ven
@rightfold hahahahahaha. Good luck with that mate
 
user1804599
scala> def f(x: Unit) = () == x
f: (x: Unit)Boolean
scala> f(null)
res1: Boolean = true
 
Ven
¯\_(ツ)_/¯
 
user1804599
And apparently scalac does purity analysis???
 
user1804599
2:27 PM
<console>:9: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
              f(null)
                ^
 
user1804599
wat parentheses
 
user1804599
scalac is a joke
 
Ven
It really is, yes.
 
user1804599
Sadly Scala is impossible to implement.
 
2:29 PM
lel scala
 
Ven
Not even gonna dig into the macros part.
Hey, did someone try running "((1, 2)).x.x.x.x.x.x" in scala yet?
Hey did you know "a" is equal to "b"? gist.github.com/paulp/6e95cbda72e845c63da6
 
user1804599
Nov 16 '13 at 13:36, by rightfold
scala> :t List(List(1), Vector(1))
List[scala.collection.immutable.Seq[Int] with scala.collection.AbstractSeq[Int]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.Seq with scala.collection.AbstractSeq{def dropRight(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def takeRight(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def drop(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def take(n: Int): scala.collection.immutable.Seq[Any] with scala.col
 
> adriaanm commented on May 16, 2013

hope this meets reviewer's demands
@paulp
paulp commented on May 16, 2013

Reviewer thought he might have sent you over a cliff or something.
 
Ven
@rightfold LOL
 
is there a SO wiki for hilarious pull request dialog? there should be.
 
Ven
2:33 PM
@Jeremy there is something on github
 
user1804599
@Ven It had large structurals. Is fixed now though.
 
Ven
@rightfold That's so terrible
Maybe worse than inferring Any
 
is it common to sorta like group traits together in a single thing or w/e
for example before I used AnalogueOf<T> to map java types to C++ counterparts
and now I need to map java types to jni types
 
Ven
the same snippet now gives List[scala.collection.immutable.Seq[Int] with scala.collection.AbstractSeq[Int] with java.io.Serializable]
 
I figured I could do this instead of a new trait
template<>
struct JTypeDetails<JInt>
{
	using CppType = int;
	using JNIType = jint;
};
and save some space for the N types I use
 
2:35 PM
why are you doing this again Alex
 
to clean up the codebase in my library and to study TMP
 
Didn’t you say you were going to sort the namespacing and naming?
 
@AlexM. how's your haskell tho :)
 
@BartekBanachewicz I'll do stuff in it later
 
you used the l-word
 
user1804599
2:38 PM
@Ven that's because of tuple2ToZippedOps
 
life is too short mate
we're getting older everyday
 
I can't spend my time at work coding in haskell lol
 
so many things you'll never have time for
 
Yeah. Might as well not do anything.
:D
 
user1804599
Scala is awesome regardless.
 
user1804599
2:41 PM
Also fun:
 
user1804599
scala> val x: x.type = x
<console>:7: error: recursive value x needs type
 
user1804599
But I am specifying a type there!
 
lol
 
user1804599
And <html><head><title>Hello, world!</title></head><body><h1>This is a valid Scala expression!</h1></body></html>. <3
 
user784668
@rightfold really?
 
user1804599
2:47 PM
Yes!
 
some part of me wants to believe scala is just a practical joke taken too far.
 
user3010322
@AlexM. Your cpp thing uses Java as a scripting engine?
 
user3010322
> ========== Build: 3 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========
 
user3010322
I've waited three days to see this.
 
user3010322
Praise the lord.
 
user784668
2:48 PM
@ThePhD The lord Lavavej?
 
@ThePhD nah Java is used for the Android stuffs
 
user3010322
@Fanael STL is the Lord, and Dinkumware is the Bible.
 
e.g. the UI bits, easily accessing the Android APIs and stuff
 
@rightfold But... why?
 
user1804599
A type of that expression is scala.xml.Elem.
 
2:52 PM
@rightfold ugh what
 
Ell
@ThePhD jvm isn't bad anyway
 
user3010322
@Ell It's not, was just curious!
 
Ell
yeah :)
 
user3010322
I like wrapping up alternative turing machines inside of C++.
 
Ell
I'd probably go for mono now though
 
user1804599
2:53 PM
Java is great ecosystem.
 
user3010322
Mono can die in a fucking fire. *-*
 
Ell
What's up with mono?
 
user3010322
Just bad memories using it from the PSVita days.
 
@rightfold XML literals, sounds nice.
 
user1804599
No.
 
user784668
2:54 PM
@Ell Stereo is better
 
user3010322
Alongside using the CG Shading Language and all that.
 
user1804599
Customisable string interpolation is much better.
 
user1804599
And Scala also has that.
 
user1804599
XML literals will likely be deprecated in the future.
 
user784668
Can I make my own Scala syntax in Scala?
 
Ell
2:55 PM
Stereo?
 
user1804599
Your own syntax isn't Scala syntax.
 
user784668
Stereophonic sound or, more commonly, stereo, is a method of sound reproduction that creates an illusion of directionality and audible perspective. This is usually achieved by using two or more independent audio channels through a configuration of two or more loudspeakers (or stereo headphones) in such a way as to create the impression of sound heard from various directions, as in natural hearing. Thus the term "stereophonic" applies to so-called "quadraphonic" and "surround-sound" systems as well as the more common two-channel, two-speaker systems. It is often contrasted with monophonic, or "mono...
 
@Ell Twice as better as mono.
 
user1804599
You can create macros.
 
Ell
oh -.-
 
user1804599
3:03 PM
This is also fun. :D
 
user1804599
% echo 'class T[@specialized A, @specialized B, @specialized C]' > foo.scala
% sbt compile
% ls target/scala-2.10/classes/ | wc -l
730
 
user1804599
@specialized is like AOT template instantiation for ten different types (primitive types and AnyRef) per type parameter.
 
Is template<typename A = X> Container::iterator Container::begin() a valid container begin member function?
You know, for stuff like ranged-for.
 
I don't see why not.
 
> 401 points 16 hours ago
holy shit my reddit comment is getting upboated like hell
<3 this
 
3:15 PM
Ok.
So.
 
Ell
I hope amd zen processors are good
 
Tomorrow I am supposed to: go visit several flats, cycle to Eberswalde, meet that girl again; all roughly at the same time. Ooops.
 
@AlexM. What comment?
 
Ell
else they gon go broke
 
@Jefffrey a semi-lame and overused CS GO joke reddit.com/r/GlobalOffensive/comments/353z8f/they_are_evolving
the top comment
 
3:17 PM
@R.MartinhoFernandes Looking for a place to move?
 
chiken is a famous troll who exploited a bug in Valve's lobby system to join private lobbies
(he also joined the lobbies at the biggest tournament in the world once lol)
 
@AndyProwl Yeah. I hired a friend to do the looking for me and he texted me today with a list of appointments for tomorrow.
 
@AlexM. Patrunjelu?
 
yes
 
y u no alex
 
3:19 PM
I think my reddit account predates me starting to use Alex
 
@Cicada Nah I got off work and went home. What's up?
 
ah cs...I used to play it so much
then dota2 happened
 
You don't have an initializer_list. You have a braced-init-list, which is not an expression and does not have any type. — hvd 15 mins ago
fucking. hell. answers. in. fucking. comments.
flagging as obsolete
 
user1804599
@Ell they are fully zen.
 
@R.MartinhoFernandes Sounds like a smart strategy
 
3:24 PM
I'm having so much fun with these template things
whoever came up with this was a genius
 
Alex is high on TMP
 
user1804599
I should look into rcon for sending commands to Minecraft server instead of using tmux.
 
@AndyProwl but it's so awesome
 
yesterday, by Andy Prowl
@AlexM. That's phase 1. Phase 2 usually involves SFINAE headaches and error message deciphering. Phase 3 involves crying in a corner or something
 
you almost like build programs that generate your code for you
 
3:27 PM
0
Q: How to change value of const variable via its address?

LongLTI'm trying to change value of const variable via its address. following this code: #include <iostream> #include <string> #include <stdlib.h> #include <stdint.h> #include <time.h> #include <stdio.h> using namespace std; int main(void) { uint64_t const x = -1; uint64_t *b = reinterpret_cast

really?
 
user1804599
 
it would be even great if you could easily do shit like having a compile-time list of types, iterating through them and stuff
sorta like the examples in Filip's article
 
hmm, I think that const is just the compiler's insurance, isn't it? — LongLT 36 secs ago
lol
 
@LightnessRacesinOrbit I often answer in comments - "that's the answer, but I don't have time to flesh it out, so I'm going to post a stub somebody else can extend and he can get all my rep"
 
@AlexM. You can do that
 
3:28 PM
really?
 
Although it doesn't look like the run-time counterpart
 
@milleniumbug Sorry to hear that :(
 
Boost.MPL is all about that
Boost.Fusion, too
Then there is Boost.Hana
 
Ven
The #cpp committee has finished its cursory review of my Ranges proposal. They can live with it. :-) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4382.pdf
 
At least something we're gonna have in C++17
 
3:29 PM
@AndyProwl googling
 
@AndyProwl I really hate the whole process, and he's currently unemployed so he has lots of time to do that.
 
-2
Q: Please help me solving this

ShakilN piles of stones are placed on a line, where the i-th pile contains A i stones initially. You have to perform Q operations of two types: ● a L R : Add 1 stone to each pile having indices between L and R (inclusive). ● q L R : Query for the number of piles between indexes L and R (inclusive), w...

lounge it
 
this is so exciting
 
Also, he'll probably move in as well :D
 
Ven
@AlexM. do you have a stash with these or something?
 
3:31 PM
@Ven it's one of my old avatars
 
Ven
@AlexM. do you have a stash with those?
 
no
I remembered that I once said "my old avatar fits as reaction pic" so I searched chat for "old avatar"
Jul 16 '14 at 6:20, by Alex M.
old avatar fits as reaction image
I do remember all of my avatars from the past 2 years tho
 
I'm not really understand what you say, but is there any ways to change value of const like I did above ? I think if exist an address, why I can't change value of that address — LongLT 32 secs ago
 
room topic changed to Lounge<C++>: I am not really understand loungecpp.net/the-law/newbie-hints [c++] [c++11] [c++14] [c++-faq]
 
my memory is great at caching the least accessed things ever
 
3:33 PM
@AlexM. Famous last words.
 
Ven
@AlexM. Hey, you have the same useless talent as me. I can find pretty much any github issue I read because I remember random sentences in it
the only thing that has changed is that you knew how to hotlink an image back then :v
 
Pfft. Amateurs.
I got my nickname because I could find utterances by Loungers from years back that not even they remembered ever saying.
 
Ell
> Naturally the villagers were intrigued and soon a fire was put to the town’s greatest kettle as the
soldiers dropped in three smooth stones.
“Now this will be a fine soup”, said the second soldier; “but a pinch of salt and some parsley
would make it wonderful!”
what is that about? :L
 
wait fuck
 
@Ell Stone soup.
 
3:37 PM
I can't mock JNI with my current design
how do I even unit test this
 
Stone Soup is an old folk story in which hungry strangers trick the local people of a town to share their food: a good confidence trick that benefits the group from combining their individual resources. The story is usually told as a lesson in cooperation, especially amid scarcity. In varying traditions, the stone has been replaced with other common inedible objects, and therefore the fable is also known as button soup, wood soup, nail soup, and axe soup. It is Aarne-Thompson tale type 1548. == Story == Some travellers come to a village, carrying nothing more than an empty cooking pot. Upon their...
 
meh I'll fix it later
it's just a matter of extracting all JNI specific stuff into something else outside of JFunction anyway
easy fix easy life
 
Ell
@AlexM. have you done generating signatures already?
 
Xeo
trollolol. Drag new button directly into UMG scene -> works. Drag new button into hierarchy view -> doesn't work.
Fuck you UE.
 
@Ell yeah that's what gave me the idea for the wrapper in the first place
I initially just wanted something to stop me from having to check the docs all the time to build proper signatures
 
3:46 PM
(disclaimer: I haven't used Boost.MPL, I just know what it can do, more or less)
 
Is implicit conversion or static cast preferred? (like int i = 1.5 vs int i = static_cast<int>(1.5))
 
there are also for-each algorithms, folds, etc
@HalfEvil why would you write that? Or is it int i = x where x is of type double?
in that case, I'd go with static_cast<int>(x)
 
@AndyProwl that's really cool :O
 
@AndyProwl Yes it's int i = x
 
I was on MPL's front page atm, gonna browse it in a bit
 
3:48 PM
@AndyProwl Okay thanks! :)
 
@HalfEvil No problem (anyway that's just my preference, others may tell give you a different advice)
 
Ven
decommuting time, yay
 
@R.MartinhoFernandes heh
 
Ell
hmm no compile time strings, I forgot
 
user784668
3:58 PM
FML
 
user784668
I have to write C crap
 
use Boost.FML
 
REDUNDANCY ALERT
AWOOGA AWOOGA
 
@Fanael Sounds like a XML spinoff.
 
user784668
@LightnessRacesinOrbit You know, in all these years it never occurred to me that C is an acronym.
 
3:59 PM
@Fanael C is not crap
 

« first day (1664 days earlier)      last day (3290 days later) »