« first day (1626 days earlier)      last day (3327 days later) » 

8:00 AM
read-only immutable I/O vs copy in memory? I'd assume copy is faster?
 
Memory is always faster.
 
@VictorLopez Right.
This guy that I'm reading seems to be advocating pass-by-value as a good general solution to immutability/mutability problems.
 
@khajvah its just not finding them and that article says I should look for MinGW GCC, but its not there...I installed all packages of CDT...still seems that compilers not there... u know where are those compiler files located inside CDT folder?
 
Red herring?
 
@Cinch It depends, if doing multithreading you should not share the reference unless you protect it first.
 
8:01 AM
@Mahesha999 Just choose whatever compiler you want. You have two installed, choose one of them.
 
@VictorLopez So I mean, make it immutable, then?
 
I tried both it keeps saying "unresolved inclusion ..."
:(
 
Usually you protect the object with some aquire - release method using mutex, like textures from those popular graphic engines.
 
@orlp what's wrong with that? It's just informing you of a optimistic lock race, as web applications should be doing
 
texture->lock internally locks a mutex, then you do texture->unlock
 
8:03 AM
I'm just wondering if the solution to people's multithreading problems is functional/immutability/map.
 
If, for example, the data type is being used by the object in an update loop in another thread but you can't share the reference for some reason, call it performance, you can return a copy and forget about the object being held too long, but, it is a really bad design.
 
> <urandom> hrm...do you have kids?
<RangerRick> nope
<urandom> route add -host 192.168.0.5 gw 127.0.0.1 <--- It's comes to this, the only way I can get them to do their chores
@Cinch no the solution is a silver bullet
 
@sehe No but it seems to be the reason why people push for functional.
Functions that do not change state but instead just return a mutated copy.
 
Doesn't make it the solution
 
If you're not doing multithreading then it is fine.
 
@Cinch Thank you. I'd never have guessed what you meant unless you added that.
TYPE LESS
 
@sehe like, "typeless" or "please, type less words?"
 
@Cinch memory maps. next
@Cinch YOU'RE STILL DOING IT
(good joke if that was on purpose)
 
...idk what you mean.
 
That's a problem
 
8:09 AM
He refers to mappings, a map @Cinch, a map.
 
@VictorLopez no, what is "IT" in "YOU'RE STILL DOING IT"
 
@Cinch Thinkering.
 
typing too damn much. instead of thinking
 
@sehe Oh thanks.
That's my problem; there ain't no strings on me.
 
K.K
I am just enjoying this conversation u guys are having...LOL:D
 
8:10 AM
(or duct tape on my mouth. yet.)
frrrripppp
 
@K.K That's what the lounge is for. And is good at
 
Not at all, if you can remove elements from the equation you're fine.
 
Well, continuing...
Rapptz suggested I use void pointers for type erasure but I feel that's unsafe and not right...
I tried the polymorphic/inheritance way but that didn't feel right either.
Boost.Any requires dependencies...
 
If you do upcast it is fine, if you do downcast it gets really complex and hard to implement.
 
K.K
@sehe I am having a not so good day at office...so came to take a peek at what you guys are upto....You guys never disappoint me..:D
 
8:12 AM
@VictorLopez Down being parent to children classes, right?
Yes, I was going to do that.
 
@Cinch don't wait until "it feels right". Fix your feelings. Facts are just that. You can have an opinion about them. And a preference.
But fly-by-emotion is bound to just crash you
 
Well I do have a reason.
 
~~purformance~~
 
Void* are inherently UNsafe and need a lot of care and for each type I need to come up with a handrolled system.
 
@Cinch I wasn't responding to that. (Pay attention! You're moving goalposts even without yourself noticing. This is known as "sloppy thinking")
Nobody needs a reason to dislike void*
 
@Cinch It is fine but performance.
 
@VictorLopez But I don't want to make things inherit. This creates a dependency on the inheritance tree which has its own problems.
 
@Rapptz Forever corrupted.
 
@Cinch ?!??! You clearly haven't thought this through. At all. Did you look at my link?
 
@Cinch Ok, let's do cryptography now.
 
8:16 AM
@sehe Oh no, I missed it.
I got it now.
 
What is 1500?
It can be a value
it can be an hour
 
> But then C++ wasn't very popular at those times.
 
or it can be 1 = f, 5 = l, 0 = e, 0 = e. and the meaning is FLEE.
If you want to hide that information in a paper you can write EELF
or mirror the word so it can be read like 337 and the F inverted.
What do you want to obtain?
The 1500 value, that's right!
But there are RULES.
for coding and decoding.
You can't make a const char* data = "my data"; to be an integer because it is an array.
 
33 mins ago, by Rapptz
What the hell is going on
 
floats lose precision over double, integer representation is not accurate, booleans can contain 0 and 1.
 
8:21 AM
@Cinch WTH. Too lazy to search, too keyboard-happy to read the link when it's huge-ass-oneboxed-right-under-your-nose...
 
@sehe I'm probably ADHD but was never diagnosed lol
 
That's incredibly poor excuse
 
@Rapptz I have no idea
 
Stay away from that lesbian.
 
@Rapptz Uh we're still talking about stuff.
 
8:22 AM
She's not good for you.
 
The lounge makes less sense as the days pass.
 
@sehe I also don't believe that ADHD justifies spontaneous behavior or careless thinking.
 
@Rapptz This
 
Hi @sehe
 
lo!
 
8:24 AM
Oh boy, move semantics.
 
Type erasure won't make it work. You need to create the full stack.
 
@Blob hehe he accepted without any comment
 
Okay I'm done reading.
 
You should let us know when you start reading :p
 
Xeo
@Rapptz We did get a sudden surge of new users...
 
8:30 AM
@sehe Damn I still know nothing.
But at least I can now order which smart pointer is the simplest to use and should be learned first.
 
Nice error messaging right there
 
> Well, it's technically O(nlogn), and technically I can do it in O(n) by entering all the items from one list into a hash table (or std::unordered_set, if you will)
what
that doesn't make it O(n)
or maybe i'm tired idk
 
O(n) to turn list -> hash table?
 
@Xeo It's been worse in the past. I think ~start of 2013 was pretty bad
 
user1804599
8:38 AM
Hi.
 
@райтфолд I can tell by your name that you're from Russia right?
 
Correct
 
How do Russians see Americans?
 
Pantoona is better known as Vlad (from Moscow)
With their eyes like the rest of us
 
Absolutely.
 
8:42 AM
lol
 
In America, movies are about Americans fighting evil Russians. Are movies from Russia about Russians fighting evil Americans?
 
> Here in America
urgh
 
user1804599
@VictorLopez Fortunately not.
 
user1804599
@VictorLopez They're jealous.
 
user1804599
I'm Dutch, like any good person.
 
user1804599
8:44 AM
If you ain't Dutch, you ain't much.
 
How long did it take you to come up with that line?
3-4 days?
 
user1804599
I didn't come up with it.
 
user1804599
As a finishing touch, God created the Dutch.
 
@ParkYoung-Bae Here in Belgium we have movies about beating the French.
 
Oh you got it from cooldutchlines.org
 
user1804599
8:45 AM
No, I didn't.
 
You sure?
 
user1804599
I got it from somewhere but I don't know where.
 
Question:
 
@StackedCrooked Nobody's perfect
 
Shoulda played video games instead of doing nothing for 3 hours.
A real shame.
 
8:48 AM
For dynamic_cast, if I have a Grandparent, Parent, and Child class, If i do dynamic_cast<Child*>(Grandparent* ptr), if ptr points to a class of type Parent and does the cast work or not?
 
user1804599
Of course.
 
But the data for Child* is missing?
 
user1804599
You'll just get the null pointer as result.
 
8:50 AM
What’s up with ninja and interactive test runners (or interactive things possibly)?
 
que
 
So the cast would be evaluated as false in any case of if(dynamic_cast<Child*>(Grandparent* ptr) where *ptr = Parent)
 
Thanks for reminding me no one wanted to help me
 
@Rapptz It’s not like I started using ninja to spite you.
 
user1804599
dynamic_cast is great.
 
8:51 AM
dynamique_caste
 
@LucDanton Jerk. :(
 
So if I get this right...
 
The runner script sets up the environment and ends in lua -l module, but I get no prompt when called from ninja. Running from bash enters the Lua prompt without issue. I added -i to see what happens, and I see the prompt in the terminal but I’m still back to bash.
I think this used to work?
 
> With last night's release of the Linux 4.0-rc1 kernel, Linus Torvalds changed the kernel codename from "Diseased Newt" to "Hurr durr I'ma sheep."
okay then
 
@Cinch Where is your repository?
 
8:53 AM
do you have a small repro
 
@VictorLopez For?
 
I have lua installed
 
@Rapptz You don't get to ask people that
 
@Rapptz Let’s write some .ninja then.
 
@ParkYoung-Bae lol
 
8:53 AM
@VictorLopez he's only linked to it 173 times
 
Careful. 174 soon.
 
@Rapptz But I didn’t! That was the point!
 
I am still formally requesting aid.
 
@ParkYoung-Bae have you ever seen the troll electronics videos? they seem right up ally
 
@sehe you counted?
 
8:54 AM
@Rapptz Isn’t the point of asking/requesting that we don’t have to join in? I’m not getting shanghaied in this am I?
 
@thecoshman what
 
TIL ^
Not sure how I've missed this for 3 years.
 
@Cinch To be or not to be, that's the question.
 
I'd always go to room > info like some chump.
 
Xeo
8:56 AM
scrub
 
@Rapptz I was sure that was sarcasm.
 
You'll never know.
 
Xeo
I'll just assume he was indeed being a scrub
 
@VictorLopez Don't torment me with suicidal existential thoughts.
 
Xeo
Funnier that way
 
8:56 AM
@ParkYoung-Bae there a series of videos of electronics circuits that do what shouldn't be possible. Like cell, two switches then two leds in a ring, but the two switches can control the two leds... so like, you can have one switch open and one closed for have one light off and the other on... even though their appears to be no closed circuit to power the led.
 
@LucDanton You'll find out the hard way!
 
@thecoshman link?
 
@thecoshman Yes I think I've seen one of these
 
@Cinch vOv google. I've not seen it recently
 
user1804599
What kind of literal should 'x' be?
 
@райтфолд char
 
user1804599
@thecoshman define "char"
 
This is a No Pony™ zone.
 
@райтфолд char noun - a blind chair
@Rapptz I like how the tm is trying to hump the pony
 
Xeo
@райтфолд Just ban literals, they only create confusion.
 
8:58 AM
@Rapptz looks like this, final $ is ninja returning without me getting to see the Lua prompt.
 
sup bby u wanna c my lua prompt
 
@Xeo Figuratively?
 

« first day (1626 days earlier)      last day (3327 days later) »