« first day (2390 days earlier)      last day (2469 days later) » 

12:05 AM
what's a good symbol for the opposite of the splat operator (*)?
I need a symbol for un-splat for tacit(/pointfree?) Proton code
 
/ :P
 
no that won't work :P
 
What symbols do you have free
 
er, none.
I'd have to reuse binary operators
since the splat and unsplat are prefix, I can distinguish them from binary easily
 
How does unsplat work?
 
12:10 AM
essentially you have a function, and you unsplat it, meaning that a new function is created which takes any number of arguments, puts it in a list, and feeds it to the original function
so unsplat(len)(1, 2, 3) would give 3.
 
so, unsplat = (f) => (...a) => f(...a)
or unsplat = (f) => (*a) => f(*a) depending on your choice of splat
 
yeah, the second one.
or really you could just do f => *a => f(*a), I think it's more readable :P
 
So basically a shorter form of [f(i) for i in a]
 
no
that's map
basically a shorter form of lambda f: lambda *a: f(*a)
wait no
it's f => *a => f(a)
 
Wait I got confuse
The arguments is a list and it gets called on that list
 
12:22 AM
@HyperNeutrino you know, if you dropped all the bitwise operators or made them functions/keywords, you'd have a lot more operators...
 
bitwise operators aren't meant to be keywords. I think you mean logical operators?
and yeah I could do that
I took out && and || but that doesn't add more symbols
You know, operators can be multiple symbols, so I have theoretically infinite operators :P
anyway gtg for now o/
 
@HyperNeutrino So unsplat is like this?
 
 
2 hours later…
2:28 AM
@BusinessCat yes. and wow chat has been quiet
 
waits patiently to be berated for his horrible pun
Oh wow, nevermind, nobody's here... salutes a solitary passing tumbleweed
 
what you made pun?
CMC: Given two numbers x, y, return (x * y) - (x / y)
 
J: *-%
 
o nice
Why %?
 
@NewSandboxPosts comeon bro...
I have 10% battery left!
 
2:42 AM
@HyperNeutrino because / is reduce
 
ah ok
 
*¹²/-
 
0
A: Sandbox for Proposed Challenges

Magic Octopus UrnInteger? I Barely Know Her! Good christ... that's a bad pun... Given a string s and an integer n perform the IIBKH action on it, as described below. For an example string of What are those people doing? and integer 19241293124. Sort the string by ASCII-character value and remove duplicate...

 
"Integer? I barely know her!" shows self to door
 
the line after the header is hardly necessary
 
2:44 AM
It's a sandboxie haha... None of that will stay when I actually post it, can't think of a good title.
"Arbitrary base Conversion"?
 
what on earth is "IIBKH "
 
I don't even get the "pun" ._.
hey I figured out how to do my CMC in Proton
((*),(/))>>*(-)
 
3:00 AM
thanks
I personally quite like Proton's obscure syntax :3
I tried to make function composition as easy as possible
that pretty much means x, y => (x * y, x / y) >> (subtract)
 
@HyperNeutrino wait what does >> mean? composition?
 
reduce I think
 
compose
wait hold on why did I just do this
now >> means the same thing as +
hold on I just duped the operator's meaning ._.
I had a different definition for >> earlier but I changed it to make this work, but this whole time, + worked
nvm make that ((*),(/))+*(-)
 
so what is (x, y) mean?
is it vectorization or something?
 
no it just calls multiple functions
so (a, b)(*c) is equivalent to (a(*c), b(*c))
so like distribution of function calling over arguments
 
3:08 AM
ok so ((*), (/)) >> (-) == (args) => [ (*)((-)(args)), (/)((-)(a)) ]
 
not quite
((*),(/))+(-) means x, y => (x => x[0] - x[1])((x * y, x / y))
 
oh, then imo it should be << if its composing the other way
 
well no it's mul,div then into sub
 
oh then wouldn't (a, b) >> c be c((a, b)) not (a(c), b(c))?
 
no
wait yes
here you can try it online in a bit once it syncs
 
3:16 AM
@HyperNeutrino try it online ftfy
btw i can add proton syntax highlight if you'd like
 
@Downgoat 0/10 has far less features
 
wait you made another instance of TIO? :D
 
@Pavel opls has even more feature
 
@Downgoat o yay thanks that would be nice
 
@Downgoat No. It doesn't.
 
3:18 AM
no it uses TIO just better frontend :P
@Pavel this is objectively false
 
Command line arguments don't even work.
 
> Sorry, Command Line Arguments are not yet supported
 
@HyperNeutrino i need examples of proton syntax though
 
@Downgoat Pretend it's python.
 
3:19 AM
@Pavel still that doesn't mean have less features
@Pavel O_o I can use python highlight?
 
You can start with Python highlight and then add things
 
Proton is "a better python"
 
@Pavel owow
 
wait who said that
 
@HyperNeutrino you did
 
3:20 AM
also I need to change my regex literal syntax. what should I make it?
 
Does it have better lambda syntax than lambda a, b: a + b
 
@HyperNeutrino /regex/flag
 
@HyperNeutrino /abc/flags dosen't work?
 
@Downgoat a, b => a + b or simply (+)
 
:O that is great
 
3:21 AM
@Downgoat it was originally meant to but then it doesn't work with (/) operator functions (btw thanks for the idea, I got that from Cheddar)
 
@HyperNeutrino oic. You could change / to ~ or @, those are used by pcre
 
~ is bitwise complement
 
@Downgoat While I will admit that Vim mode is nice, GoaTIO doesn't support filtering langs by practical/recrearional, arguments, compiler flags, splitting code into header/code/footer, loading hello world, and markdown permalink copying options.
 
@ is enable-cache
 
@Pavel I actually have a search why would you want a list of 100+ items when you can search
also has markdown permalink
 
3:23 AM
There's an SE post permalink.
 
yes SE uses markdown
 
There's not a [Try it online!](link) option
 
wait TIO now has compiler flags
 
@Downgoat In case you haven't noticed Dennis' TIO has search too.
@Downgoat SINCE MARCH IIRC
 
huh that's new
@Pavel wait why would you need this and not SE post link
 
3:25 AM
anyway what regex literal should I use
 
To paste in chat
@HyperNeutrino @"regex"flags@ maybe?
 
I have an idea. It only breaks because of (/) so I just match that separately
@Pavel no that would bork
 
@ expects a function name after it, right?
 
@Pavel oh you can use Copy Permalink to get a permalink
 
And Function names don't start with "
@Downgoat [Try it online!](https://tio.run/##KyjKL8nP@w8EAA "Proton – Try It Online")
Eh
 
3:27 AM
@HyperNeutrino you can also try percent semicolon or backtick
@Pavel oh
I can add if useful. but tbh I type faster than I can click :P
 
That's why Dennis' TIO supports hotkeys for that.
@Downgoat the "Donate" link on your page links to a "Permalink could not be decoded"
 
huh, where's dennis's new donate page?
 
tryitonline.net
(Donations are towards the bottom)
 
ok that should be fixed and if not
 
Cool
 
3:30 AM
I'll add chat permalink later when i have time
 
I think the biggest issue with GoaTIO is that I can't use Ctrl+Enter to run the code.
It's so much more convenient than clicking.
 
@Pavel ok will add too (btw definetly renaming to GoaTIO 10/10 quality name)
 
You're welcome
@ConorO'Brien Can be golfed to main(){putchar(main);}
 
ok done just made opfuncs {...}
 
@HyperNeutrino why doesn't @"regex"flags@ work?
@ always expects a function name after it right?
 
3:42 AM
Because @function enables the function's value cache
 
And those can't contain quotes
 
oh wait that might actually work
In that case then /"regex"/flags also works
 
Well, someone might override division to work with strings.
The way that Ruby deals with this is that if it's ambiguous, it's a regex literal if there's whitescpace after the first / and division otherwise.
 
Anonymous
@Pavel Let's not yell
 
but if it's division then there will be an expression before it, and if it's a regex, there can't be an expression before it
 
3:46 AM
@Mego You don't seem to have anything to say to the two all-caps messages on the starboard >_>
 
@Downgoat Better in the sense that you can't see STDERR? :P
 
anyway I gtg now o/
 
@HyperNeutrino I recommend making (+) an atomic character
 
I wrote GoL in C++, I am proud of myself.
 
Anonymous
3:47 AM
@Pavel That's not constructive.
 
what is atomic char
 
@Downgoat There's no search on mobile. Just a huge select thingie.
 
@HyperNeutrino In that case, /regex/flags works, I think.
 
@Dennis you can see STDERR but better because it now has Goat in its name :P
 
@Pavel no because (/) doesn't have an expression before it but isn't a regex
I have an idea but it will take time and I'm going to sleep now. o/
 
3:49 AM
@HyperNeutrino atomic char means in your tokenizer add like a /\([+-/*]\)/ rule
 
Oh right operator functions
 
that way you won't even have to worry about ambiguity
 
@Downgoat oh that was what I was going to do :D anyway o/ o/
 
any regex starting with /) is invalid (in any sane flavor at least)
:39419653 >_< this is like 5th time I've done this today
that would be y=0 for x=2pi right I am not crazy
I plugged it into my grapher and it's showing 6.6ish
 
Anonymous
@Downgoat Are you on radians mode?
 
3:55 AM
yes
 
Anonymous
@Downgoat Yes
 
oh my the graph goes crazy for x < 0
 
Anonymous
That's your calculator messing up
 
@Downgoat You should replace your grapher with Math(ematica|ics)
 
@Downgoat Brrr, variable reuse.
 
3:58 AM
@Pavel mathematica is only on raspberry pi and raspberry pi is far away in cabinent probably overheating :P
do you generally use online grapher when you need to do graphing (e.g. Demos)? or do you use like desktop app/real calculator
 
@ATaco canvas >>>>>>>> terminal
@Downgoat geogebra
 
Yeah but a terminal is 100% easier for me to write in
 
Either online or offline
 
Anonymous
@Downgoat I use SageMath usually, or matplotlib locally if no internet connection
 
4:03 AM
@Downgoat Or mathics
 
@ATaco well you could have just used my gol thing :P
 
@Downgoat I use Mathematica
It has a painfully slow startup time so I just don't close it.
 
This was entirely me getting used to C++'s memory model.
Also, I use Desmos
 
@Pavel lol, same thing with atom and every electron app ever
 
4:05 AM
@Downgoat I used to have that issue with Atom.
Then I switched to VS Code.
 
@Mego printing, cursive or hoof-writing?
 
Anonymous
@Downgoat Printing. See the other samples for reference.
 
I have some cursive letters from a NN project I tried to do
 
I've just started using VS Code, and I'm loving it compared to Sublime Text.
 
@ATaco I've heard great things about VS code. Does it have the ability to do things like run a command when you save a file?
 
Anonymous
4:06 AM
Cursive would be massively harder because there are less differences between characters
 
@ATaco The next logical step is to ditch Java for C#
 
@Downgoat Not sure, haven't played that much with it yet.
 
@Downgoat IDK, but there's a builtin terminal.
 
@Pavel VS Code doesn't count as a microsoft product.
 
Really.
How do you figure that.
 
4:07 AM
@Pavel Open Source
 
@ATaco So are both .NET Core and mono.
@Downgoat ^^^
 
Open Source
 
Yes
ಠ_ಠ
Microsoft make good things
 
(I got half way through writing and hit enter)
 
Not always, but sometimes.
 
4:10 AM
Microsoft made me pay $140 for an OS I already owned.
Microsoft installed Candy Crush on that OS
 
> PCs are cheap
 
Says the goat with a mac
 
well I guess hardware is like $1000 cheaper
 
> Microsoft installed Candy Crush on that OS
 
I use Windows 10 Pro
 
4:11 AM
I use home, and it saddens me
 
PSA: Don't use fountain pen with 70gsm paper on top of textbook unless you want bad things to happen >_<
 
Pro doesn't even come with Skype
 
Good.
But I'm not paying an extra $60 to not have skype pre-installed.
 
wait what. wtf microsft
 
Think of it as Home as being 60$ less in exchange for having bloatware, like bying a phone with Amazon Offers.
 
4:13 AM
They like to use Home edition as an advertising front.
 
Also, you can buy Pro one time ever and then use it on how ever many computers.
 
I updated my motherboard and Microsoft refused to believe I owned Windows 10, and because I only had the Windows 7 key...
 
Yeah, Windows is kinda bad, and so it Bing, and so is WindowsPhone, but C# is amazing, and VSCode is amazing, and Microsoft Office is great.
@ATaco Well why'd you lose your Windows 10 key
Also, if you bind it to a microsoft account, you can just sign in with that account and have Windows 10.
 
@ATaco can't you use windows without buying it? The only thing it does is not let you change desktop background
omy, the VS Code theme is... wow
 
@Pavel I didn't, but I upgraded from 7.
@Downgoat And it has a watermark
 
4:16 AM
@Downgoat You can skin it to look like atom if you want.
 
I don't mind the default skin.
 
does VS Code use electron or another heavy wrapper or is it all native?
 
Anonymous
@ATaco UEFI? That's rough.
 
Also, yeah, ^^^
 
I'm using VS Light right now.
 
4:17 AM
oh my the file browser is really small
 
@Downgoat Electron, but it's a lot better optimized than Atom
@Downgoat ????
@ATaco Did you sign in with a Microsoft account?
 
0
Q: Generate all numbers whose digits add up to 13 between 1 and 10^10

pjcWrite a program that outputs the sum of all numbers between 1 and 10^10 whose digits add up to 13. So for example 9110010010, 85, 5250100, etc. all count. I'm sorry if this is already a Project Euler problem or something. Please let me know if it is. Winner is whichever runs the fastest on ...

 
@Pavel like each file has a small height
 
@Pavel Yeah
 
4:18 AM
atom has nice big button
did microsoft forget to hire UX engineer
 
@ATaco If you contact support they will probably give it to you for free.
 
Yeah, I wasn't going to bother with that.
It was much easier for me to reformat, get a new key, and bitch about microsoft.
How dare they install Candy Crush on my computer
 
By the way, the installer at microsoft.com/en-us/software-download/windows10 got me pro without asking me for a key or a sign-in. It's either magic or really fucking clever.
 
oh no
VS Code uses electron
 
@Downgoat Yeah?
 
4:21 AM
RIP desktop applications 1970-(creation of electron)
@Pavel electron is bane of my existance
 
So does Atom
 
I've just discovered Electron.
I'm going to be using this, a lot.
 
Please don't
 
Anonymous
Two kinds of people...
3
 
Why make a webapp when I can make a desktopwebapp?
6
 
4:23 AM
Beacuse that desktopwebapp will use up stupid amounts of memory.
By virtue of launching effectively an entire Chrome instance for your one app.
 
I write in Lua, Excessive Memory is my norm.
 
Anyway, to get back to what we were talking about earlier, use C# it's good
 
I understand C# is good, however I prefer Java.
 
y tho
 
Incredible amounts of bais
 
Anonymous
4:26 AM
Let's not be obnoxious with text formatting
 
My baises are more than just the company.
 
Anonymous
3 messages moved to Trash
 
whoops
 
Ha ha
 
@Mr.Xcoder yeah mine would need to be ku$_
 
4:30 AM
> bais
 
The point is, is that I won't exactly listen to reason in regards to whether or not to use C# or Java
 
J#? ( ͡° ͜ʖ ͡°)
 
Anonymous
Every time I start to use Java, I make it about 3 classes in before I give up and use a different language
 
Needs more classes
 
You can totally do that with C#
 
Anonymous
4:33 AM
@ATaco Needs more anonymous classes or better OOP methodology
 
Or, OR, I could do it this way
 
Anonymous
$ find ~/Seriously -name '*.py' -exec cat {} \; | grep -c class
39
 
Although in C#, you can split classes between files by using partial class, allowing you to have single classes have a stupid directory structure all to themselves.
 
Anonymous
Of those 39, 27 are in utility libraries or the test suite
 
Anonymous
And also in the build directory
 
Anonymous
4:38 AM
21 excluding the duplication in the build directory
 
Anonymous
Not using OOP for everything is nice
 
Eh
I get really OOPy code when I use Python or Ruby anyway.
 
4:55 AM
$ find -name '*.java' -exec cat {} \; | grep -c class
95
Hmm.
I've got to pump these numbers up, these are rookie numbers.
 
5:37 AM
@ATaco I'm telling you, use C#, give every method in each class two files of their own.
Unfortunately methods cannot be split into more than two files
 
 
1 hour later…
6:52 AM
0
A: Sandbox for Proposed Challenges

Jarko DubbeldamFind the longest Factor-Multiple sequence Inspired by this riddle. A Factor-Multiple sequence is any sequence where A[n+1] is either a multiple or factor of A[n]. Task Create a full program or function that, given a list (or any other accepted input) of positive integers, returns (one of the)...

 
@Pavel Don't forget to give each property its own file
 
@ASCII-only Of course
Hmm.... can a property's getter and setter be in different files?
 
7:12 AM
@Pavel It can in Java :D
 
A) Java doesn't have properties, B) java requires a class to be entirely inside of a single file.
 
D:
It can in Lua :D
 
7:59 AM
If the algorithm for prime factorization takes 4.523559800145449e-06 to execute for 100000000 (Python), do you think it is efficient enough?
Note that it takes 4.886199894826859e-05 for 100000000000000000000000
So I think it is fine
It stops working for numbers like 92738496596627238748961349547846720917439855629389798278467538989805987848663
It takes ~1 sec for 927384965966272387489
 
-2
Q: Not able to convert decimal number to hexadecimal number in stack as an array in C++.

Breaker of Codesinclude include include //header files include using namespace std; class Stack{ public: int top; Stack(){ top=-1; //initializing top to -1 } int s[100]; int n; char conv; void pop(); void push(int); ...

 
8:33 AM
0
Q: Code Golf - Covfefe on tap

AJFaradayAs we all know, negative press covfefe has been conspiring to bring down the American president for some months now. There's also, definitely, an algorithm in play in that word. Covfe is a refreshing caffeinated beverage, and following the president's remarks it's clear the word can now be appen...

 
9:04 AM
1
Q: All your base 97 are belong to us

SanchisesMany programming languages are written using solely printable ASCII, tabs and newlines. These 97 characters are then stored in 8-bit bytes (which are actually capable of holding 256 different characters!), which is just terribly inefficient - especially in code-golfing, where every byte counts! I...

 
9:20 AM
@Mr.Xcoder :| why
@Mr.Xcoder 0/10 not good enough
@Mr.Xcoder How did you time pls
 
@ASCII-only I timed it using the timeit module in Python
import timeit
def primes(n): #code here
print(timeit.timeit("primes(100000000000000000000000)","from __main__ import primes",number=1000)/1000)
Just passing
Gotta go now
 
@Mr.Xcoder ok
 
CMC: given a non-negative integer n and a positive integer m:
1. express both in binary, e.g. n=1100100 and m=100
2. repeat m until it is longer than n: n=1100100 and m=100100100
3. apply "and" to both numbers: n&m = 100100
4. find the parity of the bitsum: 0
 
:|
string + bitwise ops = hard to golf
 
@Mr.Xcoder test with semiprimes
and use time.time() to time instead
could I have a look at your code?
51
A: Fastest semiprime factorization

primoPython (w/ PyPy JIT v1.9) ~1.9s Using a Multiple Polynomial Quadratic Sieve. I took this to be a code challenge, so I opted not to use any external libraries (other than the standard log function, I suppose). When timing, the PyPy JIT should be used, as it results in timings 4-5 times faster tha...

 
9:33 AM
@LeakyNun Uh no that's way less accurate
 
@ASCII-only you don't need string
 
true
 
CMC: Is given list monotonically increasing? E.g. [1,2,5,7]: true; [1,2,2,7]: false; [1,5,2,7]: false.
 
9:43 AM
@Adám Is truthy/falsy allowed
 
@ASCII-only If consistent, yes.
 
@Adám So only one truthy/falsy value is allowed?
 
@LeakyNun I'm seeing your user name double today.
 
@Adám where?
 
@LeakyNun On the left of every one of your messages.
 
9:44 AM
@Adám ?
 
@Adám oh, that's chat.SE failing to load the avatar
@Adám Python 3, 24 bytes: lambda a:a==sorted({*a})
 
CMC: Is given list strictly increasing? E.g. [1,2,5,7]: true; [1,2,2,7]: false; [1,5,2,7]: false.
My previous CMC's middle test case should be true.
 
@LeakyNun Can't test right now... mobilr
@LeakyNun Can't test right now... mobilE
@LeakyNun Can't test right now... mobile
Why mobile, why?
 
@Adám middle case true: 21 bytes: lambda a:a==sorted(a)
middle case false: 24 bytes: lambda a:a==sorted({*a})
 
9:51 AM
@Adám and-reduce 0 lt minus-expand reverse arg
 
@Uriel language?
 
Verbose APL
 
@Uriel ∧/0<2-\⌽ ?
 
*2 minus reduce
 
@Adám Wait why does Charcoal use the same symbols for and and reduce
 
9:57 AM
@Uriel Why not just ∧/2≤/⊢ and ∧/2</⊢ for the two CMCs?
 
@Adám so.. are all deltas greater than 0?
 
@Mayube Yes
 
@Adám actually it was {∧/0<2-/⌽⍵} but yea
 

« first day (2390 days earlier)      last day (2469 days later) »