« first day (1660 days earlier)      last day (3292 days later) » 

7:00 PM
everyone here hates everything
 
@Borgleader This one is the one I heard to be good
 
get used to it
 
Problem is... do I have to write that booststrap.py file?
 
@Gizmo Yes, in the codebase. In the version-controlled version of the codebase. You obviously did not verify that "everything works", or you would have noticed that it didn't. :)
 
@Jefffrey I took robot's and tweaked it
 
7:01 PM
@LightnessRacesinOrbit that's indeed a correct summary
 
@Nooble k it's back on
 
@AlexM. I see.
 
What is?
 
Twitch stream.
 
7:03 PM
I wanted Nooble to watch his first CS GO pro match but the stream had issues lol
apparently internet problems
I expected the UK internet to be better than this :A
 
0
Q: Is using macro's to allocate memory bad?

YoYoYonnYI want to use something like this to allocate memory: void* pointers = NULL; #define MALLOC(size) ({\ void* ptr = malloc(size); ARRAYAPPEND(pointers, ptr);\ }) #define FREE(ptr) ({\ ARRAYREMOVEBYVALUE(pointers, ptr);\ free(ptr);\ }) #define FREEALL() ({\ FREEARRAY(pointers);\...

lol, they think windows 8 has automatic memory cleanup for C
 
@AlexM. it is but these days its ablaze because of the royal baby
 
how cute
 
Windows 8 has automatic cleanup Do you have a source for that claim!?!? — Borgleader 12 secs ago
 
Almost back in Berlin.
1% battery.
 
7:09 PM
"Windows 8 has automatic cleanup" ooooooooohhhhhhhhhhhhhhohoohhohohohohohohho
 
@R.MartinhoFernandes You or your phone?
 
@Borgleader TIL
 
@R.MartinhoFernandes gg
 
plot twist: it's not his kid
 
7:12 PM
Dang, about to submit a pull request when it turns out someone did the same 30 minutes ago.
 
@YoYoYonnY it seems you are confusing process teardown with freeing memory during execution. One is something that happens when the OS destroys the process, the other is a way of ensuring you can reuse memory during execution. — Mgetz 42 secs ago
 
user1804599
 
Ven
@rightfold this game is amazing!
 
@black: Yes, but is it reliable? Thats the whole point of declaring these macro's. Oliver Charlesworth: This has nothing to do with scope, I just want to know if these macro's are safe enough for exiting the program. I will update the question to make this more clear. — YoYoYonnY 1 min ago
lol
is process teardown reliable
I am greatly amused
 
@Mgetz me too, see comment below
If this Q has taught me something it is to never name your methods with CAPS
 
7:18 PM
you're amused? process teardown as memory management strategy scares the shit out of me :P
 
@Borgleader really? it's actually quite simple in most OS's. The memory manager just removes the ranges from the GDT and then adds them to the zeroing list
oh I see what you mean... yes that's a bad strategy
 
> My problem is basicaly: I want to allocate memory without saving its adress, should I force myself to save every adress and free() it manualy, should I use macro's, is there any library that does this for me, or should I rely on OS cleanup?
I don't know where to start
 
user1804599
by deleting the question
 
@Nooble I swear these things don't happen every time
lol
 
7:32 PM
@AlexM. :P
 
user1804599
> I would give this game a 14 out of 1.
 
user1804599
lol
 
user1804599
> Why can't we be such majestic creatures like goats? I think that's the underlying message of Goat Simulator.
 
@rightfold already voted to close
 
user1804599
Good boy.
 
7:33 PM
it's not my question
 
Ell
@rightfold where are you in the world?
just a rough idea
 
user1804599
In the Netherlands.
 
Ell
how close are you to rotterdam?
 
Sorry Oliver Charlesworth I ment @Mgetz. Mgetz, Using functions is totally redundant in this case, I just want to save all allocated pointers somewhere. (More specificly: I want to make sure all allocated memory is free'd when the program ends, and possibly in other cases aswell) However, doing this manually is a pain, and using macro's might not be totally safe. Moreover, functions will add a couple of items to the stack, which might eventually cause a stack overflow (Really, 12 bytes or so wont be a problem, but still its redundant) — YoYoYonnY 1 min ago
 
@Nooble I'd link you to the female tournament but since you don't know how the guys normally play the game you can't sit in amazement at how bad it is :(
 
7:38 PM
damnn wtf - classes just ended and my blackboard already shows my summer semester classes, syllabi and all - fuark
 
@AlexM. How bad can they be...
 
user1804599
@Ell 30 minutes by train and 10 minutes by bus.
 
@Nooble fundamentally bad
I'm not sure if it's a lack of practice but...
 
Ell
@rightfold bus is quicker? o.O
 
think about more chaotic gameplay
slower reflexes
lots of missed shots etc
 
user1804599
7:39 PM
@Ell no.
 
user1804599
It's impossible.
 
user1804599
Hence you go 30 minutes by train as well.
 
Ell
bus route is shorter then?
Oh
I see.
 
user1804599
wat do
 
user1804599
i'm bored as fuck
 
7:44 PM
finish a project
 
user1804599
which one?
 
That one.
 
any project
 
Ell
@BartekBanachewicz where are you in poland? don't have to be too specific
 
user1804599
 
user1804599
7:47 PM
not bad
 
Ell
Hmm
trello is just lists
I thought it could have calendars n shit
 
@Ell you can enable a calender
but that's no the primary point of trello
 
Ell
Any idea how?
Right
I think I'm misusing it
I just want a general organisation tool
is it meant just for software dev?
 
@Mgetz Classical "OP is clueless" case.
 
@milleniumbug that would be why I stopped doing anything
not worth my time to try to explain
 
Ven
7:53 PM
@rightfold too bad the game was cancelled
 
user1804599
Yeah. :[
 
> I guess using inline won't give me any problems, my only problem with inline at the moment is that I want my functions to be uppercase.
wat
 
@Borgleader as long as i don't have to work with their code, they can code as if they had touretts
 
@Nooble their streaming PCs are most likely getting DDOSed yeah
I promise that this happens rarely okay thx
 
> Reaction to @wildplasser s comment: A macro IS a inline function... :| (EDIT: Okay... Maybe a macro doesn't check types. But thats it.)
No, go educate yourself.
 
7:58 PM
@BartekBanachewicz yo guy, you around?
 
weren't macros a fancy way to generate text in your files
 
@wildplasser But then I would have to press shift everytime I don't want to type in uppercase. What I was trying to say is I use uppercase only for macro's, because otherwise it doesn't look like C to me. But I never had to use inline, so I might just as well use uppercase for inline aswell. — YoYoYonnY 17 secs ago
 
@rightfold wow
 
user1804599
@milleniumbug "wildplasser" is Dutch for somebody who pees in public.
 
I wonder if games with such awesome graphics would be possible without the code containing all the well-known gamedev perversion
because if that's not the case, I forgive them
 
8:05 PM
Sorry I always thought dude applies gender neutral :) (well, in german we'd say "Alder"(m) / "Alde"(f))... I didn't post how your question is bad, but linked another Q&A that merely contains the answer for what you asking about. — πάντα ῥεῖ 1 min ago
does it?
 
I think "dude" is male only
 
@AndyProwl you mean low level hacks?
 
it comes from Edward IIRC
 
I don't mind the low level hacks
what should be properly written is game logic
 
@AndyProwl Whatt's the female pendant then?
 
8:06 PM
otherwise it's a pain to go through it
 
@AlexM. yeah, all the "omg don't use STL" stuff etc., plus the singletons and the globals and the other horrors
@πάνταῥεῖ I don't know
 
Ven
"dude" is accepted in the US as guy or gal, afaik
i wouldn't know, my life isn't about eating freedom burgers
 
@AndyProwl dudess probably XD ...
 
@πάνταῥεῖ she-dude
 
the dudesse of notthingham
 
8:10 PM
are the only guys in the UK able to do computers on this chatroom or sth
these people have been trying to solve a DDoS for 3 hours wtf
 
@AlexM. Jon Skeet is in the UK i think
and hes not here
although, i think he prefers another kind of CS
 
isn't jon skeet busy developing SO
 
@YoYoYonnY the problem with what you want to do is that even if you can get it to work (dangerous, probably will cause unintended side effects) then you are making the code incredibly fragile. Because anyone can #undef MALLOC and your code breaks. Include a library that does that... and your code breaks etc. inline functions are less fragile because they can't be #undef but still have the issue of being copied everywhere, which can also have unexpected side effects. — Mgetz 3 mins ago
@Ven nor mine, they are overcooked
 
> Currently a software engineer at Google, London.
 
@Borgleader funny, I didn't think google did anything with C#
 
8:21 PM
They do Java
That's what he does for Google
 
@AndyProwl that and obtain many reputation points
 
@Borgleader it's a joke :(
I started it but never seems to catch on
 
@Borgleader I guess he does that at Google rather than for Google :P
 
@rightfold without saving its address!
 
seriously apple...
 
8:26 PM
GIF
EEEEEEEEEEK
 
user1804599
 
@rightfold you know I removed it because linking a gif into chat is annoying
 
you know rightfold did it on purpose
 
user1804599
I like to be annoying.
 
yes
 
8:28 PM
@Nooble hopefully it's ok now, they're ready to start
enjoy
 
Regarding our yesterday's little discussion about sexually overdue avatars:
http://stackoverflow.com/users/4846259/kioko-key
 
@rightfold dude ¬_¬
 
Bender would freak out on her's won't he?
 
@Mgetz "haha you spent 10 grand on a fucking watch"
 
//reset temp
SquareMatrix temp = SquareMatrix(temp.dimension);

That's a bad idea....It gives me a matrix with no data. I don't see why
 
8:30 PM
@Borgleader it's < 1k
 
@Borgleader if you're going to drop 10 grand on a watch I expect the warranty to be better than applecare
 
@rightfold I'm not sure. I think it might be a gif
I have no idea what you mean. "pop"? "production value"? "get setup"? "at level"? There's no such thing as "Fusion style". It's just automatic attribute propagation. If anything that's Spirit Style. Of course, you can do nearly anything in semantic actions, but that's a good reason to stay away as a rule of thumb. (The power invites hacky solutions and tightly coupled parsing/processing. Also it invites subtle bugs.). You could probably just ask a concrete question about what you mean. Be sure to incude the SSCCE and where you are stuck — sehe 4 hours ago
 
user1804599
 
theres one for 10k
 
@Borgleader it's not just 10k, it's 10k + cost of iphone
because the damn thing can't be used without an iphone
 
8:34 PM
@Mgetz not really, anyone who even considers buying this already has one
imo
 
Borgleader has a point
I wouldn't want an apple watch because I have no link to their ecosystem
I use androids
 
@Borgleader true, sooner or later they will sell the i<insert dirty joke item here> and the fanbois will buy it
@milleniumbug why did you answer it, one more close vote and it could have gotten deleted without issue
 
@AlexM. inb4 stream is down again
 
seems ok now
 
@AlexM. I just got my first smartphone about a week ago.
Seems pretty nice.
 
8:41 PM
@Mgetz So what. If it's closed, it will be the same result.
(essentially "it's bad, don't bother")
 
@milleniumbug can't be deleted if it has any upvoted answers
 
Also, it can be deleted if there's no upvote.
 
lol, sockets question: 'I'm having a problem with the network part, it's all finished, only missing the part that connects players with each other'....
 
sauce?
 
@rightfold Link please
 
8:44 PM
-5
A: Drinking 18 M-ohm water

DR. EDWARD SIEGEL"FLYING WATER", THE ONLY POSSIBLE PERMANENT LONG-TERM SOLUTION TO DROUGHTS/WILDFIRES!!! [PLEASE EXCUSE ALL CAPITALS DUE TO DUAL DISABILITIES: VISUAL AND MANUAL DEXTERITY] SIEGEL "FLYING-WATER" [GOOGLE: "EDWARD SIEGEL FLYING-WATER"; INTERNATIONAL CONFERENCE ON ALTERNATIVE-ENERGY, BAL HARBOR (198...

 
@Nooble went off again, it's these guys lol twitter.com/laxsquadcsgo
 
@AlexM. I knew it.
 
Way to get help: 'DONT GIVE MY COMMENT NEGATIVE FEEDBACK..I asked gently so whats the problem...ARE YOU ALIENS'. Today's winner.
0
Q: Java: socket not getting input

Pedro ZanuttoSo, I'm making a tic tac toe project and I'm having a problem with the network part, it's all finished, only missing the part that connects players with each other, this is the class with the problem: public class Enemy implements Runnable{ private static Socket enemy; public Enemy(Sock...

 
user1804599
 
user1804599
8:57 PM
@Jefffrey I'm writing a video game in Clojure!
 
user1804599
(defn draw [g state]
  (doseq [x (map #(* % 32) (range 20))
          y (map #(* % 32) (range 15))]
    (.drawImage g grass-image nil x y))
  (doseq [_ (range 50)]
    (.drawImage g troll-image nil (rand-int 640) (rand-int 480))))
 
user1804599
:D
 
Clojure is cool.
 
@Nooble guy sent an email to the ddoser lol i.gyazo.com/01d7af5e96bb551cf9c9ef6693c2e2d7.png
 
Ell
I want to render terrians like this i.stack.imgur.com/aFLHQ.png
 
9:03 PM
@AlexM. Lol.
Was that translated?
 
maybe it is
I think translation is not enabled there
now I'm confused
actually it's not
because it says english > moonrunes
and the pic is in english
 
Ell
I wonder why rust didn't choose exceptions
 
@rightfold Nice
@rightfold Whatcha using to render stuff?
 
@rightfold Nice
 
user1804599
@Jefffrey Swing.
 
> 660f1f440000 nop word [rax + rax]
wtf
 
To the SSCCE cave... — Lightness Races in Orbit 6 hours ago
@LightnessRacesinOrbit I think the question was very badly worded. I went and added a demo:
Provided a tweaked version using boost::string_ref and boost::container::flat_map that shows a 32% reduced memory footprint when properly reserved up-front. You'd want a smarter string pool in reality, but this should be a good demo to answer your question. — sehe 1 min ago
@Blob where is that?
 
some random binary
4
A: gdb - nop with extra data, why?

JesterThose are multi-byte nop instructions, used as padding for alignment purposes. In this case they won't ever be executed, so the compiler could have used anything but under other circumstances it may need to be executable. See also the intel optimization manual, section 3.5.1.9 Using NOPs, as well...

suggests padding
 
wow. I didn't know about that
 
user1804599
(defn kill-troll [state troll-id]
  (let [{x :x, y :y} ((:trolls state) troll-id)]
    (-> state
        (update-in [:trolls] dissoc troll-id)
        (update-in [:blood-stains] conj (->BloodStain x y (rand-int (count blood-images)))))))
 
user1804599
9:23 PM
This is absolutely gorgeous.
 
user1804599
I love Clojure.
 
user1804599
new Object() is the perfect unique ID generator, by the way.
 
The cool version of the LLVM logo!
 
you mean the ugly version
 
^this
 
user1804599
9:34 PM
The logo is unfortunately a reference to an extremely boring book.
 
both logos are ugly
 
@AlexM. You call my artwork that I created in minutes of playing around with an image editor ugly!?
 
yes
 
user1804599
you can create it with imagemagick in less than a second
 
user1804599
fuck your shitty slow "image editor"
 
9:35 PM
I like it better than the original
 
user1804599
command line interfaces win once again
 
user1804599
 
user1804599
lol facebook
 
user1804599
Its spamfilter is bugged.
 
@rightfold Looks like a desperate slut to me
No spam
 
9:37 PM
joke's on her
rightfold enjoys other uh
parts
 
user1804599
A spamfilter that does not flag all spam as spam and all non-spam as non-spam is bugged and its bug tracker must be spammed with bug reports until there are no more false positives and false negatives.
3
 
@rightfold does anyone fall for these?
 
> Vind ik leuk
 
user1804599
My game will be a disaster awesome.
 
user1804599
Acquire weapons and ammo on-site and kill trolls and goblins.
 
9:41 PM
@AlexM. He likes all parts
 
user1804599
@jlgarhdez @StephenPiment @Functionalworks "I am proud of my code"? Dunning–Kruger confirmed.
 
user1804599
 
@Nooble someone apparently doxed the ddoser
I think they called his mum
the ddos definitely stopped lol
 
@rightfold This is funny and sad at the same time, because my company just started an advertisement campaign with posters showing programmers next to some piece of code, and the piece of code basically says that those programmers are proud of it
The message being "we're proud of our code"
D-K is the first thing I thought of and refused to be in one of those posters
 
@AndyProwl pics please
 
9:52 PM
I cannot show them
 
I'm stuck
 
@Jefffrey with?
 
try to lost weight, helps a little to unstuck ..
 
@Blob I can't program anymore.
From the moment I started using Github, I'm not able to write any program anymore.
 
Hey; I just sort of "got" concepts; can we dynamically apply them?
 
9:56 PM
@Jefffrey lol, how does GitHub influence that?
 
@wilx I guess it's the "people might read this code" factor.
 
@Cinch You did not get concepts.
 
@Cinch C++ concepts? If so, no.
 
@wilx Concepts are constraints based on axioms, right?
 
@AlexM. Woah.
 
9:57 PM
@Jefffrey Hehe. So, you are basically a shy person. Well, look at other people's code. You will find out yours is not as bad as you might think. :)
 
Well to be fair his full name was kinda on his twitter account.
 
i.e we define a new "concept" to help constrain our generic types based on axioms or behaviors.
 
@Cinch They are constraints on template parameters, which are compile time stuff.
 
My god Lisp is enlightening
 
@wilx lol
 
9:58 PM
@Jefffrey I know but concepts => properties, right?
 
wot
 
no
 
user1804599
duck typing is terrible
 
@Cinch You will have multiple several minutes long lasting orgasms when you learn Haskell then.
 
user1804599
hence concepts are awesome
 
9:59 PM
'fight of the century' stuff annoys me - only human can be as dumb & barbarian as putting money to see one person beat another up.
 
I mean, wouldn't it make sense to say that if I should be able to create some sort of function to add or remove properties based on state? i.e. I have clay, which is "Malleable." Then, I "shape" it into an "object" at which point it loses a concept but also fits new ones.
 
@Jefffrey No way your code can be as bad as mine.
 

« first day (1660 days earlier)      last day (3292 days later) »