« first day (2044 days earlier)      last day (2789 days later) » 

10:01 AM
Is this valid or am I missing something?

1h
1hh
1hhh
1hhhh
1hhhhh
1hhhhhh
1hhhhhhh
1hhhhhhhh
1hhhhhhhhh
1hhhhhhhhhh
for x=2
 
if h means +1, it looks valid yes
 
h does mean +1
it's kind of boring that that's valid Pyke and reversed is valid Pyth
 
what are the fewest characters banned that prevent Python from writing to STDOUT?
 
@muddyfish Nope, that's valid
 
10:09 AM
@xnor et? Does that do it?
 
@DerpfacePython marsultor.myftp.org :D
 
@Sp3000 i think so -- are "print, exec, eval, import" all you can do?
 
I was thinking open as well
But yeah those 5 were the ones I considered
 
what does open let you do?
 
10:11 AM
I think there was something about open(0) on Linux systems?
 
does it write to STDOUT as if it were a file?
 
@DerpfacePython oh wait
 
@muddyfish 1hhhhhhhhh = 10 and 1hhhhhhhhhh = 11 are invalid
 
10:12 AM
> file is either a string or bytes object giving the pathname ... of the file to be opened or an integer file descriptor of the file to be wrapped.
So yeah I think it allows file descriptors (Source)
 
@muddyfish Abandon all work ye who enter here
 
@DerpfacePython I borked it
 
Traceback (most recent call last):
File "C:/Users/derp/Downloads/logicode.py", line 300, in <module>
if os.path.isfile(argv.file[0]):
IndexError: string index out of range
 
@DerpfacePython exactly?
 
Completely borked
 
10:14 AM
@DerpfacePython I use a file as input
 
sigh...
 
@DerpfacePython Try now?
 
@Emigna I guess I may as well just accept your answer now :P
 
???
You will never know
You will never ever know...
It is now removed from your memory
Completely wiped from existence
 
10:16 AM
@DerpfacePython opens revision history
 
:(
Crap how do I delete that message
I need to delete the message
 
You can't. The edit/delete window is closed now.
 
@xnor In case you haven't managed to test it: ideone.com/pfDPjH
 
Input is raw_input
 
(should have said open(1) rather than 0)
 
10:19 AM
@zyabin101 (silent laughs of madness ensue)
 
@DerpfacePython I used python 3
 
Ummm
Doesn't return anything
 
@zyabin101 you won't believe my current CPS then
:D
 
@El'endiaStarman This guy made a book! youtube.com/watch?v=JIM-IWh_-n0
 
10:24 AM
It's been three months... New challenge posted, hope you like it =)
0
Q: The ten hundred most common words

Stewie GriffinThis question is written because "Thing Explainer" is fun to read, and gave me an idea. Write "stuff that makes computer do things" that reads/takes a set of letters, numbers and things like this "#%|? and returns True / 1 if all words are part of this set. If all words are not part of that set...

 
Uhhhh
Doesn't read files properly
Can't read the file
 
0
Q: The ten hundred most common words

Stewie GriffinThis question is written because "Thing Explainer" is fun to read, and gave me an idea. Write "stuff that makes computer do things" that reads/takes a set of letters, numbers and things like this "#%|? and returns True / 1 if all words are part of this set. If all words are not part of that set...

 
@DerpfacePython How are you using it?
 
Going on cmd and doing python logicode.py at the folder
I placed it into a separate folder with a logicode file
 
you need -f
 
10:28 AM
(Which has a file extension .lgc)
I changed that bit beforehand, don't worry
 
Hmm
How is it errorring?
 
Ah I got it
Don't worry
 
@DerpfacePython BTW I'm still making changes
 
Ah
Do a PR on my repo
'Cause I need to make changes as well
 
But how
It's completely different
 
10:31 AM
OK... whenever I put a print(code) into get, the program goes into an infinite loop
So I can't analyse the code
 
pls have a look at this
1
A: Capitalize first letter of each word of input

dieterGNU sed, 19+30 (regex penalty) s/(^| +)(.)/\1\u\2/g (thks @manatwork for helping me save 4 bytes) Usage : sed 's/\(^\| \)\(.\)/\1\u\2/g' <<< "eCommerce and eBusiness are cool, don't you agree, Richard III?"

 
@DerpfacePython What do you mean
 
I'm trying to debug the code
 
What does it output
 
10:32 AM
Because the code returns a boolean instead of an int
 
Yeah, I made changes
 
So like True and False instead of 0 and 1
 
def Print(result):
	print("".join(list(map(basestring,map(int,result)))))
 
the source has 20 bytes without -r so 21, but on usage he actually adds escape chars to the code, but doesn't count them either with or without and -r
 
10:33 AM
Wot but why
 
@DerpfacePython ?
 
But why boolean?
 
Wait, probably better to change directly at the map(op.not_
 
should I downvote?
 
OK... this doesn't return anything
 
10:35 AM
also says GNU sed doesn't require -r, but just because he adds the escapes himself on run
 
@DerpfacePython ???
 
circ xor(a,b)->(!(a&b))&(a!b)
circ halfadder(a,b)->(a&b)+(xor(a,b))
out halfadder(1,1)
 
@DerpfacePython What is a!b supposed to do
 
@ASCII-only it's not meant to do anything
It's meant to be like !a
 
uh what why
 
10:39 AM
! is NOT
 
Yeah
 
What's a NOT b?
It's meant to be NOT a
 
How does a NOT b turn into NOT a
NOT is unary
 
No, a NOT b doesn't exist
It's just NOT a
Which is !a
 
It's even invalid in Python, meaning your interpreter syntax errors on it as well
 
10:41 AM
What do you mean?
 
Try that in your interpreter
Should throw SyntaxError: invalid syntax if I'm right
 
Cause it's not meant to happen!
 
Exactly
 
a!b doesn't happen
It's meant to be !a
Oh
I see
That was a typo
It's meant to be a|b
Sigh... I'm so stupid sometimes
Ah KK it works
 
If I downvote, and then he makes correct edits and I undownvote, will he get the 10 rep back?
 
10:45 AM
@seshoumara Not really
because he only loses like 2 rep in the first place
 
aaa, well, it's not that much
 
@DerpfacePython BTW how exactly is cond supposed to be used?
 
cond arg->{if arg==1: exec}/{else}
2 code blocks separated by "/"
What is *?
 
@DerpfacePython ?
 
There's a bit in the grammar with *
 
10:48 AM
Oh, that means optional (like in regex)
 
Also I'm figuring out how to do heads and tails
Oh
 
Challenge deleted and posted in the Sandbox. Comments are welcome...
Please let me know if you were writing an answer to the challenge, and I'll undelete it. (No votes, comments or responses in 30 minutes suggests no one was working on it).
 
@DerpfacePython Haven't tested that with a no-arg circuit though so you should probably make sure it works
 
Wot u mean?
 
It might not work since I haven't tested it, so you can test it with a circuit with no arguments, which makes use of that part of the grammar
 
10:52 AM
7
Q: Print 10 × 10 square of X and O characters, split diagonally

ShammyI'm going through a beginners exercise for writing a small program in Java. My task is to print out (i.e. find an algorithm) the following output XOOOOOOOOO XXOOOOOOOO XXXOOOOOOO XXXXOOOOOO XXXXXOOOOO XXXXXXOOOO XXXXXXXOOO XXXXXXXXOO XXXXXXXXXO XXXXXXXXXX I have figured out how to do it but th...

 
Oop, it doesn't work
 
^^ Challenge idea: Golf the task in this question.
 
0
A: Sandbox for Proposed Challenges

Stewie GriffinThe ten hundred most common words This question is written because "Thing Explainer" is fun to read, and gave me an idea. Write "stuff that makes computer do things" that reads/takes a set of letters, numbers and things like this "#%|? and returns True / 1 if all words are part of this set. If...

 
@DerpfacePython Testcase?
 
circ noargs()->1
out noargs()
 
10:54 AM
250K cps
 
@Optimizer I bet the results are faked.
 
ok how much u think it is ?
 
@DerpfacePython Oh, luckily it was a simple fix :D (change line 115 to return lambda scope: arguments)
 
In arguments?
 
@zyabin101 ?
 
10:58 AM
@DerpfacePython Can you write a cond testcase as well? I have a feeling it's supposed to be used a bit differently to how I think it's supposed to be used
if len(arguments) == 0:
    return arguments
 
@DerpfacePython Change that ^^
 
What where
 
@DerpfacePython def Arguments, lines 2/3, just change the return arguments part
 
11:00 AM
@Optimizer Argh! I lost! @_@
Okay @Optimizer, do you have ?
 
no
 
Well, I have.
Do you have ?
 
coz u changed the name ?
can you instead ask row,col ?
 
I did this
 
@Optimizer Yup.
 
11:03 AM
def Arguments(result):
    arguments = result[1]
    if len(arguments) > 0:
        arguments = arguments[0]
        while isinstance(arguments, list) and isinstance(arguments[-1], list) and len(arguments[-1][0]) == 2:
            last = arguments[-1]
            arguments = arguments[:-1] + [last[0][1]]
    return lambda scope: arguments
 
@DerpfacePython You don't need the > 0 part
 
Oh yeah
How do I add heads and tails?
 
Depends, what do you want the syntax to look like
 
ummm
var headtest=111
var headchop=headtest[h]
var tailchop=headtest[t]
 
@zyabin101 do you have 350K cps ?
 
11:06 AM
just like that
 
@Optimizer Nope.
 
@ASCII-only ?
 
@DerpfacePython I don't have postfix operators yet, brb
 
@ASCII-only Rhubarb.
 
11:10 AM
I have 32 achievements - @zyabin101
u ?
 
@DerpfacePython I have a feeling this is going to go badly :(
 
@Optimizer 11.
 
Things I write only rarely work the first time
 
LOL
I can fix them, DW
 
11:15 AM
@DerpfacePython Done :D
 
I just disconnected the entire memory card compartment on my computer from Windows. XP
 
@zyabin101 I don't think that's supposed to happen
 
The compartment is one device that powers all of the memory card slots.
And I accidentally, while trying to safely disconnect the SD card, disconnected the entire compartment instead. XP
 
@DerpfacePython what use would that be though
 
11:20 AM
What use would what be
 
Conditions
 
Running on 24.4 cps...
 
idk
Well, they'd be useful for like
Exec'ing code only if byte is 1
 
249975.6 cps behind llamah...
 
@DerpfacePython But depending on what is allowed it probably can't change global state anyway
 
11:23 AM
24.8 cps... 249975.2 cps behind llamah...
I should move the flight logs to the chat Sandbox.
 
oh, i am at 500K cps now
do you think i'll just stay put ?
 
My browser hiccuped me the achievement. How's that, @Optimizer?
 
Cookie Clicker?
 
@StevenH. Yes!
 
@zyabin101 "how is that" as in ?
 
11:27 AM
@Optimizer idk
 
Time to start a new run on this computer :P
Just got Uncanny Clicker legitimately
 
@StevenH. Okay, we surely wait for our achievements!
@StevenH. I got it legitimately, too, because the browser hiccuped.
 
My computer is pretty hard to lag, I mean I clicked fast enough
 
me too
 
And now I'm gonna create a room to not fill this one with Cookie Clicker things.
 
11:30 AM
add me
 

 Cookie Clicker

Discussion for orteil.dashnet.org/cookieclicker | Too active m...
Huh, no room owner privileged user is active here recently.
 
5 were not enough
they should have simply made me
 
@ASCII-only Yeah, they don't work
 
@DerpfacePython ?
 
The heads and tails
 
11:40 AM
You have redownloaded it right?
 
What are you using as a testcase? It works fine for me
 
Ummm
What exactly does scope do in all of those lambdas?
 
passes scope in
Only some make use of scope
 
Ummm
OK
How exactly are the functions called?
 
11:55 AM
@DerpfacePython functions?
 
why is everything basestring?
Yeah, all of those functions up the top
Arguments, Circuit, etc.
 
@DerpfacePython Python 2 compatibility
@DerpfacePython They're to turn the tokens into functions so you can interpret them, they're all in the dictionarytransform except for Print
 
astify isn't used
Yeah, it doesn't work
Because the first byte of your test is 0
 
@DerpfacePython Yeah, I had it there mainly for debugging with get when I changed it to grammar mode
 
So the whole output gets condensed down to 10
So nothing happened
Yeah, so the code still doesn't work
 
12:06 PM
@DerpfacePython What code?
what doesn't work
It's working fine for me
 
The head and tail bit
When I replaced the [t] with [h] in your test.lgc
It still came up with 10
 
wait 10?
 
For me it only shows one digit
 
Really
Wait did you update your code again?
 
12:14 PM
I don't think so
If [h]/[t] work, it should be the most recent, but maybe download it again just to be safe
 
Basestring is being weird
 
@DerpfacePython ?
 
Showing an error: invalid basestring value: "test.lgc"
 
@DerpfacePython Update again?
@DerpfacePython I had that error on the second latest version
 
Yeah, it's now fixed
Wait, what did you fix from the previous one
To make the [h] and [t] work
 
12:17 PM
No idea
I never got 10, so maybe I skipped testing on that update
Maybe it's the one when I fixed the bit parsing, it was returning a string before, I fixed it so it returns a list of ints
@DerpfacePython I need a testcase for bit concat
 
Ah
Just use xor and halfadder
 
Oh wait, that means it's been working :D
BTW, added support for multiple files just now, so you'll be able to add library files before running a file or just run multiple files at once
 
hai
hw r u?
 
> Homework are you?
 
12:31 PM
Doesn't look like it's updated yet
 
Oh whoops fixed
should be just python -f file1 file2, if the extension is .lgc you don't need to include the extension
Also, bitwise ops should work for multiple bits, it's just there's no multiple bit random
 
Greetings, everybody
 
I wrote a FRACTRAN program! Woot!
 
Whoa!!!
Woot!
 
@GLASSIC ydobyreve ,sgniteerG
 
12:38 PM
gcd(a,b) in 13 fractions. 2**a*3**b*7 -> 5**gcd(a,b)*7: 55/42, 7/11, 19/21, 13/14, 51/65, 13/17, 14/13, 46/57, 19/23, 58/19, 186/145, 29/31, 7/29
 
Did anyone check the Remaining Bytes?
 
OK, now a half-adder doesn't work
Crap
 
@DerpfacePython Still working for me though
 
@zyabin101 Why, what's up?
 
I added topic proposals ^_^
 
12:48 PM
@DerpfacePython What code are you using
 
@zyabin101 Neat. I'll hop on
 
0
Q: Convert to Bibi-binary

TuukkaXBibi-binary is a numeric system invented by Boby Lapointe in order to represent numbers in letters which pronunciation seems funny. Your task is to convert decimal numbers into Bibi-binary! Conversion Each number is converted in base 16 (hexadecimal) and each character is replaced by its Bibi-...

 
@Sherlock9, so, do I need to evict your personal Google profile from the space?
 
I was going to leave
 
@Sherlock9 your personal Google profile from the space?
 
12:54 PM
Yeah, and use the Sherlock Nine profile in its place
 
Okai. :3
So, Sherlock9, there is only one open proposal: code golf, but you can post a quote to make another one, explaining the topic and the expected audience.
 
somene have a esolang idea?
 
@TùxCräftîñg I don't.
 
@TùxCräftîñg i have an idea but it's something too boring
 
1:07 PM
@ReleasingHeliumNuclei Gimme!
 
name of the lang is )
its basically C but uses these
 
@TùxCräftîñg wow
 
@ReleasingHeliumNuclei You mean Ɔ
 
@ASCII-only name should be ascii i thinks
 
1:09 PM
Ɔ already exists
 
i was sure it exists
¯\_(ツ)_/¯
it's a language where a valid program is a C program that dont compile on GCC
 
@TùxCräftîñg ಠ_ಠ
 
@DerpfacePython Oh wait now you can add Logicode to TIO because no eval anymore :D
 
what are the requirements for a language on TIO?
 
1:15 PM
Hi guys
 
@flawr Oh man I want that now...but money...
 
Any idea where I can find a good figure for the mean CO2 yield of a class 3 volcanic eruption?
 
@TùxCräftîñg Almost none, I think it's just basically if it's safe to run then Dennis will add it
 
@SuperJedi224 syug iH
@ASCII-only so no Ru on TIO :/
 
@TùxCräftîñg Yeah
 
1:17 PM
for floating point numbers Ru rely on ruby eval
ʌ“ruby code”
 
@TùxCräftîñg You can't use to_f?
 
@SuperJedi224 Welcome back, SuperJedi224! Come back to the GoL room, we miss you. >.<
 
@ASCII-only brb adding feature
 
@TùxCräftîñg wat
 
»  echo 'ƒ“10.5”+1' | ./ru c
11.5
yay
 
1:20 PM
@TùxCräftîñg Oh yay it works now
 
now pushing on GH
done
ಠ_ಠ
why Ϟ is in Metavariables in the doc
 
@Mego Help, I rewrote DerpfacePython's interpreter, I'm sure it has a lot of issues other than too many PEP8 violations, and I'd appreciate if you could do a quick review (if my server is still up)
 
> 100 PEP8 violations
 
@TùxCräftîñg I didn't actually check, that's a very rough estimate
 
1:36 PM
Jesus Christ, -7? What did I do to deserve that? :/
-7
Q: Outputting x to y

βετѧ ΛєҫαγChallenge You must choose one number x (y = x + 9) and create ten unique programs which each print out one of the numbers in the range x to y inclusive. However, there are three twists: Each program's score is the difference between length of your program in bytes and n (where n is the number ...

 
brb downvoting to get to -15
 
Beats me. I feel like the challenge allows for some interesting answers due to the scoring mechanism not favoring golf-languages.
 
everyone have a score of 0 ಠ_ಠ
 
I stopped reading as soon as I got to "comments are not allowed..."
 
Yeah, almost any language should be able to get a score of 0, so maybe that is the drawback
The trick in many languages is to find the x which allows for this
So maybe that could have been included in the scoring somehow to make it more diffcult
Though I'm not sure how
 
1:43 PM
Mm. I don't think it's possible with an objective spec. Your idea of golfing golfable programs could work
So how can I use this question to get a badge?
 
@βετѧΛєҫαγ delete it to get the peer pressure badge?
 
@βετѧΛєҫαγ Did you Sandbox this? Also, though I haven't voted, I probably would've downvoted in part to triviality (in the sense that it's pretty easy to pad out programs without using comments) and in part due to the somewhat-arbitrary restriction of not using any characters in the English words for each digit. That there are six answers all tied with a score of 0 is kinda the nail in the coffin, I think.
 
0
A: "Hello, World!"

zyabin101Python 2 + g.py, 35 bytes import g;g.h("Hello, World!");g.o()

^ The first g.py answer :3
 
@El'endiaStarman Yeah, it was sandboxed
And I had my suspicions that it'd be trivial for golfing languages. I expected more participation from other languages
 
0
A: Outputting x to y

TùxCräftîñgRu, score = 0 x = 2 ’1 ’’1 ’’’1 ’’’’1 ’’’’’1 ’’’’’’1 ’’’’’’’1 ’’’’’’’’1 →’’’’’’’’2 →’’’’’’’’’2

._.
 
1:55 PM
@TùxCräftîñg i don't understand this challange
 
it's a stupid challenge
 
@TùxCräftîñg God dammit XD
 
Anyone care to explain, plz?
 
1:57 PM
0
A: Find every digit from the largest column

cia_ranaRuby, 75 bytes a=[*$<].map &:chars puts a.shift.zip(*a).max_by{|e|eval e*"+"}.delete("\n")

it look like haskell lol
 

« first day (2044 days earlier)      last day (2789 days later) »