« first day (1945 days earlier)      last day (2996 days later) » 

10:01 AM
36
A: Dynamic memory allocation without brackets

Jerry CoffinI've been persuaded (blame Lounge<C++>) to post an answer that does (at least sort of) answer the question that was asked (how to write the code without brackets), even though it clearly misses the real point. ??=include <map> ??=include <string> ??=include <algorithm> ??=include <iostream> ??=i...

Moar Brokage!
 
@LucDanton That's digraphs, not trigraphs (which all start with ??).
 
@JerryCoffin oh right, I keep thinking the token is <:: (i.e. 3-long) when it’s <:
@Ven tell him the R in R"(hello??\)" stands for 'regex'
inb4 C++03 Boost.Regex
 
Ven
no, we're forbidden from using that. too slow.
we're actually removing regexes and replacing them with parsers because "regexes are too slow"
 
did you pass -Oregex3
 
Ven
10:11 AM
User: “std::accumulate() is generating such bloated code!” Me: “Your lambda is generating quadratic complexity string concatenations.”
STL <3
 
pit of blaming the tools
 
tools blaming tools
off to work now
 
1h more hour to veekend
 
@HubertApplebaum is your body ready
 
@HubertApplebaum 7 here :(
@LucDanton It needs an HN refill I guess
 
Ven
10:14 AM
Remember when optional garbage collection support was voted into C++11? Me neither.
5
 
10:35 AM
lol
top thread on reddit is about 1400 people americans losing their job to mexico
the revolted comments make me chuckle as reddit is usually very pro free market
IEEE 754 as usual here friends
 
Ell
@HubertApplebaum wat are you kidding me?
IME reddit is full of liberals socialists
 
hey @набиячлэвэлиь, your not still annoyed at me?
 
Ell
(in the modern use of the term)
 
see for yourself
 
reddit is full of <people I disagree with> and I hate them
 
10:37 AM
@Ell the modern use of the term is the same as it’s always been
 
Ell
@LucDanton I think we've had this discussion before and IIRC it depends on location
 
They're liberal until they get on the wrong side of liberalism
 
@Ell and it always means 'liberal'
 
Ell
happy? :V
 
anyway
>reddit
>consistency
 
10:39 AM
@HubertApplebaum free market until it bites them
 
Ven
> That's because this situation spotlights what happened in 2015 to billions -- yep, billions -- of people who were victims of virus-infected ads
shut the fuck up.
 
one letter away from aids
 
@Ell it’s like saying 'football in the modern sense'; they’re all different sports but it’s still football and 'football' always means 'a ball game played on foot', none is more 'modern' than the rest
 
> /v/voatsingles Anyone else out there getting tired of masturbating?
what am I reading
 
10:42 AM
@Ven Where did you get that from?
 
> Can you get the Bible as a .txt file?
 
guys, how would you approximate the number of atoms of oxygen in ambient room temperature?
something I've wanted to know.
 
@edition Perfect gazes law (+molar volume of a perfect gas), ~20% dioxygen
 
times 2 cus O2 and we’re counting Os apparently
 
10:44 AM
@LucDanton ok
 
you clise are forgetting co2
 
and CO yeah
 
oh, to be more specific, the approximate number of atoms in a cubic centimeter of air.
 
That's still the same calculus
 
except with smaller numbers
 
10:46 AM
He skipped physics day
 
@Ven What I remember is a ~35-page proposal with half a dozen or so new key words, lots of definitions about reachability and traceability, lots of new responsibilities, and in return a non-normative footnote saying something like: "quality implementations are expected to try to make as much memory available as possible."
 
𝖍𝖎 𝖌𝖚𝖞𝖘
 
:no_guns:
 
11:08 AM
historically, its interesting that sans became a more popular typeface over 'blackletter'.
 
I shall now resume das Nieblerungenlied
 
Hello.
 
hey this actually looks nice with Lucida Blackletter.
 
@ElimGarak how did you follow it without going at 100 km/h in the city?
 
Happy Birthday @Andy!
 
11:20 AM
simple, slow down to 200km/h and stop from time to time
 
@HubertApplebaum Merry Christmas to you too!
 
@AndyProwl have a joyous Easter
 
Why is this an error?
template<int N> double f() { return 3.14 * N; }
template<>int f<0>() { return 0; }
 
it's C++
 
Since it's my birthday, I guess you guys don't mind me taking some liberty
 
11:26 AM
It has been a while since I spammed you guys with pictures of my new tiny house :p
 
hm
why doesn't it expand here either
 
almost completed ... 99%
 
there you go
 
although I have been occupied with a few other things as well
 
@TelkittytheWebDeveloper The question is, how long will it be stuck on the 99 %. :)
 
11:29 AM
Hopefully ... less than 1 fortnight :p
 
@TelkittytheWebDeveloper Did you say it was for you to live in or for you to rent to tenants?
 
@orlp Because function templates specialization does everything except what you think it will do?
 
that's not very helpful :P
 
The general answer is: don't use function templates specialization :p
 
Ven
@orlp das a funktion
 
11:35 AM
new what-if is good
 
sup lounge
 
I'm so bored I might consider waiting for Godot.
 
@Morwenn wait no more, it's here godotengine.org/projects/godot-engine
 
@AlexM. You got me :(
 
i r3k7 u gud
 
11:48 AM
r3k7 m3 h4rd3r plz
 
do u wnat me 2 noscope 360 rekt u?
 
@Luc Re your post on SG8, isn't the problem with the first example just the fact that the constructor template is not itself constrained?
or is there a good reason for not having it constrained?
 
@AndyProwl imo the naive constraints to put there is convertibility of Other to Value
in which case I run into one scenario where those constraints didn’t help
 
I was expecting that convertibility constraint yes
 
@AndyProwl figuring out which constraint to put there would be distracting, this really is about special members
no matter what I don’t want a copy/move special member hijacked, esp. by a template of all things
 
11:52 AM
Time to coffee some more.
 
Do you guys know of e.g. a C++ API that uses std::future? :|
 
@AndyProwl even if you do constrain that constructor the fact remains that the copy constructor is not deleted when it should be, and that’s only confusing I think
 
I can't find any.
 
Kind of weird tbh
 
11:53 AM
srsly tho they used that song just for the NFS U nostalgia guys
which I'm ok with
 
Ven
@AlexM. r u gonna buy nekopara 2?
 
obviously
the moment it hits steam
 
Ven
r u gonna press P a lot?
 
what does P do?
 
@LucDanton but isn't that already happening? Robot had a blog post about it
 
11:55 AM
I need a new GPU for that nfs tho
not running it on max details is a waste
 
pitfalls of forwarding constructors IIRC
 
@AndyProwl it is, yes
I have a cover-my-ass "(usually)" in my post for that reason
 
oh, ok
 
@Ven aaah it's the shake shortcut
I just used my mouse for that
 
I'm pretty much in the right mood for some depressive suicidal black metal today.
 
11:56 AM
nah not doing it a lot tbh
I'm in for the pretty not the boob physics
 
Ven
@AlexM. oh.
 
I somewhat liked the new petting functionality but then it felt a bit decent but meh
 
Ven
i only watched nekopara vol1 through someone's stream
@AlexM. are you actually gonna buy the steam one, not the uncensored one?
 
Hi all
 
12:05 PM
@orlp :D
 
@wilx for rent ... to make things more complicated, the tenant in the other house wanted to move out too ASAP. I said okay for him to give 2 weeks instead of 3 weeks notice as required by the regulation. But now I have forked out nearly $400 on advertisement, he didn't want to move out any more. He's still in arrears for the rent and is charged $100 a week beneath the market level ...
 
Guise
 
make_unique should really be called emplace_unique
 
I need a bunch of Unicode characters
to make this identifier really hard to get at.
 
I am going on a hiking trip early next month, I have already paid for the trip and flight over, I need to sought things out before then ...
 
Xeo
12:14 PM
@LucDanton How many bikes do you have?!
 
an infinite number of bikes
 
@Xeo hey that’s not mine that’s the SC’s
 
@Morwenn high five o/
too slow o>
 
Now I need several gobbletygook characters.
... Guess I'm random.org
 
@Xeo why’d you blame me you monster
 
12:21 PM
I'm voting to close this question as off-topic because SO is not a code writing service, please show your efforts — EdChum 43 mins ago
 
sol.ƒ.?.??.(/¯? ? ?)/¯ ~ ???
Hot, kinky ASCII.
 
Ven
yay
0
Q: PHP laravel query database every 1 mintue

hossein ahmadiI want to query a mysql table in my project in every 1 minute. I used javascript setInterval method for timing and ajax for sending request and receives output as html. but there is many problems with it: 1- whole website goes very slow. 2- with this I can't query something else from database. my...

this is so fun.
 
@ThePhD :D
 
@Borgleader Where have you been.
 
Guys and gals, have you ever seen any code using posix_trace_event()?
 
12:26 PM
I've been awake with nobody to serenade with puns. :<
 
Ven
what's the min. reput to get your edits through without approval?
 
3,000.
 
hellew
 
Oh, also. I added another optimization into sol.
Now there's only one metatable for every single function type ever.
WINNER WINNER CHICK DINNER. \o/
@ScarletAmaranth AFTERNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON.
 
Ven
@ThePhD ty
 
12:30 PM
@Ven I have no idea if that's true I just said something.
 
@ThePhD so what you're trying to say is that now it's a good time to start using sol?
(we should maybe call sol SOL as people call Lua LUA)
 
Ven
@ThePhD it okie bby
 
@ScarletAmaranth I mean, it's always been a good time to use sol. But now it's getting even better.
 
@ThePhD the only problem is that I can't write Lua for shit ^^
 
If I can manage to finally get my life together I'm going to write a goddamn academic paper about sol and publish that sexy motherfucker.
 
12:31 PM
man I kinda wish the standard had this
 
And rub it in my Professors face.
 
@orlp What?
 
namespace std {
    template<class T>
    using _t = typename T::type;
}
err
ignore that last part :) (now edited out)
 
Ven
lol in my review queue history: "5 mins ago" previous one: "Jun 17 '14 at 20:32"
 
I wish type traits were type aliases and the name of the implementation was larger than the name of the trait.
Like std::decay_impl and std::decay for example.
 
user1804599
12:34 PM
Hello!
 
@Morwenn you mean std::decay_t?
 
@orlp Morwenn is saying they wish std::decay was std::decay_t.
 
@orlp I mean I wish our std::decay_t was named std::decay and our std::decay had a longer name.
 
Ah
Right
 
user1804599
> In the non-propositional case, all variables in a clause are implicitly universally quantified with scope the entire clause.
 
12:34 PM
And that the actual implementation was moved to some shitty name.
 
user1804599
sounds like Haskell
 
yay backwards compatability!
 
Yeah right.
 
Where that dirty mother fucker belongs.
 
Ven
have you fought about using the name "Soon™PHD"?
 
12:38 PM
@ThePhD In bed for about 7hrs, then I woke up, commuted for 2hrs and now im at work. Why?
 
@Borgleader Oh.
Right.
You're an adult now. :<
 
Xeo
> 2h commute
ow
 
Ven
2h commutes? I have 1.2hrs and already wanna kill myself... 4hrs spent commuting every day¿¿¿¿
 
@Ven 1h50min to be precise, 50 of which is in the train, which means i can do things like read books
(i used to work on my laptop but i busted the power plug and ive been too lazy to get it fixed)
 
Ven
12:43 PM
@Borgleader that's still 2 wasted hours in your day... at least it's all subway for me, so I can... kinda read (well, it's often too crowded)
 
but yeh, im looking for a place nearish work (i.e. <45min)
 
just teleport to work geez
is it that hard
 
is video conferencing part of incomplete teleporting? :p
 
Ven
yes.
 
Let's create a new C++ standard library by simply shamelessly stealing the best bits from libc++ and libstdc++.
 
12:51 PM
@Morwenn Kinky.
 
@Morwenn libstdc++ has best bits?
(Also licensing)
 
the leftmost one
 
Yeah, it would be GPL everywhere.
@CatPlusPlus I know that they have at least more specialized algorithms for std::deque.
 
Help me!
#define t(a,b,c)template<a>struct A b{using T=c(*)(c);};
t(int N,,typename A<N-1>::T)t(,<0>,int)
It's 98 bytes, I only need a couple more shaved off
it's for this:
2
Q: Make a long type signature

Michael KleinChallenge Find an expression, at most 100 bytes long, with the longest type signature. Rules Any statically typed language with type inference is allowed The type must be non-ambiguous, but otherwise may include types without defined instances. For example Num [a] and Eq [a] are allowed, even...

 
is []() -> decltype(auto) {} allowed in C++14?
 
12:58 PM
A<4>::T() already is a nullptr value of type int (*(*(*(*(*)(int (*(*(*(*)(int (*(*(*)(int (*(*)(int (*)(int)))(int)))(int (*)(int)))(int)))(int (*(*)(int (*)(int)))(int)))(int (*)(int)))(int)))(int (*(*(*)(int (*(*)(int (*)(int)))(int)))(int (*)(int)))(int)))(int (*(*)(int (*)(int)))(int)))(int (*)(int)))(int)
I can only imagine what A<9999>::T() will be
 
Not waste of time a tall
:no_bicycles:
 
I you use a function type instead of a function pointer one, will it decay as needed?
 
@Morwenn function time?
 
Sorry, typo.
 
@ThePhD I don't see how you can use that here :(
 
user1804599
12:59 PM
@orlp union instead of struct
 
@orlp Lambda syntax is [] () -> (return type) { /* body */ }
 
@MadameElyse nice! 97 bytes
@ThePhD I know
 
Was hoping that return type could be decltype(auto)
 
Yes, but even if that is the case, how does that help?
You need some sort of recursive type.
 
This isn't related to the codegolf.
 
1:00 PM
Oh...
 
pat pat
 
@Morwenn Can you elaborate though?
I still don't know what you mean with using a function type instead of function pointer.
 
Ven
@orlp int N,,?
 
@Ven to make b empty
This is what you get when you expand the macro:
template<int N>union A {using T=typename A<N-1>::T(*)(typename A<N-1>::T);};
template<>union A <0>{using T=int(*)(int);};
 
@orlp No matter, it doesn't work anyway.
 
Ven
1:02 PM
ah, kk :)
I need to learn more GolfScript and Pyth..
I'll make a repo with some cool stuff.
 
user1804599
Learn Mercury.
 
Ven
I know Prolog already
I'll learn mercury someday
these days, it's functional & golfing.
 
user1804599
Prolog is for untyped noobs.
 
user1804599
Mercury is free of side-effects.
 
user1804599
That's "functional" to many.
 
Ven
1:04 PM
"pure" doesn't equate "functional"...
neither does "functional" equate "pure"
 
user1804599
It does to many.
 
λ "pure" == "functional"
False
 
user1804599
Maybe it doesn't to you.
 
Ven
"functional" doesn't mean shite anyway.
only use it to annoy bartek.
2
Pyth has very interesting control structured, that are inside out. What they do depends on the function preceding. i.e. L will left-map using the previous function used.
 
user1804599
eww oracle
 
Ven
1:10 PM
> Thou art the sum of Tybalt and the sum of a happy day and a pony.
 
> mfw there's no remove_rvalue_reference
 
> How do I play against necromancers?
@HubertApplebaum it begins (choice quote: "Nothing seems to work")
 
@LucDanton: Hi
 
Ven
> JdjmjJm*kdSTST
multiplication tables in Pyth :D
 
@LucDanton: may I ask u 4 little more help?
 
Xeo
1:24 PM
This is help vampiring in the end state, isn't it?
 
Ven
Just how many indians ask questions on this website anyway :P
or why are they the one with the... avatars.
 
@LucDanton imperative == dysfunctional is true tho
 
@ScarletAmaranth how eerie
 
errors out for me
(clicking on orlp)
5
Q: What did it just happen to the profile pages?

Ionică BizăuGetting errors on all* the profile pages, on all the SE websites: I know you're fixing it, but I'm just curious what happened? *: well, I cannot reproduce it on stackexchange.com, maybe there are other exceptions, but something got fishy anyways.

 
1:43 PM
@Xeo idk why it took so long for me to plonk him, he only ever comes here when he has questions and pings at random, last time it was me
 
Ven
> VTVTp+*hNhHd)pb
another solution, but too long :[
 
@slaphappy Still no news but the dude was convinced for the raise (or at least faked it)
And in the end, if I accept the offer, I'll be able to do olympic weightlifting. That's a huge plus!
 
toast ^_^
 
@Ven yea
 
TOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOAAASSST
 
1:51 PM
I don't think the porn parts add anything of value tbh
 
Ven
@AlexM. you don't like the hentai part?
I have no idea what's in the porn parts so vOv
why is pyth's handling of folds bad :/
 
@Ven I wouldn't say that I don't but that can be searched for on demand later, I'd find it distracting when I'm in to enjoy the silly story and cute
fuck the police i.imgur.com/qqtd2eP.gif
 
Ven
@AlexM. fair 'nuff
 
lol first comment
> "Man arrested for everything"
 
@jaggedSpire o.O
 
Ven
1:57 PM
github.com/vendethiel/bdiscuss/pulls why the fuck did I try out this shit
 
@Borgleader I got a toaster yesterday after not having any toast for months and months
 
@Ven tr:wtf: is this dumb 'common changelog' shit
Not common, 'conventional'
 
@jaggedSpire oh, well enjoy then
 
@Borgleader ^_^ it's so warm and crunchy
 
man I wish I could go back when people made atari 2600 games
and show them this
 
2:08 PM
work time toodles
 
Ven
Code golfing is one of the few activity where you enjoy having the smallest one.
 
@jaggedSpire ttyl
 
Ven
> VTL*hNbjdyMT
 
2:24 PM
@jaggedSpire Toodle-oo.
 
Ven
@AlexM. they'd burn you for being a witch
 
2:37 PM
@Ven frankly, I really don't give many fucks those days
I mostly focus on designing furniture at my place
and on work stuff
 
user1804599
Can I combine git commit and git commit -m, i.e. open editor with predefined editable message?
 
user1804599
6
Q: How to provide a prepared git commit message?

VoYBy convention I create my story branches in git to include Jira issue ids in them, e.g. FOO-1001. I have a script to do that for me. Now, I have prepared another script that fetches the title of FOO-1001 from Jira API. I want to achieve that when I type: $ git commit My editor opens up prefill...

 
user1804599
Ah :)
 
@Morwenn I was gonna say something to Bjarne... I said it to you, but I forgot and I can't find it in the transcript. Do you remember?
 
13 hours ago, by ThePhD
@Morwenn Maybe I'm not seeing it, but they don't have any syntax for ignoring a value like std::tie, do they? (For the structured binding paper)
 
2:42 PM
@Borgleader <3 <3
 
Ven
@BartekBanachewicz I hope you get I'm just joking :P
 
@TonyTheLion Hey <3
 
@Borgleader Ah, right!
Geez, you're so good to me @Borgleader ♥
 
Just bang already
 
@ThePhD ♥
 
2:48 PM
@набиячлэвэлиь please watch your vocabulary we have children in the room thanks
@LucDanton 2 years ago I would never have believed this day would ever come
inb4 they are OP for 2 months and then nerfed back to ashes
can't risk having balance
 
Ven
The force isn't balanced, I sense a great disturbing.
 
company blocked imgur within the last hour
 
Ven
rektar log'ar
 
Grommash Hellscream?
 
yes you should not imguring while working
 
2:58 PM
my company already blocked 80% of the internet that my government blocked 20% of.
 
@Borgleader yea cmon
 
@KhaledKhnifer Did you consider moving out of said country?
 
@JohanLarsson next up: lounge
 
I had them unblock it
Was blocked before
 
lol
seriously?
 

« first day (1945 days earlier)      last day (2996 days later) »