« first day (1505 days earlier)      last day (3447 days later) » 

9:00 PM
so
guess I'm reinventing boost::signals2 then
 
So Robot
How are you feeling?
 
Ell
@Puppy you sure? o.O
 
@Ell The quote pretty heavily implies it.
 
Also is const char *pchString hungarian notation?
 
yes.
 
9:02 PM
okay
 
@Rapptz yes
 
Xeo
it's the bad version of it, ye
 
I was trying to think what pch stood for
guess it just means pointer to char
 
@Rapptz pre-compiled header ;)
 
I don't remember what h is in that context, but it's something.
 
9:04 PM
@Ell you might want to drop into the Haskell room and read the latest conversation sometime :P ()
 
@Rapptz const char *pszString;
 
Ell
@Puppy what types of stuff do you need to store? this compiles and works coliru.stacked-crooked.com/a/b28ac0f3e1c22070
 
well that seems pretty "arbitrary function object" to me.
 
This should be fucking interesting.
And no, that's not an X Files clip ;)
 
I'm looking at the docs and it seems like they only do the comparison thing if you don't use the other disconnection methods.
hmmm and it's header-only, win.
trying to decide how to handle two-phase analysis of functions in Wide.
 
Xeo
9:11 PM
> implicitly
maybe there's also an explicit method?
 
right, well
every statement has the same meaning for all instantiations, so they're simple.
but not sure how to handle expressions so that some expressions can be real expressions and others are deferred until instantiation time.
 
user1804599
Biters chasing me in my car is fun.
 
so the expression needs to be either an expression or a function taking a function returning an expression.
 
9:26 PM
Oh Mysticial.
Critique please.
(also if anyone has a better monitor, please tell :v)
 
Man, now everyone has a better machine than me...
btw, you can get 3TB drives for under $100.
 
WD Blue/Black quality though?
 
@Rapptz yes. Dell.
 
and there are much better monitors - I have one of these, but its a little out of your price range: lg.com/uk/monitors/lg-34UM95
 
I've seen the WD red NAS ones go < $100. I'd assume they are even better.
 
9:29 PM
They have new version of u2412m with thin bezels
they're awsum
 
I don't want an expensive monitor.
 
Just 60-120Hz, <6ms response time, and like <$150
 
@Rapptz <$150? You can perhaps get a 17" in that price
 
9:31 PM
@Jonathan $265 US
 
go on amazon and search for 23" monitor
 
I'm prolly gonna buy on Newegg
 
@Rapptz you can get u2412m for ~$240 and I can tell you it's really good
 
cause they're cheaper and have all my items
 
why <6ms response time?
 
9:31 PM
it's 16:10.
if you want 16:9 there's U2414H
 
asus usually make decent kit
and the spec looks good for the price
 
How is 17" for <$150 when the one I linked was 23" and $140?
 
@BartekBanachewicz At first glance I thought "Where the fuck did Bartek go?"
 
@Jonathan Yeah they make decent budget monitors.
 
@R.MartinhoFernandes what
 
9:33 PM
@rappt
lol
 
@R.MartinhoFernandes what?
 
stupid chat :P
 
@Rapptz A couple things: The PSU looks a bit weak. It still should be okay, but I don't know how much that video card will pull. I can't say much about the overclocking potential of the motherboard.
 
@BartekBanachewicz It's 22:35.
 
@R.MartinhoFernandes lol
 
9:33 PM
oic
 
@Rapptz Dunno, maybe because you actually have to pay for quality
 
I thought we've been over this whole "more expensive = better" thing before
 
If you get a cheap screen be prepared to throw away its stand at once for example
 
@Rapptz yeah, they always have - Used to be an engineer in a custom build shop, most people went for asus things - though that was a few (5) years ago now
 
@Rapptz it's not like I have the most expensive screens on the planet either
 
Ell
9:34 PM
I have an AOC something or other
 
fwiw I've had Asus monitors before and they were fine.
 
my screen was a fortune :| but its awesome and has thunderbolt, so plugs into my macbook with a single cable :D
 
What matters in a screen is that it's IPS (yours has that so it's not absurd) and has a good stand
 
much better than 2 screens next to each other
 
if you want to replace stands with your own, then you can save a bit on that certainly
 
9:36 PM
tbh I still fear IPS screens being slow but I'm pretty sure it's not
@Mysticial Yeah thanks. I was worrying about PSU and I wasn't sure if I should go with 750W or 600W.
 
the asus one linked to has a vesa mount so you can replace the stand or wall mount it
 
@Rapptz Still, not burning your eyes out with shitty colours and having reasonable viewing angles wins
@Jonathan yes, but that adds to the price. Hence why I've mentioned it
 
lol, viewing angles.
Come on.
 
@Rapptz if you are worried, go with the bigger one - nothing worse than building a rigg and putting in a psu and it doesnt have enough power for the gfx card :\
 
yeah I don't really tilt my screen lol.
 
9:37 PM
then having to buy the bigger one any way
 
to each their own, I suppose.
 
@Jonathan Yeah I try not to cheap out with the PSU.
 
My GF bought the screen I chose for her and she's been extremely pleased by it.
 
Does she use it sideways?
 
9:38 PM
My flatmate bought a screen he picked and he's been complaining about it constantly.
 
lol @BartekBanachewicz
 
My other friend bought one of my models and one of my GFs and he's been extremely pleased with them too.
 
I bought six screens I picked and I've been extremely pleased by it.
 
Maybe I'm anecdotal, but I kinda see a pattern here.
 
I'm still winning 6:4.
 
9:40 PM
@R.MartinhoFernandes they're really one model.
I was talking about 1 cheap LG and two middle-priced Dells
 
@BartekBanachewicz It's six units of the same model, and I'm pleased with all six units!
None has failed yet.
 
@R.MartinhoFernandes heh
 
What monitor did you get Robot?
 
he's got a Samsung
but they're mounted on a dedicated stand in 3x2 array
 
I've never had a problem with stands.
 
9:42 PM
pivot is supercool imho
 
@Rapptz newegg.com/Product/…-24-001-430--Product
Fuck chat.
 
I just went and checked
 
I really got used to having 2nd one vertically
it feels very natural and takes less space
 
I have to use a pile of net magazines at work to prop up my second screen to the same height as the other :\
 
@R.MartinhoFernandes Aw it's sold out.
 
9:43 PM
Yeah.
 
I'm going to turn them both vertically when I buy a bigger middle one
prolly a 32", not sure yet
Certainly sRGB and certainly 4K, so it's going to cost more or less a price of a nice used car from 2000
 
@Rapptz lol found one on Amazon for $4666.
 
but having spent (back then) a huge part of my PC cost on my screens, I don't regret it at all
 
Maybe I can put my array for sale for $25000.
 
9:46 PM
man fuck MIR
I hate mail in rebates so much
always gets my hopes up when I see a cheap price :(
okay I switched 600W PSU to 750W
 
eh, U2415 goes for $320
That's still pretty expensive considering it's not really that big of an upgrade over u2412m
but those thin bezels are soo sexy
or, even better, UP3214Q :3....
> 31.5"
> 99% AdobeRGB and 100% sRGB
> 3840x2160
 
user1804599
 
@rightføld LOL a battery of speakers playing right into your fucking ear. Your brain would disintegrate and run down your nose:)
 
@rightføld wut
 
user1804599
I should go to festival/concert again.
 
user1804599
9:57 PM
It's the most fun thing ever.
 
I'm not sure I should wait for Cyber Monday. Last year was disappointing and I'm pretty sure it'll be disappointing this year too.
Just a bunch of useless shit on sale usually.
 
user1804599
what is Cyber Monday?
 
Cyber Monday is a marketing term for the Monday after the Thanksgiving holiday in the United States. The term "Cyber Monday" was created by marketing companies to persuade people to shop online. The term made its debut on November 28, 2005, in a Shop.org press release entitled "'Cyber Monday Quickly Becoming One of the Biggest Online Shopping Days of the Year". According to the Shop.org/Bizrate Research 2005 eHoliday Mood Study, "77 percent of online retailers said that their sales increased substantially on the Monday after Thanksgiving, a trend that is driving serious online discounts and...
 
user1804599
beh shopping
 
user1804599
Tipping is so weird.
 
user1804599
10:09 PM
The only purpose I see is making it a habit so that you can not give a tip when the waiter in question was an asshole.
 
In Portugal you would complain when that happens, and tip when the waiter is really good.
 
user1804599
Same here.
 
> U.S. employers have been cracking down on employees using company equipment and company time for non-work-related purposes, including Cyber Monday. As of November 2011, 22% of employers had fired an employee for using the Internet for non-work related activity; 7% of human resource managers surveyed had fired an employee for holiday shopping; and 54% of employers were blocking employees from accessing certain websites.[17][18]
 
user1804599
If I had a billion dollars I'd tip $10k just for fun.
 
Ell
I tip when I have exceptional service
If I had a company I'd have the office open 24 hours
And wouldn't require any particular times to work
 
10:15 PM
People love night shifts
 
@rightføld Jesus, not even the people inside here are rational, where do I have to look
 
user1804599
Jesus is dead. Talking to him is a stupid idea.
 
@rightføld ... I hope the first sentence is a joke
(If we're going after the internal logic of the bible)
(If not, it doesn't matter)
(It probably doesn't either way)
 
Raspberry Pis are so good
 
@rightføld Lots of them are, but lots of them are alive, too.
 
10:23 PM
@Rapptz lol
 
@Columbo Sorry to break it to you...
but it's not a joke
 
user1804599
Cyber Monkey
 
George Clooney
 
Peder Pedersen
 
user1804599
10:40 PM
Francis Rammeloo
 
user1804599
pope
 
Kaido
Can't wait to see him
 
I see myself doing this:
static_cast<some_enum>(static_cast<int>(other_enum))
Can I just cast one enum to another without going through the underlying type?
 
Write a re-usable template
@Rapptz No, IIRC
 
10:42 PM
You can implement operators for enum. Not sure if operator= is possible.
 
@StackedCrooked lol
Are you serious?
:3
 
@StackedCrooked operator= has to be a member.
 
@Rapptz ... and that has good reasons.
 
@Rapptz oh, of course
 
10:42 PM
@StackedCrooked :-)
 
But you can implement <, +, etc...
 
those can be free funcitons
 
I sometimes implement operator! for enums that have two states.
@Rapptz yeah
 
@Rapptz Well look at that!
N4296:
 
hi
 
10:44 PM
> A value of integral or enumeration type can be explicitly converted to a complete enumeration type. The value is unchanged if the original value is within the range of the enumeration values (7.2). Otherwise, the behavior is undefined.
N4296 ^
 
@theHacker Hi.
 
I think this deserves a FAQ Q/A, don't you guys think?
 
no
 
I am new to the chat. I have a question which is not really simple to answer... more like a discussion thing. Am I right here with this?
 
@Rapptz Ah, damn you Rapptz
 
10:46 PM
If it's interesting someone will answer it.
Otherwise it'll be ignored and people will be rude.
 
Anyway, that goes back to N3797 at least
So the answer is yes, you can, just by using a static_cast
 
cool
 
Sometimes it still seems attractive to emulate enum with a struct.
 
Actually there was a change in wording, and in C++11 and C++14, the Otherwise part is
> Otherwise, the resulting value is unspecified (and might not be in that range).
fwiw
 
Well, let's try and see. I am looking for resources for testing a c++ application. I got a really nice game in development. Now I want to start writing tests but I can't because the code is far from testable. All my service classes are in global scope and the all depend on each other. I was trying to look for dependency injection frameworks. Can anyone recommend a good blog article/website whatever with resources on this topic?
The last 5 years I did Java with Spring and JUnit. There is everything so easy. I am trying to gain a foothold now with C++
 
user1804599
10:54 PM
You don't need a DI framework.
 
user1804599
Passing arguments to constructors is already a language feature.
 
Oh you.
 
user1804599
What? vOv
 
Cool video.
 
That's a too simple answer. I never really thought of this.
Thank you :-)
 
user1804599
10:58 PM
Here is how you do DI in C++:
 
So eloquent for a 5 year old.
 
user1804599
class A { };
class B {
public:
    B(A& a_) : a(&a_) { }
private:
    A* a;
};
int main() {
    A a;
    B b(a);
    // use a and b
    return 0;
}
 
I tried wallaroo. It does essentially precisely that.
I think I was thinking to complex. The solution seems to be as easy as you posted
I'm sure I have a little refactoring coming to me so the constructors will not be getting 10+ parameters ^^
Again thanks for the idea :-)
 
I think I want to write a game
 
It's lots of work I can tell you
 
11:07 PM
@theHacker is it?
 
user1804599
That depends on the game.
 
user1804599
Text-based Tic-Tac-Toe is not a lot of work.
 
Hehe, yes, of course.
Does anyone know the game "lights off"?
 
well, I don't know what would that game be about
I don't.
 
So our professor told us that whoever solves the most problems on the website by the end of the semester gets +10 on his final exam. I didn't solve shit since the beginning of the year. This morning, I was last place. Now, it's 1:00 AM, and I'm close to first among 200 ;_;!
 
11:09 PM
give me an idea for a game
 
@BartekBanachewicz CORN PELTING
 
@MohammadAliBaydoun the hell
 
It's a 5x5 board with lights which can be on or off. By pressing them you toggle it and the adjacent lights. You have to turn all lights off to win.
 
@theHacker Yeah, that one is part of Gnome.
 
@BartekBanachewicz Pelt your enemies with corn
 
11:10 PM
God, wasted to much time with it.
 
I got this game as a child in form of a gameboy-like thing. But it was broken. So I programmed it again and again on different systems. First Amiga, then DOS, then windows.
It's kind of a apprentice piece now to program it :-)
 
@theHacker sounds fun
I'll do it
 
@BartekBanachewicz In Javascript, the best language on the planet
 
is the starting layout completely random?
 
@BartekBanachewicz No.
 
11:12 PM
@Columbo No, I won't do it in Javascript
 
Yeah with jQuery this is fun
 
@BartekBanachewicz pls y u no javascript
 
no, I won't do it with jQuery either.
 
user1804599
inb4 haskell and opengl
 
@BartekBanachewicz PHP?
Malbolge?
Java
 
user1804599
11:13 PM
I write my games in Befunge.
 
user1804599
I mean it.
 
@rightføld You are a lobster.
 
user1804599
Bartek do it in Befunge.
 
Lobsters don't write games.
 
In the original game I got as a child the levels were predefined. Every 5 levels you had to do one more click for an optimal solution.
 
11:14 PM
I'll write in Lua.
 
user1804599
:<
 
Use Love2D
 
Fuck, c'mon SO, a good question before midnight!
 
user1804599
Write it in Gear.
 
Yes, I'm going to use Love2D.
 
11:14 PM
Use Purescript
 
My Visual Basic implementation got a random mode and a solver
 
Use Java2K
 
user1804599
Modula-2.
 
user1804599
Or another Wirthian language.
 
Nice would be Prolog because the game is a mathematical thing if you think about it.
 
11:15 PM
anyone here familiar with Raspberry Pi? Does it have a bluetooth receiver?
 
@corvid: no, it doesn't. But you can plug a bluetooth doogle in the USB slot
 
You have to plug in an USB one
 
Bah, alright then. I'm assuming bluetooth is fairly easy to work with programmatically?
 
Ell
@corvid why?
 
11:18 PM
@Ell trying to make my raspberry pi do something on a paired device entering its range, and I suck at programming
 
Ell
No I mean why would you assume it was easy? :P
 
Cause it's all over the place and the flow of it always seems the same
 
@corvid have you thought about stopping to suck
 
I do, gotta pay the bills somehow...
 
I tend to suck between exhales.
 
11:21 PM
@Rapptz BTW, do you know about ZeroBrane?
 
user1804599
Coool Ideone supports Ada.
 
No
 
It's getting late here. I thank you for that nice chat and may be 'til next time
 
@Rapptz it's pretty cool and allows you to debug Love programs.
 
11:39 PM
löve?
 
@CaptainGiraffe yep. You get a direct remote shell.
 
Ell
Oh what was that opengl thing I need to read?
 
@BartekBanachewicz I have one but it's miiiiiiiiiiiiiiiiiiiiiiiiiiiine.
 

Instanced Rendering

3 hours ago, 41 minutes total – 114 messages, 2 users, 0 stars

Bookmarked 3 hours ago by Bartek Banachewicz

not really "need"
"might want to"
@R.MartinhoFernandes pff
 
Ell
@BartekBanachewicz ta
 
11:43 PM
@Ell excuse me?
 
He's saying "thanks".
 
Ell
^
:)
Woah
 
Ell
Robot, no sneaky editing like that :P
 
Ell
11:48 PM
@BartekBanachewicz "ta" means thanks
...in england? (English? Colloquial? Idk)
:wiki ta
 
@Ell oh ok
I've finished my game
hm, 34 minutes.
 
Ell
Meh. Its colloquial to england new Zealand Ireland and down under
 
Pretty long.
 
hmm
 
Ell
@BartekBanachewicz potato?
 
11:53 PM
perhaps instead of using a spreadsheet as a budget, I should use a real database.
 
@Ell no, the one I was given idea for today
44 mins ago, by theHacker
It's a 5x5 board with lights which can be on or off. By pressing them you toggle it and the adjacent lights. You have to turn all lights off to win.
 
If you want to reduce living costs then you should ask older people who know all the tricks.
 
all I'm saying is, when I add new columns in Excel, it seems like I spend half my time updating various formulae.
 
Ell
@BartekBanachewicz oh like sims makin magic gravestone game?
 
11:56 PM
I have a spreadsheet too for this on Google docs.
 
Ell
I never understood that or found out its real name
 
@Ell I've no idea what that is, so I'll say yes
 
Ell
@Puppy then you ain't doin it right
Do you use anchors?
 
I have no idea what those are.
 
Ell
Ie $1$A
Means that the referebce is to 1A even after you insert columns or do various stuff
 
user1804599
11:57 PM
dunno io.write, io:write or io/write.
 
@Puppy Well-designed Excel sheets are like PHP - you need a lot of $ in the right places.
 
Ell
Maybe that helps idk
 
> Facebook can gain direct access to your mobile and take pictures or make videos at any time, MPs warn
What is MPs?
 
Member of Parliament.
 
11:58 PM
so basically lawmaker.
 
@BartekBanachewicz In university I had an assignment that involved solving that with a linear programming solver.
 
user1804599
io.write it is.
 

« first day (1505 days earlier)      last day (3447 days later) »