« first day (1484 days earlier)      last day (3688 days later) » 

14:02
towards any particular thing?
Xeo
Xeo
for anything at all
probably just a chemical imbalance
ask your doctor for some drugs
lol
try alcohol
don't try alcohol.
Xeo
Xeo
Eh, friend's coming over today, so we'll prolly empty a bottle of mead again.
14:05
do you have a job?
Xeo
Xeo
(which is just 2 glasses per person)
I find that money motivates me a lot when nothing else is motivating
Xeo
Xeo
@AlexM. yes?
I've also been feeling unmotivated with coding at my job
Xeo
Xeo
I'm not motivated for anything, really.
14:06
maybe you're in love.
and you just don't know it yet.
Are you in love @Xeo?
Xeo
Xeo
Without any female close friends? I don't think so.
Maybe you should consider going on vacation!
Xeo
Xeo
no maniez for that, atm
14:09
He has to pay something off for his parents IIRC.
I found that often your job pays you just enough for you to be able to survive while working
Xeo
Xeo
@Columbo No, I dodged that bullet.
@Xeo Oh, really? Glad to hear that.
how?
Xeo
Xeo
@Mr.kbok Oh, I can survive just fine. I'm just spending a bit too much money on hobby stuff
and some expenses earlier this year ate my buffer
I actually set up YNAB to check where my money's actually going
14:11
I want pizza
YNAB?
oh, and expresschef.ro also accepts meal tickets as payment
good, good
I still have to go out to buy coke though >.>
ugh
I regularly think about how I should be blogging more
Xeo
Xeo
@Mr.kbok You Need A Budget, a budgeting programm.
Oh ok
I have a reporting app from my bank
Xeo
Xeo
14:15
that just says how much you've been spending, no?
No, it really does a lot of things
my budget manager is simple
buy a lot of canned food at the start of the month
pink: housing, yellow: food/everyday stuff, green: hobbies, blue: transportation
on a more serious note, I've been using Toshl on my mobiles a while back
it was nice if a bit useless, especially since my new budget manager
Stupid budget manager thinks meals at work is "leisure"
So yeah, blogging, I mean you write a long article that you think will be insightful and useful and you juste get a few comments correcting you with completely wrong facts
14:25
Some fucking spam number called me and woke me up and now I can't go back to sleep
Xeo
Xeo
@Mr.kbok Still, that "only" tells you how much you've been spending where, no?
user1804599
Irish accent is weird.
@Xeo More or less, why?
Xeo
Xeo
A budget manager is for planning ahead
I don't know about this YNAB thing
user1804599
14:33
Transducers look nice.
user1804599
If you compose map and filter and run the result on a collection it loops only once rather than twice.
user1804599
Or rather, creates one lazy sequence rather than two.
user1804599
Hey @BartekBanachewicz does LuaJIT support multithreading?
user1804599
Preferably without GIL i.e. writing the same memory location without synchronisation is UB.
I used to dislike onions as a kid but last time I made something using onions I started eating one raw wtf
user1804599
14:40
Onions are great.
user1804599
I should eat an onion.
Onions are great.
RIP Coliru
user1804599
into pieces.
s/pieces/chunks/
it's a piece of software after all
user1804599
RIC?
14:43
better
user1804599
I think I will write the semantic analysis step of my compiler as a logic program.
@rightføld I've always written them as illogical programs, but I guess logic would be an option too... :-)
people of the lounge
I need to come up with a name for my blog
kblog
what, no, I missed it
15:04
does anyone else think that having a girlfriend inhibits your programming abilities by 205% (more or less) ?
user1804599
No.
I have an array of command options to read from stdin: options = {"list", "print"} and a function readCommand(). In my main function I want to use readCommand() and decide which function (list(), print(), ...) to call. What should I return from readCommand() to make the decision in main?
Function pointer?
user1804599
Are the commands just single words?
user1804599
Can commands take parameters?
15:17
just single words
user1804599
enum class Command { List, Print, … };
Command readCommand() { … } // or throw exception if parse failed
user1804599
Then you can do switch (readCommand()) { case Command::List: …; break; case Command::Print: …; break; }.
That was, what I considered, too, but I do not know how to realize readCommand then: I use strstr(options[i], buffer) == options[i] to make it possible just to enter the first commands (there are no 2 commands having the same prefix), then I know which command was entered but how to map it to the enum?
user1804599
All commands share the same prefix that is the empty string. :P
Forget empty string for now, how to do the mapping?
user1804599
15:21
Just create some static std::map<std::string, Command> const commands{ {"list", Command::List}, {"print", Command::Print}, … }; and look it up in there.
user1804599
Not sure why you use strstr instead of std::string and == though.
Oh, I use C ...
user1804599
Yes. Can you help me all the same?
user1804599
No, I don't know C.
15:25
OK.
the pizza these guys make is great, but it pisses me off that it takes an hour or more for it to arrive
their take on it: "we're not a fast food restaurant"
on the website
AKK!
user1804599
@AlexM. Real craftsmen!
15:39
oh wow there are more examples of this
now that LRiO is gone, AKK is nemesis-less
the lounge is a place for AKKs to thrive in now
she's gone?
or just not here right now?
Xeo
Xeo
Yay!
even in the form of a LEGO game, Batman stuff is still pretty grim
Looks like a pre-rendered background for a late 90' adventure game ;)
dude, what is this, 4chan?
you can post links you know
that's a good price
That's the standard price for GTX 970 lol
really? let me check our stores
I did a $ -> RON conversion
yeaaah, it's $505 here
My condolences.
I know 70% of the price is because it says tiesto on them
but they look cool
these are even cooler but fuck, not even I am crazy enough to pay $150 for that tiestoshop.com/audiofly/in-ear-adagio-black.html
when sennheiser exists
Yeah I know the GTX 980 exists
but the price is way steeper for not much
@Rapptz I figured you must.
I think the 970 is the best performance for the price card in the market.
@Rapptz You're paying for bragging rights.
Fucking S-Bahn strike.
Hi.
16:22
Hi.
my pizza is here
yay
@Rapptz I don't quite like it
We’ve actually joked about that in the past with regards to optional values.
I see a paper from @FilipRoséen-refp that we shouldn't have explicit return.
it's okay
I'm not persuaded one way or the other.
16:32
That's my range-based for abuse!
Now 132% more official.
the rest of the papers have already been discussed or aren't worth discussing :p
Could std::atexit be used as a form of RAII?
@Rapptz planning to game or CUDA a bit?
Sanely I mean.
@MarcoA. former
@R.MartinhoFernandes I'm curious as to how exactly you calculated that percentage.
floating point error
16:37
@Rapptz You can’t have state, so it would be all global.
@Puppy a long history of machine learning
@LucDanton I'm wrapping one of them fancy Global_Init(); with a Global_Quit(); C APIs.
I’d use regular RAII for that.
that's what I'm doing but I don't like having a persistent useless object
nothing useless about it
16:39
useless as in it doesn't do anything else
I tend to name it underscore or whatever.
init _(...);
> The type Handler must satisfy the MoveConstructible requirements (C++ Std, [moveconstructible]) and be callable with the specified completion signature.
@R.MartinhoFernandes From what I presume to be Christopher’s Asio-for-C++ proposal.
user1804599
@Rapptz How are you going to call Global_Init() with std::atexit?
you call a function called init that calls Global_Init() then registers Global_Quit to std::atexit.
user1804599
Why is that not done implicitly?
user1804599
16:49
!
Do you mean why I don't call the global init internally?
user1804599
0
Q: Passing Pointers to Functions?

John. J. Adams#include <iostream> using namespace std; void swap (int *a, int *b) { int *k = a; a = b; b = k; } int main() { int alpha = 5; int beta = 34; swap (alpha,beta); cout << alpha << endl; cout << beta << endl; int *ab = new int(); *ab = 34; int *cd = ne...

user1804599
AHHAAHHA his call to swap
user1804599
This time I'm not gonna blame using namespace std; but rather lack of modules.
user1804599
So much wrongness in that thread.
17:11
-1
A: Passing Pointers to Functions?

Ali AmiriHere is working version of your code : #include <iostream> using namespace std; void swap (int *a, int *b) { int *k = a; a = b; b = k; } int main() { int alpha = 5; int beta = 34; swap (alpha,beta); cout << alpha << endl; cout << beta << endl; int *ab = n...

Gosh.
"Here, I made it worse."
Ell
Ell
Does swap swap the values of two variables?
I never used it
of course it does.
WTF else would it do.
Ell
Ell
Idk, swap something about references or pointers and that
no.
the C++ Committee may be chock full of utter morons
but in this particular aspect, they did not make a gigantic, horrendous, mind-bogglingly-stupid mistake.
There’s no mistake to be made, drama queen.
17:15
@R.MartinhoFernandes LOL swapping locals, then says it works. Riiiiight..
@CatPlusPlus 1) URLs are NOT irrelevant to programming languages. They are one of the most frequent resource programming languages use. Some languages even treat URLs as a first class object. In Go, while not first class, URLs are used for importing packages. 2) The dash-separated-string is quite common in several languages (the LISP family for one), and also in anxilliary languages used in programming, like CSS. What's a "minority" for you, it's the language others work day in and out. We're not all VB6 programmers. — foljs 10 hours ago
lol
user1804599
lol
cat the VB6 programmer
lol
comically missing the point
Hmmm 'URL myURL;' does not seem to compile :)
17:18
I KNOW TWO LANGUAGES THAT ALLOW THIS WOO
@cpx I do speak English, but I have never given a talk in English, if that's why you meant.
'var myURL:URL;' does not seem to compile either.
cpx
cpx
17:29
@FredOverflow I watched about one half of this lecture and tried to understand it just with the slides. I think I want to try to make that path finding puzzle.
Using the if statements, of course and keeping track of the information about available paths where I still can move to.
I never made any game before too.
user1804599
Hey uh.
user1804599
Is there any decent C++ library for reading binary formats?
user1804599
That has stuff like given a sequence of bytes and an endianness returns an integer.
not that I know of
17:38
would be fairly trivial to make though
user1804599
Right. Gonna do that and put it on GitHub.
Apparently, according to numerous sources, horse pussy is easy to please
17:53
wtf is that I don't even...
I will never understand this youtube.com/watch?v=4CPK5-edfDo
user1804599
auto x = read<std::uint32_t>("\u0000\u0000\u0000\u0001", byte_order::big_endian);
REQUIRE(x == 1);
user1804599
Great.
user1804599
Wait, can Boost.Spirit not do this?
the bear will know
user1804599
18:08
@sehe help
Ell
Ell
@rightføld make it a stream and make it able to read bits also
Or not a stream. An object or something idk
0
Q: Integral promotion/conversion: why should I care about the name of the resulting type?

Edgar BonetI have been trying to wrap my head around the C99 rules of integral promotion and usual arithmetic conversions of integral types. After burning a few neurons, I came out with a set of rules of my own, which are a lot simpler and yet, I believe, equivalent to the official ones: Simplified prom...

user1804599
Nah, I'll just use Boost.Spirit instead.
user1804599
It also handles stuff like unexpected input without UB.
user1804599
I want to parse Styx module files.
user1804599
18:10
So I can convert them to Lua. :3
Here's a reference, that makes it official ;) — Andreas Sep 21 '12 at 16:45
lol
user1804599
18:36
Boost.Spirit can be used with context-sensitive grammars, right?
user1804599
My grammar is ocntext-snesiitve. :v
@AlexM. Did you say... Pizza?!
18:52
I want pizza now.
holy fucknuggets
LoTV...
user1804599
What the fuck.
user1804599
I installed Lua and it can still not find lua.hpp.
@rightføld Did you put it in the right directory?
user1804599
It does not exist.
user1804599
18:58
And I cannot find any documentation on how to compile Lua as C++.
user1804599
Other than "See luaconf.h near LUAI_THROW/LUAI_TRY for a discussion of this."
user1804599
So I grep luaconf.h for THROW and it finds nothing.
Try reinstalling.
Sometimes installers don't warn about needing higher privileges.
user1804599
wat
Installers might not have permission to read/write to your hard drive.
19:01
@Nooble Not windows
user1804599
I used sudo make install.
user1804599
Of course it has permission to write to disk.
Nevermind then.
user1804599
And lua.org/manual/5.2/readme.html#install mentions C++ but not how to actually fucking compile as C++.
Well, I'm off to eat.
19:05
@rightføld How is that a criterion?
67
A: What is std::move()?

Scharronhttp://en.wikipedia.org/wiki/C%2B%2B11#Rvalue_references_and_move_constructors http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2027.html#Move_Semantics std::move() is the C++11 way to use move semantics It converts its argument to a type of rvalue (Type&&) To move objects It's a new ...

That is quite a shit answer for such a popular question.
the popularity of the questiona nd the quality of the answer have well been known to be orthogonaal
Do you eat soup or drink soup?
@Nooble Eat.
Most of the time soup isn't just consisting of fluids.
Hmm...
> It converts its argument to a type of rvalue (Type&&)
Just sad.
I would write something proper myself but since there already is an accepted answer...
that would be quite pointless.
Perhaps someone could ask a very similar question and explicitly state that he isn't satisfied with said answer :o)
19:19
@Columbo If I do this, it might get closed.
I might do it anyways.
user1804599
@Rapptz I cannot pass an rvalue sol::table to sol::state::set and sol::table::set. Is that by-design?
@Columbo Although if I do this it implies that I already know the answer to said question.
You want to see a shit answer? Here it is:
69
A: Why use pointers?

Tooony Why use pointers over normal variables? Short answer is: Don't. ;-) Pointers are to be used where you can't use anything else. It is either because the lack of appropriate functionality, missing data types or for pure perfomance. More below... When and where should I use pointers? Short ...

How did you receive an r-value sol::table?
user1804599
lua.create_table().
19:26
@Nooble Not quite.
But I think you might be right
What error do you get?
It would just get closed,.
@rightføld yes it can't not do that
@milleniumbug That is very bad.
user1804599
19:28
Lack of create_function also seems inconsistent, btw.
It's a shame how essential questions can get horrific answers.
Why would you create a function?
@Columbo And might get downvoted a lot too, especially considering my already low rep count.
Or well rather, how would you?
@rightføld It seems this is by design.
I'm not sure why though.
user1804599
Well, styx_runtime.set("create_function", lua.create_function([] { … })) or something like that.
19:29
@Nooble Do you think it could be of any use to provide a fourth answer to that question?
there's set_function for that though
it accepts lambdas/functions/functors etc
user1804599
Let's take a look at ICU.
@Columbo Well, if you believe it will help, then you should put it. You can even just make your own question and answer it yourself, I believe.
Hm?
@Nooble No, that is way to wankerish.
I don't think it'll help because it will most certainly stay the least upvoted one and will thus not be seen by people who check that question.
19:32
@Columbo It's been known to happen. Instant necromancer. Possible reversal
@rightføld Everything else accepts const T& but for some reason the one accepting reference bases (i.e. all built-in sol types) takes in T&. A quick look at it is because ref.push() used to be non-const but it is now. So theoretically you can change the signature to const T& and it'll work.
@sehe Possible reversal?
@sehe Out of curiosity, what does your name mean?
@Nooble sehe = Seismic heureca
Oh, wait
Eureka
I thought of the german term which starts with H.
@sehe Reversal!? Not in this case, so what do you mean?
@Columbo a different case, as you've noted
19:38
@sehe The chances are still minimal. But it couldn't hurt to add another answer...
user1804599
ok great it works
@rightføld Lua.hpp?
user1804599
Yes, as well as Sol and ICU.
@Mysticial: Damn--you beat me by 4 seconds.
lol
Actually, I'm no longer convinced that the majority of programmers even have degrees.
Especially the ones on SO.
19:45
@Mysticial I'm worried that they do, and are still so ignorant (or just careless) that they don't realize that x^N/N is going to diverge pretty quickly if x > 1.
@JerryCoffin Lol, what?
0
Q: C++ program which calculates ln for a given variable x without using any ready functions

Mis94I've searched for the equation which calculates the ln of a number x and found out that this equation is: and I've written this code to implement it: double ln = x-1 ; for(int i=2;i<=5;i++) { double tmp = 1 ; for(int j=1;j<=i;j++) tmp *= (x-1) ; if...

@Mysticial What makes you think this lol?
In case you wanted to see something mildly interesting: here's the flaming lips with miley cyrus doing a beatles cover.
19:49
now can it :)
@StackedCrooked Are you masochistically inclinced?
not much
1. A lot of people nowadays start programming at a young age. (before they have degrees)
2. Some of my colleagues don't even have degrees. (at Google)
3. You don't really need a degree to be able to program. Just look at this room. A bunch of us are still in school and *most* of us can do C++ to some level of competence.
user1804599
Yaaay segmentation fault.
@rightføld nice timing (just read item 3 in @Mysticial's list)
user1804599
19:51
Why?
user1804599
lol
@Mysticial I fit #1's description. Although #2 surprises me, Google takes in people without degrees?
And of course programmers are high in demand, and lot of people are trying to enter the field to make a living.
@Mysticial Who inside here is still in school?
@Columbo we are all in the school of life
19:52
@Columbo Me. I'm a freshman in high-school.
@Nooble 16?
@Columbo 14.
Did the puppy ever get his degree? If not, he's an excellent example of a competent programmer who doesn't have a degree.
user1804599
19:53
WTF
@Mysticial Whoa, whoa, whoa. Calm down
user1804599
ICU does not use exceptions.
@Columbo Second year of uni
user1804599
What a terrible piece of shit.
@milleniumbug School
Not education in general.
19:54
@Mysticial he didn't get a degree
@Mysticial That's because he takes meds.
@Mysticial I'm pretty sure he quit before getting his degree, yes. For that matter, I don't have any degree either.
@Nooble IOW, a degree is not a good indicator of programming ability.
@Nooble professional juggling fish
I don't have a degree
19:54
@JerryCoffin good lord
@StackedCrooked And you?
So how do you guys apply for jobs? How do you work on your portfolio?
@Columbo Isn't uni a kind of school?
I have a degree from an easy school..
@StackedCrooked excuse me while I rinse my mouth
19:56
I'm the lowest.
@sehe hehe
@JerryCoffin what do you mean, no degree? did you quit college after some years?
@TemplateRex I barely started college.
user1804599
@Rapptz does Sol treat std::vector<char> values specially?
> A school is an institution designed for the teaching of students (or "pupils") under the direction of teachers. […] An institution where higher education is taught, is commonly called a university college or university.
user1804599
Or just as userdata?
19:56
@JerryCoffin didn't you do some army stint?
@Nooble You have no idea what meds I take.
@JerryCoffin Yes, I didn't finish my third year.
@Puppy The good kind.
@TemplateRex Military anyway, yes.
@rightføld Containers with begin and end are turned into lua tables.
@Puppy How fabulous.
user1804599
19:57
@Rapptz oh ugh
user1804599
And std::tuple?
@JerryCoffin so where did you pick up some CS background? (as you obviously know that stuff)
Nothing that I'm aware of.
@rightføld I will probably break that in the future.
@Mysticial I'd say the main thing you gain from hiring somebody with a degree is at least some assurance that they won't have strange, gaping holes in their background.
Though the reason I added it is still pretty strong reasoning to me still. The reasoning is here.
19:59
@TemplateRex I mostly read books and wrote code. Then I read more books and wrote more code.

« first day (1484 days earlier)      last day (3688 days later) »