« first day (2029 days earlier)      last day (2912 days later) » 

9:00 AM
@Owatch So now, after 15 replies, you've actually remembered to tell us you're writing C
 
Then I'll remove the Null checks. Because I don't intend on passing nulls.
 
@Owatch don't write C, silly
 
No. I intentionally didn't tell you I was writing C Bartek.
 
lolwut
 
well then fuck you and your codebase and your shitty questions
7
 
9:01 AM
plonk
 
Haha.
 
this is a new kind of help vampire
 
Having a bad day? One sarcastic reply and you blow up?
 
Help leech.
@Owatch seriously trying to be sarcastic at this point will only incite responses like mine
 
Not really. You're not much help at all. Just arrogant and demeaning.
 
9:02 AM
bad days have nothing to do with it
@Owatch I keep forgetting that for you people "help" is well defined before you even ask your question. Like you already knew what you demand from others.
 
user1804599
Asking C questions in a C++ chat room is arrogant.
 
I'm not sure what that means Bartek, but it sounds like you're trying to paint me in a bad light for asking a perfectly innocent question about when to check for valid pointers.
 
Considered perfectly innocent by you, at least.
 
You could always be a bit more polite. You're quite rude to begin with. You and Millennium.
 
9:05 AM
Dude, you come to this room and ask for help without doing homework, failing to specify the language you're writing in, citing shitty responses and then complaining we're rude in return
 
I'm not doing homework.
 
that's clear.
 
Ven
@milleniumbug we love you dw <3
also we wouldn't typo your name
 
@Owatch Seriously, the best you could get out of it is us telling you why all of this sucks. The worst would be insta-plonk and no answer at all.
 
Ven
it sucks because he sucks. QED
 
9:07 AM
No one's going to keep patiently unveiling the mystery behind all of the things you've failed to state.
 
I'm working on something for fun. I come to ask a question about pointers that's valid for almost all languages, and then your only avenue of attack is to act as if I've beheaded a child for not mentioning it was C for 15 lines or so.
 
If you don't respect my time, that means you don't respect me.
@Owatch Again, you're making assumptions that are completely unbased and plainly wrong.
 
You're just grasping here.
 
@Owatch And yet it's you with a coding problem, not me.
 
The fact you're able to have this conversation already means you have privileged treatment
 
9:08 AM
The fact that you've been rude, and I've told you you were?
 
Argh, why do I even bother
 
Ven
@milleniumbug it's like you're new here and never dealt with help vampires :P
 
While you all desperately try to find anything to make it look like I provoked you?
 
I should have posted link to the rules instead of responding
 
@Owatch Okay then, you're encouraged to find help elsewhere. Bye.
 
9:14 AM
Ok let's list your offences a.) help vampiring (also it's not your first time) b.) in the incorrect room c.) underspecifying your question d.) XY problem e.) Even after getting your answer, being annoying for people whom you're asking for help
Also if you think checking for null pointers applies to every language you obviously haven't written in many languages
 
@BartekBanachewicz <3
 
@Griwes wow
 
I am guilty of being a bit of a help-vampire, but I thought my question to be general enough and related enough to C++ to ask here, just as I've asked general questions in the Python room and other places where people had no problem addressing them. I forgot to mention I was working in C at first, but I didn't do it intentionally (Sorry). I tried to clarify, but you were all too busy dropping snide comments and scoffing at my inferiority.
Comments like:
> ok, now you're just bad
 
I'd think David McDavidface would be been a reasonable compromise. https://twitter.com/BBCBreaking/status/728504557303701504
Lol
 
> So now, after 15 replies, you've actually remembered to tell us you're writing C
> citing shitty responses
> well then fuck you and your codebase and your shitty questions
 
9:27 AM
Well. Those are pretty serious wastes of our time. Now you're rehashing it all. What do you want? Pity?
 
Were pretty uncalled for, and I've never seen a room this hostile for essentially nothing.
 
Welcome to the Lounge
 
@Owatch thanks for telling us
 
You're welcome.
 
now I feel sympathetic towards you
 
9:27 AM
programmers are mean. get over it
 
I am pleased.
 
void a[5] = void;   // D is funny
 
FTR I think he's right
there is absolutely no need whatsoever to be that rude
but somewhat people still think that being arrogant and/or rude makes them cool, so be it
 
> While you all desperately try to find anything to make it look like I provoked you?
 
@Zoidberg D allows pointer arithmetic on void pointers. I was thinking of allowing that in skorbut for simplicity, so I wouldn't have to worry about casting to char* and stuff.
 
9:30 AM
@AndyProwl yeah those folks are beneath us, the fools
 
..in my opinion, that is a provoking line
 
@AndyProwl That may be true. There's also not much reason to waste a lot of time. And certainly no reason to fight for vindication.
Disclaimer: I've not seen anything of the way the conversation started. I'm going solely and purely by the things @Owatch himself was quoting
 
We're not that important
 
@fredoverflow gcc has had a hack for that for as long as I can remember
 
Ven
@fredoverflow good. I'm tired of seeing my students casting their stuff to unsigned char * as well
 
9:31 AM
@Khaled.K Congrats. Let's stop the naval gazing :)
 
Ven
@sehe I was there, and let me tell you: it was boring from start to finish :)
 
@Khaled.K That came well after the 'fuck you'
 
@Ven Boring is ok
 
I love how gcc allows pointer arithmetic on functions. lol!
 
Ven
@sehe well, it was annoying because I'd much rather have the lounge's topic be something else than that
 
9:33 AM
> In GNU C, addition and subtraction operations are supported on pointers to void and on pointers to functions.
 
@sehe sorry, my slow internet connection makes my dramatic reactions awkward as they arrive late
 
@doug65536 What does it mean to perform pointer arithmetic on function pointers?
 
@Ven You can say that. Most often by ignoring. Sometimes after a while I just create a room for the offenders
> dramatic reactions
 
Ven
:D
 
@fredoverflow good question! probably just lets you point into the middle of the code or even into the middle of an instruction
 
9:34 AM
@fredoverflow It's a signal to the population that this individual is to be shunned.
 
@AndyProwl the idea was that it was a provoking question on not being provoking
 
dont put it past a C guy to examine the asm and do a += on a function pointer, lol. those people are crazy already
 
@doug65536 Ah, my first instinct was that &f+1 would point to the next function after f, lol
 
@AndyProwl Apparently I was just asking to get told to go fuck myself by asking how to check for invalid pointers.
 
@Owatch It's a known bug of this room. Just be aware of it.
 
9:37 AM
@Owatch You don't "check for" them. you just make sure it never happens. it's like checking to see if your house is an inferno. sorry, too late once it is an inferno
 
I AM GOING TO SNAP
 
Thanks. I'm removing all the checks now! It's much cleaner this way too.
 
Ven
@DmitriBudnikov you better snaphappy
 
LEL
BANNED
 
9:39 AM
@Owatch or make the checks print "a NULL came through xxx function", so you can see the NULL coming through
 
Okay!
 
Just use a sane, modern language that doesn't include null in all its reference types.
(hint: impractical sarcasm)
 
^ That
 
Ven
"C doesn't have references!"
 
win32 has some funny ones though: IsBadCodePointer and friends. DO NOT use them
 
user1804599
9:41 AM
@fredoverflow don't
 
it just does a try/except and accesses the address
 
@Zoidberg The problem with that "correct" char* approach is that my memory model is not based on chars yet :)
 
> Welcoming Stack Overflow’s New CMO – Adrianna Burrows
I'm already digging her!
 
9:55 AM
Wow, with Visual Studio's new optimizer, Windows is 438 KB lighter.
 
user1804599
10:13 AM
GitBook is neat.
 
Why do I always forget to add the new file to the repo when I rename a file?
 
user1804599
Because you don't git add -A .
 
Oh right.
 
user1804599
So get that gitignore file correct or stop complaining. It's a good investment.
 
Not gonna do that.
 
10:24 AM
This save file is so corrupt it's winning the democratic nomination.
 
Ven
my rust code is so bad it's not even funny
 
10:39 AM
I would have changed the documentation — Martin 2 hours ago
That confirms it was a rant then
 
You've never heard of Vocaloid? ._.
 
i kno
 
I see no problem with that
 
Ven
I spend enough time watching videogames matches to be fine with it
my ears are bleeding, however...
 
user1804599
10:55 AM
@Ven ever used GitBook?
 
Ven
nope, never even heard of it
 
user1804599
 
user1804599
"To keep large programs well structured, you either need superhuman willpower, or proper language support for interfaces." - Greg Nelson
 
user1804599
PHP > Python
 
11:13 AM
> $7 / month
seven dollars per month
what the fuck
 
user1804599
Huh?
 
user1804599
Where does it say that?
 
user1804599
oh if you want private books
 
The private plan with 5 private books and custom domain
 
ITT rightfold gets billed $100
 
11:14 AM
7$ per month to host a shitty docs website
hello
 
semigroups-0.18.1: build
semigroups-0.18.1: copy/register
void-0.7.1: configure
void-0.7.1: build
void-0.7.1: copy/register
contravariant-1.4: configure
contravariant-1.4: build
contravariant-1.4: copy/register
comonad-4.2.7.2: configure
comonad-4.2.7.2: build
comonad-4.2.7.2: copy/register
bifunctors-5.2: configure
bifunctors-5.2: build
bifunctors-5.2: copy/register
profunctors-5.2: configure
profunctors-5.2: build
semigroupoids-5.0.1: configure
profunctors-5.2: copy/register
semigroupoids-5.0.1: build
guess the dependency -.-
 
what lib requires all those
 
leshak-core :v
 
user1804599
11:15 AM
@BartekBanachewicz lens
 
lmao github micro is also 7$ per month
 
@Zoidberg yeah.
 
user1804599
They should all be in base IMO.
 
seven dollars to host git repos
 
user1804599
11:24 AM
main/hack/FH/Awkward.hh:34:54,59: Illegal usage of a covariant type parameter (Typing[4120])
  main/hack/FH/Awkward.hh:4:22,27: This is where the parameter was declared as covariant (+)
  main/hack/FH/Awkward.hh:34:54,59: This position is contravariant (-) because it is the composition of (+)(+)(-)
The rest of the error messages decomposes the inference of the variance.
Check out this link if you don't understand what this is about:
en.wikipedia.org/wiki/…
 
user1804599
nice diagnostics
 
user1804599
lol wikipedia link
 
@DmitriBudnikov That seems a bit much =/
 
Ven
@BartekBanachewicz lens
 
$ stack build
Unable to parse cabal file ....cabal: Fr                                omString "Do not use tabs for indentation (use spaces instead)\n  Tabs were used                                 at (line,column): [(23,2),(23,3),(23,4),(23,5),(23,6)]" (Just 23)
heh
 
11:32 AM
Fr omString
 
Ven
curses, ncurses
 
@Ven y u no p(e)d(o)curses
 
@AndyProwl you're just jealous
wimp
 
totally
 
user1804599
my head explodes VEN HALP
 
11:38 AM
@AndyProwl I knew it
 
were you sexy
 
Ven
@Zoidberg ?
 
user1804599
public function bind<TError2 super TError, TOk2>((function(TOk): Awkward<TError2, TOk2>) $f): Awkward<TError, TOk2> {
 
user1804599
This function should be able to return the return value of $f, not?
 
user1804599
Because TError2 is a supertype of TError.
 
user1804599
11:40 AM
OOH WAIT IT MUST BE A SUBTYPE OF TError.
 
Ven
...
 
user1804599
Thanks rubber duck ven
 
Ven
return type is covariant
 
user1804599
public function bind<TError2 super TError, TOk2>((function(TOk): Awkward<TError2, TOk2>) $f): Awkward<TError2, TOk2>
 
user1804599
This works
 
11:45 AM
derp, coworkers left
the office will prolly be empty in an hour or two
 
Ven
@BartekBanachewicz i have a 4 days weekend, and let me tell you, it's awesome
 
I had a free day yesterday
lots of guitar, Hate-UI and starcraft
 
Ven
@JerryCoffin do you still have it handy?
maybe i'm actually gonna do some haskell today
 
hm I wonder if I should start with units being on discrete grid first
or just go straight into fluent motion
I think grid is funnier
 
user1804599
Guess I'll just get rid of covariance.
 
11:49 AM
@Ven Those are the best :D
 
@Ven I have one of those coming up in a few weeks :)
 
hmm actually grid based systems seem to be much more complicated
because you need to interpolate the position on the grid and stuff
 
user1804599
12:13 PM
Ah, I'll get rid of covariance for TError.
 
user1804599
final class Awkward<TError, +TOk>
 
user406009
@BartekBanachewicz Oh, one thing I discovered that seemed to work well for these things is potential fields.
 
user406009
In my experiments, it has a really natural look for unit movement.
 
user406009
@BartekBanachewicz Sorry, it's a path finding technique.
 
12:15 PM
you'd need to elaborate because I'm mid implementation already
 
user406009
Instead of explicitly calculating a path like A star, you have every obstacle have a force on your moving objects.
 
user406009
Something like 1/x**2.
 
user406009
It's crude, and can mess up sometimes, but it leads to very natural looking movement.
 
user406009
12:15 PM
And it's very easy to implement.
 
user406009
And it doesn't require grids in any way.
 
I'm doing basic movement mechanics now, not pathfinding :)
 
evening inferior beings
 
@Lalaland dunno, I think I'd like to do grids just for the fun of reimplementing WC2
 
I thought we had a discussion testerday about productivity and you wanting some? ;p
 
12:17 PM
not really. I said I had doubts.
and I've asked myself whether Harvest is supposed to be a product or a test of Hate
turns out I want to be the latter, hence I don't care about its features or playability all that much now
 
43
A: #if 0 vs #if (1 > 1)? Any clue

chqrlieBoth expressions are false, so the code is never compiled. Here are potential explanations for why the programmer did not want to use the obvious #if 0 preprocessor directive to disable a section of code: the programmer did not want grep '#if 0' to find his code snippet. the local coding conve...

 
Ven
12:37 PM
@JerryCoffin ty
 
@milleniumbug just do if (false)
 
Ven
good old "false" in CPP
 
false to be reckoned with ...
 
SpaceX is so fuckin' great
 
@Puppy s/pac//
 
12:51 PM
 
Im not interested in spacetravel until we can colonize
 
I think my code isn't really memory-optimal
 
lol
 
the GC started to burn it down at that point though
 
Sleep(0); fixes everything
 
12:52 PM
it's an off-screen simulation
 
@Charlie Mining is already an interesting thing to do.
 
dont you think were rushing things tho? @Morwenn
 
Wat.
 
Like i feel we should wait for robotics, or technology
to venture into space i mean
 
If you don't have goals and try to reach them, you don't develop anything.
 
12:53 PM
also space travel gets long to get right
we should have ships ready by the time the robots are ready
 
maybe its kinda cool
I can imagine investors wanting to get in on spacemining
Unless its horribly expensive
 
it would also be horribly lucrative
 

« first day (2029 days earlier)      last day (2912 days later) »