« first day (1648 days earlier)      last day (3302 days later) » 

I used my first close vote ever
I feel powerful
 
user1804599
noob
 
@fredoverflow What in the actual fuck. std::reference_wrapper constructor is not explicit.
 
user1804599
@milleniumbug imagine having to type that terribly long type name all the time.
 
@rightfold std::ref
 
user1804599
7:09 PM
:OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
 
Guys
I'm feeling bad
I made 33 questions when I was new here
And I don't want this shame anymore ( almost all are duplicates or too specifics )
What should I do?
 
> put on hold as unclear what you're asking by Krom Stern, congusbongus, Vaughan Hilts, Anko, Alex M. 19 secs ago
holy shiiiit
I put something on hold
I'm a god
 
@LucasHenrique That's not a problem. You just need to maintain at least a 1000:1 ratio of answers to questions, and you're fine.
 
My answers to questions ratio is infinity
 
No questions?
 
7:14 PM
my god to not god ratio is infinity
 
@CatPlusPlus It's not
 
@CatPlusPlus @khajvah it's NaN :D
 
@khajvah It is-but given that he's posted fewer than 1000 answers, he hasn't earned the right to ask a question yet.
 
std::reference_wrapper is now considered broken.
(that's what I think)
 
> according to me
 
7:16 PM
@milleniumbug How so?
 
8 mins ago, by milleniumbug
@fredoverflow What in the actual fuck. std::reference_wrapper constructor is not explicit.
 
@JerryCoffin If everybody followed that rule, you wouldn't be able to answer 7000+ questions
 
@milleniumbug Why would it be?
 
1
Q: Ratio when one entity is 0.

user221287What is the ratio between boys and girls in a group with 30 boys and 0 girls? Is it 1:0, 30:0 or something involving infinity and undefined? Can somebody help me out here?

 
7:18 PM
@Jefffrey I wanted to abuse it for my stuff, and it turns out I can't do that.
 
@khajvah I didn't say everybody should follow it.
 
> TES V Skyrim: Discussion Threads in a Nutshell youtube.com/watch?v=2dZoMmd5MNY
lol
 
is there a name for a socket and a thread grouped together?
 
I don't know, Go sounds boring.
 
7:19 PM
"dumb"
 
is there some kind of term for that?
 
sockethread
 
sockread
Throcket
 
I'm no ready to Go yet.
 
is it a data structure of multithreading that already exists?
boooooooooo
 
7:20 PM
You're answering uril's question?
lol throcket
 
No, it's not.
 
No. I just flew in to ask a question. This has no context to anything previous
 
user1804599
@TrevorHickey meh, nah.
 
ok well that's ironic
 
7:20 PM
Threads wearing socks.
 
or, at least, good timing
0
Q: windows DLL Is there are possibility to use same socket number among multiple threads?

urilI have created application(DLL) that updated ikon on windows explorer. I am using tcp socket to communicate with the server(on the same computer) where I get status of the file. I have performance issue on directory with many files(names of the file I am getting from the explorer ). I found bott...

 
user1804599
There's actors which are like (mailbox, thread) pairs.
 
user1804599
But not really sockets.
 
guy's got 50 threads for 50 sockets
 
Sounds funny.
 
7:21 PM
hmm.. it just seems really common to create a socket, and assign it to only one thread
 
@TrevorHickey Lack of select?
 
@TrevorHickey it's not
 
@LightningRacisinObrit Maybe he got 50 core CPU
 
so I thought it might have a non-humorous name.
 
7:21 PM
at least not among the competent :)
I admit I currently have a worker thread for a single socket ..... x N components in my app
but that's a placeholder for dispatching everything off a single select in the general event loop
 
we have an old C code base that creates a bunch of sockets, and then creates a bunch of "Tasks" which are essentially threads while passing in the socket
 
I just haven't gotten around to adding UDP support to my fd monitor yet
 
I'm trying to refactor it, and I want to group them together
 
user1804599
@milleniumbug hahahahaha select
 
we're on a ROT operating system (vxWorks)
 
user1804599
7:23 PM
Use tools that offer cheap threads noob.
 
@TrevorHickey How many potential threads?
 
@rightfold ?
 
@khajvah 20 - 30
 
user1804599
select is a low-level primitive for the runtime library.
 
7:23 PM
sockscks
 
user1804599
Application-level code must be able to just spawn many threads.
 
user1804599
Also epoll/kqueue not select.
 
who needs that many threads:/
 
user1804599
If you need to handle 1000 clients you need 1000 threads.
 
shut up rightfold
 
user1804599
7:25 PM
Unless you're a masochist and want to deal with callbacks and futures.
 
well we have all these real devices that are constantly sending out streams of bits.. and all these PLCs to read from... I mean, I dunno man.. we just have a lot
 
@rightfold What about no?
 
user1804599
It's the only way to do it without going insane.
 
@rightfold Good luck with that
 
7:25 PM
ideally you'd just have a thread per TCP/IP packet and be done with it, but idiots keep rejecting this idea in code review :(
 
user1804599
The problem has been solved many times (see Erlang Go and GHC).
 
Thread per byte for maximum parallelisation
 
user1804599
It's about concurrency, not parallelism.
 
Thread per bit if you use vector<bool>
 
7:26 PM
and if you have more than one core, use more than one thread per bit to make the most of it
 
Yes, 1000 threads are very much about concurrency
 
lol, let's not focus on the theoretical here. I'm stuck in C land. I'm stuck with how it as at the moment.
 
user1804599
I really don't see the problem with 1000 threads.
 
it's not about concurrency cat it's about optimisation
 
@rightfold I really dont see the point of 1000 threads
 
user1804599
7:27 PM
So you can write readable normal sequential code?
 
The problem is that you'll die before you manage to reach 1000 threads
 
@rightfold You're quite used to "not seeing the problem" with disgraceful things that most other people find distasteful
:ducks:
 
There are no ducks
 
There is one duck per thread
 
7:27 PM
Sep 9 '14 at 13:57, by Puppy
"Your requirements make my ideal solution awkward or impossible? Just change the requirements!"
 
user1804599
@CatPlusPlus If you use a very heavyweight threading implementation, such as OS threads, yes.
 
user1804599
1000 green threads is nothing.
 
Serious question for a minute... does Linux context switch into a thread while it's blocked on select? Cos I'm thinking why bother with [what I said before] since most of my "excess" threads spend much time blocked on select.
 
@milleniumbug that's a good idea with personal projects
 
user1804599
7:28 PM
I'm talking about threads in the general sense, not specific implementations of them.
 
user1804599
"thread of execution"
 
@rightfold Green threads doing I/O? How does that even work?
 
if it's a bug and it takes too long to fix it, try to turn it into a feature
you get interesting results
 
Personally, I've done tests with as much as 500 threads. But definitely not 1000.
 
@milleniumbug It does I/O on a worker pool
 
user1804599
7:29 PM
@milleniumbug They are paused upon I/O and put on an OS thread pool when the I/O operation has finished.
 
Mysticial that's just because you've never done long-term, intensive calculations!
You can't have your pi and eat it too
 
@Mysticial Is there any point to have that many threads?
 
user1804599
Then you can have async I/O behind the scenes and don't have to deal with crippled async APIs in the application code.
 
@AndrévonKugland YMMD!
 
@fredoverflow I think they're the same. Maybe the one with the offset has a longer encoding. But I have no idea.
 
7:29 PM
In terms of optimization
 
@AlexM. Not if the purpose of the project is to learn how to work in projects
 
Figuratively LMFAO
 
@khajvah When they're all doing IO.
(Or when you have as many cores)
 
@Columbo Your mom might deliver?
 
btw @Columbo no it'll be a couple of days and I'm not even at home right now
 
7:30 PM
@rightfold Ok, I see.
@CatPlusPlus IRTA wanker pool.
 
so anyway answer my question noobs
 
```
struct NameMe{
Socket socket;
Task task;
};
```
 
user1804599
@milleniumbug Here's how my VM does that: github.com/mill-lang/mill/blob/develop/mill/src/builtin/…
 
user1804599
(a fiber is a lightweight thread in the VM)
 
11 mins ago, by Lightning Racis in Obrit
"dumb"
struct Dumb
 
7:31 PM
@khajvah Rarely, but I generally test things to well beyond the typical use case.
 
@CatPlusPlus you made my day cat
 
(NetworkTask? if you must)
 
@Columbo Thanks
 
@CatPlusPlus ok
 
SocialTask
Task2.0
 
7:31 PM
ok
 
why is this a bad idea?
 
ConnectedTask
 
@Mysticial For Pi calculation, I am guessing, it will slow the calculation down.
 
AntisocialTask.
 
user1804599
Then the user of that API just looks like this: io::outln("a"); io::outln("b");. No futures, no callbacks, yes async I/O.
 
7:32 PM
SmartTask
 
every task in our code base corresponds to a single socket?
 
so chilled
 
7:32 PM
take me to task on these ideas
 
SocketTaskManagerSingletonFactoryUnitOfWorkRepositoryModel
 
NetworkTask is probably ok
ty
lol, I hate all of you
 
@TrevorHickey that's silly. share threads and share sockets.
 
Don't share socks tho
 
7:33 PM
4 mins ago, by Lightning Racis in Obrit
Serious question for a minute... does Linux context switch into a thread while it's blocked on select? Cos I'm thinking why bother with [what I said before] since most of my "excess" threads spend much time blocked on select.
 
@TrevorHickey No you don't.
 
@EtiennedeMartel hey, grooveshark works in romania
spotify could learn a thing or two
 
@AlexM. did you see what I said about Grooveshark before
 
@LightningRacisinObrit No idea.
 
@milleniumbug :(
 
7:33 PM
@LightningRacisinObrit something about drawers or sth
 
What would it context switch into?
 
user1804599
I'll add an example that spawns many fibers.
 
select cannot return until timeout occurs or one of the FDs are ready
 
2
A: Context Switches on Sleeping/Waiting Threads

Jeremy Friesner if 499 threads are waiting for database IO and only one thread needs work, does the OS context switch between all of those 500 threads trying to find the one that needs work? Not if the OS's scheduler has a sane design; iterating over all of the system's threads all of the time would be ...

ooh
@CatPlusPlus I dunno, into whatever checks for FD activity
 
That's kernel
select is a syscall
 
7:34 PM
if that's higher up than the task switch logic itself (and it seems to be) then awesome
gdgd thx
 
@LightningRacisinObrit Yeah, but you have to pay for Spotify if you want to have the same feature set as Grooveshark.
 
I raised an enh for my codebase last week as I was concerned that I was basically pulling a Trevor, with new components introducing new network streams with new sockets and a thread for select for each of them. Fairly easily solved by selecting on the bunch instead but, for the purpose of easy code (basically what wrongfold was saying), if having these threads doesn't cause excess context switching when the sockets aren't busy then frankly I don't really care that they're there. Quite so much.
and yes I know I just cited someone called wrongfold while calling him wrongfold
 
@LightningRacisinObrit Ahh, I thought @Xeo used an express delivery service. Because, as rich as he obviously isn't, it doesn't make a difference
 
@Columbo Same-day delivery across Europe would be impressive
 
@LightningRacisinObrit Is that even possible?
 
7:36 PM
@Columbo I see gamedevs are poor wherever they are.
 
Using like, UPS or some shit?
 
@Columbo Probably not
I don't think a UPS will help you
 
@LightningRacisinObrit Or FedEX
 
@EtiennedeMartel Pfft are you kidding Xeo is loaded
or was that Rekktz
 
@LightningRacisinObrit Germans, eh?
 
7:37 PM
@LightningRacisinObrit It's @Rapptz
 
@EtiennedeMartel Shhh don't mention the war
 
user1804599
 
@LightningRacisinObrit Fuck you
 
@LightningRacisinObrit You mean wars.
 
no I mean "war"
you're correct factually speaking, but that's the phrase
 
7:37 PM
You assholes! That's long over!
 
user1804599
Passing 1000 to loop-range causes stack overflow lol.
 
shhh don't mention assholes in front of rightfold
 
lel
 
Anyway, so context switching isn't a concern. I should probably still merge the select loops though to fix context switches when many of the sockets are busy
OR SHOULD I
 
Dundunduuuunnn
 
7:38 PM
if nothing else I'd quite like to get this logic out of "user code" and into the event lib that drives the whole shebang (as it has networking ... just not quite the way I need it ... yet)
 
Put a TODO in there and engage SEP field
 
oh that's done already ;p
ok fuck it WONTFIX
I think it's worth logging into work servers at 8.39pm to say that
 
user1804599
Nice, it works great.
 
Ven
wooh, got a badge for my ls joke. mom must be proud now
 
@erowidrecruiter, The Uncanny Valley
A Markov-powered mashup of Erowid trip reports and tech recruiter emails. Run by @aphyr, who's not affiliated with Erowid. Heck, he's never even smoked pot.
190 tweets, 6.9k followers, following 0 users
 
7:49 PM
@Ven A badge for a chat message?
 
Ven
@Jefffrey a starred chat message.
 
user1804599
@Griwes he must be looking for Vlad.
 
lol
 
@Ven What badge?
 
Ven
@Jefffrey outspoken
 
user1804599
7:52 PM
@Ven mom couldn't give less of a shit.
 
Ven
@rightfold i don't care about your mom
 
user1804599
You don't care about me? :c
 
The fuck is a pinned tweet
 
there
yay
@Griwes lol
 
user1804599
 
user1804599
@sehe you are so cute!
 
oh hey I got it
Yeah or sockseads. — Lightning Racis in Obrit 29 secs ago
wait six months and you got brand new socks! :genius:
 
user1804599
lol some obscure recruiter invites me on linkedin
 
inb4 u cant spell
> obscure recruiter
 
inb4 "Are you male or female?"
 
7:58 PM
sucks that it wasn't one of those rich celebrity recruiters you see on TV
 
"Yes"
 
"I'm A Recruiter: Get Me Into Here"
"Big Recruiter"
"Keeping Up With The Recruitians"
and my personal favourite
"The MTV Recruiter Awards"
 

« first day (1648 days earlier)      last day (3302 days later) »