« first day (2363 days earlier)      last day (2773 days later) » 

20:00
I like how Jelly was the example language, even though other languages also have a custom code page.
Okx
Okx
it has 2 fibs and 2 * 4 is 8, which has a square root of ~2.82
@MDXF You have a way to translate binary to your encoding and back again
Jelly is the most popular among us
@StepHen >.< can't I just pretend? :P
@MDXF you have to have a raw binary file that has the number of bytes you say
@Okx 2 and 5 are fibonacci numbers, the length of the list is 4, so it's 2 * 4 = 8 is a fibonacci number
Okx
Okx
20:00
8 is not a square number
@MDXF Basically, what you need to do is have the compiler/interpreter/whatever take in raw binary, and then designate that 00000000 means blah, 00000001 means foo, 00000010 means bar, etc.
Okx
Okx
that's what you specified
@StepHen Lame. So could I just add a translator that, e.g., transforms \u1234 into ASCII 2?
The rules here is there has to be an interpreter that can read the code as-is
20:01
@Mr.Xcoder Is not -1 not composite?
@MDXF pretty much, and then when it reads 00000010 it does what you want
@BusinessCat -1 should be composite
@StepHen Okay cool, that's a lot less work than I imagined
0 and 1 are definitely not composite though
@BusinessCat It is. My Pyth answer is invalid o_O
It is composite or it is not composite?
20:03
@BusinessCat -1 is composite
(I really shouldn't ask questions with negation)
15
A: What is a character encoding, exactly?

Martin EnderCharacter encodings are just a convenience to make programs more readable if they make use of more than the usual 97 ASCII bytes (printable, plus linefeeds and tabs). At the end of the day, the only thing that matters is there must be an actual file with the claimed byte count that, when fed to y...

So the only non-prime numbers that should also be removed are 0 and 1?
Don't: Don't use negation in questions.
@BusinessCat Yep
Don't: Not avoid not using no negations in questions
20:05
@StepHen Cool. So now I have to make my language "compiled" :I
@MDXF ?
@Mr.Xcoder Gaia, 6 bytes: ṗ⁈0₁,⁻
@BusinessCat Does it handle negatives?
So that "At the end of the day, the only thing that matters is there must be an actual file with the claimed byte count that, when fed to your interpreter, runs the intended program"
20:06
Wait is it supposed to remove negative primes?
So, source-file-with-unicode.txt | fake-compiler | interpreter
VTC as unclear
@BusinessCat No, they're composite
@BusinessCat I would consider them composite
20:07
Gaia doesn't consider any negative number prime
@BusinessCat It's not unclear
compiling has nothing to do with code pages
OK then it's fine
@MDXF no, the source file doesn't have Unicode
It filters out primes then removes 1's and 0's
20:07
I'm confused, I thought I could translate Unicode to raw ASCII and call it good
@AdmBorkBork He's saying the output of fake-compiler is in raw ASCII
@StepHen yes that
There are no prime negative numbers, except for -1
@Mr.Xcoder hmm, I wouldn't quite make that claim
@StepHen Why?
20:08
@Mr.Xcoder But you said -1 was composite earlier...
@StepHen Why?
@StepHen No, that's not how a code page works
@AdmBorkBork Then screw the code page. Would I be allowed to do that?
@BusinessCat I didn't specifically refer to -1, sorry
So it should remove -1
20:09
'cause shortC and Forked and Triangular ran out of characters, but I still want to implement more things
@AdmBorkBork It can be, that would be implementation
Okx
Okx
CMC: Given two lists, concatenate them (would like to see solutions in practical languages) ie [2 5] [6 1] -> [2 5 6 1]
@BusinessCat Ignore my CMC
@Mr.Xcoder For some definitions of prime numbers, they must be > 1
@Okx Python: +
Okx
Okx
20:10
cheat
@BusinessCat lambda a,b:a+b (I think)
list.__add__
@StepHen Yeah that would be the proper one
@totallyhuman that works too
20:10
@StepHen You'd need to claim "fake compiler + interpreter" as the language, then, not just "interpreter"
At which point, you're back to counting the raw bytes of the Unicode-enabled source file, and so you haven't saved any bytes.
@StepHen and is golfier :P
@AdmBorkBork the fake compiler is just a helpful program to convert. How else does Jelly take Unicode and save it? with a program...
The fake compiler converts unicode to where it is mapped on the code page, right?
So that you have a binary file to give to the interpreter, with the correct bytecount
OK, yes, then the binary file has the correct byte-count for scoring.
Sorry for misunderstanding.
@Okx One byte in Vim: J
@Okx Ok then Racket, 6 bytes: append
Okx
Okx
20:13
the builtins
someone do it in java
@Okx Swift, way too many bytes: func f(n:[Int],m:[Int]){print(n+m)}
Okx
Okx
yay xD
Mine's not a builtin. It's just a clever use of vim's functionality
It actually has no list support
@Okx Wanted practical language, you got practical language
@Okx APL, J, K, Q: ,
Okx
Okx
20:15
okay then i give up
Polyglot...
Easy CMC: Given two lists of the same lengths, group their corresponding elements (like zip)
[1,2], [3,4] -> [[1,3],[2,4]]
zip
probably a polyglot
@totallyhuman So creative
yes i am very good at this
Pyth outgolfs everybody: C
20:18
Jun 28 at 17:01, by Dennis
@StephenS Unless your text editor happens to support Jelly's code page (which is extremely unlikely), you can only craft non-Unicode Jelly source code by hand or using your own converter.
Here we go, this is where I'm getting this info (had to find it, sorry), I had a discussion similar to this with Dennis a while back, when I was a lot less informed
Yes, I was misunderstanding which file was being counted for the byte-count
I'm with you, now
I didn't think of adding a zip to Cthulhu, so the answer to my own CMC would be looong
Jelly, 1 byte: Z
@totallyhuman Tied
Okx
Okx
@Mr.Xcoder Neim, 0 bytes jk
20:20
@Okx Don't believe you, sorry
Okx
Okx
neim is incapable of lists with more than 1 dimension
@Okx List of tuples?
@Mr.Xcoder # [V], 13 bytes ò<C-v>iwjldGo<esc>pJH
Okx
Okx
tuples?
Woopsies
20:20
@Okx (1, 3)
Okx
Okx
how are they different from lists?
why would golflangs have tuples :P
key-value pairs?
@totallyhuman Pyth has
well that's because pyth is golfy python
@Okx They are immutable
20:21
They're very useful
Okx
Okx
don't see the point of that
268
Q: python: list vs tuple, when to use each?

flybywireIn Python, when should you use lists and when tuples? Sometimes you don't have a choice, for example if you have "hello %s you are %s years old" % x then x must be a tuple. But if I am the one who designs the API and gets to choose the data types, then what are the guidelines?

@Okx What's the point of strings then, when you can just have lists of characters? :P
Ignore the python: in front
@Mr.Xcoder why'd you link to the dupe?
20:23
@totallyhuman I like that one more
How Java looks, if you built a math-syntax DSL extension for it.
684
Q: What's the difference between lists and tuples?

Lucas Gabriel SánchezWhat's the difference? What are the advantages / disadvantages of tuples / lists?

if tuples are more efficient i should probably use it for sequences in my oeis library
Okx
Okx
@mınxomaτ downvoted is not portable
@totallyhuman They are a lot more efficient, but remember that they are immutable, so once you build them, you can't modify them
20:26
Exactly
@Okx It's pretty portable
I don't need to modify them
Okx
Okx
you need an extension
to see it
It's a projection. You can also use a textual projection, the code generator doesn't really care.
As it's not parsing anything.
@totallyhuman how do you plan to use them?
20:33
> later
Maybe now @LeakyNun ?
@Mr.Xcoder I'm about to sleep
@LeakyNun what do you mean?
@LeakyNun Me too
@DJMcMayhem Nice one - the vim challenge!
Can you help me with getting a working V TIO?
@LeakyNun Wait, what's the time there (just curious about the time zone)? It's 23:35 HERE
20:35
@BruceForte I'm glad you like it! :)
What exactly do you need help with?
@Mr.Xcoder it's 4:36 here
@LeakyNun AM?
yes, bye
HONG-KONG?
Oh hey BruceForte's name reminds me... are there any existing tools to brute-force Brainf**k?
20:36
Bye
@Mr.Xcoder yes
@LeakyNun BYE
@LeakyNun I'm across the world from you :P
@Mr.Xcoder uhh caps lock?
@StepHen I live on the same planet as you :P
20:37
@totallyhuman IT'S STUCK, DUNNO WHY
@Mr.Xcoder then press shift...
@Mr.Xcoder try shift with caps lock
@StepHen ninja'd
@MDXF I'M USING A MAC, SHIFT HAS NO EFFECT WITH CAPS LOCK
20:38
@Mr.Xcoder bummer
Oh that's ridiculous
@Mr.Xcoder Then follow the two basic IT steps
Fixed.
1 - "have you tried turning it off and on again?"
2- "kick it, mom! that always works on TV!"
@DJMcMayhem When I have xxxi I'm in insert mode, how can I do <C-r> (yes, I cracked it ;))?
20:39
Awww. I'm gonna need to step up my game :)
@BruceForte You could use this character: '', or <C-r> in verbose mode
5 messages moved to Trash
2 messages moved to Trash
Oh boy
Enough eyes and faces and boxes and stuff
@DJMcMayhem Maybe, but it was fun :)
I'll try that, one moment
@DJMcMayhem boxes?
The gigantic onebox
20:41
@MDXF welcome back?
@DJMcMayhem Sowwy
@Poke Yup (for a week) :D
CMC: positive n -> n! - n
@BruceForte I'ma actually very pleasantly surprised that  shows up in chat
@MDXF pshaw only a week?
20:42
@Mr.Xcoder cQuents: #|1:f(A)-A I think
@Mr.Xcoder Again, I need a mode that shorthands #|1:
@DJMcMayhem At my end it doesn't, but it works on TIO
cheers!
@Mr.Xcoder Test case?
Would a version of this challenge with circular Braids be interesting?
,,,, 4 bytes: :!⇆-
3 -> (factorial: 6) -> 3
20:43
53 mins ago, by MD XF
ok I've got a week off of work and I want to make the best of it, i.e. waste it all on code golf. Any new challenges to answer in my esolangs?
Pyth, 3 bytes: -.!
@DJMcMayhem you know what the best way to win your challenge is? Find a language that is thought to be impossible to add in, figure out how to add in it, then post the emtpy string as your snippet
@MDXF how is the new job going
4 -> (factorial: 24) -> 20
@BruceForte Would you post a cop? I'd love to try my hand at cracking it. And clearly you know enough obscure vim
20:44
1 -> (factorial: 1) -> 0
@LeakyNun Trying to factor primes like: no more memory and swap space for me
@Poke Really great, I could likely spend time on code golf if I wanted to
What do you do at your new job
Job-wise, I love it, much better than the previous. Time-wise, I have more time on my hands than I expected, but I don't want distractions
Phuu, I would have no idea - sorry.
20:45
Senior software developer
PowerShell in 31 bytes -- param($n)($n..1-join'*'|iex)-$n ... I don't think there's a shorter way to factorial
@MDXF well that's vague ;)
OK wth did I do to my interpreter
If you haven't noticed I like to keep my identity mine on SE :P
2 mins ago, by Wheat Wizard
Would a version of this challenge with circular Braids be interesting?
20:46
For some reason #|1:f(A))-A works but #|1:f(A)-A outputs 1
0
A: Sandbox for Proposed Challenges

ZgarbFake divisor sum polyglots code-golf sequence polyglot The task In this challenge, your task is to write a program in a programming language L that takes a positive integer n, and outputs the sum of the proper divisors of n (sequence A001065 on OEIS). It should return the correct output for ...

I relly abuse pyth's implicit input. It should be -.!QQ instead, but -.!
Bye!
@MDXF i can appreciate that
@Poke IIRC... all anyone knows about me is that I'm a developer, male, and I don't have a life. oh and that my name's Aaron Ryan with three more names I'm mostly embarrassed of
hey me too
20:47
@MDXF ... and I believe your full name and location?
@StepHen location? Oh I just picked something random
@Poke :o your name is aaron ryan too?
@MDXF Aaron Julio Ricardo Montoya De La Rosa Ryan?
@totallyhuman I edited after he said that
@musicman523 heh I wish. Nah, one of them's a girl name, one means something really weird in German, and another one isn't really a name
@totallyhuman yeah but i spell it with 3 a's
20:49
@Poke It already has three a's
@Poke AAron ryAn
@StepHen he means aaaron. Probably
@StepHen i regretted that as soon as i said it
@MDXF actually meant ryaaan
;)
ಠ_ಠ this conversation is going nowhere
Well, it might be going to the trash
@StepHen Seven twelve redirects later it's still loading
20:51
@MDXF ik i was jk
A-a-ron
^^ that must be my most horrible sentence ever
@AdmBorkBork When I was younger and people asked what my name was I'd say "double-a ron"
I was going for a Key and Peele skit
substitute teacher
I personally prefer "an aron" as it is both grammatically correct and pokemon
20:54
><>
@StepHen I don't get it, the bridge clearly connects two trails
@MDXF I just searched for "google maps nowhere" and that came up, then Google wanted me to login and I didn't, so sorry if it was disappointing
that first one is a clever optical illusion
Yeah I need a life, see y'all later o/
20:59
Also outta here. Seeya, folks!

« first day (2363 days earlier)      last day (2773 days later) »