« first day (1486 days earlier)      last day (3465 days later) » 

user1804599
@BartekBanachewicz I don't see why not.
 
user1804599
It's like function composition!
 
9:19 AM
#Teens: Do you #agree that #files are the only #modules you #need?
 
@Rapptz I would buy the book, but it's too expensive. It costs $41 without shipping, so $52 with tax and shipping
 
that's not very expensive
my books in college cost $200
and they were shorter
 
what college do you go to?
 
I already graduated, but I went to University of Michigan.
 
@Andy it's not really that expensive
 
9:26 AM
Yeah, you guys are right. It's not that expensive, besides it helps the author.
So I Will definitely buy it, since you guys say it's a good book :)
 
If you want to read it first you can go ahead.
I don't have anything against that.
I'm just saying if you do find it useful you should buy it.
 
@StackedCrooked There is no sin in software engineering more serious than cos.
 
now now
 
@jalf Surely you mean 'interesting'.
 
9:28 AM
BTW What's C++11 and C++14 ?
 
C++ standards.
 
:19869250 Yes. C++14 has some improvements and bugfixes compared to C++11
and, of course, the year of publication changed SCNR
 
user1804599
@Andy Programming languages.
 
@rightføld what?
 
btw quick poll
 
user1804599
9:36 AM
They are programming languages.
 
do you guys prefer turn based battle systems or real time battle systems?
 
user1804599
Real-time.
 
user1804599
Less boring.
 
I don't know what any of these mean, to be honest.
so I guess Real-time
 
do you not play games m8
 
9:37 AM
i do m8
 
candy crush doesn't count
@Andy programming languages
 
Xeo
nom nom cake
 
does CS1.6 count?
does GTA count?
does FIFA count?
 
not really.
 
does LOL count?
 
9:39 AM
oh here you go
LoL is realtime
chess is turn-based
 
oh I see
 
@Rapptz I’m not sure I can think of a straightforward answer to the question.
 
so like you're playing in real time
 
I'm talking mainly with RPGs here.
 
I like LOL but I also like 2048, hmmmmm
 
Xeo
9:40 AM
@Rapptz Depends on the game, I guess?
 
that's a hard question
 
@Andy not related
 
@Xeo that's very true
 
he was talking about something else
 
Xeo
There's also a mix between the two, with Active Time Battle that FF games had.
 
9:40 AM
@Rapptz If single-player then turn based.
 
What combat mission had was also cool
but it also took ages so.
you don't really take turns IRL
(combatwise)
 
ATB is okay
 
user1804599
Speaking of battle systems.
 
user1804599
I play MGS, so I avoid battles so I don't really care anyway.
 
With more than one player then something hybrid to get things moving along :v
 
9:42 AM
that's a problem I have with turn based battle systems
it makes battling sort of tiresome after a while
I guess it's true for both systems
but for me the threshold for that is lower with turn based
 
Xeo
I liked ATB in FF7 and 9
especially with the option to not stop enemy time when one of my characters had his turn.
 
I think that FF games are overrated crap BTW
 
Xeo
thanks for that insightful input.
 
I stopped liking FF in FF6. Which is why I'm kinda 'meh' towards the whole ordeal. I thought ATB was neat in FF7 but it didn't make battling that much more engaging either.
 
Xeo
I only ever played 7 / 8 / 9, due to not having the consoles for any other installments
 
9:48 AM
FF6 is pretty good.
 
user1804599
> Desktop Notifications

*Currently supported in Google Chrome only
 
user1804599
Yeah, they really take that seriously.
 
user1804599
I use Chromium and the button is disabled. Fuckers.
 
@R.MartinhoFernandes Damnit! Wish I could go back and edit that
FF7 was a crime against humanity
 
@Rapptz both :-)
 
user1804599
10:03 AM
% cat pomodoro
#!/usr/bin/env clojure-1.5
(import '[javax.swing JOptionPane])
(Thread/sleep (* 25 60 1000))
(JOptionPane/showMessageDialog nil "GA LOPEN JONGE")
 
user1804599
Useful tool.
 
user1804599
Tells me to walk after 25 minutes.
 
user1804599
Should put it in an infinite loop so it restarts when I dismiss the message box.
 
I hate HDDs
so sloooow
I'm still not done starting up ugh
 
life hack: don't upgrade to an SSD, then you'll never be upset when no running with an SSD
 
10:14 AM
@rightføld IRTA wank
 
@thecoshman lol yes
any PC using an HDD seems slow to me now
 
and noisy. Don't forget noisy.
 
well my PC's noise usually comes from the CPU and GPU fans
the PC at work is more silent than the one at home, but that may also be because of the general noise in the office
 
@BartekBanachewicz life hack: use old warn fans so that you never worry about your HDD being noisy
 
the source control server is down
All my team's activity grinded to a halt
 
10:16 AM
@Mr.kbok HURR DURR WE DONT GOT NO PESKY CLOUDS HERE
 
clouds?
 
you can't run everything locally
@Mr.kbok arguably, anything running on a remote machine is 'cloud'
 
true that
 
ahahaha, "iCloud for Windows" asks me to restart my PC following an update
fuck you iCloud for Windows
3
you don't look like a graphics driver to me
 
buttes
 
10:20 AM
99% of apps don't really need a restart even if they ask it and run the updated version perfectly fine
 
@AlexM. "You have moved your mouse. Please restart the computer for the changes to take effect."
12
 
actually scratch what I said
each nVidia driver update installs and runs what I said without restarts
 
wut atomic_unique_ptr
 
@Mr.kbok Yeah. I think it is just the default catch-all-avoid-all-problems solution.
 
I see that Firefox is more aggressive when it comes to updating stuff in cache, in Chrome I often have to manually refresh to update images and stuff
I like that
 
10:30 AM
@VáclavZeman Which probably isn't very efficient, since people don't restart their computer at all
 
@Mr.kbok Most ordinary people turn they computers on and off all the time. It is only the IT professionals who never restart their PCs. :)
IMHO.
 
I always turn my home PC on and off
I rarely turn the one at work on and off because fucking HDDs and their slow boot
 
@AlexM. I never do unless absolutely necessar. Yesterday, I have restarted because my kid actually held the power button long enough to turn it off. :)
 
Just woke up and got 175 rep already!??
 
10:53 AM
-1
Q: delete[] crashes the program

narutkataaaI create an array of size "N", then loop trough the array N times and set the values of the array and when I am finished using it I am trying to delete[] it. Then my program crashes and I am 100% sure I am not using anything out of the stack. Code: vec3 positions[numVertices]; vec2 textureCoord...

> delete[] crashes the program, but I tried std::vector and everything is fine.
 
user1804599
@BartekBanachewicz what is an IRTA wank?
 
@rightføld "I read 'walk' as 'wank'"
 
user1804599
olol
 
more exactly, IRTA = I Read That As
 
user1804599
s/LOPEN/RUKKEN/
 
user1804599
10:59 AM
:D
 
@AlexM. I just suspend all the time.
 
Ell
I don't like how oglplus is written. it makes me want to write GLDR equivalent again
somebody stop me :P
 
user1804599
stop
 
@Ell no. if you want to waste your time, do it.
 
not sure why, but I keep wanting to use 'top' when I really mean 'head'
@Ell I'm sort of doing it for Rust, but it's more for the sake of learning Rust than bringing ogl to Rust.
I found working on GLDR really helped my C++ skills (nothing to do with Bartek ofc :P)
 
user1804599
11:14 AM
You can only do GL right by leaving it to someone else.
 
true
but as I said, I'd do a 'GLDR' for Rust with the aim of learning Rust.
If I could come up with a better project to learn the language through, I'd do that.
 
user1804599
Write a pomodoro timer.
 
Ell
already hey
 
user1804599
> Iron::new(hello_world).listen(Ipv4Addr(127, 0, 0, 1), 3000);
 
user1804599
now that's an API I like
 
user1804599
11:20 AM
(Apart from lowercase p, which is retarded, of course.)
 
user1804599
Now strings being BytesContainers is retarded as well, so fuck it.
 
@Ell eh, this language still has noisy syntax
also why isn't return type inferred
DUPLICATION BURN IT
 
reminds me of web.py
 
@Ell if you choose to do so at least take what we left off last time
VAO/VBO/Texture wrappers were getting pretty ok by then
you can certainly steal some ideas
 
11:36 AM
Yes!
Finally!
I've surpassed this Mike guy in the top user list for [c++].
 
Heh
Only for last 30 days
 
So what?
 
uh I'm also in there. Cool.
C++ has 14.8% unanswered
I wonder how does that compare to other popular languages
I believe it's pretty low
 
@Columbo Come back when you are above litb in "All Time". :P
 
@Griwes Hold my beer
 
12:22 PM
Good morning
 
it's not morning and it wasn't good.
 
@Abyx The morning wasn't good?
Because if the not-morning wasn't good, then: good morning
 
^
 
Ell
@AlexM. haha
 
Is doxygen any good or are there worthy alternatives to it?
 
12:29 PM
No.
 
2 questions, 1 answer
 
@rubenvb Well. It is somehow okay, and there aren't worthy alternatives. So I answer with the indeterminate value of boost::logic::tribool.
 
@Columbo FILE_NOT_FOUND it is.
I'll keep myself from documenting my own code for now then :-P
I'll stick with "self-documenting" and small comments.
 
@rubenvb doxygen has its uses. That does not necessarily involve spamming javadoc/QT/other doxygen comments throughout your code.
 
I don't think that doc comments are that bad
especially if you're describing a public API
 
12:39 PM
@MarcoA. I thought there was a datamining api for stack, be curious to see actual statistics for that
 
For example, we use it to have a browseable source archive (crappy IDE), visualize inheritance hierarchies (again, crappy IDE) and together with a little script to refactor our package structure, visualizing include-dependencies.
@BartekBanachewicz they are not bad if you use them to document an interface. They get bad if you use them for everything, because it clutters your code with uninteresting doc-details á la "a function that does what its name says anyway"
 
++i; // increments i
As long as your documentation comments don't reach this level, they are kinda ok.
 
@ArneMertz yeah requiring them everywhere is dumb
 
haha oh no, I never did that.
 
@Griwes should be "changes |i| so that it gets value incremented by one"
 
Xeo
12:48 PM
frack, my nose is killing me
guess I caught a cold, ugh.
 
Oct 30 at 17:41, by Mgetz
@AlexM. it could be worse, I have a friend that works for a company that makes voting systems. They are legally required to comment EVERY line
 
Ell
@Mgetz hahaha oh god
} // close scope
 
Oct 30 at 17:50, by Mgetz
@sehe apparently in most cases you can get it minorly relaxed, but it still stands. The election authorities want to basically be able to read the code via comments. (No AFAIK they don't actually really verify that the comments and code match up)
 
@Ell I mean, in theory it could be the end of a braced-init-list
 
Guess what: Windows 8.1 is quite a bit smaller on my SSD than Windows 7. For now.
 
12:51 PM
@Xeo ease up on the coke
 
@Mgetz amazing
 
Oct 30 at 17:42, by Mgetz
@AlexM. their belgrade office wrote a script to do it for them
 
fixed
 
lol
I wonder what does the script do
 
Ell
12:53 PM
Did rapptz or LucDanton ever come to a conclusion about metafunction vs query vs concept vs trait ... etc. I wonder
 
Xeo
if (line == "}") putComment("close scope");
 
my guess:
4 mins ago, by Ell
} // close scope
 
@BartekBanachewicz a = a + 5; //Performs the operation "= a + 5" on "a"
 
user image
7
^ relevant.
 
Ell
@FilipRoséen-refp haha
 
12:54 PM
well once you have the AST...
 
hmm, I've listened to live concerts with Adele for quite some time now, whenever I don't know what I'm going to listen to while writing code. Anyone got any advice for similar music?
adele live at the royal albert hall is freakin' awesome. the problem I have with fully intrumental (classical) music is that they are so "in the background" that I start forgetting about them
alright, and that link was to some shitty quality video.. but that concert, anyhow (this is better -> vimeo.com/33481617)
 
Xeo
@FilipRoséen-refp boo, not linking the xkcd itself so we get alt-texts.
 
Xeo
@FilipRoséen-refp boo, reposting.
 
12:59 PM
oh, it automatically does that thing if you link it directly?
 
Xeo
yes
it's oneboxed automagically
 
@rightføld I think I'll rename glisha to Hate2d
 
Xeo
@FilipRoséen-refp boo, edited.
 
@Xeo your daily advice; stop complaining and actually fuck a goat.
 
Xeo
1:00 PM
boo, typos.
hahaha
 
user1804599
@BartekBanachewicz ok
 
user1804599
I think I won't.
 
I've been trying to clean the apartment for the last three days now, but there's always something more interesting that gets in the way.. like @Xeo (no homo).
 
so have you seen Overwatch?
new Blizzard game
 
user1804599
The MW2 class? Yes.
 
1:02 PM
TIL Google is looking for a research manager in Amsterdam.
Think they'll hire a Phd in Physics in two years time for that? :-p /sarcasm
 
looks like they're crossing TF2's gameplay with DoTA's array of characters
 
@TheForestAndTheTrees it looked to me like TF2 on steroids
Which is good, cause I always thought TF2 was way too simple for the second iteration.
 
@rubenvb this
 
@Ell I think we did (cc @Rapptz). I never set out to embody those things into actual code though (and I haven’t), except that I ended up with a concepts::Metacomputation by accident.
 
Ell
@LucDanton Which did you choose? I guess it's in the transcript so I ought to look there I guess
 
1:08 PM
I don’t recall tbh.
 
user1804599
I laugh every time my colleague Patrick is called by someone and says over the phone "hello this is Patrick."
 
uh, why?
 
@jalf spongebob
 
because memes
 
1:12 PM
I'm struggling with a bit of VC++. I've only juststarted it. If I do this, the code works fine

private: System::Void doThis(System::String^ counting)

However, I want to pass an int and the only code I can get to work is

private: System::Void doThis(int^ counting)

Why does int not seem to require a namespace? Or if it does, what namespace does it live in? I can't find the answer on line or on the MSDN
Or have I just missed the point with this?! :(
 
user1804599
int is built-in.
 
user1804599
Oh C++/CLI/RT/other shit. No idea.
 
no.
 
unless you need to work with System:Int32^
 
@Dave that's managed c++, which is largely unsupported
 
1:13 PM
what is unsupported, sorry @Mgetz?
You mean the type int is unsupported
and I should use something like Int32 or Int16?
 
@Dave Microsoft has made it clear that managed C++ is on life support at this point, no new samples will be forthcoming from them
 
user1804599
If he meant int is unsupported he wouldn't say managed C++ is unsupported.
 
user1804599
He'd say int is unsupported.
 
oh... @Mgetz
 
if you need to code .NET please use C#, VB.NET
 
user1804599
1:15 PM
F#!
 
@Mgetz C++/CLI is not the same as managed C++
 
otherwise use unmanged C++
 
I don't have that choice. I use C#. But, we have managed C++ and non managed C++ and I'm just playing with it (as I have to program with it)... I just oculdn't see why I dind't need to declare the namespace for int
 
@R.MartinhoFernandes only IJW will be supported AFAIK
 
In C++/CLI you have the built-in types as you would do in C++. They're treated the same. System::Int32 is basically an alias for int iirc.
 
1:17 PM
Oh I see.
that is well explained, I get it now
Thank you
 
How do I learn c++¿
 
@DemCodeLines You don't. It learns you :-p
 
Codeacademy doesn't have it
 
@DemCodeLines Start with a good book.
 
@rubenvb I once read a book which had title "Teach yourself C++ in 24 hours"
I think you can install a C++ compiler in 24 hours. And possibly uninstall it, too
3
 
user1804599
1:28 PM
You can't build LLVM in 24 hours, though.
 
@MarcoA. lol, so true. I remember that some version of VS took several hours to install and/or update.
 
Learning C++ is not a simple job as learning javascript or python. lol
 
@rightføld Really? GCC builds fairly quickly.
 
user1804599
@Stallman Learning JavaScript is not a very simple job either.
 
@rightføld not that much, clang is usually kinda worse on Windows (it also includes LLVM and for whatever reason Win linking suXx)
 
1:30 PM
@rightføld Yup, but comparing to C++, it's simpler, I thought
 
user1804599
Quiz: how do you sort an arbitrary array of numbers in JavaScript by numeric value ascending?
 
@MarcoA. works fine with 32-bit MinGW-w64 ;-)
@MarcoA. That book list is the collective effort of several years and contains good books for sure ;-)
 
rightføld Use quick sort or simply bubble sort.
 
user1804599
Why not just array.sort()?
 
rightføld Well, great.
Also, I can use <algortihm> to handle sort in C++
 
1:32 PM
we once had an interesting project which took several hours to complete. The code generation pipeline was something like: C++ -> LLVM IR -> x86 assembly -> again LLVM -> python -> (??) -> PROLOG! -> ++LLVM -> WinZIP -> java -> Oz (programming language) -> gpu code
 
user1804599
@Stallman You think it works? Haha so gullible.
 
  //Free the buffer.
  LocalFree(messageBuffer);
 
@rightføld You stacksort it, of course.
 
user1804599
> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16].sort()
[1, 10, 11, 12, 13, 14, 15, 16, 2, 3, 4, 5, 6, 7, 8, 9]
3
 
@rightføld that's almost worthy of PHP.
 
1:33 PM
rightføld Why that happened?
Well, I just want to say C++ is very complex. You need lots of time to learn it well.
But it's worthy, I think.
 
user1804599
@Stallman the default comparator converts its arguments to strings before comparing them.
 
rightføld Ok, I got it.
 
user1804599
And it's not even calling localeCompare. It just compares code point values.
 
@Stallman c++ isn't really complex. It's purely imaginary.
 
but c isn't a number ...
 
1:41 PM
unique_ptr's custom deleter usage syntax is weird.
Why doesn't it just accept a callable-with-pointer-to-whatever-the-unique_ptr-is-holding-a-pointer-to?
 
A complex number is a number that can be expressed in the form a + bi, where a and b are real numbers and i is the imaginary unit, which satisfies the equation i2 = −1. In this expression, a is the real part and b is the imaginary part of the complex number. Complex numbers extend the concept of the one-dimensional number line to the two-dimensional complex plane (also called Argand plane) by using the horizontal axis for the real part and the vertical axis for the imaginary part. The complex number a + bi can be identified with the point (a, b) in the complex plane. A complex number whose real...
 
@chmod711telkitty C is 299'792'458 m / s
 
so c++ = 299'792'459 m / s?
gee, that isn't hell lot of improvement on speed as I hoped!
 
@chmod711telkitty C++ is unphysical, well, after the expression it appears in of course.
 
@chmod711telkitty You obviously haven't studied relativity. You can't increase C. It just doesn't work that way.
 
1:46 PM
@rubenvb but it's mathematical, is it not?
 
Xeo
@rubenvb uhm?
it does, if you don't add a pointer typedef to the deleter?
 
5
A: std::unique_ptr with custom deleter for win32 LocalFree

PraetorianIt looks correct to me. You could make it a little more succinct by specifying the unique_ptr's deleter inline rather than creating a functor for it. std::unique_ptr<LPWSTR, HLOCAL(__stdcall *)(HLOCAL)> p( ::CommandLineToArgvW( L"cmd.exe p1 p2 p3", &n ), ::LocalFree ); Or, if you don't ...

 
@JerryCoffin Oo noz! C is the speed of light, so C++ could only be as fast ... not only that, but it also shift you a little in space
 
why not just std::unique_ptr<char,decltype(LocalFree)>(somecharptrthingie, Localfree)
 
Xeo
Yes, what is the problem?
 
1:49 PM
or a variation of that.
with less duplication.
 
Xeo
@rubenvb You can do just that.
 
@Xeo also with make_unique?
 
You can write a make_unique_with_deleter that does the deducing for you.
 
I tried, and it failed.
 
Welp, can’t be done then.
 
1:50 PM
well, not the make_unique_with_deleter thing.
 
Xeo
... sigh
 
int motivation() { return -1; }
 
user1804599
@TonyTheLion y u no set errno
 
Xeo
ERRNO_MOTIVATION
12
 
user1804599
1:53 PM
ENOMOT
 
mrm
I have an iterator based on boost::iterator_facade. When I derefence it, I'd like to get a set of objects (or integers really). Should I be returning some container? A range? Something else? (I hope the question makes sense :-))
 
@rightføld EMO_NOT (i.e., no, I do not cut myself).
 
user1804599
boost::iterator_feces
 
@JerryCoffin dat pun
 
user1804599
@mrm std::set<int>?
 
1:55 PM
Fuck. Qt Creator segfaults
aaaaarrgh
 
mrm
@rightføld It doesn't have to be ordered, so std::vector<int> maybe. But I was wondering if something like this is done in the standard or boost so that I could draw some inspiration... but couldn't think of it.
 
user1804599
> It doesn't have to be ordered, so <insert ordered container> maybe.
 
user1804599
std::unordered_set<int> :V
 
mrm
Well, maybe I'll just go with a container then
 

« first day (1486 days earlier)      last day (3465 days later) »