« first day (2056 days earlier)      last day (3117 days later) » 

Ven
Ven
14:03
@LucDanton :[
hi @jaggedSpire
got any of 'em floofs?
user1804599
@Ven git gud @ dikes
Psst.
Has anyone here messed with constexpr arguments?
It's not a part of C++ or standard C++, but I'm looking for any discussion that might've gone into having, e.g.
constexpr int blah ( constexpr int arg0, constexpr int arg1 )
Basically, making constexpr a full citizen of the type system.
14:19
I'm almost sure that Ville's reaction would be "but that's just templates". :P
Yeah, problem is I can't go from f( 1 ); to f<1>(); without breaking all of my user's code.
I know.
@ThePhD could you give an example where it might be useful ?
"None of you can beat the macro unless you uglify the shit out of your code" isn't a very compelling note.
/cc @coincoin ^
Ven
Ven
14:22
@ThePhD Scala has singleton types
@coincoin overloading on literals!1
user1804599
omg signelton types
user1804599
TypeScript has those too! For literals only!
@coincoin It means I can get full type deduction rules, tag dispatching, etc. with functions and also be able to specialize and overload functions based on whether or not the values passed to it are constexpr. For my use case, I get to NOT store functors / functions / values into the FFI system and instead transport them at-compile-time through templates, reducing memory footprint and achieving speeds equal to macros without having to write macros.
Even if the user passes me what are essentially literals / constexpr computations, I have to assume that they're runtime arguments and thus subject them to the penalties of (stack-)allocation, memcpy, and other runtime transportation mechanisms.
but that's just templates
jk :)
user1804599
@ThePhD why do you want to?
14:25
@rightfold Clean interface.
@ThePhD Overload on 1_c instead :p
user1804599
You can't have that in C++, for C++ lacks a proper separation of interface from implementation. Unless you don't use templates i.e. you program in Java Without GC.
E.g., right now to use the template with what I want people to use it with (member functions), they need f<decltype(&damn::shit::fuck), &damn::shit::fuck>()
@Morwenn Can I UDL member functions?
&damn::shit::fuck_sol_call?
Lol that'd never work.
Probably not.
Shit.
This SORT OF gets fixed in C++17 (the bad syntax),
because template <auto X> got voted in, so I could do...
f<&damn::shit::fuck>(), which is less offensive, but still requires code rewriting.
user1804599
14:32
> Turkey sues German government for recognizing Armenian genocide
The Onion?
user1804599
kind of; Dutch equivalent
Ooh, what's it called?
user1804599
> Trump decides to act more like a president and starts war in Middle East.
Ven
Ven
14:35
@rightfold java has almost-templates! :P
Java has an abomination. :v
user1804599
Java generics are far superior to templates.
Ven
Ven
it has several
@ThePhD what's that gonna mean, in the end?
@rightfold let the use-site vs declaration-site variance fight begin!
user1804599
Abdomenation.
@Ven It means the type gets deduced.
Ven
Ven
14:36
@ThePhD so X is a value, not a type?
user1804599
@Ven Good point; I have to figure out variance in iron too
@Ven Yeah
It means the type gets deduced for a template value, which means you don't need to do the std::integral_constant thing for my_template<the_type, the_type_value>
Ven
Ven
i.e..
user1804599
It'll probably be declaration-side because CLR has that and it may make some conversions work better.
Ven
Ven
template<auto X>
auto f() {
  return []() { return X };
};
return f<3>();
:D
14:37
Yeh.
Also return f<some_function>()()( 1, 2 ,3 );
Ven
Ven
I can actually leave off the (), right?
just []{}
user1804599
Yeah.
user1804599
Unless you specify the return type explicitly.
Ven
Ven
alright.
user1804599
Arabic Idris has postfix operators
user1804599
Ven
Ven
LOL
user1804599
Should iron know about regexes?
Ven
Ven
if you want builtins related to them.
and you want to translate to host languages
user1804599
Should I?
Ven
Ven
should you?
user1804599
14:40
are there optimizations to be performed with them
user1804599
With simple regexes probably.
user1804599
/^a/ <=> .startsWith('a')
user1804599
also constant folding but the actual problem is that regexes are different in target languages
Ven
Ven
those sort of optimizations should most probably be left for the target language to do...
user1804599
boooooooooooooring
user1804599
15:05
cool, pressing volume-up and lock button at the same time doesn't lock
J.S
J.S
does anyone know if Google Rank business vetted SSL higher than domain vetted SSL’s?
user1804599
J.S
J.S
Thanks
15:20
@Borgleader
4
A: Blocked after being unblocked

ServyYou're asking why you were downvoted for posting a bad question? You were downvoted for posting a bad question. You should have posted a good question if you want it to be received well.

Ven
Ven
@Telkitty what's that?
@rightfold why WHITE?
a sheep pig
@Mysticial wowwwwwwwwwwwwwwwwww
either that or Mangalitsa pig
nwp
nwp
15:27
just need them to give off milk and lay eggs
probably do give off milk, but not sure about laying eggs ...
6 months for asking again? That's disgusting....since when the human being need all that time to learn such a simple thing,to ask a good question? — Nuser 20 mins ago
this is hilarious
Ven
Ven
15:55
evolve <- pretty nice
16:12
-1
Q: Is your about programming?

help abacWhat is your favorite PHP programming trick? [closed] 2

user1804599
@Ven I am not interested in CL at all
(look at the edit history)
Ven
Ven
@rightfold :[
> SELLLCVV.CO review as a Trusted Website, Legit Vendor - NOT Scammer, NOT RIpper ICQ#686858468. [email protected] - LEGIT website
4
lolllllllllllllllll
@Borgleader Even people who think something about PHP is cool must be smart enough to realize better (nearly) immediately. On that basis, I voted to close as "a problem that can no longer be reproduced".
16:25
@sbi Probably integers, but it's been too long, I can't remember exactly.
Ven
Ven
@JerryCoffin I believe mots PHP developers these days are bots. Bots might not know better.
@Ven Unless they also read Stack Overflow questions, they don't count.
Ven
Ven
They do read them – to scrape 'em.
@Ven Shouldn't you scrape from answers rather than questions?
Ven
Ven
@JerryCoffin How would you know what is it you're answering if you aren't scraping questions?
16:33
Here's my great bot. It can (and will!) reproduce any or all of 37,134 different bugs that have been posted to Stack Overflow.
@QPaysTaxes Because YAGNI.
Ven
Ven
@JerryCoffin I just prefer to generate random snippets of text and run it with the Perl interpreter :P
Hey guys, I'm confused why my while loop isn't breaking / stopping
Ven
Ven
@QPaysTaxes Nah, you just need std::reference_wrapper /s
I print the results of GetKeyState and gotFirstPoint and they both are true yet the if statement never gets called
@Nonlin Just taking a wild stab in the dark, I'd say: "because the conditions to get to the break statement aren't being met.
Ven
Ven
16:38
You should learn your precedence table :).
Right, but the conditions are true
Ven
Ven
it's gonna help a lot going forward :P.
I print them out to check them in real time
Ven
Ven
47 secs ago, by Ven
You should learn your precedence table :).
its really confusing. I know they are true i see the values, 0 and 1
Ven
Ven
16:39
I don't understand why you AND your key state with 0x100 == 0 && ... all the time.
@ven what do you mean exactly?
Ven
Ven
Read the table. Read your code. Think about parentheses in your conditions.
Profit.
@QPaysTaxes are you joking?
lol
thanks ven
user1804599
???
Ven
Ven
@QPaysTaxes cppreference.com
@Nonlin no problem :)
16:42
now on another note, is it possible to have alpha for a COLORREF?
@Ven I disagree. First of all, no table can ever represent C++ precedence entirely accurately. Second, unless it's extremely obvious (like A + B * C) it's better to use explicit parentheses.
when drawing a Rectangle
Ven
Ven
@QPaysTaxes You lost the moment you started considering the lounge is here to answer your questions.
If you can't type std::unique_ptr on cppreference, then click on "get", I feel sorry for you.
Lol, you can keep on insisting that I don't know. I'm supposed to care what you think about me? Sorry, I don't.
Please, if you're just going to be a help vampire that can't click on 2 links, get out. And if you feel entitled enough to say I'm "wasting your time" because I'm teaching you how to click links, there's no help I can provide.
@Nonlin Depends. There's a version of COLORREF for Windows "compact" that supports an alpha channel, but there are others that don't.
@je
16:49
reads about unique_ptr and reference_wrapper
@jerry coffin how can I tell which I'm using?
huh, if I used those more often, my code would be better. thanks @Ven
(alas, I'm not using C++11 so I guess reference_wrapper is kinda ootq)
@Nonlin The obvious approach would be to try using the RGBA macro. If that doesn't compile, you're apparently on something that doesn't support an alpha channel.
yea I tried the RGBA macro, no dice when using Rectangle
after setting DCPen and brush
I guess I can do NULL_BRUSH and just use the pen/outline
doing it that way the I can see each line as it draws it, any where to clear the rect or the DC?
any way*
17:14
@ellisbben reference_wrapper is C++98 tech.
Anyone know if any of these brands seem familiar / reliable? ^ they make backpacks
nope, nobody knows.
q_q
Guess I'm gonna have to do some looking into things to find out how good of a backpack these people make.
user1804599
@ThePHD huh, en.cppreference.com/w/cpp/utility/functional/reference_wrapper seems to say it's C++11? can that part of <functional> be backported to C++98?
no.
@ThePhD CaseLogic and Targus both look familiar. If I were going to pay for a backpack to (apparently) hold a laptop, I'd consider a Gregory. Somewhat expensive, but superb quality (or at least used to be--I haven't looked carefully recently). I'd be rather surprised if their quality had deteriorated much though.
user1804599
-1 not PostgreSQL
oh, right, std::tr1
Today was tiring. I was falling asleep at work.
oddly enough, exactly the opposite experience for me
I was unusually awake at work
17:31
A couple of decades ago I worked for a while in an outdoors store, and got to try out some of just about all the best backpacks on the market. Among the best you could get, Gregory still stuck out as substantially better than the second best. Just about the only times we saw them returned was not for defects, but from people expecting to do much tougher hikes than they were prepared for.
@Morwenn hangover
@orlp sshhh
@Morwenn ssh bby is ok
@JerryCoffin a couple decades ago I was sperm n eggs
@orlp I realized today that the piece of code youo shared was perfectly easy to understand.
Yet it seemed incredibly hard yesterday.
Lol, Coca going full 2 girls 1 cup in their latest ad.
Ven
Ven
@Morwenn hi <3
you remind me I should leave soon-ish
17:38
@Ven Why is that? :o
Ell
Ell
@ThePhD targus stands out to me
Ven
Ven
@Morwenn because I've been at work since 10am ;o)
@Morwenn (and because you basically say you're home now)
@ThePhD Targus Ive heard of.
(I may have one of their sleeves but I'm not sure)
@orlp Lucky you! :-)
17:44
@JerryCoffin yea best time of my life
:D
@orlp Most of life is good, but at my age, the aches and pains make it a lot harder to enjoy the good parts as much as I used to.
@JerryCoffin why do you have aches and pains
@orlp Primarily because I'm old and don't get enough exercise. There's also the catalog of old injuries that continue to haunt me to varying degrees (e.g., my right knee, after a couple of knee operations).
@JerryCoffin hrm, I better avoid that
how do I stay young?
@orlp Follow Ponce De Leon to the fountain of youth?
user1804599
17:51
@JerryCoffin ehhh too much effort - do they sell it in bottles?
@orlp Lots of bottles claim they return your lost youth. None, to my knowledge, succeeds to any great degree.
@JerryCoffin ah but there's the crux
I haven't lost my youth, and I want to keep it that way
finding lost things is pretty hard
but maybe I can bolt it down?
@orlp Actually, you have already lost a little of it--just little enough that you haven't noticed much loss yet.
user1804599
It's now also not Turing-complete, lol.
17:57
Gregory's quality is indeed legendary from all these reviews I've read.
Problem is, they're all hiking backpacks. @_@ I have no idea what that means in terms of size.
user1804599
Not sure I wanna keep it that way.
user1804599
Maybe I will add a primitive fix function.
Implementing server stuff is hard.
Its simple, you take your laptop to the store and find a bag in which it fits :)
also bring a bodyguard so you dont get mugged
(i.e. to protect your pretty mug)
@ThePhD Not really. There are probably smaller packs, but from the looks of things this is still a pretty small pack.
user1804599
> There would be no Rails without Ruby
user1804599
I.e. it would be better if there were no Ruby.
dat cargocult
@fredoverflow Is she cute? :P
user1804599
@fredoverflow Kotlin sucks because it has no higher-kinded types
Android people probably don't care about higher-kinded types.
Name your 3 favorite uses cases for higher-kinded types, please.
user1804599
18:08
Android people don't care about quality anyway because if they did they would avoid Android like the plague
user1804599
@fredoverflow functions that work on all monads
user1804599
@fredoverflow functions that work on all foldables
user1804599
@fredoverflow functions that work on all arrows
Those all sound very mathy.
user1804599
They sound code-reusey to me.
18:10
If you want "Java with mathes", Scala already exists.
user1804599
> work on all
user1804599
OMG SCALA <3
scalaz
shapeless
user1804599
Even SNEK has higher-kinded types :)
18:12
Wait, your github project has a readme? That's progress!
user1804599
It's abandoned. I'm working on something else now.
What are you working on now?
I'm coming here cause discord is dead at this time
Technically dead or socially dead?
user1804599
18:13
@fredoverflow Something like LLVM except for high-level targets
"Something like LLVM" sounds like it will keep you busy for years...
@TonyTheLion Hi Tony. Discord is always dead, because I'm not there.
user1804599
It can already do some constant folding and dead code elimination!
Does it have UB yet?
user1804599
Yeah.
18:14
awesome
@JerryCoffin Hi Jerry, how you been?
@TonyTheLion Pretty fair except the last couple of days--had some sort of allergy, apparently; felt like a cold, but (thankfully) cleared up pretty quickly.
@JerryCoffin oh alright
well I am going to Goa, India next week
RIP me
Hint: I don't feel like going
18:18
Why are you going?
Have to go to some wedding
Perfect place to listen to some trance.
Pretend it's a convention!
@Morwenn Hi
@fredoverflow lol
user1804599
@TonyTheLion Why are you going if you do not like it?
18:19
@rightfold Kind of obligated to
@TonyTheLion All the way to India for a wedding? Must be a really close (friend|relative).
@TonyTheLion We miss you a bit around here :(
@JerryCoffin Family yea
user1804599
@TonyTheLion Just tell them you CBA
@rightfold With family its not that easy, unfortunately
user1804599
18:20
I do it all the time
@TonyTheLion You've been living in GB long enough; I'm sure you can manage to say: "Get married in a civilized part of the world" with a straight face. :-)
4
@JerryCoffin :D :)
hahahaha
that genuinely made me laugh
user1804599
If they truly care about you, they don't want to make you feel bad.
I'll live I'm sure
I just felt like bitching
and Internet is good place to bitch
@TonyTheLion Mission Accomplished!
18:22
Thank you :)
I needed that
oh hey tony sup
@Puppy not much, you?
I feel validated now. I think I'll go home and got to bed before anybody ruins the rest of my day.
also not much
18:23
they're delivering my Dell XPS 13 laptop tomo
nice
means I won't have to lug around my 3KG monster while travelling
I got an XPS 15
Does XPS stand for Windows XP?
Dell laptop series
@Puppy are happy with it?
18:24
@rightfold I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror, and were suddenly silenced. I fear something terrible has happened.
Yellow Jackets are aggressive bastards
@fredoverflow eXtremely Primitive Dell (sorry, Dell is fully of such morons that the guy naming the product couldn't even type correctly, and missed the "D" key and hit "S" without noticing).
lol
Actually I'm surprisingly happy with their service, cause originally when I ordered it looked like the delivery wasn't going to be here in time for me to take with on my travels, so I emailed their customer service, and the lady actually expedited it so that it arrives tomo.
@TonyTheLion I'm glad to hear it (but you know me: never let facts get in the way of a good joke--or even a mediocre one).
yea
just wanted to throw that out there, nevertheless
18:29
@JerryCoffin Did rightfold abandon another project?
17 mins ago, by rightfold
It's abandoned. I'm working on something else now.
yep
Anyone know how to clear the screen or refresh it to remove any drawn shapes ?
system("cls");
Or create an instance of a Rectangle so I can delete it? Rectangle just seems to be a method.
isn't that for console only?
@TonyTheLion Yuppers.
18:32
I don't want to clear the console
I want to clear the entire screen
You didn't even specify what graphics library you're using.
my monitor
win32
Gdi32
1
Q: Erase window background win32API

RavenMy classmates started using Delphi with pascal but I as c++ porgrammer have to use win32 API. They were changing background color so I need to know this aswell but there are some differencies. In delphi each form looks like it has it's own instance, and setting background color for one window is...

18:33
That'll do, thanks
4
Q: How to "Clear" a WinAPI Transparent Window

Jake MI have created a Transparent Checkbox in Win32 C++. I have made it because as far as I know you cant have a transparent checkbox in native win32 and I need to use this checkbox in a NSIS installer. My Problem: When repainting, I don't know how to erase my transparent background so I can draw on ...

this is a console application
user1804599
> TIL most Japanese schools do not employ janitors or custodians. The Japanese education system believes that requiring students to clean the school themselves teaches respect, responsibility, and emphasizes equality.
user1804599
more education systems should do this
user1804599
DISCIPLINE
18:35
2 mins ago, by Nonlin
I don't want to clear the console
52 secs ago, by Nonlin
this is a console application
wat
HOW TO MAKE SENSE
7
This is a console application, that draws a rect on the screen
getRect();
cls clears the contents of a console
not the screen
is it getting you rekt?
18:36
yes
?
C++ does that to you
you should give up
and take up Botany
I still don't understand what it is that you want, and even if I did, I couldn't help you, because I don't know Win32.
I gave up Botany for C++
3
thanks fred
A bad mistake man
C++ has trees in the form of std::set and std::map.
Do trees even count as botany? If it's any consolation, C++ makes it easy to saw off the branch you're sitting on...
18:39
Trees are plants, so I would guess they come under botany
But you can't reuse the branch in another tree yet.
I think InvalidateRect should be what I need
user1804599
user1804599
Blue scrambled eggs.
user1804599
Ven
Ven
@rightfold ceylon might look fun, after its compiler is done crashing
user1804599
XD
user1804599
I should start a new article about Gray codes.
@Ven Ceylon has higher-kinded types? Never really looked into it.
user1804599
Macaroni, bread, sausage, and Doritos.
May 30 at 13:45, by Ramy
Someone know if exist a integer with this value? 0xe73ac1da
Ven
Ven
@fredoverflow you mean until she abandons it next month :P.
@fredoverflow yeah, ceylon has a lot of typelevel families. Sadly, most of them only work in the Js backend (last I looked)
user1804599
use Rhino and they work on the JVM too!
@Ven How come?
Ven
Ven
18:52
@fredoverflow don't ask me. Maybe they blame type erasure. Idk!
@rightfold ask rhino and you have 98.99999 problems

« first day (2056 days earlier)      last day (3117 days later) »