« first day (1983 days earlier)      last day (2969 days later) » 

12:35 AM
 
12:58 AM
@Ell that's like, merge, sort, uniq, dup
 
@sehe Regarding his remarks about "OOP" book at around 01:12:26 - I actually agree.
 
@EvgenyPanasyuk Hahaha. Didn't reach that part. I had more important articles to read. Reminds me of this horrible episode:
Is it April 1st yet? discountForLoyaltyInPercentage, DISCOUNT_FOR_SIMPLE_CUSTOMERS... I'd reject code review. https://t.co/bwMDNNKJsO
 
@sehe I just fast-forward and stumbled upon it.
 
"I want to generate 10 unique random numbers between 1 and 10".
 
1:06 AM
@VeronikaPrüssels fisher yates again
 
obviously there are only 2 girls. 2 mirrors & a camera in that picture
 
But the question is, is the dress white with golden stripes, or blue with white stripes
 
@sehe Looks like the problem is that there are many wrong books, which spread wrong ideas, and novices do not know a priori which one is good.
 
worse: many books propagate good ideas mixed with some very bad excesses.
It's a bit like life, in that way
 
1:21 AM
@sehe By the way, this is why I don't like when some famous and good musician/artist/whatever make some public subjective statements in a field they are far from being experts, for instance about politics - because their authority among fans (earned via art forms) helps to spread and push such subjective ideas (not related to their art at all), which sometimes are just plain wrong. They should be more responsible.
 
Good observation. It's everywhere
Including politics
 
Like people have observed, people don't actually like to think. They really can't afford to. Which is what makes tumblr, twitter, SO, reddit... such huge successes: this is where you can get canned opinions, certified by your favorite circle-jerk
 
Breaking news: people aren't perfect. More at 12.
(Notice I subtly changed from my usual stance "everyone is a retard")
 
Oh boy. Did I forget to give 4chan honourable mention, your lordship :) ROFL
 
1:26 AM
 
The third frame... it's a haiku frame.
Beautiful
 
user406009
@sehe Yeah, that is a little bit ridiculous.
 
user406009
Sometimes people give up way too much for stuff like DRY.
 
user406009
Every now and then, the simple copy and paste is cleaner anyways.
 
Whoa. I just stashed some dirty files, renamed a project subfolder + commit, applied stash back... To my surprise it correctly applied the stash to the file renamed. +1 for git
 
1:29 AM
Hmmm HN comments debasing a years-long study by a professional economist in a 4 lines-long lapidary comment <3
 
@VeronikaPrüssels The wonders of the internet :)
 
@Borgleader You are wrong because <uninformed opinion>!
 
@Lalaland I think I agree with what you're saying (although that code wasn't about DRY nor copy/paste; it was about extensibility and separation of concerns, mostly, I think. But executed in the worst possible way, with all the bad naming (XXXManager, YYYProxy) and not addressing the real issues)
 
user406009
@VeronikaPrüssels Which thread?
 
Then how come <anecdote>?
@Lalaland All of them
HN is cancer
kill me why am I reading this
 
1:31 AM
@VeronikaPrüssels Yeah. That's the Trump® Approach To Inconvenient Truths™ System
 
Adam Savage meets Kylo Ren :)
 
user406009
@VeronikaPrüssels That's why you should read the BetterHackerNews(TM): archive.rebeccablacktech.com/g/thread/48696148
 
@Lalaland It doesn't look like it was about DRY. DRY actually has some objective component inside it - which I like. I mean there can be many subjective opinions about software development, but if you have some objective measurement tool, for instance performance - you can filter out some of subjective stuff and work in smaller decision space.
 
@Lalaland Looks a lot more like 4chan, really. But apparently, with Bootstrap added to it (still a turd)
 
user406009
@sehe It's an archive of an old 4chan thread.
 
1:34 AM
Hah. I'm the wiz.
 
user406009
> I suspect we're on the verge of pretty big advances in genetic engineering, robotics and other physical technologies, including technologies that are likely to spur the development of other technologies. Genetic engineering of embryos for increased IQ is looking very feasible, for example. This is likely to increase the pace of innovation drastically in those countries that allow it.
 
user406009
Well.
 
user406009
Typical HN.
 
I'm off to bed because sleep is for the week
 
3 sentences
0 facts
 
1:35 AM
@Nooble I'm always relevant
 
user406009
@VeronikaPrüssels infinite elitism
 
I'd have to genetically engineer my children to lower their IQ so they can feel like they fit in
 
That's called fetal alcoholism
 
it’s not fetal if you build an immunity early enough
 
1:38 AM
pun rejected
 
@Borgleader I know whose tweet you stole that from
 
@sehe I didnt steal it from a tweet, people here kept saying its "for the weak" and tomorrows monday so i changed it to "for the week"
but anyway, off to bed now
i mean, its possible i read the tweet youre thinking about but if i did i dont remember doing so
 
@Borgleader oh. I thought you liked that indian comedian that I recently unfollowed. He used to tweet that... a few times
 
Pakalu Papito?
 
Him
"Oh god, I'm so ugly" - lol
 
1:46 AM
> Error 1 error C2070: 'unknown': illegal sizeof operand
u wot m8
 
Unfollowed him a long time ago, too many reposts and tweets about how eminems daughter is hot
 
user406009
@VeronikaPrüssels it looks like you are suffering a severe case of MSVC. I'm afraid it's terminal.
 
Worse. It's GUI
 
2:02 AM
That time of the month (2nd day) - this time early, possibly because of the 6 days hike?
Time to finally fix my PC
going to see whether a disk duplicate is going to fix my harddrive problem
 
2:42 AM
@VeronikaPrüssels btw I started playing a bit of Revenant in PvP (condi hybrid build)
I was pleasantly surprised at how engaging it was, compared to e.g. playing Elementalist where you mindlessly spam all your damage and boons (although you do time CC)
 
2:53 AM
Impossible
FUCK YOU MSVC
6
FUCK YOU
 
what did it do this time?
beyond just be generally shit, I mean
 
@StackedCrooked I just watched Boku dake ga Inai Machi ep11. And all I can say is: FFFFFFFFFFFUUUUUUUUUUUUUUUUUU
 
@jaggedSpire It's forcing me to hardcode field offsets
 
jesus
that's not generally shit, that's particularly shit
 
Also who the fuck came up with the wording 2 overloads have no legal conversion for 'this' pointer can't you just say "can't call non-const method on const object" you fucking pedant
 
3:17 AM
I'm so happy I gimped that well known animal picture for my avatar
 
So did I
Different species, though.
 
lol
 
kek
 
3:48 AM
@VeronikaPrüssels is the actual type you’re handling standard layout? (it is in your example)
change sizeof to sizeof(std::declval<type&>().last_field)
 
Yes it's that exact type (save for the using which are actually wrappers over std::array with a few helper methods)
@LucDanton why didn't I think of that ._.
That works, tips béret. Thank you.
 
@Mysticial >mfw cucked
 
4:40 AM
wait
why does std::allocator::allocate return a T*?
wow
I never realized that before
 
@VeronikaPrüssels technically there is such a thing as 'unconstructed piece of storage suitable for T' in the language
 
But that's not what T* says :o
 
well those rules are esp. concerned with T& and T* to such storage
I’d better check actually
 
so a user of allocate should assume that the returned T* is, in fact, not backed by a valid T?
 
oh yeah absolutely, there’s construct as the next step
 
4:46 AM
good use of types
 
it actually just says 'pointer'
however for references it now says 'a glvalue that used to refer to the object', which is quite unambiguous
doesn’t matter too much anyway, you have to treat the pointer as if void* (with additional restrictions, too)
 
If you give me a T* I fully expect to have an actual T behind the pointer
void* would be more telling
 
unconstructed<T> or some such would be best
either T* or void* as compromises have flaws
template<typename Type> using unconstructed = Type*; // all better now
 
@LucDanton yes
luc danton for C++ committee president
 
5:02 AM
any1 up for rollershed?
 
I guess
inb4 architecture & design
 
You know me all too well
 
night
 
You have a class which encapsulates a protocol.
The protocol is composed of messages which have to be sent in a specific sequence.
Eg, messages such as `RobertBegin`, `RobertData` and `RobertEnd`.
Do you expose that functionality in the class as `SendRobert(Data)` that wraps all 3 operations in 1, or do you create *another* class on top of that one that exposes such functionality but delegates the raw operations to the "lower level" one ? inb4 I don't make sense.
quality watershed
 
I say paint it red
 
5:07 AM
communist
 
@VeronikaPrüssels doesn’t matter too much, although I’d start with one class
 
that's what I have currently
but I felt the urge to boatshed
 
if it would be convenient to split out into another class (e.g. lots of state that persist across messages, but which is useless for anything else) then it shouldn’t be a lot of work to refactor anyway
 
1 day tops
 
> Boaty McBoatface could be the name of £200m research vessel after public vote
9
 
5:17 AM
2016 and people still choose names from internet polls
do they never learn
Also why no allocator::allocate_and_construct<T>(args)
 
that’s a very specific pattern
 
5:35 AM
> What exactly is the proposed module system? How would it work syntax wise?
The last thing I'd care about modules is syntax
 
 
2 hours later…
7:53 AM
uuh nonius doesn't compile with g++ 4.9.1? o.O
it should, right?
 
8:21 AM
hello all
 
user1804599
Hello.
 
8:36 AM
> Yes, overall the team has been very pleased with [Rust]. Compile times are the only serious complaint.
> Trait objects are awkward with object-safety restrictions, so generics aren't quite as useful as we'd like in Rust.
@AndyProwl not to discourage you or anything
(second quote not related to the first)
 
Ven
Yo.
 
oh, Rust’s Hash trait is a Types don’t know # deal cc Rapptz
or arguably a clunky double dispatch, heh
 
@LucDanton wait why should that discourage me?
 
@AndyProwl it shouldn’t, because that’s the opinion of a particular software team somewhere in the world (i.e. it’s quite narrow)
 
no I mean, why should that opinion discourage me, even if it was more widespread? Is it in relation with virtual concepts?
 
8:47 AM
yeah
 
I think the compile-time overhead would be there for regular concepts too, right?
I mean, compile-time concepts
 
(the compile-time thing is another complaint altogether)
 
Rust is still on my stack of things to learn. The stack's getting really dusty. This is to say I'm not sure what trait objects are. Is it something like virtual concepts?
 
yeah
 
And these object-safety restrictions that make them awkward, are they talking about the borrowing thing etc.? Cause that wouldn't exist in C++. Not sure what I'm talking about
 
8:51 AM
No, it is not (just) borrowing related. And if it were, we would have the same problem in C++. Lack of a borrow checker does not make borrowing work…
 
I dunno, then I think I don't understand the problem
 
Ven
It's basically related to object slicing in C++
 
Now I understand even less
I've read the thread on the SG8 mailing list about definition checking and why we may not want it - debug output etc. - that's the only thing that slightly concerns me ftm (cause virtual concepts require definition checking)
 
@AndyProwl maybe they are monads?
 
@JohanLarsson problem :: Maybe Monad
 
8:54 AM
Maybe today is Monday. My mind is too blurry to know. So it must be Monday.
 
bloody Monday
 
@AndyProwl you can’t have every trait support trait objects, or in C++-speak you can’t erase any concept (I thought we discussed that already?). Which the Dropbox folks find somewhat of an inconvenience.
 
Ven
@AndyProwl Monad is not even a type ctor!
 
morning
 
May 5 '15 at 9:31, by Andy Prowl
Never make inaccurate jokes in the Lounges :D
 
Ven
8:56 AM
ahoy
 
@StackedCrooked it gotta be Monday, haven't you watched the epic latest episode of one piece yesterday?
 
@AndyProwl lol
 
Oh right. I saw that.
 
Want to write that? Wait for Vapor. :D
 
Mingo is finally beaten. Took long enough.
 
8:58 AM
@LucDanton Oh, that. yeah, you can't erase all concepts, that's true. That's ok with me
I think the feature is still useful
 
@StackedCrooked the epic moment is the kong gun of anger, it seems to have shot Mingo like a super sonic bullet that broke the city infrastructure concrete like a shattering glass
 
although
I'm not sure why Clonable would not be erasable
 
Clone is -> Self, it’s the trait for 'smart' copy
 
it just forces the client to initialize a Clonable from the result
 
TheOtherClone with -> Box<TheOtherClone> would work, yes
(maybe Box<Self> is a more precise typing that would work, I’m not sure)
 
9:03 AM
eh, I can't understand that. Is it like copy-constructor call vs cloning operation returning T*?
 
yes (although it should be std::unique_ptr<T> you savage)
Box is for boxing
 
I can erase copy-constructor calls (muhaha)
 
no, you can’t
 
virtual concepts use dynamic allocation and pointers behind the hood for realizing value semantics
 
2 mins ago, by Luc Danton
TheOtherClone with -> Box<TheOtherClone> would work, yes
 
9:05 AM
that's what the compiler does internally
the concept is still CopyConstructible
 
why does the name matter
 
it doesn't, I mean
 
by your own admittance it is the_other_clone(&self) -> Box<Self>
 
the concept still mentions copy-construction syntax, and the client uses it as T x{y};, and gets the call dispatched at run-time
 
syntax, really?
 
9:06 AM
T is concept
 
you should know better by now
 
maybe I'm just unable to explain what I mean
or to understand what you mean
 
there is nothing to explain
 
but I think I understand what the issue is (or rather is not)
well, yes there is
 
@VeronikaPrüssels look, a man trying to explain his way out
 
9:08 AM
@VeronikaPrüssels This works on two Visual Studio C++ web compilers I have tried.
 
for instance I'd like to be able to explain why I can erase copy-constructor calls, but you started shouting 'syntax'
 
please stop explaining
 
This brilliant crypto API returns char* and then asks me to free it with a function that takes unsigned char*?????????
 
oh I thought we were having a conversation sorry
 
No we weren't
 
9:10 AM
@VeronikaPrüssels of course, you use signed memory for crypto stuff but you have to hide your secrets before passing it to the system API
 
It's a secret sign
BTW don't forget to sign yourself when entering a church
 
I'll immediately start barking my opposite view of things without giving reasons for it
 
@LucDanton The name is fitting. It is so very The Culture esque. :D
 
@VeronikaPrüssels of course the buffer is signed, how do you expect it to be secure otherwise
 
==19227== LEAK SUMMARY:
==19227==    definitely lost: 13,928 bytes in 2 blocks
==19227==    indirectly lost: 80 bytes in 1 blocks
==19227==      possibly lost: 0 bytes in 0 blocks
==19227==    still reachable: 600 bytes in 2 blocks
==19227==         suppressed: 0 bytes in 0 blocks
Hide yo secrets leak your mamory
Also countless:
==19227== Conditional jump or move depends on uninitialised value(s)
is this crypto or is this trying to summon something
 
9:12 AM
@LucDanton Gregor McGregor for captain of Boaty McBoatface
 
@VeronikaPrüssels isn't that the same thing
 
@slaphappy I’m sure that expedition would meet a good fate
 
lol I think the crypto DLL checks itself against tampering
why would you provide all symbols then???
 
@VeronikaPrüssels well it’s saying value(s) so I say let’s be optimistic and assume it’s just one value which is being problematic, just gotta find it now
 
inb4 the self-signing key is at some obvious symbol SECRET_KEY
 
Ven
9:16 AM
@VeronikaPrüssels are you running os x or linux?
 
minix
 
Ven
also if you're on MSVC, uninitialized values get 0xCC in DEBUG mode.
 
@Ven linos x
Linux but I'm running some vendor-provided lib.
 
provided by the NSA
 
More like NMF, No Memory Freed
 
9:18 AM
maybe it's a freemium model and you have to pay to get your memory back
 
10 mins ago, by Veronika Prüssels
This brilliant crypto API returns char* and then asks me to free it with a function that takes unsigned char*?????????
nope, it’s free
 
god why everything is so terrible
 
nice, it checks if the lib is authorized to run on this machine by checking the IP address
brilliant!
 
brillant
 
Sep 16 '15 at 2:49, by Luc Danton
r u a hacker
@VeronikaPrüssels busted
 
Ven
9:25 AM
@VeronikaPrüssels congrats on your 25k btw
 
it creates a socket also???
what the fuck
Ah that's the SIOCGIFBRDADDR from the other day
@Ven Thanks
 
@VeronikaPrüssels security in depth
 
Is there a browser problem anywhere that cannot be solved by 'Uninstall Chrome'?
 
is this DRM from EA
 
> set_RSA_public_parmas
Big Parma is everywhere
 
9:27 AM
CMake requires two rebuilds to refresh project settings in VS
 
@VeronikaPrüssels lol
 
sup broz
 
Ven
weche
 
yo
 
There was some sales days at the lafayette galleries dudes
Pretty sweet deals
 
9:34 AM
rerito so fancy
 
BTW since that crypto lib is "locked" to a machine my build command is g++, rsync to machine, run.
:2016:
 
distcc?
 
@VeronikaPrüssels I assume a terrible lib
 
Ohhh
So when it encrypts stuff it allocate some buffer but doesn't tell me the length
So apparently I need to strlen the encrypted data
Which explains why it base64 encodes it (to avoid embedded nulls?)
wow
lmao
 
9:51 AM
@VeronikaPrüssels kek
 
Ven
J'ai une putain d'UE appelée "Veille technologique". /kms
 
kilometers per second
 
Ven
kill myself
 
keyboard mouse switch
 
just dump HN on a word doc
 
Ven
9:54 AM
i can try
actually we have to write a TOOL to assist us -_-.
 
@VeronikaPrüssels it’s obviously kilometer·second, duh
 
10:20 AM
Kernel Mode Setting
 
> “Advancing Human Rights,” a new NGO set up by Robert L. Bernstein after he resigned from Human Rights Watch (which he had originally founded) because he felt it should not cover Israeli and US human rights abuses.
 
Sounds great
 
Nice, keybase has paper keys now.
 
10:36 AM
For some time :)
Hi
 
Ven
hey!
 
user image
15
wow.
 
Ven
that's very much stupid.
 
Actually the tweet put it in (predictably) funny context
@Ven It's impressive yes
 
Ven
Dear anyone, if you're "actively looking for excellent DevOps engineers" you're doing wrong. You may ask me why. Otherwise, fuck off. <3
you're stupid. go away.
 
10:49 AM
@Ven lol, I hope no one answered
 
Ven
@slaphappy one person answered, got an "answer", and then replied "sad I missed that"
 
@Ven Oh. Semantics.
 
11:11 AM
So the handshake negotiation part is char* but the rest of the encrypted transactions are unsigned char*
Despite both being, uh, base64 strings it would seem
 
how bad can it get
 
worse
lol the docs don't even match the actual signatures
 
rip
even OpenSSL doesn't do that I think
 
it also uses a crypto algo I've never heard about before but who knows
also it encrypts only the body of packets lol
so in theory a MITM can still see a non-negligible part of what is going on
 
Can git commits be signed post hoc?
@VeronikaPrüssels Impressive.
 
11:19 AM
the man in the mirror can definitely see a non-negligible part of what is going on
 
Xeo
> While you were away
fuuuuuuuck you twitter
 
I guess the commits can be format-patched and replayed later?
 
Xeo
millionth time I told it to get taht shit out of my face :|
 
@R.MartinhoFernandes I think it's the same as with regular operations on commits, no?
IOW it counts as rewriting history
 
@R.MartinhoFernandes It will create a new commit, though.
I.e. will change the hash.
 
11:21 AM
How'd that go? Interactive rebase, select all commits for edit, and commit away?
 
Pushed commits?
 
Consider them private commits for this exercise.
Hmm, format-patch + am has less interaction.
 
Probably something with filter-branch
Or is it filter-tree
I forget
 
Do patches carry the original authorship dates?
@VeronikaPrüssels filter-branch destroys signatures.
At least it does on tags.
> It is by definition impossible to preserve signatures. The reason this is "nearly" proper, is because ideally if the tag did not change (points to the same object, has the same name, etc.) it should retain any signature. That is not the case, signatures will always be removed, buyer beware.
 
Well you are rewriting history, it will destroy everything in the process
 
11:26 AM
I can't find any other mention of signatures in filter-branch's docs.
 
Wrong feature.
-s only adds text to the commit message.
This answer does not match the question but does what I want, though stackoverflow.com/a/27387391/46642
 
His only answer
 
@sehe Cmon man, its monday for everyone
 
Ah, format-patch keeps all commit metadata.
Piping that to git am is easier to remember.
Can even lie about the asynchronous signing with --committer-date-is-author-date.
 

« first day (1983 days earlier)      last day (2969 days later) »