« first day (1809 days earlier)      last day (3154 days later) » 

5:00 PM
@StackedCrooked I think I understand the non-preemptive aspect
 
Erm.. So what do you not understand?
:D
 
one thing I don't understand for instance is whether coroutines can call other coroutines or just yield to the caller, I read the two things are equivalent, I have no idea why or how, I also don't understand what happens when a coroutine is resumed multiple times with different arguments etc.
 
@Mr.kbok yeah
 
I think I also can't understand very well what I don't understand
I just feel I have a lot of wtfs in my brain when confronted with coroutines
stackful vs stackless for instance
I want a tutorial on this
 
your questions are confusing me
 
5:02 PM
which one is most confusing
maybe I'm infecting you
 
resuming coroutines multiple times with different arguments?
 
yes
if coroutines are a generalization of functions then can't you call them with different arguments?
 
Ell
@AndyProwl yes
Oh wait a sec
 
@AndyProwl sure
 
@Ell so what happens in that case?
 
Ell
5:03 PM
I get your question now :3
 
but resuming?
 
are the first arguments lost?
 
Ell
@AndyProwl it depends what kinda coroutine you're thinking of I guess :V
 
You enter your coroutine by the entry point OR the yield point
entry is creating one, yield is resuming
 
@AndyProwl no
 
Ell
5:04 PM
I tihnk it differs with asymmetric and symmetric
 
@AndyProwl symmetric and assymetric both are possible
 
you can't resume with arguments
 
@StackedCrooked ah yeah that too
so stackful vs stackless, symmetric vs asymmetric
can anyone write a tutorial for dummies
 
like a monad tutorial, but for coroutines
 
5:05 PM
 
go play with an interpreter or something
 
user1804599
stackful coroutines have a call stack, and can yield from any stack frame in that call stack
 
user1804599
stackless coroutines are translated into FSMs, and thus can only yield from the initial stack frame
 
@LucDanton thanks
@LucDanton yes sir
 
user1804599
stackless coroutines use the caller's call stack
 
5:06 PM
@AndyProwl I think comparing a callback based asio program with its coroutine based equivalent is helpful to see the benefit.
 
@AndyProwl It does, you have 3 fibers here: one main and two foos
 
boost asio documentation has examples
 
user1804599
Sadly you only know C++.
 
@AndyProwl Your example is confusing because you're not using the result of bar. What do you do with it?
 
@Mr.kbok So calling foo() the second time does not resume its execution?
 
user1804599
5:07 PM
Otherwise you could compare Python to Lua coroutines to understand the difference.
 
@AndyProwl No, you'd get a second coroutine
 
@Mr.kbok But that's not what I see for instance here (see section "Generator Pattern")
 
Xeo
@StackedCrooked @Mysticial That Charlotte ending was kinda disappointing. They could've made a whole show around that last episode.
 
@AndyProwl calling foo() would get you an enumerable that would, on iteration, give you the values yielded by foo. You resume foo when you advance the enumerator
 
repeated invocations of fib() resume the execution of the coroutine
 
Xeo
5:08 PM
Maeda Jun really shouldn't be allowed to do anything under 24 Episodes.
 
@Xeo Ah, I still need to see it.
 
@Mr.kbok that's what C# does isn't it?
 
@Xeo Kind of like NGNL's ending?
 
in C++ it looks different, well at least with the proposed await thing
 
@AndyProwl Yes. Of course you can still have broken semantics
 
5:09 PM
I don't understand
 
@sehe
 
in order to resume a coroutine I need to call it, but in order to call it I may have to specify function arguments: are you saying the coroutine is resumed only if the arguments are the same? (what does 'the same' mean?)
 
@AndyProwl fib() is a range that is iterated upon, it's not invocated several times
 
Xeo
@ThePhD NGNL was an adaptation from a light novel series. They can still make a second season to continue the story.
 
@Mr.kbok That's a mistaken conclusion. Porn doesn't increase chat value. Porn is the value of chat. :-)
 
5:10 PM
@Mr.kbok ah wait
 
Gah!.. such a noob (=me). @sehe I think I left the window open, was wanting to touch base with someone about my stackexchange question. Got it figured out though, thanks.
 
@AndyProwl See a coroutine as a closure in this matter. You create one, then you extract values that are sent to you from yield. At some point it doesn't yield anymore.
 
@Xeo Believe it or not, Prison School turned out to be one of the better anime of last season :)
The ending was awesome.
 
user1804599
Trying to understand coroutines without trying them out is hopeless.
 
@Mr.kbok I think I shall abandon the "coroutine is a generalization of function" explanation ftm. It's misleading
 
user1804599
5:11 PM
Just give up.
 
@AndyProwl for (v : fib()) { is conceptually equivalent to calling a function returning a vector
 
I'm trying them out
 
Xeo
@StackedCrooked I still think it's shit, from what I have seen.
 
playing with VS2015
 
@AndyProwl It is.
 
5:12 PM
I'm just confused
@Mr.kbok yeah got that thank you
 
found the best motorcycle store ever
 
anyone have a portable way to exit a source script?
 
it's sooooo cheap
 
so how do you resume a coroutine in general
 
@AndyProwl IME it's exactly the same as C#
 
5:13 PM
@AndyProwl you call it again
 
@BartekBanachewicz that's what I thought
is this me or the thing IS confusing?
 
it's you. (I think)
 
@AndyProwl You iterate over the produced wrapper
 
@BartekBanachewicz so what happens if you call it with different arguments?
you guys are saying different things aaaa
 
yes
 
5:14 PM
it depends on what the thing is doing duh
 
user1804599
then yield will return the different argument
 
yield?
 
seriously fuck C++ and learn coroutines in Lua
 
ok so the arguments of the first call are lost?
 
gotta go
 
5:14 PM
much more intuitive
 
@AndyProwl He's talking about different coroutines, not the ones we have in C# and C++
 
don't confuse with coco-routine
 
I did not find Lua's co-routines especially intuitive
 
@Mr.kbok cheers,thanks for helping
 
whats the best way to exit a script in regular c++?
 
5:15 PM
ffs
 
@Puppy but you're not very good with programming either
 
welcome
 
Xeo
@StackedCrooked kokoroutine
 
@CS_STEM reboot the machine
 
@CS_STEM Delete the source code.
 
5:15 PM
copoutine
 
@AndyProwl it really depends on what the thing is doing
 
Etienne would love it
 
copuline
 
1 min ago, by Mr. kbok
@AndyProwl He's talking about different coroutines, not the ones we have in C# and C++
 
if it returns a range you typically either compose ranges or iterate over it
 
5:16 PM
so: stackless vs stackful, symmetric vs asymmetric, and Bartek vs non-Bartek coroutines
 
lol okay
 
no I mean as a command so that if a input is given and the user does not wish to continue they can put an input in to exit
 
I give up then.
 
why there is no tutorial about this stuff it's driving me nuts
 
@CS_STEM you want to run a REPL?
@AndyProwl because it's nonexistent in C++ yet. Try C# if they are similar?
 
5:17 PM
@Morwenn MY PROFESSOR CHANGED THEIR MIND
 
REPL?
 
@CS_STEM can you google?
 
I can't write about anything anymore! Q_Q
 
It MUST be some Medieval Western Canon Music, highest year is the 1800s.
I HAVE no EXPERIENCE WITH SUCH THINGS.
So, uh.
 
5:18 PM
it's Canon, not Cannon lol
 
@StackedCrooked yeah
 
in a basic sense yes but how should I tell it to exit the script
 
that year I should have gone there
 
Western Weapon Music.
 
but eventually I couldn't so I said "well, at least I'll watch the videos"
didn't work out
 
5:18 PM
@CS_STEM what script are we talking about. Your own or some particular scripting language?
 
@BartekBanachewicz you're right; I'm great.
 
its a source c++ script
 
Ell
fuck I gotta recompile kernel again. this l33t setup was not worth it man
 
@CS_STEM then it's very complicated. Take a look at Cling though.
 
Ell
Well, it would be if nvidia could make their drivers not screw up :L
 
5:20 PM
@Ell you're such a h4cker elliotte
 
You could just use Windows and do linux whatever in a VM. :v
 
what is Cling a command?
 
@ThePhD no no you can't because then you're not a hacker
3 mins ago, by Bartek Banachewicz
@CS_STEM can you google?
 
Ell
@BartekBanachewicz hey matey I can make COW snapshots any time I want
 
@Ell can you take SHEEP snapshots as well
(hint: VirtualBox can as well)
 
5:21 PM
@BartekBanachewicz CAN YOU GIVE STRAIGHT ANSWERS?
 
@CS_STEM No, because I'm gay. /cc @elyse
I'm not doing your googling for you you lazy bum
you could google "how to execute C++ script" as well which you didn't
so shout at me again and the only straight answer you'll get will be my straight middle finger
 
Ell
@CS_STEM what the hell man
 
Xeo
You're intentionally misinterpreting him, eh?
communication problem here
 
5:22 PM
there always is
 
Xeo
Anyhow @CS_STEM, learn to google and properly express your problem, and then check Stack Overflow and ask a question if you still have a problem.
 
user1804599
NEXT
 
I've no idea what he wants to do anymore
 
@Xeo +1 for style
 
user1804599
Well, it's quite usual that noobs call programs "scripts".
 
Xeo
5:26 PM
lol
thanks for the flag, whoever
 
dafuq?
 
Yes who might that be
 
@CS_STEM stop. flagging.
 
user1804599
 
user1804599
lol
 
5:27 PM
why?
 
user1804599
Because the rules say so.
 
Just kick them already
 
@CS_STEM why flagging that message? it wasn't impolite
 
user1804599
> Abuse of the flag system will invoke the wrath of the entire chat. We will report any case of suspected abuse to the site moderators. This includes, but is not limited to, any form of revenge flagging. If you’re not 100% sure your flag is valid, don’t flag.
 
5:28 PM
hey guiz I herd C# is liek C++ plus one so imma just plug my question here kthx
 
user1804599
Good thing is that you can never be 100% sure of anything, since you can't be sure your brain is functioning correctly.
 
7 mins ago, by CS_STEM
@BartekBanachewicz CAN YOU GIVE STRAIGHT ANSWERS?
 
user1804599
I.e. never flag.
 
Ell
@BoltClock GET OUT TROL! LAEVE! READ THE RULES! YOU HAVE TO ASSIMMILIATE !!111!!1
 
what's going on
 
5:29 PM
@AndyProwl when you get older and meet some people you might eventually understand.
 
@BoltClock wait I'm not sure what are you trying to tell me?
8 mins ago, by CS_STEM
@BartekBanachewicz CAN YOU GIVE STRAIGHT ANSWERS?
 
@AndyProwl probably a different standard of politeness from the rest of us
 
user1804599
@BoltClock i also haev q ury leme post some code
 
it seems you don't apply your own standards to yourself
 
user1804599
String Encryption Help

j1mb0jay
P: n/a
j1mb0jay
I have had to create a simple string encryption program for coursework, I
have completed the task and now have to do a write up on how it could be
improved at a later date. If you could look through the code and point me in
the correct direction one would be very grateful.

Example Input : j1mb0jay
Example Output 1 :
rZHKZbYZWn/4UgL9mAjN2DUz7X/UpcpRxXM9SO1QkvkOe5nOPEKnZldpsB7uHUNZ
Example Output 2 :
8SFgIdt0K0GqOggOt5VUzRc+sVtgPPQJt5xen7WksC3SljaXC/H38pWpjZ37tHyY
5
 
5:30 PM
@elyse I'd upvote that
 
Ell
@elyse this is perfect
 
@CS_STEM lol how old do you think we are
 
@BoltClock oh, yeah, apparently. Not just different a standard, but an asymmetric one too
 
@CS_STEM We're all 69 and have 42 years of experience
 
age < 10
 
5:31 PM
why are we starring that
 
@AndyProwl quality
 
@AndyProwl Because BoltCock would up that
 
user1804599
@AndyProwl sir, pls help me
 
"If you could look through the code and point me in
the correct direction one would be very grateful."
 
user1804599
brb dinner
 
5:31 PM
@CS_STEM totally
 
Ell
@AndyProwl accuracy
 
user1804599
and then implement APL
 
which makes me think
 
ok, I think I agree with Cat now
4 mins ago, by Cat Plus Plus
Just kick them already
 
are you really worse at programming than a bunch of ten-year olds
so that you seek their advice
 
good point I seem to just waste time here. because pissing people off is what I do best!
 
can some owner kick the troll please? /cc @Cat
 
Not an owner
 
oh
shit
 
5:34 PM
@Cat hey I also want to mention you just because
 
is boltcock trolling again
@CS_STEM welcome to the club my friend
 
@Anastasiya troll him out
 
you are very talented
 
@AnastasiyaAsadullayeva what club?
 
regrettably you are also american which kind of cancels out any potential talent
 
5:35 PM
> MATHIMATICS
 
The S is not for Spelling
 
7 hours ago, by Anastasiya Asadullayeva
> I am a STEM student
SCIENCE
TECHNOLOGY
ENGINEERING
MATHIMATICS
anastasiya-so-forecast
 
damn
@Xeo please
 
there we go
 
5:36 PM
owners=branleurs
 
let's not flag stuff
 
job's done, no need to thank me, off to bed. cya guis!
 
Xeo
let's see if he dares to do that again in a minute :D
okay, in 30 mins
 
thank you
@AnastasiyaAsadullayeva <3
 
TIL Mongolia and Singapore are in the same tz
 
5:39 PM
what did he write
 
"you're an idiot, because I say so"
 
also eh Natalia gone, Imbir is sick and i have to take care of two cats and the flat myself
 
or something along those lines
 
@AndyProwl :'(
 
he's reacting so badly to the eyedrops
no new wounds on my hands so far though
 
5:41 PM
hiyo
 
hii alex
 
man I'm so lookin forward to the xmas holiday
 
why's that also do you want to visit me i'm freaking out alone already
 
because it's been half a year since my last holiday and I want to stay home :<
 
@AnastasiyaAsadullayeva lol today’s GW2 patch made it that you get one login reward per character
 
5:44 PM
@BartekBanachewicz haskell and chill?
 
I’m not exploiting or anything, I’m just switching characters as I would normally do.
 
user3790646
What's monad? drinks
 
@AlexM. craft beer escapade more like
 
no stars for haskell and chill :<
 
actually whatever you'd like to do
 
5:46 PM
I am disappoint
maybe it's too average a joke
@BartekBanachewicz now if only the distance wasn't so huge
 
@AlexM. planes are fast
 
Somehow, in my music hum class, we started talking aobut IP and encodings
I suddenly was able to talk about FLAC and MP3 and Vorbis and CELT (Thanks again to @JerryCoffin for pointing me to CELT)
 
I think I found out the reason why heroes 6 works like crap on my machine
surprisingly it might be because I've set my mouse's polling rate at 1000 hz
seems a lot of people encountered this
I sure ain't changing it tho
 
user1804599
morning
 
1000hz?
the game probably only looks for changes every 100 hz or less
 
5:50 PM
@ThePhD You can blame my mother's family for my Celtic...orientation.
 
@Puppy should that affect the framerate, it's the only game that does this
I don't know what they're doing in the background
 
probably not but 1khz is completely excessive
 
but if I change the polling rate I'll check the control panel 24/24 to be sure "I set it back"
I'm paranoid about that stuff
 
why not just keep polling at 100hz
 
@Puppy default is 125
 
5:52 PM
I don't know why I set it to 1k
 
and it's used in shooters to reduce latency
 
let me read a bit
basically if I start sucking at CS after I change it
I'll start thinking it's because of that
 
@AlexM. Because it was there, and bigger numbers are always better.
 
and get confused
 
125Hz means 8ms ticks
worst case that's 8ms mouse delay, which is pretty huge in shooters
 
5:53 PM
I find it hard to imagine that an 8ms mouse time is going to make much difference to a 70-100ms server ping time
 
I think the default on my mouse was 500 (?)
lemme reset to defaults
 
@Puppy well, first some people don't live in the swamps
 
I don't anymore either
 
I have 4ms to the grid network
 
I'm so scared
but I think I remember the most important part
 
5:53 PM
20-30 ms to typical servers
 
I play at 1k dpi
so I can set that back
 
so 8ms is actually pretty large
not that I play shooters professionally
just pointing out why some people might need it
 
no, that still doesn't make sense.
 
lol 1000hz is default
 
@BartekBanachewicz Even with really fast ping times, face reality: you're human. Even hyped on a truly dangerous level of caffeine, you might get your reaction time down from the usual 100+ ms all the way down to, perhaps 70 or 80 ms--but if you could dependably react in even 50 ms, you'd be a world champion without even trying, at pretty much every FPS or similar on earth.
 
5:56 PM
even if you have just 20ms ping, the server's tick rate is still about 50ms per tick.
 
nah changing this would have too shit side effects when playing CS
 
Ell
@BartekBanachewicz But the response delay of the screen is in parallel with the server delay, no?
 
and the human reaction is never going to be that fast
 
and even if I can't tell it's because of it I won't be able to tell it's not either
I'm not sure I should do this for an obviously badly programmed game
 
if you want to play it, then do that thing
not being able to play a game you paid for because of some imaginary gain you'll never notice or benefit from is silly
 
5:57 PM
I'm not sure when and where I got it from
 

« first day (1809 days earlier)      last day (3154 days later) »