« first day (2045 days earlier)      last day (3129 days later) » 

11:01
my fridge is too small
HeadOn Bag of ice: apply directly to the forehead
nwp
nwp
a shower helps for some time
i took my sports shirt and got it wet and I'm wearing it now
this seems to work nicely
@BartekBanachewicz I've been to Linz.
@BartekBanachewicz yes, you will nicely catch cold
11:06
@ScarletAmaranth it's 27 freaking degrees
@BartekBanachewicz ye I live in Slovakia, we get up to 37 here in Summer
@BartekBanachewicz Dude, even the British summer can top that.
@Puppy I AM MOVING TO NORWAY RIGHT FUCKING NOW
I will live in the polar circle
lol
I actually think that they can do fairly hot during the summer as well
in some parts anyway
11:08
ice scooters are an acceptable replacement of motorcycles
@Puppy p sure that doesn't include the polar circle
probably not
what I love about the video above is how respectful Paul is
he's one of the best guitarists in the world, but right then and there he can be a patient student
here it's upto 47 in summer
altough I have to say Keith is also pretty amazing
damn i was supposed to not watch guitar videos when I want to code
I am supposed to be studying ins and outs of indirect denotational semantics for my thesis defense and here I am watching your goddamn guitar videos instead
11:17
it's so terrible :/
it's super hard to like change mindset from guitar to programming
also vice versa sadly
nwp
nwp
@BartekBanachewicz watch this instead
Ell
Ell
@ScarletAmaranth go have some of the old in-out with your thesis ;)
nwp
nwp
you will probably get angry and say "you are dumb, I'll show you how it's done" and be motivated for a while
@Ell I will not be having any in and out until Saturday :(
@nwp I literally just did lol
funny, they have live comment stream
Ell
Ell
11:25
@ScarletAmaranth well use that as motivation xD
@nwp yeah lol you know this kind helps
time to listen to Green Day
lostprophets better
except for the part where the lead singer is a child rapist but I try to ignore that
reminds me of Burzum
The vocalist killed the guitarist IIRC
@Puppy I don't really listen to punk rock for the pleasure of music you know
sup lounge
I prefer something more sophisticated, unless I'm coding
so how do I fix that
        relativeEvt (UIEvent'MouseDown btn mp) = UIEvent'MouseDown btn (mp - pos)
        relativeEvt (UIEvent'MouseMove mp) = UIEvent'MouseMove (mp - pos)
        relativeEvt x = x
Ven
Ven
@Puppy well...
I want a general way to make events relative to the parent
I suppose some kind of "hasPosition" class is in order
if the parent is changed, the child has to be changed ?
okay fuck that time to get Lens onboard
@Khaled.K the parent controls the child updates in my scheme
11:31
hey questio
are memory systems invertible
@BartekBanachewicz maybe you can delegate the action to the layer that cover the scope of change
@Khaled.K maybe just look at the code first
@BartekBanachewicz yes? (Be back after lunch)
@Puppy Basically, I now have a separate symbol table for syntax analysis that only distinguishes between "type" and "typedef". It works, but it feels very dirty. Maybe I'm gonna take a look at how clang does it.
@sehe how do you manage transitioning from music to programming and back? I find it super hard to fit both in one day.
11:44
@fredoverflow It's literally impossible to separate the syntax and semantics here, so don't worry too much about it.
I am pretty sure that they simply perform name lookup and check if the result is a type or not.
What braindead idiot thought that C syntax was a good idea?
5
@fredoverflow Dennis Ritchie, hth
@StackedCrooked why
@набиячлэвэлиь Like, no equality or inequality operators.
So also no end iterator I suppose.
How will I know I've reached the end of the output?
:P
It's for ostream output
@StackedCrooked You don't, it's irrelevant
11:48
Some day that hole is gonna be full.
you are supposed to do a one-pass with output iterator
equality inequality is pointless
@BartekBanachewicz Don't; gaaeemmss
I don't see much use for it. Seems like they only defined it because they felt they should since they had input iterator.
@StackedCrooked They fixed some Standard algorithms that did not properly take end of output iterators in Bristol, I believe.
11:50
> When ForwardIterator, BidirectionalIterator, or RandomAccessIterator satisfies the OutputIterator requirements in addition to its own requirements, it is described as mutable.
@Puppy why don't you help me with Hate UI instead :P
you're dragging me to the procrastination side
It there an iterator that satisfies all iterator catorgories?
you did coding yesterday
you can gaeeemmss today
also I'd probably help you with Hate if it was even remotely readable for me ;p
11:51
I was outside yesterday
oh yeah.
@Puppy I can help you get in
well stop doing that shit dude, it's not coding nor gaaeeemmmss
"outside" is for losers
it's readable. You just don't see how to read it yet
Bartek is trying to convert puppy
nice
11:52
proof: I often leave my haskell projects for a few months
getting back on track is very easy
tyeps help tremendously
I dont believe you; I regularly un-abandon my assembly projects and just dive right in ;)
yeah, I'm really feeling that that is pretty independent of whether or not the code is readable or not ;p
does anybody here play go/baduk/weiqi?
terse code is very readable, but has a higher learning curve
@VermillionAzure me
11:55
level?
what level are you?
17 Kyu or something like that
I'm terrible
that's nice
I'm around your level then
I'm on OGS
I play very rarely really
besides
And you're 17th?
11:56
really I think that I have little interest in learning Haskell
Maybe I'm just dumb
@VermillionAzure prolly worse really
What type of opening do you play?
@Puppy well there's one downside that all other languages will start to suck once you learn it
that's not a very nice feeling
@BartekBanachewicz Even Scheme/Racket?
11:58
because soon after you realize that haskell also sucks
and then there's only despair left
Ven
Ven
Ongoing mech ZvT: twitch.tv/gsl
ooh pretty relevant for us
@BartekBanachewicz does UIEvent'MouseMove mean the MouseOver event?
@Khaled.K no, it's a mousemove event
just like the name "mousemove" suggests
nwp
nwp
@Ven just when I opened it "GG! WOW! What a great game!" -.-
12:08
> If your parser tolerates ambiguity, you don't need this hack at all; just parse, and built ASTs with both (sub)parses. After you acquire the AST, a tree walk can find type information and eliminate inconsistent subparses. We do this with GLR for both C and C++, and it beautifully separates parsing from name resolution.
interesting
Ven
Ven
@nwp lol
@BartekBanachewicz so it's called every time you move the mouse, weather it's over the UI item or not..
@fredoverflow Not really.
he's just said "Instead of bringing the semantics forward, defer the syntax"
they're both equally hacky really
lol omg
Dark proxy hatchery, Ty 3rax
Ven
Ven
12:11
oooh, 3rax reapers, even
user3790646
@sehe I just did what you asked yesterday
user3790646
@sehe Are you able to help me?
Ven
Ven
GG
yeah I think that 3rax marines he would have just died
nwp
nwp
12:15
@AndreyErick he is hybernating right now, got to wait a bit
user3790646
@nwp Ahahah
Ven
Ven
@Puppy yeah
after 25 km walk got a huge sunburn of my neck. woke up at night of swelling and temperature. what a nice legacy.
@BartekBanachewicz I dunno haskell really, but in terms of UI events, your code looks fine to me .. so does it work when tested?
nwp
nwp
@ProblemSlover so... you are a redneck now?
12:19
@Khaled.K yes, it does work
@nwp turns out to be so. dumb redneck lol
what's the english word for "make relative"?
oh relativize is a thing
nwp
nwp
relativitate (not really)
relativolution
FFS
lens generation rules only allow generating overloaded classes
FUCK
FUCK THOSE FUCKING RECORDS GOD HOW CAN YOU CREATE SOMETHING THAT UNUSABLE
Ven
Ven
12:26
@Puppy seems like TY's back to skyterran / mech :o
It seems you really dislike records
@Bartek Watching GSL semifinals and terran is massing hellions and keeps trading them for drones and makes zerg keep his army at home to defend... sounds like a familiar strategy
nwp
nwp
@BartekBanachewicz just say "fuck haskell" already so I can star it and smile all day :D
@Puppy clearly seems to work better than sitting them at home :P
@milleniumbug no really
@nwp fuck (haskell records)
---- version A
            self' = winE $ w & windowAddBtn .~ addBtn'
---- version B
            self' = w & windowAddBtn .~ addBtn'
                      & id %~ winE
I'm asking in general, not just for this specific example
do you think such use of id %~ is clear enough?
@BartekBanachewicz it looks so ugly
12:32
so does your mom
what is w and winE?
Ven
Ven
it doesn't matter!!!1
@milleniumbug w is essentially "this", winE is an effect generated by the subcomponent
I'm trying to make this less bad FWIW
handleEvent evt w@(Window pos sz add dummies) = (id, self')
    where
        (winE, addBtn') = handleEvent (relativizeEvent w evt) add
        self' = winE $ w & windowAddBtn .~ addBtn'
Ven
Ven
I prefer version A
& id looks stupid
@Ven but consistency
12:36
"effect"?
Ven
Ven
mutation probably
@milleniumbug event handler receives the event and returns an effect
React does that under the hood because the render function returns a functional reference to all subcomponents
I'm not doing that this way yet
hence when writing a container it's your job to get the event, do whatever you need with it, pass to your children, gather their effects and then return your own effect
this is really powerful because it gives the container author a lot of freedom
but it also requires a metric shitton of boilerplate
and FWIW I still have no idea whether this approach is even remotely practical
So you create a "add button" effect and apply winE on it?
@milleniumbug ah that might be a naming fail on my end
The window is like an experimental container now
12:41
More like losE am i rite
it has a list of buttons and one special button that adds another button
which is called "addButton"
cringe
There are so many questions to answer here
like, for example, should the children component even use the self-effect of the parent
should that be rigid? Or generic
what if I want my child to operate on one of my componets? Can't hoist its effect into my lens? and then hoist it's self effect into its lens, possibly automatically?
:/
nwp
nwp
@BartekBanachewicz pretty sure that is illegal
Design for actual use cases instead of what ifs
Your Apple_ID has been used to open a session iCloud from an unauthorized computer.

Your iTunes is now locked, please access your account to check your
information.Confirm Now
Huh, still??
handleComponentEvent :: (HasPosition parent) => UIEvent -> Lens' parent component -> Effect parent
handleComponentEvent evt componentAccessor parent = parent
        & componentAccessor .~ newComponent
        & id %~ parentEffect
    where
        (parentEffect, newComponent) = handleEvent relativeEvent $ parent ^. componentAccessor
        relativeEvent = relativizeEvent p evt
12:49
while I am 2800km away from home??
@CatPlusPlus The actual use case is "Warcraft 2 UI". Which made me want button onhover effect. Which I implemented, but the code looks terrible and now I want to simplify it somehow.
Guess what, in the middle of no where, I have full reception.
What about it specifically
@CatPlusPlus While implementing it I hit numerous bugs in explicit event passing where, unsurprisingly, I forgot to pass the event
Obviously not enough modans
12:51
I'd like to prevent them in the future.
@CatPlusPlus I wish it was that trivial
Not sure I'd ever want manual event propagation
Ayers rocks is weird - 1 huge rock, nothing much else, I bet there are at least 300-400 hundred people here at this small town like place tonight. So many people come over to see 1 piece of rock, fascinating ...
@CatPlusPlus I am not sure either
it's an experiment
You could do what HTML does and do two-phase bubbling and have framework deliver the events always
HTML exposes the list of children
I don't as of now
13:05
there we go
handleEvent evt w = (id, handleComponentEvent evt windowAddBtn $ w)
it automatically composes the child-parent-effect with the child-self-effect
now what if I just returned a list of components
ah right I know what was the problem with that
if I return [Lens' parent AnyComponent], I can't guarantee I'll get proper components back
so by type erasing my components in order to make them genericaly mappable, I lose the possibility to retain concrete types.
What I need is a list of lenses that preserves the concrete type of each element
which is, I think, fundamentally impossible
what if I made a broader existential though
instead of AnyElement, made it AnyElementTransform
then I can bring the existential under for both the element and the effect!!!!!!
omg
so much text.
13:36
damn
watched Independence Day and I couldn't help but notice the lack of proper strategy on behalf of the humans in the first engagements :(
13:52
instance HasComponents (Window s) where
    getComponents =  [
        AnyComponentLens windowAddBtn,
        AnyComponentLens windowRemBtn
        ]
how about that :3
believe or not, this is enough to generate an automatic event handler that will compose self and parent actions from those components
I could also generate drawing I suppose
user3790646
I don't understand why the range-based for loop is being run only the first time
user3790646
Could somebody tell me why and how to fix that?
Why are you using boost::asio::ip::tcp::socket * tempSock(new boost::asio::ip::tcp::socket(network->io_service));?
Is it actually the recommended way to create a socket?
user3790646
I think it is, haven't seen anything different than that
14:09
@Shoe "new whatever" is rarely "the recommended way" to do anything :P
user3790646
Hmm weird, the whole while loop is being executed only once
That's why I asked
Installing donet cli...
spend too much time
14:27
lol my std::tmpnam() implementation is so fucking broken
L_tmpnam is 14, I get \XXXX. (where X is a random character)
@Puppy gaems?
@AndreyErick The compiler is angry with you for writing an imitation of std::remove_copy instead of using the one that's already in the library.
user3790646
@JerryCoffin More specifically?
@AndreyErick Your entire first big if/else is basically implementing a remove_copy (along with a rough equivalent of a for_each on the result).
user3790646
@JerryCoffin Alright, I'll fix that
14:38
@BartekBanachewicz what my mom has to do with your ugly code
@ProblemSlover they both have one thing in common
@BartekBanachewicz yep
@BartekBanachewicz you can then sign up every women to this "common" thing
not every, some
anyway thejokeyourhead.png
@набиячлэвэлиь It's broken for other reasons - you have no guarantees that you can actually create a file of that name - which means that the only way to actually use it properly is to do it in loop until you succeed creating that file.
14:41
youdumbass.gift
If I created a file named \whatever it'd be in the root of my drive, which is fucking ~~great~~ as well
Did someone make a library for this already, plz
Did I mention that it is not thread safe? (Just learned this one from cppreference.)
There's also tmpfile, but that's not very good either.
It returns a FILE* which is 100% useless because I need the name
Exactly why it's not very good.
err what
why do you want your mktemp return you a name
No, I need std::tmpnam() to return me a usable name
user3790646
14:44
@JerryCoffin Will that actually fix my problem?
Why do you want your function to create a temporary file to return a name of the file instead of the file?
nwp
nwp
@набиячлэвэлиь but the return value is stale by definition
are you trying to do that weird thing when you use a temporary file where you should use a named pipe instead
@AndreyErick Reading more carefully, it's not quite like a remove_copy, because it's copying to multiple targets. So, although there are better ways of solving this problem, remove_copy (as such) probably isn't it. As far as fixing your other problem: no, probably not.
what's a named pipe
also no
14:45
or often even unnamed pipe
I wanted to create a temporary directory and thought std::tmpnam() would aid in that
user3790646
@JerryCoffin Alright, thanks ^^
But now I'm stuck fucking around with WinAPI
also why are there no dir creation utilities in cstdlib wtf
system("mktemp -d");
ah lol winapi
14:48
@Griwes Fun fact: TMP is a path that's set to be in its full glory but when I get it via std::getenv("TMP") it gets truncated to c:\DOCUME~1\-_-TEM~1/ so I need WinAPI to expand it again
@набиячлэвэлиь :DDDDDD
jolly fun times mate
user3790646
@sehe is online but ignoring my question .__.
user3790646
Or does he hybernate with the Lounge's window open? xD
@AndreyErick His last post here was ~3 hours ago. I'd guess he's away right now.
user3790646
14:58
@JerryCoffin Do you have any idea of how to fix that problem? Please check my question on SO.
Ven
Ven
@AndreyErick he's lunching
user3790646
@Ven xD
@AndreyErick Nothing jumps out at me immediately (but given the quantity of code, it would be almost amazing if it did). If I needed to fix it, I'd have to jump in with a debugger, or add some logging (etc.) to see what's failing where.
user3790646
@JerryCoffin Alright
@AndreyErick The code could do with some serious refactoring. One problem that does jump out immediately is the use of manual locking and unlocking instead of using a lock_guard like you should. You should also study separation of concerns. For example, having a readChatMessage that both reads and sends a chat message is problematic at best.
user3790646
15:10
@JerryCoffin Alright, maybe naming readChatMessage as checkForChatMessage could do the work, and I'll use lock_guard, thanks :)
@AndreyErick Renaming would make it less obviously bad, but wouldn't really fix the design. The function should really do one thing, not read a message and log it, and and send a reply.
user3790646
Okay
Ven
Ven
15:27
holy fuck, TypeScript errors are bad :/.
intellisense gives much better errors
Ven
Ven
@Puppy what do you use to edit TS?
VS
Ven
Ven
good ol' VS?
user3790646
@JerryCoffin I was rewriting the code then found the actual problem, now I'm trying to think of a way to fix it
user3790646
15:43
Aye! Problem fixed
user3790646
oops, problem not fixed o.o
it seems like the TS compiler issues detailed error information but then fails to actually put that information on the command line
Ven
Ven
interesting
so it's available as an API, and that's probably what intellisense uses?
I think so
user3790646
@JerryCoffin I fixed the problem by removing the mutex lock_guard, what should I do to lock it back but in a way where this problem doesn't occurs?
user3790646
16:02
Don't worry, I changed my code to use manual mutex locking and it's working fine now :)
@AndreyErick That sounds like the mutex isn't really set to protect exactly what you think it doe/want it to.
Ell
Ell
I wonder what principles one uses to design a compiler as a library
@AndreyErick wut. I don't think you paid enough :|
user3790646
@sehe :} don't worry about that, I'm happy now that my code works
Enjoy while it lasts :)
@AndreyErick Wait, ASIO and locking is a bit of an antipattern - I'll see whether I can find your stuff later (no time now)
user3790646
16:08
Alright
user3790646
(:
Ell
Ell
@AndreyErick say thank you :O
user3790646
@JerryCoffin Thanks :D
user3790646
@sehe You too :3
In what place is this the default fucking colour scheme
WHY IS IT ON WHITE I HAVE NO EYES ANYMORE
It's a place in your heart.
@набиячлэвэлиь Maximum Brightness.
@StackedCrooked Last time I heard that kinda bullshit was when someone told me there's a tiny Mexican in there, too
gud joek, so proud of myself rn
Ell
Ell
@StackedCrooked your font size is so small :O
or his monitor is gigantic ( ͡° ͜ʖ ͡°)
16:52
@набиячлэвэлиь Dunno the physical size, but the resolution is apparently 2560x1440.

« first day (2045 days earlier)      last day (3129 days later) »