« first day (2722 days earlier)      last day (2127 days later) » 
00:00 - 23:0023:00 - 00:00

12:15 AM
@feersum Looks like the intent was to find a golfy ruby way, but the wording didn't mention golfy so technically it's off topic. If the author reads the latest comment they can edit if they want to, but I wouldn't feel comfortable editing based on an assumption
 
I do
 
Voted to reopen
 
@Pavel What does boost have that C++17 doesn't
 
12:45 AM
overloaded / :p
 
@Downgoat Python
(seriously the number one reason I use boost)
Oh, and I don't know exactly what C++ 17 has, but I don't think it has asio
 
Does boost have <variant>
 
Yes
 
@Downgoat As far as I can tell (please correct me if I'm wrong), boost::process's very simple io redirection.
Which is the reason I'm using boost
@Zacharý C++ std has variant
 
1:16 AM
@Downgoat In reply to this message @Pavel
 
 
2 hours later…
3:06 AM
@Pavel C++ is super safe. Just -D_GLIBCXX_DEBUG -fsanitize=undefined.
@DJMcMayhem If you get * and & wrong, it's usually compiler error.
Actually the reason why C++ compiler gives a lot of template error is because it can't guess what you want.
 
3:20 AM
@feersum We should ask OP whether they intend to do that first, before actually edit it to be on-topic.
@trichoplax Same for me.
Although I don't feel like rollback it either.
Ok, I rolled back anyway. Somebody may want to lock it.
 
3:44 AM
@user202729 Why would you do that?
In the closed state there is no chance that the OP or the community gains any benefit from the question.
As a tips question there is.
 
Because we are not sure what OP intend.
 
Who cares?
 
If you want, you can (and should!) make another post.
 
Either they indent to ask a tips question or it is off topic.
Now that is even more rude.
 
I don't see how.
(OP may see 2 edit notification and get confused)
@feersum ("intend", not "indent")?
 
3:49 AM
I am quite pleased with this typo.
 
@ETHproductions Wrong URL in bounty notice... codegolf.stackexchange.com/questions/167863/…
 
4:16 AM
@Zacharý Can't D export global variable or something? regex Number = Number_()?
 
@user202729 It probably can, but I'm definitely fine with the way it is now!
 
Having to call a function to retrieve a constant value is weird.
It's a value, not a function, right.
 
Yeah, f() can be f. I memoized a function w/o parameters, which is definitely a bit hacky.
 
4:52 AM
0
A: Sandbox for Proposed Challenges

Luis felipe De jesus MunozReserved words and built in objects in song chorus As the title said, the challenge is to get find the song chorus with the most reserved words and built in objects using a single programing language. Can be any song that contains a chorus with 10+ different words. The score will be calculated...

 
 
1 hour later…
6:13 AM
Hey @JoKing
FizzBuzz
5
 
 
2 hours later…
8:20 AM
0
A: Sandbox for Proposed Challenges

BMOMaximal number of programming languages in 1KiB In this code-challenge your task is to write a program/function with a maximum of 1024 bytes, the goal is to interpret/compile as many programming languages as possible. Rules You're free to use any combination of inputs and outputs as you wish. ...

 
 
3 hours later…
11:47 AM
@primo God I was so confused about what you were pinging me for. I thought you were claiming the indefinite bounty I've placed on my bf fizzbuzzs. Congrats! (now beat my fibonnaci ;)
 
12:23 PM
@JoKing i don't think i'll be able to manage that
i might have a crack at the bf fizzbuzz though
 
 
2 hours later…
2:12 PM
@user202729 Noticed immediately after posting and smacked myself... Can't do anything about it, can I?
 
Try asking a mod?
 
2:24 PM
@ETHproductions If you like, I could cancel the bounty for you to give it again with the right URL
 
2:40 PM
CMC: Print the first N terms / the Nth term / the whole sequence indefinitely: 0, 1, 3, 6, 8, 9, 11, 14, 18, 21, 23, 26, 30, 35, 39, 42, 46, 51, 57, 62, 66, 71, 77, 84, 90, 95, 101, 108, 116, 123, 129, 136, 144, 153, 161, 168, 176, 185, 195, 204, 212, 221, 231, 242, 252, 261, 271, 282, 294, 305, 315, 326, 338, 351, 363, 374, 386, 399, 413, 426, 438, 451, 465, 480, 494, 507, 521, 536, ... (find the rule on your own)
 
Is there a question for converting a number to binary?
 
13
Q: Convert from base 10 to base 2 without built-in base conversions

TheDoctorBackground: You have been given an assignment to convert base 10 numbers to base 2 without using any premade base conversion functions. You can't use any imported libraries either. Problem: Convert an input string from base 10 (decimal) to base 2 (binary). You may not use any premade base ...

 
FIT THE POLYNOMIAL!
 
@Mr.Xcoder Thanks :)
 
Wow, macBook chargers get so hot you can fry eggs on them
 
2:51 PM
-1
Q: Perfect Squares below \$n\$

Agile_Eagle A perfect square is an integer that is the square of an integer; in other words, it is the product of some integer with itself. Calculate the number of perfect squares below a number \$n\$ where \$n\$ will be taken as an input Since this is a golfing challenge, the entry with least amou...

 
3:20 PM
0
A: Convert from base 10 to base 2 without built-in base conversions

Taylor ScottSmall Basic, 161 bytes A script that inputs from and outputs to the TextWindow console. n=TextWindow.ReadNumber() While n>0 c=c+1 x[c]=Math.Remainder(n,2) n=Math.Floor(n/2) EndWhile l=Array.GetItemCount(x) For i=0To l TextWindow.Write(x[l-i]) EndFor

Small Basic Sucks
 
0
A: Sandbox for Proposed Challenges

LaikoniArbitrary Length Hashing code-golf function hashing Consider you have a hash function \$\mathcal{H}\$ which takes strings of length \$2n\$ and returns strings of length \$n\$ and has the nice property that it is collision resistant, i.e. it is hard to find two different strings \$s \neq s'\$ wit...

 
3:45 PM
@gÓEûùIÿ Why do you hammer close and hammer reopen?
 
3:58 PM
@NewMainPosts Now this needs comment clear.
 
I was so confused who "gÓEûùIÿ" was; is this person some hidden golfing master that nobody knows about?
and then I realized
:o
 
@user202729 I accidentally voted to close it as a duplicate because I miss pressed a key but I disagree it is a duplicate, the other challenge is essentially the same core task has a bunch of arbitrary unclear restrictions attached to it. — gÓEûùIÿ 15 mins ago
 
@JoKing So what was it for, in the end?
Well I think I will look at primo's profile... Still no idea.
 
more readably x/5+[1,2,3,2,1][x%5]
 
4:21 PM
@Mr.Xcoder Haskell 31 bytes
 
Last call for comment before I go live:
5
A: Sandbox for Proposed Challenges

gÓEûùIÿExistential Golf Math has a lot of symbols. Some might say too many symbols. So lets do some math with pictures. Lets have a paper, which we will draw on. To start the paper is empty, we will say that is equivalent to \$\top\$ or \$\textit{true}\$. If we write other things on the paper they...

 
@gÓEûùIÿ Definitely not unclear. Still not try to solve it, so I'm not sure about the difficulty.
 
It took me about 8 minutes to find a solution. But I might not be the best measure of difficulty because I'm already familar with the system.
Have you tried the practice examples?
 
> ((A\to(B\to A))\to(((\neg C\to(D\to\neg E))\to((C\to(D\to F))\to((E\to D)\to(E\to F))))\to G)]\to(H\to G)
Why ]?
 
Ah good catch
 
4:29 PM
Also why don't you just use \$\LaTeX\$ instead of L<sup>a</sup>T<sub>e</sub>X ...
 
Oh yeah good point
 
Because we already have Latex, we don't need to simulate it with HTML. :P
 
do we have a straight XOR questions?
 
@user202729 Have you completed any of the examples? I want the challenge to be an appropriate difficulty.
 
@TaylorScott Obviously we have too few trivial challenges. (?)
 
4:34 PM
I've been working on getting a solution to the mona lisa problem in small basic and just making a XOR function is 310 bytes
 
so bleh
@user202729 the XOR table one will do - was just wondering if I missed one for literally do A XOR B
 
4:48 PM
@gÓEûùIÿ Now your username is as ugly as your avatar. Congrats :-P
7
 
That will be fixed tomorrow when I am allowed to update my username
 
Ah, I thought it was on purpose!
 
I'm out of the loop... what happened to your username?
 
It's gÓEûùIÿ now
 
I mean, why?
 
4:51 PM
Oh I changed my global SE name which overrides my PPCG name
 
Thanks for starting it with an ASCII g, at least
 
I think I have to.
Oh no you definitely don't
 
Otherwise, it would be difficult to ping
 
Wouldn't it autocomplete if you just put in @
 
You still need the first letter
 
4:55 PM
It's autocompleting Οurous for me with no letters.
 
Interesting... Does chat.SE have automatic autocomplete if the first letter is not a Latin letter?
Hmm
 
Yep
 
4
Q: Existential Golf

gÓEûùIÿMath has a lot of symbols. Some might say too many symbols. So lets do some math with pictures. Lets have a paper, which we will draw on. To start the paper is empty, we will say that is equivalent to \$\top\$ or \$\textit{true}\$. If we write other things on the paper they will also be true...

 
5:24 PM
off the top of your head, what are the most canonical or common uses of the scan, whether it be the raw scan of partial sequences, the sum scan, the * scan, or anything else?
 
5:35 PM
Small Basic is stupid
0
A: Produce an XOR table

Taylor ScottSmall Basic, 499 bytes A script that takes input from the TextWindow object and outputs to the same a=TextWindow.Read() For y=0To a For x=0To a n=x b() z1=z n=y b() l=Math.Max(Array.GetItemCount(z),Array.GetItemCount(z1)) o=0 For i=1To l If z1[i]<>z[i]And(z[i]=1Or z1[i]=1)Then z2=1 Else z2=0 ...

499 bytes for a XOR table
 
6:20 PM
Anyone know of a decent way to put a github flavor markdown code block into a table
everything i've seen sucks
 
Would help to know what you have seen so we don't redo what you already discarded :/
 
7:18 PM
0
Q: Draw a times table of a number \$n\$ with \$k\$ vertices

Agile_EagleNot to be confused with this question You need to draw a times table as shown in this video. The number \$n\$ and \$k\$ will be the inputs. In the video n and k are 2 and 10 respectively. You can use any graphing library that your language allows. Remember this is a code-golf so keep the ans...

 
7:33 PM
@mınxomaτ manually inserting html line breaks and using an html table instead of markdown are the main ones
i went with an html table for now
:\
 
8:05 PM
Hello!
I'm back
 
8:17 PM
@Mendeleev Hello! Has it been a year already?
 
Yeah
Note to self: don't rickroll people
(I know there was a lot more behind the suspension than that, it's just what triggered it)
Are people still using that "I Am Typing" userscript?
 
That no longer works
 
Ah, I thought it just failed for me :/
 
CMC (slightly harder than a usual CMC): Given an integer, check whether the lengths of the runs of equal adjacent digits follow a pattern of this kind: [a, b, a, b-1, a, b-2, ..., a, 1]. Example: Truthy: 12212, 355545525, 66777700777887797, Falsy: 123456789, 122232222332
 
@Mr.Xcoder Do you know why?
 
8:22 PM
Perhaps because a-ta.co is down too
or idk
 
Looking at the code, I think that it doesn't need a-ta.co
> $("#input").keyup(updateTyping);
 
I thought it used a-ta.co to store the state of what users were typing?
 
It doesn't seem to like the use of $, so SE may have changed something
 
maybe it needs to include jquery
 
8:25 PM
Nevermind, I'm blind:
> websocket = new WebSocket("wss://a-ta.co", "typing");
 
Anyway, neither does the CMC Widget and TIO CMC answer shortcut
 
Also does anyone know how to get the ppcg-design userscript configuration opened with the new top bar?
 
You can't
 
I don't think you can
 
Maybe some JS function i can trigger via the console
 
trying to remember the SE chat markdown subset
haven't used it in a year
 
@Mendeleev we don't expose anything globally and tampermonkey/etc disabled that
 
@Mendeleev Please use the Sandbox for that
 
@Mendeleev click help bottom right corner
 
8:28 PM
wow that's a lot of pings in like 3 seconds
@Mr.Xcoder i'm not going to test it here (except for that one tag)
 
ah shit is the config not showing with the new top bar
 
@AdmBorkBork Oddly, that doesn't include tag formatting
 
/shrug
 
¯\_(ツ)_/¯ ?
 
Can we not keep shrugging?
 
8:33 PM
My third truthy case should read 667777007778877997. PS: this is nice to solve in Jelly
 
I might as well give it a go :P Haven't used Jelly in a while
 
JHT is literally dying because of that :( :p
 
@Mr.Xcoder Can we take the input as a list of digits?
 
No Yes (I meant to say yes but for some reason I typed no)
 
@Mr.Xcoder I might come back to JHT. I'm bored to death over the summer :/
 
8:38 PM
@Mendeleev accessable with new nav bar now
 
@Downgoat How to update a userscript?
 
@cairdcoinheringaahing JHT's doors are always open :D
 
@Mendeleev go here: github.com/vihanb/PPCG-Design/raw/master/ppcg.user.js (it may take some time for cache break but should be v3.14.0)
 
@Downgoat User scripts cannot be installed from this site
 
@FreezePhoenix Do you have Tampermonkey installed?
 
8:40 PM
No...
 
@FreezePhoenix wha
 
Then of course you cannot access it
 
@Downgoat User scripts cannot be installed from this site
 
@FreezePhoenix what user script provider do you use?
 
8:42 PM
@Downgoat Thanks, it works now
 
if you have greasemonkey switch to Tampermonkey
 
except
this is the dark theme
 
@Downgoat Dunno what does chrome use by default?
 
oh install tampermonkey idk what chrome does with userscripts
@Mendeleev yeah... that was never finished
 
@Mendeleev Ugh, dark theme
 
8:43 PM
if you want dark theme use axtell when it's in beta :3
 
@cairdcoinheringaahing You should see my desktop
 
@Mr.Xcoder Husk 16 bytes, §¤*E←oz+N→TC2mLg
 
Also the Use modified theme in chat does nothing
 
Feels quite long -.-
 
Feels how? I cannot get under 20 in Jelly for now :S
 
8:45 PM
@Mendeleev so for that try enabling it, saving, refreshing, and then disabling it, and then re-enabling it
 
Oh, hehe
Just when I saw the CMC, I expected it to be shorter by a few bytes.
 
I may be able to get about 15 after golfing though, tbh
 
@Mr.Xcoder I'm on 21 :/
 
@Downgoat OK, now it works s.dk0.us/9064.png
Why does the SE oneboxer not follow redirects?
 
@Mr.Xcoder Usually Jelly is shorter than Husk, so I guess you will ^^
 
8:47 PM
did Ataco open-source the server for i am typign
 
my screenshot script returns a URL like 5581.dk0.us which redirects to s.dk0.us/5581.png and Discord embeds it just fine, but SE chat doesn't onebox it
 
@Mendeleev Why you not using the SE chat upload stuff
 
@Downgoat ataco himself didn't have local copies to restart the server from IIRC :p
 
@FreezePhoenix because i can press one button, select an area, and then it auto uploads a screenshot of that area to my server and puts the URL on my clipboard
 
8:49 PM
@Mendeleev why reinvent the wheel
 
TFW you click on a video for Samsung and get an ad for Apple before it :/
 
what do you mean
 
@Mendeleev dude use chrome, they have a screenshot on the keyboard
 
they are a ton of screenshot apps that will generate links that work with SE
idk what OS you use though
 
i've been using this script for months, it's the closest i've gotten to the ShareX UX
also i can always tweak the script
@FreezePhoenix chrome eats ram and isn't extensible enough
 
8:50 PM
> isn't extensible enough
 
firefox also has screenshot but it can't screenshot apps outside of itself
 
k
 
you can't apply css to the browser UI or have a sidebar
 
Anonymous
@Mendeleev Because it's very primitive. It only looks at the MIME type of the returned content. It doesn't follow redirects, and it only has special logic for a few things (SE posts, xkcd, this is fine, and a few others I'm forgetting).
 
Ok, thanks for the explanation
 
8:51 PM
@Mendeleev Your first point is incorrect and your second one is also.
RaspPi Debian Jessie comes with some such modifications to chrome
 
@Mego Twitter and Wikipedia are the only others IIRC
> Stack Exchange questions,
answers, and users
Chat messages and rooms
Images
Wikipedia pages
Amazon products
Youtube videos
Twitter messages
Github gists
 
also i prefer firefox because I can have lots of tabs open, with a discarder extension that keeps ram usage down, and not have my computer suffer

on chrome i was filling up 16gb at ~200 tabs even with The Great Discarder installed

on firefox I'm sitting at around ~4GB for 1451 tabs
and I know I really need to close tabs
 
@Mendeleev Fire Fox messes up CSS tho
 
need to take an hour to do a tab pruning, i might be left with ~100 useful ones
@FreezePhoenix can you provide an example? i'm curious
 
8:55 PM
Exactly 15 for now! :) But there's still a lot to golf (cc @cairdcoinheringaahing I finally get to use ƭ :D)
 
@Mendeleev That would be a result of one of chromes trademark benefits: Each tab is a separate process.
 
Firefox seems to handle tab crashes pretty well though, it can restore the state of crashed tabs IME
 
@Mr.Xcoder Told you :p
 
@Mendeleev But - it crashes every single tab - chrome just crashes the individual tab
 
8:57 PM
What's the general logic behind it? (I don't know Jelly at all)
 
No, it only crashes like 5-10 tabs at a time
and i'll take it as a tradeoff over not having the browser eat my computer
 
If I am correct, tie seems to take 2 links by default? Then 13 (?)
 
I can't paste a PNG image into SE chat
 
You paste a link to it...
 
ik, i mean you can't paste raw image data into it like you can with some other chat services
 
9:01 PM
@OMᗺ Breakdown: Œɠs2Z: Œɠ generates the group lengths (like mLg in Husk), s2 splits into chunks of 2 elements, Z transposes; EU⁼JƊ<2 or maybe not needed???>ƭ€P: <number (defaults to 2???)>ƭ€ applies a sequence of links (or functions) successively onto a list – the first link is E, which checks if all elements are equal and the second one is U⁼JƊ, which checks whether the reverse of an array is equal to its length range (1 ... len(list)).
 
@Mendeleev Why would you do that...
Paste a png image data into chat
 
I expected it to upload it to stack.imgur.com
to avoid the clicking of upload and selection of files
 
‰PNG

 
So basically we split the lengths of the groups into those at odd and even indices, and for those odd ones (1-indexed), we check if they're all equal and for even ones, we check if their sequence is descending to 1.
Btw, interesting new name!
 
@Mendeleev Just did it - what do you mean?
 
9:03 PM
I mean that it does not show up as an image, it is still raw data shown as text
Try pasting that same thing into discord
with clipboard mime type set to image/png
(if that's a thing on your OS)
 
no clue how to do that with debian
 
maim -s | xclip -sel clip -t image/png
 
If anyone solves my CMC in Python without non-standard library modules in under 100, they deserve a medal
 
well than you had to type that all in
 
no, i have my script (which screenshots, scp's to a server and copies link) set to a keybind
so it activates when i press print screen
 
9:11 PM
Looking at jelly's source code, ƭ does indeed default to 2, so my 13-byter is valid.
 
@Mr.Xcoder Thanks :)
I like the U⁼JƊ
 
@Mr.Xcoder which?
 
51 mins ago, by Mr. Xcoder
CMC (slightly harder than a usual CMC): Given an integer, check whether the lengths of the runs of equal adjacent digits follow a pattern of this kind: [a, b, a, b-1, a, b-2, ..., a, 1]. Example: Truthy: 12212, 355545525, 66777700777887797, Falsy: 123456789, 122232222332
 
@Mr.Xcoder can you input the integer as a string?
 
Yes, you can
 
9:15 PM
@Mendeleev I did so too, it's a byte shorter I believe
 
5 bytes shorter in ruby
also @Mr.Xcoder Your last truthy example does not seem to follow the pattern
 
Yeah it is, g isn't overloaded for digits :(
 
43 mins ago, by Mr. Xcoder
My third truthy case should read 667777007778877997. PS: this is nice to solve in Jelly
 
I did not see that
oops
 
has anyone ever considered using github.com/Manishearth/ChatExchange to make a native iOS client for SE chat
 
9:22 PM
i wanted to make a native desktop client but it was very difficult
 
Quick C++ question: If I say std::string foo;, is that equivalent to std::string foo = std::string();, or is it unsafe to use variables without initializing them?
 
@Mendeleev what os?
 
win/mac/linux
i was going to build it with gtk
 
oh yeah that's your problem
 
no
i would do anything to avoid building an electron app
i could always just shove the SE chat site into an electron wrapper
but that's not a good solution
 
9:23 PM
I'd still use it
 
the difficulty wasn't building the UI, it was interfacing with the SE chat API and chatexchange
with no python experience
like i've written one meaningful program in python
 
@Downgoat aww hell yeah
 
@Mendeleev :| python is like easiest programming language
 
9:24 PM
nah
 
It really is
 
python is unintuitive if you've been working with ruby
 
Actually +1 byte.. Husk 17 bytes, §*oE←o§=ŀ↔→TC2mLg
 
because it's similar but it does so many things differently
 
Nah
 
9:25 PM
@OMᗺ What was wrong with the previous one?
 
The other one only made sure that [a,b,a,b-1,a,...] not that the sequence [b,b-1,..] actually reaches 1 :(
 
It's annoying at first but I don't really have problems switching between ruby and python after a short while
 
@Mr.Xcoder For the bs it did zipWith(+)[1,2..]bs and checked that all elements are equal.
 
how to convert string to int? in ruby it's str.to_i but in python it's int(i). most of the things i was confused about are similar to this
instead of methods on an object they're external functions
also the whole spaces to delineate blocks thing is annoying
this exists though github.com/mathialo/bython
 
Ammending an issue with my CMC: Given an integer, check whether the lengths of the runs of equal adjacent digits follow a pattern of this kind: [a, b, a, b-1, a, b-2, ..., a, 1, a (?)], where by (?) I mean that the final a may appear or not, in either case giving truthy results
 
9:30 PM
 
ATM I have ->s{s.scan(/((.)\2*)/).map{|i|i[0].size}} which gives an array of run lengths. i have no idea about how to check it against that sequence
 
Otherwise, both the Husk and Jelly answers would be invalid (for cases like 111222111221112111)
 
@Mr.Xcoder Hehe, that's another thing I (we?) overlooked
Lucky it's not main
 
Anonymous
@Mendeleev The logic behind that is, if you're writing clean code, you're going to be indenting with whitespace anyway, so why not get rid of the braces?
 
Does CPython JIT? because iOS doesn't have executable memory in userspace
 
Anonymous
9:32 PM
@Downgoat No. PyPy does, though
 
@OMᗺ I intended to write the CMC in the latter form in the first place, but I forgot to mention that, and only noticed it now. Indeed, lucky it's not main. (although this is far less trivial than some Main challenges; I may consider moving this to main sometime, but not sure)
 
// C++
if (condition)
    do_thing(),
    do_other_thing(),
    std::cout << "Look, ma! No braces!" << std::endl;
@Mego ^ is a thing I learned you could do today
 
@Mego technically true... but i usually write badly formatted code and then use an auto formatter
which formats it in my preferred style
 
Anonymous
@Mendeleev Then that's on you :P
 
true
@Downgoat I thought you weren't allowed to use interpreted languages in iOS apps published to the appstore
 
9:35 PM
Is it considered a bad to write C++ with commas instead of braces?
 
0
Q: Stacked digit staircases

dylnanGiven positive integers \$w\$ and \$h\$ output \$w\$ columns and \$h\$ rows of text as described below. The first \$11\times10\$ elements are as follows: 00000000000 11111111110 22222222211 33333333221 44444443322 55555544332 66666554433 77776655443 88877665544 99887766554 Here is an image wi...

 
Anonymous
@Pavel Very much yes
 
Aww
 
3.3.2 — An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s).
 
@Pavel Do you know the term POD types?
 
9:37 PM
@DJMcMayhem I do not.
 
If you have a POD type (bool, int, char, double etc.), then it's bad to not assign them. Otherwise (std::string for example) it'll call the default initializer.
@Pavel It stands for Plain Old Data
 
Ah. And a string has an argument-less constructor, so it can be uninitialized.
 
@Mendeleev there is no section 3.3.2 you must be reading outdated guidelines
 
Exactly
 
relevant section is 2.5.2
 
9:39 PM
Thanks
 
Anonymous
@Pavel Technically it's never uninitialized - it will be initialized with the default constructor
 
Anonymous
If you try to do that to a class without a default constructor, you'll get errors
 
@Mego I meant not manually initialized
 
Anonymous
Yeah, the term for that is default constructed ")
 
Anonymous
@DJMcMayhem Nope, ints default to 0.
 
Anonymous
9:40 PM
Every POD type has a default value
 
Oh wait
Duh
@Mego Still, int a; kinda makes me cringe even though std::string foo; doesn't really
 
Anonymous
Numeric types are 0, pointers (and, by extension, arrays) are NULL
 
Although I guess it depends on context
 
Anonymous
@DJMcMayhem At least you declare it. PHP's default variable value rules are heinous
 
In C#, default(T) where T : struct fills all of the struct's fields with 0s or nulls, regardless of what constructors may or may not be present.
 
Anonymous
9:43 PM
If you use a variable in PHP without first initializing it, it is initialized with either 0, 0.0, "", [], or FALSE, depending on the context
 
@Mego s/'s default variable rules are/is
 
Anonymous
@DJMcMayhem No, PHP is not heinous. PHP is an abomination.
 
CMP: How do pronounce "" in your head?
 
Empty string.
 
I think quote. Not really sure why.
 
9:48 PM
I pronounce it k, because I'm used to Pyth's constants
 
Anonymous
@Pavel It is the sound of one hand clapping
5
 
:45642699
 
lol
 
I also pronounce [] as square.
 
[] is Y for me
 
9:53 PM
depends on the context, either \$\epsilon\$ or mempty
 
MathJax doesn't work in chat :c
 
mempty is nice since [] is mempty too :)
@Mr.Xcoder That sucks..but it's not really needed
 
Whenever I read code, I have to pronounce every "word" as something, even if it's just symbols.
I have a bunch of weird mapping for this: _ is blank, $_ is underline, "$@" is splat...
 
@Pavel ._. I only really do that for APL code.
 
@Pavel I think I usually just refer to is as "that" just as with any other string
 
10:00 PM
@Pavel For RAD, I call it the: "THIS-SHOULD-LEAVE-THE-ARGUMENT-UNCHANGED-OH-GOD-WHAT-DID-I-BREAK-NOW train"
I actually don't really pronounce stuff (even in my head) when reading code... anybody else do that?
(Note in RAD, " is ⎕UCS, so "" should do nothing)
 
Anonymous
Apparently GvR is stepping down as BDFL of Python :o
 
You ... kinda can't step down from that position... FL is FOR LIFE, no?
 
I hope that means Python will get TCO.
 
@Dennis Too many abbreviations: what is TCO?
 
Tail-call optimization
 
10:11 PM
.___. it doesn't have tail-call-optimization?
 
Many interpreted languages don't.
 
@Zacharý No, but you can do sys.setrecursionlimit which is almost as good
:P
 
I just remembered something: -0 is a thing.
 
Even ShapeScript has TCO...
 
Anonymous
The lack of TCO is largely due to GvR not liking how tracebacks get harder to read
 
10:24 PM
@Zacharý You just remembered that...
 
10:52 PM
@Mego F# has a good solution: there's a dedicated -tail compiler flag to emit tail calls.
 
00:00 - 23:0023:00 - 00:00

« first day (2722 days earlier)      last day (2127 days later) »