« first day (1704 days earlier)      last day (3259 days later) » 

user1804599
8:00 PM
Nice.
 
user1804599
@StackedCrooked what VM software do you want to use?
 
Xeo
So, there's this rule that a pointer to non-union class-type T can be cast to a pointer of the type U of its first member, and vice-versa. (struct X{ int c; }; X* x; reinterpret_cast<int*>(x); } is valid);
 
@Jefffrey @Mr.kbok ?
 
Xeo
Does that apply through another indirection? I.e., X** xs; reinterpret_cast<int**>(xs)?
 
@rightfold I'm only slightly familiar with vbox.
 
user1804599
8:01 PM
ok then I'll use that
 
@Xeo makes sense
what's up?
 
VBox sucks
 
Ell
vbox works for me
 
@Jefffrey I can start right now
@Ell might perhaps join?
 
Ok
 
8:03 PM
and I can try to reach kbok too
 
Give me 10 minutes
 
Ell
@BartekBanachewicz factorio?
 
Ell
Hmm
 
Ell
8:04 PM
as in in 10 minutes?
 
user1804599
@StackedCrooked Debian?
 
oh right actually kbok wanted to finish camaping first
@Ell yep
 
Xeo
@VermillionAzure Just because it "makes sense" doesn't mean the standard allows it.
 
Ell
I guess I could
 
we typically start at 10 pm my time
 
Ell
8:04 PM
I can't talk though
 
@Ell np.
see you in 10 minutes
 
@Xeo no, what did you want to talk about by bringing that rule up?
 
Ell
cool :) I don't know the server deets btw
 
I'm gathering some suggestions: the italian C++ group has a wordpress-based website. We ran some tests and we agreed that it sucks on mobile (see discussion some paragraphs before). I don't have experience with wordpress, does someone know of a good theme that works well with mobile? Should we have two websites for mobile and non-mobile?
I have no idea..
 
Xeo
@VermillionAzure Well, exactly what I asked about. It just came up in some coding I'm doing
 
8:06 PM
@Xeo Well I don't think it really requires more indirection right?
 
@rightfold I've always used ubuntu. But debian should be mostly the same I guess.
 
It's just going to reinterpret the data with a different "reading lens"
 
user1804599
ok
 
Xeo
I'm asking because exactly that came up. I have an X** and I want an int**, and I know about the rule that X* => int* is okay. Now the question is, is X** -> int** okay?
 
@Xeo yes
it's a pointer
all pointers are usually the same size
because they're all memory addresses
 
8:07 PM
@nabijaczleweli you figure it out :)
 
Xeo
That doesn't matter.
 
@Xeo For all we care, the data types are the same size.
 
Xeo
That doesn't matter at all for aliasing.
 
@Xeo hm...
 
Xeo
And the first rule exists because usually you aren't allowed to do such aliasing.
 
8:08 PM
@Xeo No
 
@Xeo well a pointer to a pointer is always a pointer to a pointer
 
afair
 
@VermillionAzure I'd say the input "tokenizing" sample should be called "parsing" because that's what it does. And here's how I'd expect it to be written (barring use of e.g. Spirit of course): coliru.stacked-crooked.com/a/c6448e558da126e7
 
Xeo
@VermillionAzure doesn't matter
Aliasing rules say that T* can't be aliased by U* unless U is a char-type, or the special rule about first members applies.
 
@Xeo but it does
 
8:09 PM
Just finished my biology finals :)
 
Xeo
(or bases, etc)
 
@Nooble non-sarcastic slow claps
 
In folly's code base you'll find stuff reinterpret_cast<std::atomic<T>*>(...).
 
@nabijaczleweli Thanks.
 
8:11 PM
@rightfold containers, UML
 
user1804599
What is UML?
 
> // We need some illegal casting here in order to actually store
// our value_type as a std::pair<const,>. But a little bit of
// undefined behavior never hurt anyone ...
 
user1804599
Also what container software which works on OS X and Linux?
 
UserModeLinux (it's an old thing, perhaps KVM has superseded it)
 
8:11 PM
@Xeo Or const changes
 
Xeo
@Puppy right
 
@rightfold None
 
@Xeo ahhhh
 
Xeo
2 mins ago, by Xeo
(or bases, etc)
 
that's quite interesting
 
user1804599
8:12 PM
A proper VM it is then.
 
I don't think SOX has any container support
 
@Xeo thanks for the info
I didn't know about strict aliasing
...
Doesn't reinterpret_cast do this then?
 
Looks like my SSD will be delivered pretty soon from now--maybe an hour or so. The UPS guy won't be able to deliver the package if no one answers the bell. It's going to have to be a race between the subway and a truck then.
 
@Nooble what if the UPS guy falls with your ssd package?
 
Xeo
@VermillionAzure That's why reinterpret_cast is dangerous.
 
8:14 PM
2 meters from your door
 
You making Coliru clone rightfold?
 
user1804599
No.
 
@BartekBanachewicz I'm there
 
user1804599
Only backend.
 
PSA: Cinch get your act together. /cc @VermillionAzure
Mar 30 at 8:16, by Cinch
@sehe Oh no, I missed it.
You missed this too I bet. I know because you'll ask inane questions later that have all been addressed in that snippet that you conveniently missed
 
8:16 PM
@Nooble You could try online tracking but, IME, the truck GPS only reports in every 30 min and the data has to get through Java, MySQL and PHP before you can see it. The result is that the truck may be anywhere in a 150km radius of the reported position.
 
@Nooble Don't forget about seek times for the delivery guy
 
Xeo
Also, I wish there was a standard way to get all args as a single char (const)* blob. Could just string_view into that after parsing.
 
@MarcoA. That's perfect. You can carry the rest and he'll be excused
 
@Xeo Win32 :)
 
8:17 PM
@Xeo just fold over them via concatenation?
 
but it sounds like it could be quite nice to have aliasing in some situations
 
Xeo
@Puppy The point was to not do allocations for it
 
The point is that it's useless because you lose vital information
 
@Xeo Why?
 
Unless you keep embedded NULs as argument seps. I do that sometimes.
 
Xeo
8:18 PM
Just because.
 
well you can on Windows
there's a WinAPI call for that I believe
 
user1804599
VBoxManage controlvm 'Worker 1' poweroff
VBoxManage snapshot 'Worker 1' restore 'Worker'
VBoxManage startvm 'Worker 1' --type headless
 
user1804599
Gonna try this stuff out. :D
 
Xeo
I was just wondering about allocation-less conversion of (int, char**) to some kind of string-like container
 
a.k.a. reinventing Vagrant?
 
Xeo
8:19 PM
That's also where the X** => int** question came from
 
@sehe hm
 
Vagrant is nice
 
reminds me of bash
 
@VermillionAzure I was right :)
 
Xeo
> a standard way
:/
 
8:19 PM
@MartinJames Heh.
 
you mean, "Did the committee happen to foresee my totally arbitrary requirements and write a specific case that will be used a grant total of once solely for my personal amusement?"
the answer to that question is "yes" far too often, but not in this case
 
Xeo
I meant what I said.
This is all just for funsies anyways.
 
@Jefffrey server going up
 
@Xeo In cases like this I use a stream input
@MartinJames why, what, where?
 
Wow aliasing
 
8:22 PM
@Jefffrey @Ell up
 
Ell
@BartekBanachewicz can I have deets?
 
now wtf do we do
 
Ell
deets = details
host/port
or ip & port
 
@Xeo There's certainly nothing stopping you from writing a string_view-alike into int, char**.
 
8:23 PM
47.106.34.101:8403
 
Xeo
@VermillionAzure hahaha, and another one swallows the red pill of C++ aliasing.
 
but you're gonna have fun trying to implement O(1) random access without a lookup table (allocation) into variable-length sub-sections
 
Xeo
4 mins ago, by Xeo
That's also where the X** => int** question came from
 
@Xeo oh wait
we just memcopy?
well then
 
@Ell port is default
 
8:25 PM
sehe@desktop:~$ telnet 47.106.34.101 8403
Trying 47.106.34.101...
HELLO
SEHE HERE
TALK TO ME BUD



/
 
Ell
@BartekBanachewicz what is ip?
 
Xeo
'twas char** => cstring_view* (with just a char* pointer inside)
 
Broken
 
@Ell sent you over email
 
8:25 PM
what is C++ going to do with string_view ---> UTF-8
 
Ell
Ah cheers
 
hmm
the new KSP really rewards you for making shallow re-entries
 
> So I pussied out, it's alright, I am what I eat... you didn't hear that.
 
the new atmo model is great
 
@VermillionAzure agnostic, as ever
 
8:26 PM
@MarcoA. That would be unfortunate.
 
@EtiennedeMartel lol
 
fucking thing
 
@sehe that's too bad.
 
it freezed
ah its upping
 
@EtiennedeMartel dying
 
8:27 PM
I mean I like C++ but it's Unicode support is just... ugh.
 
@Jefffrey you joining?
 
yeah
 
@BartekBanachewicz Did I kill it then?
 
@BartekBanachewicz It takes a whole lot of time
Every new thing we build is getting worse
@BartekBanachewicz
 
'Every little thing he does is tragic'..
 
Ell
8:29 PM
@BartekBanachewicz how do I chat? :(
 
25 mins ago, by Ell
I can't talk though
 
Ell
heh
 
@Ell `tilde
oh god
 
47.106.34.101 doesn't respond to telnet. I am disappoint.ed
 
how bad is ISP sending password in plaintext
 
8:32 PM
@BartekBanachewicz Superbad, bordering on criminally bad.
 
oh god I got so scared
for a moment I thought I had to pay like 4x more
thank god it was just some shitty thing
like pennies
gonna email them about the password tho
 
@VermillionAzure since you apparently don't have time to respond, I posted it on CR:
0
Q: Parsing a simple tuple in c++11 iostreams

seheI spotted this tutorial example at compactcpp: #5 – Parsing strings into “tokens” #include <iostream> #include <string> //This program is extremely crude, but it indeed works for its intended purpose. //There are many other better ways to do this. int main() { //Here, we use a std::str...

@BartekBanachewicz very
 
@sehe Why are operators static? (just curious)
 
@sehe ah, thank you
techincally i should be working
which I will be doing now
 
user1804599
guys guys guys I'm bad at imperative programming
 
8:39 PM
@milleniumbug force of habit; make them local to TU (I often locally implement shit like operator<<(std::ostream&, std::pair<T, U> const&) that I don't wanna own ODR-shit to)
 
user1804599
 
@rightfold write as inline functions???
 
@rightfold It's imperative that you get rid of rucoli
 
user1804599
Wait, I know.
 
user1804599
I'm going to make the retrying mechanism more generic.
 
8:39 PM
@VermillionAzure Doesn't play nice with other TUs
 
user1804599
By making it a function that takes func() error. :D
 
@milleniumbug wat is a tu
 
@rightfold while() { do shit or throw }
 
@VermillionAzure Translation unit, a.k.a. preprocessed source file
@sehe "up" is missing there
 
@BartekBanachewicz The same thing was done by a shitty IT knowledge competition I participated in, they sent ALL CREDENTIALS in plaintext. I-fucking-T knowledge competition. The email they sent me contained:
 
8:42 PM
o/
 
login: UG714189
hasło: HRJ1V3KH
 
@coincoin WHO ARE YOU
 
a duck
 
@coincoin What a coincidence we've met there
 
@coincoin One that flags. Thank you very much. That's not useful
 
8:43 PM
Really? He's a flagger?
 
They required 3 people to give me access, and they sent me this. sigh *facepalm*
 
@EtiennedeMartel I dunno. Could be a slip of the mouse (doesn't change things of course)
 
what did I do ? oO
 
I wonder to how much rep I can get with just edits
 
@milleniumbug oh hi !
@sehe sorry I didn't get it. I did not flag anything ~~
 
8:48 PM
@πάνταῥεῖ Your duplicate is incorrect, he wants to know how to convert strings to in_port_t, he has already split the damn thing.
> How do I convert these ports from a std::string to in_port_t (defined in netinet/in.h)?
 
@milleniumbug actually have we already met ?
 
@coincoin It's a pun.
 
oh
 
Notice the "coin" part of "coincidence" is in italics.
 
OH
:)
 
8:51 PM
@coincoin It's ok. I didn't kill you. Yet
@EtiennedeMartel It's a corner case
 
user1804599
ok, starting two VMs at the same time
 
@coincoin Do tell what piece is on the music stand :)
 
@sehe :( what did I do wrong
 
user1804599
hope my PC won't die :v
 
@coincoin Did you do something wrong? I hope not :)
 
8:52 PM
~~ you re torturing me here
 
user1804599
oh really
 
but you were so kind in your answers @sehe :p
 
user1804599
snapshots are per VM ¬_¬
 
Cheers
@rightfold you can clone VMs at a snapshot
 
user1804599
how
 
8:54 PM
You figure that out? It's easy with the gui. I reckon the CLI has a thing too
 
user1804599
Do I choose "everything"?
 
user1804599
Ah yes, that should work.
 
user1804599
Let's see.
 
user1804599
WOOHOO it works!
 
user1804599
rucoli localhost:1337 'Worker 1' 'Snapshot 1' 'Worker 2' 'Snapshot 2' :D
 
8:59 PM
Let me get my sunglasses
The shinyness is too much
 

« first day (1704 days earlier)      last day (3259 days later) »