« first day (1738 days earlier)      last day (3112 days later) » 

12:00 AM
"not pure"
 
A pure function always gives the same result when called with the same arguments.
 
Technically the word is "impure," unless Haskell has its own blasphemous version of English.
 
Gross
 
@Mateon1 I see.
 
12:00 AM
It's okay. I already find Haskell's syntax to be too repulsive to use anyway.
 
Why is there a distinction in Haskell?
 
snowman or Haskell?
 
Snowman is not that bad of a language see.
 
Also, I/O uses Monadic IO objects that need to be returned from the function and passed up to main... That makes checking what thread the functions are in difficult.
 
I have never used Haskell though so I cannot compare the two
@Mateon1 hm
 
12:02 AM
snoman
 
@quartata There's a fine line between "bad" and "unusable". :P
For what it's worth, I like Javascript. It'd be pretty hard to do much that's interesting with HTML and CSS alone.
 
^
 
^
 
Maybe just try putting a print statement of the level of recursion or something and if you see irregular times between the prints
 
12:03 AM
You are forced to use Javascript because there are no alternatives. That doesn't mean it's good.
 
Someone should create a sensible language to replace JavaScript.
 
Flagged as: heresy
 
@feersum finally someone who understands
 
I think I can replace the item returned from the quicksort at the one-element-list level to the current thread
 
CoffeeScript doesn't count because it compiles to JS.
 
12:04 AM
There are javascript libraries that let you use other scripting languages in your webpage
 
Python is available for browsers (^)
 
That will make a nonsensical quicksort, but it'll show whether threads work.
 
> javascript libraries
 
@AlexA. What is your objection to JavaScript? Automatic type casting?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Client-side?
 
12:05 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ scope
All about the scope
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I don't really have any because I'm not all that familiar with it.
 
@El'endiaStarman Idk
 
@Mateon1 Why don't you input a huge list and see if it uses all your CPU cores?
 
shudder
 
@AlexA. ---
@quartata What about the scope?
 
12:05 AM
@feersum Well, that actually makes a lot of sense...
 
@quartata What's your issue with scope? [ninja'd] I haven't really encountered a problem with it.
 
Variables declared with the var keyword are function-scope, not block-scope
 
let is block-scope.
@AlexA. Oh, no objections. Very well, I misread.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yeah, but that's ES6
 
@SuperJedi224 ES6 is JavaScript. All other browsers are inferior
 
12:07 AM
It's not fully supported by all browsers, but it's getting there.
 
ES6 is not supported everywhere
 
When was ES6 officialized?
 
@SuperJedi224 Too long ago
 
Function scope is bad and hoisting is
 
@quartata "hoisting"?
 
12:08 AM
Hoisting is wierd.
 
Bleh
ES6 is great though
 
^ YES
I really can't speak for ES5-
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Moving variable declarations (but not assignments) and function definitions to the top of the scope at compile-time
 
@SuperJedi224 I think it's a neat feature of JS TBH
 
Just one problem getting browsers to agree on standards is like herding cats
2
 
12:09 AM
foo();


function foo(){
    alert("bar"+3);
    var x = 3
}
alert(x);
 
I wonder if HTML 5 will ever be universally supported lol
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That works?
 
glares at IE
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That won't work, because x is function-scope
 
@SuperJedi224 Nice catch ;)
I wanted to see if anyone got that
 
12:10 AM
Was it not obvious?
 
Yeah that works like sane scope
 
Hoisting function definitions is fine, hoisting variable declarations can cause some wierd stuff
 
Hoisting? What is hoisting? (In the context of JS.)
 
As I posted earlier: "Moving variable declarations (but not assignments) and function definitions to the top of the scope at compile-time"
 
^
 
I don't get it. That sounds pointless.
 
@feersum It's useful in the context of events and readability (sometimes)
 
To a browser executing compiled code, what is "readability"?
 
Nothing. I'm talking about human readability
 
^
 
12:14 AM
> at compile-time
 
how did you do the bar thing?
 
>
 
@SuperJedi224 Ahh, didn't make the connection. And I'm with feersum. That's a feature I'd never use.
 
> test
cool
 
12:15 AM
Though javascript isn't exactly compiled
 
0
A: Sandbox for Proposed Challenges

Daniel M.Approximate phi using Fibonacci numbers code-golf As shown by Johannes Kepler, the quotient of successive Fibonacci numbers approaches phi. (where F(n) = the nth Fibonacci number) The fine folks at Wikipedia also say that if you choose two different starting values for the Fibonacci sequenc...

 
Is hoisting something you explicitly ask the compiler to do?
 
^
 
It can be useful for function definitions, but when it's applied to variable declarations it can cause strange stuff to happen.
 
12:15 AM
^ yeah
 
Very very strange stuff
Purple unicorns
 
I thought you were saying it was some technique the compiler uses when forming bytecode or something.
 
I love how JavaScript doesn't complain at this:
var x = 3;
function x(){
   return 3;
}
 
Rational values of pi
 
So it's a crutch for bad programmers who can't declare things in the right place.
 
12:16 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ It should since a function can be gotten as an object right
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Python also allows variable reassignment.
 
@Seadrus If we make enough arrows and arrange them on the starboard just right, we can make a befunge program
3
 
raises hands I just think its interesting
 
@DanielM. that might be hard
 
>v
3
^<
2
 
12:18 AM
><
2
 
Star those two messages and ta-da! Befunge program on the starboard! :P
 
That was easy.
 
Or Jedi's.
 
I might be posting my truth machine catalog here
Any last minute suggestions?
 
12:20 AM
v>^
 
"!dlroW ,olleH">:#,_@

I'm not good at cooperating
2
 
user image
2
this one moves interestingly
 
I like how in 2 minutes we cleared an hour's worth of starred posts
4
 
function x(){return x} I still love JS
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ...does that actually return the function itself?
 
12:27 AM
@El'endiaStarman Yes.
x()()()()()()()()()==x
true
 
Okay, so basically a variant of closure?
 
pretty much
function x(){return y}
function y(){return x}
 
Could do that in Python too. (The single function version.)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ And you said earlier you could also have var x in that
What would happen?
 
function x(){
 var x = 3;
 return x
}
> x()
3
> x()
3
 
12:28 AM
That's a redefinition of x.
 
I mean if it is defined outside of the function
 
There was some video I saw that had what all the strange expressions would evaluate to in ruby
 
function x(){
 x = 3;
 return x
}
> x()
3
> x
3
> x()
TypeError: x is not a function
 
What
Oh I see
 
12:31 AM
chat is busy atm. i left for 20 min and 80 new messages o.o
 
^<
>^
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ><>y maze!
(Reference to currently-sandboxed challenge.)
 
@El'endiaStarman Link?
 
12:33 AM
1
A: Sandbox for Proposed Challenges

El'endia StarmanThe /\/\aze of Mirrors code-golf ascii-art sniffs...something smells...fishy. The reason being that there's actually a fish! But it's at the end of a maze of mirrors that you have control over. Your task is to rotate the mirrors until you can see that delicious-smelling ><>. Luckily, there are...

 
0
Q: Print the lyrics to Caius' Theme (Final Fantasy XIII-2)

kirbyfan64sosPrint or return these lyrics: Dea Mortis, iuravi Carissimam servaturum. Dea Mortis, servabo Ut tempora recte ducam. Etsi cor in Chaos, Aut Fortuna bella ferat, Occurram et obviam ibo. The line break must be preserved, and trailing newlines are allowed. +20% if you omit the end-of-line punctu...

 
Ugh, I'm trying to make a worst-case scenario for the quicksort so I can see the CPU usage, but I fail to compile...
[Paste with compile log](https://bpaste.net/show/9e8324936f0d)
That isn't helpful... I guess I can handle reading from a file though. (This is becoming a massive program when I just wanted to quickly check threading)
Does no formatting work here?
 
@Mateon1 Line breaks in a message kill all formatting.
 
@El'endiaStarman That sucks... So you can't make ```code``` blocks...
 
12:45 AM
You can 'fixed text' the whole thing.
 
@DanielM. That was probably this screencast. It shows a few languages' weirdness
2
 
@Mateon1 Yes, that was it
 
1:03 AM
@NewMainPosts Lmao the Chaine one is just a straight up print
@CᴏɴᴏʀO'Bʀɪᴇɴ are you going to golf it some more?
 
Anonymous
I have more stars!
 
Anonymous
@El'endiaStarman I remembered what we forgot: Chaine
 
@Mego I remembered Chaine, but I didn't include it because it's very new and not fleshed out at all.
 
Anonymous
It's more fleshed out than Seriously
 
Anonymous
I still haven't decided if I'm going to stick with the everything-is-an-integer-on-the-stack
 
1:13 AM
Well, what's your goal for Seriously?
 
Anonymous
Terrifying-looking code that performs well in golfing, but also is good at general-purpose programming
 
Anonymous
Like Perl and APL had a baby
 
If you want it to perform well in golfing, don't stick to integers only.
 
Anonymous
(in terms of how the code looks)
 
Anonymous
1:15 AM
That was the thought, but I wanted also to have the elegance of everything being an integer (or maybe an int or a float)
 
@Mego I assume APL is the general purpose language and Perl is terrifying.
 
Anonymous
@AlexA. Yep, now imagine a Perl program with the APL code page
 
@Mego Integers are elegant internally, not so much for working with.
Calculate the three cube roots of -1, please.
 
Anonymous
@El'endiaStarman I agree. It was just a thought I had, that I may play with eventually
 
@Mego ⍨
 
1:17 AM
oh hey internet's back on for me
 
@feersum roflgolfer
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Yeah I just put it back on top of Big Ben
 
Large Benjamin
 
I found a short way to crash Python
Can someone confirm this causes a SIGSEGV?
0
A: Shortest code that return SIGSEGV

feersumPython 2, 13 exec'()'*7**6 Windows reports an error code of c00000fd (Stack Overflow) which I would assume is a subtype of segmentation fault.

 
1:25 AM
No thanks
 
Why not?
 
I don't want to crash my computer
I don't know what a SIGSEGV is
 
It crashes the program, not the computer.
 
Will it delet hard drive?
 
Unless your OS is really fragile or something.
I get sigsegv's 10 times a day and my PC runs for months.
Even though it's Windows.
 
1:28 AM
I'm sorry to hear your computer is Windows.
Segmentation fault: 11
 
Anonymous
fires up VM
 
Yay!
Segmentation fault is the same as SIGSEGV so that's good.
 
Anonymous
 
100% portable segmentation faults!
2
 
Lol @ 4 deleted POS answers by Timtech on that challenge
 
Anonymous
1:34 AM
@feersum The goal every programmer should aspire to reach
 
@feersum Now with 20% more segmentation!
 
@AlexA. It really does matter, in response to your comment.
 
Btw, are Mego and my comments actually useful or should we delete them? @feersum
 
Anonymous
@AlexA. se̝͍͖ͯͬͪg͎͔̘̯̤̩̞ͣͯ͆m͈̼̥ͦ̑̄ͤ͂͑̑ȇ̼̗͖ͬ́ͪ̌̏̇́n͕̭͖͉̭̏ͥ̊͌͊̿́t̩͙̰̞̥̩͒̎a̲ͪt̡̯̣̞̔ḯ̆͌͗ͧ̌‌​͙̻͍o̟͓͉̙͔̰ͣ̆̉́n̫͇̂͗ͤ̓ͨ̇͡ ͯ̄͂̍̆f͎̗̍ͪ̇̇ͥ̿͐͢a̵̽͌ͬ̒ͨ̆͆u̡̜ͭl̝̫̩̙̻̣̘̎͑ͥ͑ͫ̄͞t̥̹͇͍̫͈͕͗̃ͯ̈́ ̄͆̕yͦ͗ͯͪ̆̀a̵̮̩̜̰̩̠ͦy̵̻̳
 
@CᴏɴᴏʀO'Bʀɪᴇɴ No it doesn't. People vote for answers they find interesting and downvote ones they find uninteresting.
Doesn't matter what kind of challenge it is.
 
1:36 AM
@AlexA. Doesn't matter to me. Thanks for confirming.
 
Ok
 
@AlexA. That's not what voting is for; voting is to aid in determining the best answer.
 
In popularity contests, you're right.
 
Anonymous
Is there a way to undo a flag?
 
No
 
1:38 AM
The true purpose of voting is to determine the earliest answer.
We need to have a backup in case clocks stop working.
 
hahaha
 
Anonymous
I flagged something as NAA, and then re-read the question and realized it was an answer, albeit poorly formatted >_>
 
Anonymous
ಠಠps
 
Link?
Is it this?
 
Anonymous
Yeah
 
1:40 AM
Looks like it was taken care of in the review queue.
 
Anonymous
Mmkay
 
Looks like our resident expert on voting has arrived.
 
Anonymous
I don't see VTC in here
 
@Geobits, silly.
YOU SILLY GOOSE
 
Hello
 
Anonymous
1:48 AM
Hi Jedi
 
Anonymous
Alex is in that mood where he thinks everyone is birds apparently
 
Anonymous
honk
 
@Mego That's a mood I have?
 
Anonymous
@AlexA. Apparently, you called me a goose
 
Interesting.
 
2:03 AM
Hey look at me mummy I'm winning
0
A: Print the lyrics to Caius' Theme (Final Fantasy XIII-2)

quartataStuck, 128 bytes So riddled with unprintables I'm not going to even post the raw source code. Here's the hexdump instead: 0000000: 2278 da4d 8d41 0ec2 300c 04ef 79c5 3e20 "x.M.A..0...y.> 0000010: ea1f 500b 37c4 8907 38a9 1196 9a1a 3976 ..P.7...8.....9v 0000020: de4f c489 db68 35ab d998 7057 ...

Shebang would be pleased
 
Anonymous
blergh
 
Hmm maybe I should go for the bonus
Eh it isn't worth it
It would be 150 bytes I think
 
@AlexA. ?
 
26 mins ago, by Alex A.
Looks like our resident expert on voting has arrived.
 
Wow I'm so used to seeing people with their Halloween avatars
 
2:11 AM
But I just arrived...
 
Is that you @Geobits?
 
Yes, yes it is.
 
Better change mine back
 
@quartata It's either me or the dog. Probably me.
 
@AlexA. refresh pls
 
2:12 AM
@quartata Done
 
It normally doesn't take a manual refresh, you know. Just like, a whole couple minutes.
 
Anonymous
But that's so long
 
Kids these days... :)
 
When I was a young'in, dial up was a thing...
And I'm not even that old. :P
Crazy how quickly technology progresses these days, eh?
 
Durn kids and their fancy glass walkie talkies.
And dialup wasn't a thing, it was the thing ;)
 
2:15 AM
@AlexA. thanks
@Vɪʜᴀɴ damn TeaScript is good
I'mma give it a serious try
@El'endiaStarman Not the dial-up
 
good night people
 
@quartata Yes the dial-up
 
I had this CS professor (absolute monster) who would tell us these inane stories of the "olden days." One of these was when she got in trouble in the CS department for using all the bandwidth on the modems transmitting source code with comments that had stars all around the top so they were like boxes
 
I dislike the starbox comments, but for reasons unrelated to bandwidth.
 
She was incredibly picky about comment format too. At least we didn't have to do starboxes.
Or rather "it wasn't required." lmao
 
2:25 AM
Yay, I finally finished the fancy new TeaScript Interpreter: vihanserver.tk/p/TeaScript
 
@Vɪʜᴀɴ \o/
Now you get to say "Try it online."
The sign of a truly classy golfing language
 
"Auto-Golf"?
 
Yes
you click it and it auto-golfs some code
 
Why my link broken
 
I did. Nothing happened :P
 
2:26 AM
http
 
Oh right
 
@Geobits It works best with code like: xl(#lc()
 
I'm probably never going to use TeaScript much, so I may not be the best to give suggestions, but... you have a font for your code block that differs from the rest of the page, and it isn't a monospace font.
You should probably add an "Auto-Ungolf" too, or at least have an easy way to recover from the autogolfing.
 
@Geobits yeah, I will probably make it courier or if I'm in a bad mood, fantasque sans
 
btw, your teascript lyrics printer outputs a little funny for me
Dea Mortis, iuravi
Cex-dyere rvaturum.
Dea Mortis, rvabo
Ut mpora c ducam.

Etx["l"]((l,i,a)=> cor Cos,
Aut Fortuna bella feryi
Occurm et obviam ibo.
I'm on Chrome
 
2:31 AM
@quartata did you click "safely handle unicode"
 
I thought I did
One second
 
Are those checkboxes the equivalent of command line flags? If so, should there be a byte penalty for using them?
 
That's funny.
It runs perfectly WITHOUT the unicode flag.
But it outputs like that WITH it.
 
@Geobits Not sure, it's generally to make the interpreter easier to use
 
Should be 1 byte extra per checkbox, just like +1 per file
2
 
2:34 AM
@quartata probably forgot a !
 
Ah well
Have an upvote anyways you magnificent coder
That is super cool
 
@Sp3000 I added a +1 byte penalty
 
I feel better now since that means you only outgolfed me by 4 :D
 
FINALLY! After almost three weeks, I got my DSL connection back!!!
 
@Dennis yay
I think I'll try to answer this challenge in Bubblegum
 
2:36 AM
Have you been on mobile that whole time?
 
I still can't figure out why the LZMA stuff doesn't work on it though
 
@Geobits Tethering my phone's connection. That works well, but I pay per byte.
What should I download first? :P
 
@Dennis Extra motivation to golf your code.
 
@Dennis Ouch. I guess golfing comes in handy there :P
 
carrot.png
 
Anonymous
2:38 AM
@Dennis The internet
 
@Geobits Hey I made the joke first dammit
 
What, you think I read every post that comes up while I'm typing? ;)
 
Having said that, checkboxes probably need a bit of regulating too, or else someone will make MetaCheckboxScript
3
 
Anonymous
So I decided my language will have 3 distinct data types: numeric, list, and string
 
The TeaScript interpreter is like 3MB, I should add like a warning for people on pay-per-byte internet
 
Anonymous
2:39 AM
And most operators will have a unique operation on each
 
Anonymous
So that's >600 operations
 
@Sp3000 So.... you're saying I should stop planning that in my head now...?
 
@Mego In theory.
In practice, will you actually go to the trouble of assigning all those? :P
 
Anonymous
Eventually
 
Anonymous
I'll do a good amount of them to start with, and add more as I use it more and see its weaknesses
 
2:41 AM
Do you think you'll ever do two-character commands?
 
Anonymous
It's really tempting to make H, Q, and N be HQ9+'s H, Q, and 9
 
Anonymous
Yeah, I'm going to have support for two-character commands in a special mode
 
@Vɪʜᴀɴ Why does TeaScript have Unicode as a separate option anyway?
 
Anonymous
Ordinarily, ? doesn't do anything. However, when a command-line flag is used (probably -e), all consecutive runs of letters and spaces will be treated as string literals and pushed to the stack. ? followed by a second character will be used to replace the operators that the letters and space used to represent, along with adding a few more.
 
2:44 AM
@Sp3000 TeaScript has unicode-property names so to prevent stuff from interfering, I've added that
 
Any way to get rid of the golden review notifications on SE?
@Sp3000 You know how to Bubblegum right?
 
What about it?
 
I can't for the life of me get anything compressed with LZMA to print out in it
 
Anonymous
Are you using the correct flag?
 
@Mego It doesn't have any flags
Oh you mean on LZMA
 
Anonymous
2:48 AM
IIRC it only does LZMA -9 compressed files
 
Yeah I'm using -9
 
Anonymous
Yeah
 
I dunno, works fine for me? Bubblegum beats TeaScript, which is nice
 
Nevermind Dennis just did it
 
Anonymous
Byte-ordering issue?
 
2:48 AM
why
 
Dennis just did everything
 
Why couldn't he have let me have my victory ;_;
 
Yep, he's back on DSL now. You're all finished.
 
One does not simply out golf Dennis.
 
@Dennis I find it weird that we keep getting different results. Last time I golfed off two bytes but this time I had 122
 
2:49 AM
!lp$SHVo!=#X1Pu'6y*o10MCxzr-}<;zI9k{f3Rl0vVJsqQSF[=iVP8UQb3
pa+{F@T]c.:cL4aLPO;>kpPs&[7$yuZ;]&*d}v<Ed;V_%Y c-ks*DH'PM1<VC%L,?9mXQ G~0`B-Ii>4u.nP0@QGYNP=iH-P>=I&|\"cC72bU-3!.#pR4Op(b=Q_
Why on earth did it output like this
 
I guess it's not just my dog that jumps on the keyboard from time to time.
 
It didn't process right, so it tried to base 96 it?
 
@quartata Oh, you were working on that? Sorry... Forget LZMA for short texts. DEFLATE will beat LZMA every time.
 
@Dennis I used DEFLATE in my Stuck answer, it wasn't that short.
@Sp3000 Huh
Oh
 
@Sp3000 I tried zlib and zopfli. zlib gave me 119, zopfli 116.
 
2:51 AM
Explanation added
That's strange though. I thought Stuck used ZLib
It gave me 125
 
zlib (Python) gave me 124 o_O
 
What gives
 
This is for the first paragraph of text, right?
 
@Sp3000 Yes.
 
@Sp3000 With the headers or without?
 
2:52 AM
@quartata If none of the compression schemes work, base 96 is default
 
@Sp3000 But... this was LZMA
I think I might be doing this wrong.
 
Oh, probably with headers. I don't know much about them so I don't know which parts those are
 
Don't you just run Bubblegum on the LZMA file?
 
You should, but maybe the LZMA settings aren't right? Dunno
 
@quartata How did you compress it? You can't simply use xz. It will have headers Bubblegum doesn't understand.
 
2:53 AM
I did it with -9
@Dennis I did just straight up lzma -9
Probably why it was wrong then.
 
LZMA = Lonely Zebra Mates Anxiously?
 
@quartata Try this, in Python: lzma.compress(i, format=lzma.FORMAT_RAW, filters=[{'id': lzma.FILTER_LZMA2, 'preset': 9 | lzma.PRESET_EXTREME}])
@Sp3000 First 2 and last 4.
 
Can't seem to get it to work, but seems like it'd be the same byte count anyway
Makes me think you could probably check if Fizz Buzz still has headers, cos I haven't been removing any
 
@Dennis I tried that in that past
Throws AttributeError: 'module' object has no attribute 'compress'
 
@Sp3000 If it had headers, Bubblegum would choke.
@quartata Upgrade to Python 3. :P
 
2:57 AM
Well... that's weird then :/
 
Same in Python 3
 
Did you import lzma?
 
Goodbye guys.
 
@Sp3000 How did you compress? zlib.compress(code, 9)?
 
@Dennis Yes.
 

« first day (1738 days earlier)      last day (3112 days later) »