« first day (2176 days earlier)      last day (2674 days later) » 

3:00 AM
Is there some way to import and use a function without a newline or ;?
 
Could you seperate commands with or?
 
@WheatWizard __import__
pretty easy
@Pavel The better way to get rid of eval or exec is to just delete the builtin in the code
 
@WheatWizard I got some pings, what's the haps?
 
@Qwerp-Derp I solved the Logicode quine
print import("subprocess").Popen("<arbitrary bash>".replace("semicolon",chr(59)).replace("newline",chr(10)).split(),stdout=im‌​port("subprocess".PIPE).communicate()[1])
it is TC
 
@WheatWizard Give code pls?
 
3:04 AM
@Qwerp-Derp what?
 
Sorry uhhh I got mixed up with different chat things
Can you give me the code?
 
1
A: Golf you a quine for great good!

Wheat WizardLogicode, 1368 1241 1096 bytes var a=0001010110001111010011110010110001101000001110000010100011001010101001010110101111101100011110111111011101100100010000011001010101101011111010000000101000110010101111000101011110010101111100111100010101111001010111110011111001111000101011110010101111100111110...

sorry there it is
 
globals could be used for assignment and and for statement separation
 
@WheatWizard You're a bloody legend, the 50 rep goes to you
 
@DestructibleWatermelon you can run arbitrary bash without semicolons or newlines thus it is TC
 
3:06 AM
Despite the underdocumentation you still figured it out, you're a legend
 
@Qwerp-Derp Its actually not a very good solution I hope to improve it tommorrow
 
@WheatWizard even without that it's TC
 
@quartata I thought so. How do you reckon?
 
@WheatWizard I can't award the bounty yet, will do so in a couple of days (once ATaco's one is over).
 
@Qwerp-Derp Ok no rush
 
3:09 AM
I should probably update the docs for the multiline conds
 
The only things that actually need newlines as opposed to just and/or are for while and assignment
assignment can be done with globals
and arbitrary for/while can be done with a generator that exhausts itself when a condition is met + list comprehension
 
I'm not sure I follow how do you use ands/ ors
 
Chain all the commands with or
And it will execute all of them
 
for example how would you do a+=3;b.remove(3)
 
Well, not asignment.
 
3:12 AM
oh quartata said assignment
I feel dumb now
actually you can do everyhing inside an assignmet
 
@WheatWizard without cheap system stuff as well I guess
 
a,junkvar=(a+3,b.remove(3))
@DestructibleWatermelon ok fair enough
 
el Honk
 
@WheatWizard Did you know about multiline conds?
 
@WheatWizard I meant something like this:
globals().update({"a": globals().get("a") + 3}) and b.remove(3)
 
3:18 AM
Also, @Pavel, strsub and strlen do not, to my knowledge, exist in lua.
 
@quartata Ah that should work quite nicely
 
Although unpacking is clever too.
 
This feels like it could make a good challenge
 
Yeah now I want to try this haha
 
its decently hard and requires some lateral thinking
 
3:20 AM
@ATaco What is this then?
 
str:sub(a,b) works where str is the string variable, alternatively string.sub(str,a,b). And strlen is string.len(str), str:len() or #str
 
But... the manual... it says they're totally valid functions...
 
[string "return strlen("Test")"]:1: attempt to call global 'strlen' (a nil value)
The manual lied to you.
 
that moment when you can kill yourself by throwing a fedora in the air in nethack
 
How does that even work?
 
3:23 AM
@WheatWizard [None for _ in __import__("itertools").cycle("a")] infinite loop
 
That link is the officail doc, no?
 
I don't even think that's the correct manual.
 
Wonder if it's shorter than recursion though
 
I've got a 30-line class for buttons and progress bars
 
That's for Lua 2.4
 
3:24 AM
Mystery solved
 
I'm running Lua 5.3, with Compatibility for 5.2
 
@quartata can you stop the loop?
 
Actually wait -- while 1:pass works just fine >_>
 
@quartata btw, since you know python, maybe you can help me: why are True, False, None, etc. capitalized in python?
 
Why wouldn't they be?
 
3:25 AM
Are they optionally Capitalized?
Does TruE work?
 
@quartata but you can't nest that
 
@WheatWizard I think the secret to that is to make a generator that stops appropriately
 
>>> true
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'true' is not defined
>>> TruE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'TruE' is not defined
 
No
 
@WheatWizard true
 
3:26 AM
Is there any reason at all for them to be lowercase?
Other than saving a keystroke.
 
well it only makes sense
 
Hmm, That's, strangely particular.
 
@ConorO'Brien Makes it more obvious that they're not variables I presume
 
like every other language, reserved words are lowercase
 
maybe its capitalised to make it easier to distinguish from most variables?
 
3:26 AM
Lua is true, Byond is any variation of True, TrUE, etc.
 
additionally the only things that are ever capitalized in sane languages are class names (and co.), not constants especially
 
Ruby is true, C++ is true (I believe)
 
if you're going to capitalize it let it be TRUE
 
@Downgoat in ruby have initial capitals for constants
@quartata I see
 
All of Mathematica's built in symbols are capitals
 
3:27 AM
And Python is True just to be a hipster
 
@Downgoat Well this isn't just a keyword. It's a value specifically
 
@Qwerp-Derp python is a very "hipster" language for the lack of a better term
 
Honestly though who cares :P
 
Figure 2: Lists instead of Arrays
 
@Pavel Thse are two very distinct things actually.
 
3:29 AM
Clojure's types are all over the place
 
Yeah
 
Also they're called lists in almost all high level languages
 
There's vectors [], sets {}, and "what-are-these-called-I-have-no-idea" ()
 
@quartata I don't, I was just wondering
@Qwerp-Derp Tuples?
 
Tuples
Ninja'd
 
3:29 AM
@quartata oh
why?
 
Not tuples, they're called sequences or something
 
What is that in reply to
 
There are lazy sequences, lazy vectors - I don't even know
I think they're either called sequences, lists or arrays
 
See? Hipsterlang.
 
I don't even know at this point.
@Pavel Which lang? Clojure or Python? Or both?
 
3:31 AM
Both
 
But what was that in reply to
 
Lua just has Tables
 
@ConorO'Brien Usually because they are implemented as a linked list where as a vector is implemented slightly differently
 
@quartata the naming of lists in higher languages rather than array
 
i had to make my own stack library for RProgN
 
3:32 AM
Because array means an array. A list is more abstract.
 
@Qwerp-Derp hi!
 
As far as I can tell, hipster languages are the ones that aren't C-like
 
@Pavel can't you c that? :P
 
@DestructibleWatermelon Hello hello
Also I have more rep than you now haha
 
C++11 is rather hipster.
 
3:33 AM
well
thats on stack overflow?
 
Lua is C like, yet is hipster too
 
stackoverflow is like rep overflow
 
@DestructibleWatermelon On PPCG
How much rep do you have on SO anyway?
 
ok, lets see then
 
I can't type things
 
3:34 AM
@Qwerp-Derp the assosciation bonus
I don't actually use SO
 
@DestructibleWatermelon Just 101 right?
 
what is up with the numbers beneath users
 
I have like 150 rep
I have 2581 rep on PPCG
 
its not fair
;_;
 
life 'aint
 
3:36 AM
I've even made a winning submission to a question and it is not accepted
the one time
well
when I make this koth we'll see who's laughing then >:)
 
@DestructibleWatermelon >:U
 
Is Perl hipster?
 
@Qwerp-Derp how many bounties have you gotten?
 
@DestructibleWatermelon Received or given out?
 
All I know about perl comes from one xkcd
 
3:38 AM
I've made a bounty for 50 rep before, but no one got it
 
@Qwerp-Derp received
 
@DestructibleWatermelon One for 50 rep
 
because I got a 200 rep one
 
It's the kangaroo one
@DestructibleWatermelon Which one?
 
@Pavel which is to say, he has 8 :P
 
3:39 AM
I don't get it.
 
what's your favorite conventional language
 
@Qwerp-Derp mine was decidedly more difficult to acquire. but not really because I was the only one competing
 
@DestructibleWatermelon Show me the question
 
My favorite language is Java.
Unless Mathematica is conventional
 
2 votes and a 200 rep bounty
2
A: Quine that takes as input the name of a language and outputs the same thing implemented in the input language

Destructible WatermelonTurtlèd, Python 2, and Python 3, 3 languages, only competing for bounty all oneliners follwed by newline Turtlèd @##'@r,r,r-{ +.r_}r{ +.r_}!!-.(3"';m=ord(input()[-1]);_='x=%r;m=ord(input()[-1]);_=%r;print(_.replace(chr(100)+chr(40),chr(100)+chr(40)+chr(114)+chr(97)+chr(119)+chr(95))%%(x,_) if ...

 
3:40 AM
@Pavel Long.parseLong("100", 2);
 
More than any other language Perl can be whatever the hell you decide you want it to be. So yes very hipster
 
@quartata JavaScript has one inconsistent capitlization: OMG!!1!111!1 IT SUCKS, HAHA STOOPID LANG. Python disregard convention: eh
 
@Downgoat basically
 
JavaScript is stupid for many reasons.
 
3:41 AM
@Downgoat I don't think I've ever really attacked JS on style
 
@Pavel haha I meant 4
 
hey remember that ebay vulnreability? with JSfuck?
didn't they say they wouldn't even try to fix it?
 
@ATaco so are many languages. No languages are perfect. (Sans Rust, or so I hear.)
 
In syntax, Elixir is practically demon-spawn.
 
But I'm forced to use JS.
This is not okay.
 
3:42 AM
With style things like that all that really matters is that it's consistent with itself
 
@Qwerp-Derp what was the bounty for?
 
If none wasn't capitalized I'd complain.
 
@DestructibleWatermelon I have no idea, I just got 50 rep
And 170 rep from upvotes
 
why so?
 
@Qwerp-Derp lucky you...
 
3:45 AM
@Pavel, your equivalency could be checked just via memory[this][pointer[this]] = l==r and 1 or 0
 
I still have no votes on a really old answer for pretty much no reason
 
I have never used lua before in my life, sooo....
 
Which one
 
@Downgoat Furthermore there wasn't nearly as strong of a convention as what you're thinking back when Python was made. I mean, C++ was less than ten years old, and I can't think of any other languages then with lowercase true false I'm sure TRUE True and true were all common
Perl back then was still 1/""
 
3:48 AM
Perl looks like random characters when golfed
I can't find any sense or reason in golfed Perl
It looks like a mishmash of everything from every aspect of programming, which is Perl in a nutshell
 
Can you find any sense or reason in golfed C?
 
@Qwerp-Derp perl is where code golf originated
@quartata this is question for @phase
 
I hope C get lambdas... just so I can see how the signatures work
 
I hope Processing gets lambdas
 
GNU C has something close enough
{{
  int x(void) { return 0; }
  x;
}}
 
3:55 AM
my brother is playing halo 5 and keeps killing his team, by driving them off cliffs
 
@DJMcMayhem btw was this trying to look like clippy
 
WTH are those double braces
@DestructibleWatermelon Younger or older?
 
@Qwerp-Derp younger
 
GNU C statement expressions.
The contents inside are evaluated as a statement in their own block scope. So you can declare and return an anonymous function like that
It's heinous but
 
'''
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.
'''
 
3:59 AM
More likely they'll write Pyth programs
 
Oh?
 
@DestructibleWatermelon yeah, false programs
 
eventually is not true
 
@DestructibleWatermelon sure it is.
 
4:00 AM
isn't the null program valid?
if it isn't, its likely they die first
and they like tapping s a lot I think
is the null program valid in Perl?
then the second part is true if it is
 
why is the null program a problem
 
if the null program is valid it means they already "typed" it
 
Then exclude it.
 
Nah, that null program was written when it got there
 
Minimum to compile java is class a{public static void main(String[]a){}}
Also, notice Eventually is only on the first line
 
4:03 AM
Actually Java will take an empty string just fine
and the proper term is almost surely
 
Missing main: coud not load method main, no?
 
the statement is actually technically true
evetually is subjective
 
C:\Users\Conor O'Brien\Documents\Programming\stacked\main (master)
λ echo.>t.java

C:\Users\Conor O'Brien\Documents\Programming\stacked\main (master)
λ javac t.java

C:\Users\Conor O'Brien\Documents\Programming\stacked\main (master)
λ
seems to be fine
 
It won't output any compiled objects but it won't throw an error.
 
and all the monkeys that are not the one specific monkey wrote empty perl programs
 
4:04 AM
@DestructibleWatermelon you're reading way too much into this >_>
 
Dum dum dum dummm...
 
or maybe I'm reading the originally intended amount?
even if I'm not, the actual truth of intention matters little
 
@ConorO'Brien Did you run it?
 
@HWalters run what?
 
4:06 AM
The java program
 
I don't think it generates anything
 
how should the input to programs using command look be formatted..?
 
4:44 AM
0
Q: zero zero zero zero zero zero

Super ChafouinGiven an integer n > 0, output the length of the longest contiguous sequence of 0 or 1 in its binary representation. Examples 6 is written 110 in binary; the longest sequence is 11, so we should return 2 16 → 10000 → 4 893 → 1101111101 → 5 1337371 → 101000110100000011011 → 6

 
Hmmm I have a problem
ButtonWindow window = new ButtonWindow();
Button start = new Button(new float[] {10, 10},
                          new float[] {100, 50}, "Start",
                          new Runnable() {
                            public void run() {
                              end_check = true;
                              while (end_check) {
                                println(progress);
                                progress = (progress + 1) % 100;
                                other.update(progress / 100);
So I have this right
I need a function in start which continually increments progress
And I need a function end which stops that increment
How do I do that
 
Anyone here know where The Nineteenth Byte got its name?
 
@ATaco I would give you a link but I don't have the link hang on
I'm finding something in Meta
 
The nineteenth hole is a pub at a golf course
 
16
Q: Let's think of a creative name for our chatroom

DoorknobI'm hoping we're nearing the end of beta soon, but even if we aren't, our chatroom name is so bland. "Code Golf." Look at all the creative names others have thought up: "Root Access" for Super User "The DMZ" for Security "The Renderfarm" for Blender "The Litter Box" for Pets "The Hangar" for Av...

And see the top answer
 
4:50 AM
It's also nineteen bytes long
 
That's true
I have a feeling that all chat rooms except for SO's are good
SO chatrooms are bad
 
true dat
Except ours is the best chatroom
 
@Pavel Ayyy up top
 
*high-fives*
 
4:56 AM
I'm trying to think if there's a way it could be shorter with the new commands
 
@ATaco maybe you should just rename it Treead
 
Darn, I can't Fix my typo
 
whats with the unprintables?
 
Ascii 10, which is the character code for \n, plus 4, gives SOH
 
Why do you need SOH?
 
4:58 AM
cool
did you post it on site yet?
 
There's already a shorter one
 
I wrote a shorter one.
 
But that's my one that actually uses the Threads.
 
4:59 AM
">34co<o>o<o">34co<o>o<o
 
no offence but yeah that is kind of lame comparatively
 
That's why I don't like it.
And I do infact, like my other one.
 
@ATaco But it works
 
But I don't like it.
 
And it is codegolf.
 
5:01 AM
I think my quine is kind of good
but really its about the same thing
 
Everyone's making Threead quines now
 
?
who else?
I was referring to my quine in my language
 
Oh
3
A: Golf you a quine for great good!

RileyThreead, 105 bytes 60>91>60>93>62>91>111>105>54>50>99>111>100>62>93>60>91>60>93>62>91>99>111>62>93><[<]>[oi62cod>]<[<]>[co>] Try it online! Explanation: This doesn't use the threaded part of Threead... Part 1: 60>91>60>93>62>91>111>105>54>50>99>111>100>62>93>60>91>60>93>62>91>99>111>62>93>...

 
you'll like your quines more if you use them in a quinelike challenge
 
5:18 AM
hmmm, what should be the main part of my 2d lang that isn't the fact that it is 2d?
 
@DestructibleWatermelon Memory-tape based
 
ehh
then it ends up as 2d bf
I'd rather not
 
Multiple instruction pointers acting independently
 
hmmm
how about some stuff about conveyor belts
how to parse conveyor belts
hmmm, maybe that would make a good challenge...
 
Maybe, instruction pointer obeys gravity, sticks to conveyor belts (><v^)
 
5:26 AM
nah
but actually I'm thinking parsing conveyor belts is a good challenge
you take a 2d string or list of strings representing a conveyor belt
if it is made of a, it goes clockwise, else counterclockwise
 
20
Q: Solve the Halting Problem for Befinge

Challenger5Let's define a simple 2D language, which we'll give the incredibly original name befinge. Befinge has 5 instructions. <>^v, as in most 2D esolangs, redirect the instruction pointer in their respective directions. The other instruction is ., a no-op. The instruction pointer starts out at the top-l...

Related
 
and you print the belt but with > V < and ^
@Pavel not really
its always a loop
example
 
Not dupe
Just similar
 
aaa
a a
aaa

becomes

>>v
^ v
^<<
@Pavel not really still
apart from being to do with 2d stuff
but then there should probably be a tag
 
@EᴀsᴛᴇʀʟʏIʀᴋ hahaha, no that was not on purpose
 
5:31 AM
Do we not have the challenge "Given a string, open a browser and Google that string"?
 
Don't think so
 
aaa
a a aaa
a a a a
a aaa a
a     a
aaaaaaa

becomes

>>v
^ v >>v
^ v ^ v
^ >>^ v
^     v
^<<<<<<
 
aaaaa
a a a
aaaaa
Valid?
 
nope
its always just a simple loop
topologically
 
You should make it so people are allowed to use any character no in ><v^
 
5:38 AM
yeah
thats not the main part of the challenge
its also not actually going to affect many
 
0
A: Sandbox for Proposed Challenges

Techrocket9Expose nondeterminism resulting from the OS thread scheduler As we all know, modern operating systems have thread schedulers that can pick different orders to schedule your threads based on internal logic which your code is not privy to. Normally you architect your multithreaded code to ensure t...

 
hmmm, it s possible for some ambiguous parsing...
 
if the belts touch...
this lang is already hard to implement
 
@HelkaHomba not seeing any issues
 
5:49 AM
Not working in chrome but ok in firefox
 
It slows down my browser a ton, but renders ok
 
@HelkaHomba Works fine in Chrome (although I do happen to be opening it on a Thinkpad)
 
 

« first day (2176 days earlier)      last day (2674 days later) »