« first day (2142 days earlier)      last day (2709 days later) » 

10:00 PM
@ais523 I mean not explicitly do any alloc() calls
@ais523 does main count?
 
yes, main counts
 
Oh, if you're using string buffers you're allocating memory
 
explicit malloc is frowned on in C++, though; a) it's way too easy to get wrong, b) you should probably use new instead, which has better type discipline
 
I don't do any malloc calls, or new
 
Not sure if moving the stack pointer counts as allocating memory
 
10:01 PM
but even new is rarely used when you're doing high-level C++
@HWalters it does, it can even request memory from the OS sometimes
not the move itself, but the subsequent accessing of the memory
 
If you do C++ properly you can allocate a lot of memory without ever using new or alloc
 
lets be fair here: allocating memory isn't specific to c++ :P
 
many C implementations have a function alloca() specifically for moving the stack pointer, and it has alloc in its name for a reason
 
I was worried that was true IRL
 
(that said, alloca isn't in the C specification because nobody can figure out how to objectively define how it's meant to work, in a way that makes sense for all processor architectures…)
 
10:05 PM
C/C++ are the child of... international governments
 
ais523 There's difficulty squeezing in coprocessing due to the way stacks typically work
(Though that's been done)
 
Python is the child of PSF
Rust is the child of Google
C/C++ is the child of international governments
 
incidentally, when C finally added VLAs, which were the alloca replacement
 
VLA is just vector in c
 
cheddar is the child of a goat
 
10:06 PM
the standard explicitly indicated that they aren't actually guaranteed to function as expected (i.e. it's possible for them to leak memory)
 
@noɥʇʎPʎzɐɹC Nonsense... C++ is the child of a small group of conspirators trying to follow a charter
And C is just a 50 year old research project
 
@HWalters ...of THE GOVERNMENT!
 
Nah, you want something organized by international governments, look at something like CORBA
Something designed by a single government... Ada
 
@noɥʇʎPʎzɐɹC ... what? Rust has nothing to do with Google.
 
@Doorknob *go
Python is the child of an underground mafia called the Python Software Foundation.
Jelly is the child of an evil hive mind known as the "Challenges on PPCG". Also known as Dennis
 
10:12 PM
Python is the product of the eponymous fan club
 
Java is the child of a evil megacorp. OpenJDK is just a facade for a way to look open. It's owned by Oracle, Inc.
 
OpenJDK is open to anyone willing to prove to Oracle that they are worthy
4
 
JavaScript is the less mature version of EMCAScript.
And technically, an evil megacorp owns the trademark
EMCAScript is a specification by the European Computer Manufacturers Association. A f--king hardware working group!
 
@noɥʇʎPʎzɐɹC how did the M and the C get switched around?
 
10:18 PM
NUXI
@ConorO'Brien You're reading it with the wrong endianness
5
 
@ConorO'Brien oops, typo'd
 
@HWalters XD
 
> Sun Microsystems,
Ecma International
wtf
 
@noɥʇʎPʎzɐɹC it still says EMCA
 
@Downgoat cannot edit
 
10:21 PM
:(
 
@Downgoat y u no put yuo site inna cheddar?? /s
 
English please :P
 
I fixed the grammar of a famous quote: All your base are of the belongings to us.
Java speaks british english.
The property belongness of all the bases of which you are having ownership is to us - not including the bases without a property of belongness, sir.
eval in English: I hereby command you to perform the action encoded by the english string henceforth after these words, until the delimiter period is found.
 
@Downgoat do you have a second to help me write some JS?
 
sure
 
10:36 PM
Java transpiled to english: Perform the action known to much of the english-speaking world as "addition", with the arguments of "54" and "47"; when interpreted in what is known to much of the english-speaking world as "decimal".
 
so I'm trying to make a class that extends the array datatype that functions precisely the same except errors on popping/slicing from an empty stack, e.g. new Stack().pop() errors
 
Javascript transpiled to english: yo, dawg, compuet fiftee-fore plsu fortay-sevun plz; don't forget to read the encyclopedia [translated: <script src='/jquery.min.js'/>]
 
RAPCAT?
 
@ConorO'Brien Can you not do class Stack extends Array { and then create a custom pop() method that errors if this.length === 0?
 
@ETHproductions yeah, but does splice use the pop method?
 
10:40 PM
I don't know internally, but it wouldn't be too hard to implement your own splice I believe.
 
I gave up trying to implement my own splice bc idk what went wrong
 
Slowly clawing my way into SO:
0
A: Powershell online interpreter?

DennisDisclaimer: I am the owner of Try It Online. TIO Nexus has a Powershell interpreter as of a few days ago. It uses Powershell v6.0.0-alpha.13, which is the latest release of Powershell for Linux. I've re-enabled these aliases – which conflict with native GNU core utilities with the same name – t...

 
@Dennis well you do have like 16x more rep than I there
 
@ConorO'Brien I'm actually not sure how to overwrite the pop method without calling this.pop(), which I think would cause infinite recursion. Have you figured out how to do that?
 
@ConorO'Brien not if JS does proper OO which I think it does
 
10:44 PM
@Dennis Shouldn't you call this a claimer instead of a disclaimer?
 
@ETHproductions super.pop()
@Downgoat drat
 
Ooohhh, I totally forgot about super
 
Also don't forget duper
 
I have not used classes nearly enough to call myself an advanced ES6 user :P
 
@Downgoat "JS" and (see next sentence). "proper OO" do not fit in the same sentence
 
10:46 PM
:(
 
@TuxCopter sure they do, you've seen two examples of them, one provided so kindly by yourself ;)
 
Oh wait
 
What is "proper OO" again?
 
Fixed
 
@TuxCopter now you have bad grammar
 
10:47 PM
Q_Q
fixed
 
<singular object> do...
 
@ConorO'Brien Right, I meant wrt to TIO.
 
ok I have started to make embedded version of cheddar in C++
 
@Dennis oh. 10/10
 
@Downgoat :O
 
10:48 PM
it'll use v8 JIT engine but avoid babel/node overheads
so kinda sorta compile to JS (not node)
 
So you just make a lightweight wrapper around v8 to run Cheddar?
 
You could just copy minxomat and make everything a JS/C++ polyglot
 
that's a totally great idea
 
@ETHproductions how
 
@flawr I'm... actually not sure. Disclaimer doesn't really fit if you go by the definition, although I've never heard claimer before and I'm 40% sure that was a joke.
 
10:50 PM
Bonus points if it's its own makefile
@Downgoat embedded for what types of platforms?
 
@HWalters Bonus points for correct use of "it's its"
 
@Dennis 40%, not bad:)
@Dennis I always understood a disclaimer as a way of denying any involvement with something.
 
@TuxCopter I recall minxomat explaining that this is a C++/JS polyglot (or maybe C/JS or C#/JS), but I'm not sure
 
So claimer would the only logical thing to say in your case=)
 
@HWalters lemme get list
 
10:54 PM
@flawr Full disclosure?
 
@ETHproductions Definitively not a polyglot
 
arm ia32 mips ppc s390 x64 x86/x87
 
Something related to turbo.js was a polyglot
I'll find it, give me a minute...
 
@Dennis Yes that is perhaps used more frequently than claimer ^^
 
@Dennis that's a perfect phrase, go with that
 
10:56 PM
ppc being ppc64 right?
 
6
A: What are the five most powerful characters in your language?

XanderhallJava 8, 2 numbers n->01 // returns 1 n->10 // returns 10 Weren't expecting a Java answer, were you? This is a lambda that can only be arranged one of two ways (and with any two different digits!) for a total of two unique numbers. Everything else isn't a valid lambda. An even worse soluti...

 
@DJMcMayhem Went with it. Had to fix a typo (Powershelll) anyway.
 
lol
 
Yay, my first Necromancer on SO.
 
@TuxCopter Nevermind, the repo it was in got deleted
 
10:59 PM
?
 
Huh what
 
Source: TNB starting here
 
It's here now if you want to take a look: gist.github.com/turbo/4d9cc2ccde7517370f655b698aea22ec
 
bah, I misvoted, and now its locked in
 
11:01 PM
@NathanMerrill Should be SEs new slogan
 
@mınxomaτ Oh, cool :-) @TuxCopter That was the file I was talking about.
 
kk
This looks like hard black magic
 
It's four LOCs to switch between C++ and JS.
The very last line is significant, too.
 
LOL, this is one of those legendary places where removing a seemingly useless comment borks the whole file
Same with the /* JavaScript */ at the top
 
my brain is uberbork
Does this have to do with comment nesting?
 
11:04 PM
Yes
 
kk
 
The #ifdef was just to grey out the JS part in my C++ editor.
 
JS sees the first line as a comment, the second as the start of a block comment, and the third as ... JavaScript */, so removing that comment would comment out the entirety of the code [citation-needed]
 
Oh, well, that's a trivial polyglot
 
@ETHproductions It also wouldn't close the C++ commented source in JS if the last line was missing.
 
11:07 PM
Ah, yes. Very sneaky, that would do well in an challenge
 
11:18 PM
hooray! another one of my comics got put on SROMG!
 
You make comics?
 
@ETHproductions Not golfed, but I've managed a factorial program in Cubix: .....@..OI:\..;......*s>(!/ (3x3 cube)
 
@TuxCopter yes
 
linky
 
well, I'll post original comic, then my comic
original
new:
 
11:24 PM
rly
 
Well, so you didn't actually make it.
 
then can anything be considered made?
 
0
Q: Evaluate the Binomial Coefficient

flawrGiven two nonnegative integers n,k such that 0 <= k <= n, return the binomial coefficient c(n,k) := (n!) / (k! * (n-k)!) Test cases: Most languages will probably have a built in function. c(n,0) = c(n,n) = 1 for all n c(n,1) = c(n,n-1) = n for all n c(5,3) = 10 c(13,5) = 1287

 
AFAIK that's called citing in Art, at least in Germany (Bildzitat).
 
11:29 PM
'night
 
This comic is one of my favourites for some reason
> The author writes:

That Garfield sure is mean!
 
@ais523 You've probably figured it out already by Martin's comment, but yes the blank line affects Retina only, to offset the substitution stages
 
int
a = 1;
Sets a to 1 in Python and C++. (original)
 
@Flp.Tkc Nice! I have a golfed version somewhere, I think it's 10 or 12 bytes
 
It's 12 AM in Germany, @mınxomaτ. How many litres of coffee this time?
Why is 12 AM a spike in activity for you? (according to the chart)
 
11:41 PM
Is it?
 
@mınxomaτ Click your username.
 
I guess it is then.
 
@mınxomaτ Do you do that to throw bots off of your true timezone?
 
Nope.
 
I could see you doing that.
 
11:43 PM
Huh. My activity spikes at 18:00 GMT
Which is 11 AM for me
 
@NathanMerrill I often have this brief moment when someone asks me "Did you make this?" where I consider clarifying that no, I did not make Javascript, or Chrome, or the computer, etc, but yes, I did write the code that does the thing.
 
@El'endiaStarman DO THE THING!
 
@noɥʇʎPʎzɐɹC I'm not Zhu Li!
 
I still can't believe we haven't had the binomial coefficient challenge before!
 
@mınxomaτ That was a serious question.
 
11:50 PM
@noɥʇʎPʎzɐɹC Maybe he just doesn't want to answer a personal question.
 
@El'endiaStarman Oops...
 
@El'endiaStarman You might find this interesting too: reddit.com/r/math/comments/5h8y7f/…
 

« first day (2142 days earlier)      last day (2709 days later) »