« first day (2389 days earlier)      last day (2470 days later) » 

12:02 AM
I'm rather happy with equa.lua for golfing lua.
 
Can anyone help me with this OEIS entry?
 
Anonymous
@ATaco Python (2 by default, 3 with byte strings)
 
@Mego Sorry, I misread your post. I have an approach that could salvage yours: treat every string as a signed integer. One can make a correspondence between strings and signed integers, and there's a group
 
Anonymous
@ConorO'Brien Trying to correspond strings to signed integers is difficult.
 
not really. just choose one character as a sign indicator, then choose the rest as a base 255 number, I think
 
12:07 AM
So, the empty string would be 0?
 
Why is it that ye say "ye" instead of "yes"?
 
why not
and I think that's the first time I've said that in a while
 
@ConorO'Brien how does this work to get that from an inverse?
 
@DestructibleLemon beg pardon?
 
12:09 AM
well... I'm not entirely sure what you mean by one character there anyway
 
Idk why it doesn't work
 
Two challenges in the same day with every answer being deleted
 
@WheatWizard that's one heck of a challenge you have there
 
It ain't easy ;)
 
Do the strings have to support characters with a unicode value >255?
 
12:20 AM
anyway what do you guys think of an rps derivative koth that has strategic decisions such as choosing challenges
 
I wonder if "adding" '\0' counts as inverse since the empty string is the identity
oh conor already had that idea in the comments
 
@WheatWizard, do the strings have to support character values greater than 255?
 
@Zacharý No, bytes don't go higher than 255
 
Okay. Then it's possible.
Someone call a set theorist.
 
12:23 AM
So I was doing some app stuff on dev.apple.com and it said:
> please let us know 6-8 weeks in advance
can't tell if joke or serious
 
The only problem I have is that none of the characters can count as 0 in forming a base for arithmetic if you want it to be reversible.
 
I found so much cool stuff today wow. What have you ppl been up to
 
@2EZ4RTZ Celestia + high resolution earth is way better
@miles uh no why would \0 be the inverse of everything
 
12:39 AM
Does this work @WheatWizard
Probably not :P
wait a second :| - isn't allowed brb figuring out inverse
 
... - is the inverse I think
so + - instead of -
 
yeah but i need to figure out the string equivalent :P
 
@2EZ4RTZ Hacking together the beginnings of a golfing dialect of APL.
What is this, the new problem that I posted on Math SE (Can't remember what that was about)?
 
@Zacharý Aren't there already plenty of those
e.g. QuadR
 
QuadR is literally just QuadR (⎕R).
Basically more like retina.
 
12:48 AM
@Zacharý Well it's still golfy
 
I just saw Lynn's challenge and then realized that I assigned the coprimality test operator to a prime code point in Gaia. rip
 
Yeah, but it's not really an APL dialect.
 
:| Wait I was being lazy brb
@WheatWizard Is this valid:
https://tio.run/##pZJPa9wwEMXP608xCEqlbbJ/UtrC0hRKT70V9tBDCEaxxljUSItGuyH98tsZOV47kNJDb@OZ37z3xvbhKXcxvD@fHbaQYx00mV218C2EmIG4XCTMxxRgUy0C3EJMTtPd5t7AO9hWizYmaMAHoLvt7l5wgQIs4ebDR0YEb0w1iujrrYHlsgAB1mu4qapnZ9Jh5hxmzkoN1vaBGVFmXS4@w8awMvFEiMfO98iiX9j5k2zLoOkSk28kjASmkm@9vpXGJdQAXcN2QKqmt0Sw1z5kSST56jrgY11rwr69gpPtjygjSevJB8o2NKhL/wr2ZTSql@Z0DIuuRjWhBsXy5gdZeFWTcjKAPeFFz1RjNOvcJVrMHSYze3nljDKU66Te6wEyk0L6fwkO@KwwXy3ftTQnLzz8izwkMVHf@kjolBmff2Lfr1YryJ3Nbwl@@eAsxIeTj0eC3Q81bX4lio232Z/wss4BNQdXv5VcoSy5tm2HmpwlZeYgU/KTMf4KN/l8dxiyz08vTCYPNUfDCRPhX8hG7BTfas7nPw
@BusinessCat +1 lol
 
@ASCII-only any function which treats an empty space the same as any character, will result in an invalid solution. :P
 
@fəˈnɛtɪk ?????????????????????????
Damnit where did Wheat Wizard disappear to
 
1:01 AM
The invertible property means that you can not have use the addition with any character and def and get the same result with "" and def.
 
/haɪ/
 
@fəˈnɛtɪk Can you give an example
also :I how do I golf this
 
Remove whitespace
 
Use one letter variable names, and let people me spam you with suggestions.
 
@ASCII-only try adding "" vs "\x00" (empty string vs null character). They should give different results
 
1:15 AM
@fəˈnɛtɪk Yeah?
Aren't they supposed to?
 
0
A: Sandbox for Proposed Challenges

fireflame241L€€CH€$! D€AṬH ỊṢ ṢOOṄ! The title is valid Jelly Code which has the same output as L€€ except printed twice. Background You can skip this section without losing ability to complete the challenge Some operations in Jelly try to convert its argument to a list first before applying the operat...

 
Also, can you reverse "\x00"+"\x02"?
Because I think you are currently getting character -1
 
@ASCII-only btw is things on c9 now working?
 
@Downgoat kinda
Here (last line):
https://tio.run/##pVNNj5swED3DrxhZqmoDCQmrbCW0rFT11FulPfTQRpEDRkGlQ8Q42W7/fDo2SaC76akn7Jk372Nk9i921@Hd6YRFq39uKw2UbyV9y2fLtYqy1X3c9RXf3bWpYWiYlgwM9cVaxUtwHfDVRagvRG3S56VE2aoYZa9UGFamBpSk8jDgCewsi/XGHnrkuQCLCWUY1F0PJTTImst8nWOBVzulCoPznJwtVRRhhGmaDQIkcSKAFwEhWCGhQm8ZEGWxxIeFUokrP@@a1gA@ZqsPOSVYlLteIrwDllMxF5h6dX9V9F1WjWnQs93mdaYwCCaxoBh3BTG8jcZwB0KInCRDbmSEKPIAhDSF7Kr8Ouyo7PMyq8/rmJmXDw/AqcOAuDOJDo/gwvO0a0zz8xR5f2lawJs1wAyWAyQsW00ET7JB6xw5f5sNmufNRpJp6wSOuj0Y13JuG2qQrMbSSF9P4Mm3Luy@OIZh0vmFzaEGRhxmFdwkJNur4U1eyPgFnn3pqrr66uzO9GqyOZ/BN100d36SA0iNDP3/U7DBM8N0lIbKKGT2t2CuLM9YB
Unless I'm doing something wrong
 
@ASCII-only btw when is laptop coming back
 
1:19 AM
@Downgoat idk D: D: D: maybe a week or so hopefully
 
Someone's already beat you to the string addition challenge.
 
@ASCII-only :D
 
@Zacharý Yeah IK I saw ages ago :P
@Zacharý But mine is way faster :P and I'm hoping it can be golfier
 
Maybe, but IMO I don't think it will.
 
But then if you add another +"\x02" it breaks and gives a different result than "\x00"+"\x02" when the result was "\x00"
 
1:21 AM
@ASCII-only btw do we want to allow OO bitcast?
 
@Downgoat ???
 
like: Animal::Dog
will result in nonsense object 99% of time though
 
@HyperNeutrino Is your cathedral challenge supposed to be tagged ?
 
did I forget that ._.
 
@fəˈnɛtɪk Pls link to TIO? BTW the result was \x04?
@Downgoat yes
 
1:22 AM
@ASCII-only why
 
Ok so I was just confused about what the result was.
 
@Downgoat Why not
 
The one thing that's the most important ._.
thanks
 
1 min ago, by Downgoat
will result in nonsense object 99% of time though
can even result in segfault if static polymorph
 
@Downgoat Then check at compile time
 
1:24 AM
that is not how it work
object is created at runtime
 
@Downgoat But you can check for superclass
Anything else will throw warning unless user explicitly disables
 
@ASCII-only wait to be clear: there is a distinction between OO cast and bitcast
 
@Downgoat bitcast = change object type completely?
 
Can I point out that I love regular expressions?
 
@ATaco yes
@ASCII-only that is what cast does, yes
 
1:26 AM
@Downgoat normal cast = just to get it to fit in container but object type and virtual map still same?
 
no idea what that mean
1) what is container 2) what virtual map
object type will change no matter what cast you do?
 
@Downgoat container = like list and thing
@Downgoat i thought virtual map = where method and property are relative to object
 
@ASCII-only like list in thing?
@ASCII-only virtual map = vtables?
 
So I set up a C++ dev environment again, this time using Visual Studio Code and MinGW and everything worked a lot better this time.
 
@Downgoat :| yeah that
 
1:32 AM
8.3/10 would recomnmend Visual Studio Code
 
@Downgoat to get Dog to go in List<Animal>
 
@ATaco is it as slow as animal
@ASCII-only wait where did List<Animal> come from?????????
 
@Downgoat magik
 
Visual Studio Code != Visual Studio
 
Whoops, wrong room
 
1:37 AM
I need help golfing this:
https://tio.run/##bZBNSwMxEIbv@yuGgJjsrv1YaYXgCuLJmzcPtYfdTcIG46Rk0kr982u6traI5JCZzDPPC9nsY@/xdjD12@Caj1Y14MogiSN3okAehMiUNoCchMzApspHIBl03AaEWQZY@6A4rWZrUcwzMD5ABxaBVnO5llhjXi2WxYHpRAY/e/xmLvIcc5xOq1Gf8i70eNQzlvQl1U2b5nlVcLyfCVEenj976zTgQ7W4k1Ri3fWB41VKEkVqk3axPIXBOEuJBQ2bYDFy9uQ8acVEduxftXOTyQRi38RrgneL6R98u7N@SyBfEngiH4l8Z5tod/p33aTDvlgJrCFljGEilaQaYuKMjEC6jsiZOLuflcZo45792WLsEsKdDvRfeDfmtgkevgE
 
use python 2 for default integer division?
 
Only saves 2 bytes though
https://tio.run/##bZDNasMwEITvfoploVSy3fwY0oKpC6Wn3nrrIc3BtiQs6q6CVklJX95VHDck0JNmd2bnA20PoXNUDKb6GPr6q1E19LkvWZDoZUbCS5kobYAEyzIBG5ULwKXXYecJFglQ5bwSvF5sZLZMwDgPLVgCXi/LTUkVpcXqPjtmWpnA6U7cLWWaUkrzYmyPuIt2mtoRY3vOVd1EPy0yQY8LKfPj@ruzvQZ6KlYPJedUtZ0XdBNBMovjPIo/FIxW5GU8bL2lgC@9Y60wOU3vuu9nsxmErg63DJ@W4he4Zm/djqF8w2TKPTO71tbB7vV0CkYYgT@YA9asjDEoo2RVM8pzYvTjMyXOATn1Ar4qTcGGA17fIF5EaK89/8NtR2SDcvgF
 
That still saves bytes!
 
"My suggestions, while small and insignificant to you, saves bytes."
(cookie for knowing the reference)
 
What is the reference?
 
1:44 AM
:| The other python one is only 170 bytes though
 
Which challenge is this for?
 
@ASCII-only Is s a string? if""==s: is 1 byte shorter than if not s:
 
222:
https://tio.run/##bZBBS8NAEIXv@RXDgLibxDYNVCG4gnjy5s1D7SHJ7pLFOCk720r983GbxqLgaWfmvfc92N0xdAOVo1VvY19/NLqGPvcVCxK9zEh4KRNtLJBgWSXgLKJSXHkT9p6gSIDU4LXgTbGV2SoBO3howRHwZlVtK1KUluvb7ORpZQLnnLhZyTSllJblBI9tZ3ikqWKGI0Z4zqpuopyWmaD7Qsr8dP7sXG@AHsr1XcU5qbbzgq5ij8ziuozDTxNMUqzLeNx5RwGf@oGNxuS8vZq@XywWELo6XDO8O4ofMDQHN@wZqhdMZt8j89C6OriDmaNghRX4hTlgzdpaizKOrGtGeXFMenxmx8UgZy7gszYUXDji3wziLwsdjOd/etupskE5fgM
13
Q: Implement true string addition

Wheat WizardMany languages allow strings to be "added" with +. However this is really concatenation, a true addition would follow the group axioms: It is closed (the addition of any two strings is always a string) It is associative ( (a + b) +c = a + (b + c)) There is an identity (∃e : a + e = a) Every el...

@WheatWizard Well it's not that hard if you've implemented way too many compression methods :P
 
That saves you one byte,
 
You mean this
 
1:58 AM
No, this
 
You'd need a rewrite to beat the current one though
 
this, I screwed it up.
Wow, Proton has Rationals?!
GTG
 
2:27 AM
@Zacharý doesn't work
 
@Zacharý Yup, I added them. I should make floats behave the same way though - and make operators work with those... :(
sympy didn't implement XOR :(
 
@HyperNeutrino :|
@HyperNeutrino for what, doesn't make sense for anything but ints
 
for ints
sympy.Integer doesn't define __xor__.
 
Prolly because Sympy wants you to tread its integers as actual numbers and not constructs made of bits.
 
@HyperNeutrino why not use python ints
 
2:36 AM
@ASCII-only because precision :P
though ints aren't imprecise
but I think sympy is faster
(Proton is slow enough as it is already so I doubt that even matters...) :(
 
@HyperNeutrino exactly :P
 
Charcoal doesn't use sympy at all
 
but I still want to make everything sympy because then floats are precise too
dammit I borked something that I can't fix
took me long enough; Proton production was going unrealistically well ._.
hey do we have a challenge for 1 -> 1st, 2 -> 2nd, ..., 13 -> 13th, ..., 101 -> 101st?
(cardinal numbers)
CMP: Should I use sympy? The advantage: precise floating-point arithmetic. The disadvantage: um, none?
 
@HyperNeutrino Charcoal has some precise decimals
 
2:43 AM
I should make a programming language based on looney pyramids
 
@ASCII-only without sympy?
 
@HyperNeutrino yeah why not it's a practical language after all
 
I'm not sure how it would work
 
@HyperNeutrino yes
 
but I should do that
 
2:43 AM
ok
@ASCII-only wat how
 
@ASCII-only no it's magic
 
@HyperNeutrino exponent mantissa
 
Int value + exponent
 
@ASCII-only I like replying to future messages
 
2:44 AM
@DestructibleLemon :| future ping
 
wait recursive ping
@HyperNeutrino infinitely looping ping cycle :D
 
@ASCII-only yeah that's really gonna mess someone up if they try to find the longest ping chain
 
self-pings
I'm honestly surprised that that works...
 
@HyperNeutrino they would probably have a builtin case for that
 
CMC: Find the longest ping chain >:-D
 
2:46 AM
@HyperNeutrino vtc unclear
 
recursive self-oneboxing is also fun
@DestructibleLemon :(
 
@DestructibleLemon ?
 
1 min ago, by HyperNeutrino
@HyperNeutrino infinitely looping ping cycle :D
 
it replies to itself
 
2:48 AM
@HyperNeutrino I'll do it if you convince SE to release chat db
 
lol
just use Starman Innovation's TNBDE (outdated)
 
@HyperNeutrino exactly, it's outdated
Also not the best
 
¯\_(ツ)_/¯ better than what you have otherwise :P
 
I could try writing a crawler + search but idk how many people would use it
 
also sounds difficult to make and slow
o_O
Apparently in Proton you can do something like (.)('abc', rjust)(10)
I never knew that (<oper>) worked with subref :P
tfw you find funny features in the language that you made :I
 
2:53 AM
@HyperNeutrino classic
I do that every now and then
 
also I has weird bug that I can't find :I
 
@HyperNeutrino ???
 
a[b].c() is supposed to become (a[b].c)() but it's becoming a[b].(c())
@ASCII-only idk, it sounds hard to make a crawler for chat and it sounds like it might take a long time to do things but idk
 
@HyperNeutrino precedence
@HyperNeutrino no it's pretty easy
 
expr(...), expr[...] and expr.expr are at the same precedence, moving left to right
@ASCII-only oh ok :P
 
2:56 AM
Just go through every page and stuff
 
ah ok
 
And also open a WebSocket connection to chat
And that should basically be it
 
the strangest thing is that a[b].c[1] gets tokenized correctly...
 
@HyperNeutrino you made function call have the wrong precedence
Probably
 
no but function call and list call both have higher "precedence" than subexpr
 
2:58 AM
@HyperNeutrino :| ok
 
I think I'll have to hook a debug print statement into the MultiTypeMatch class
I have a convenient function called FT which is just def FT(key): print(key); return key
Oh I get it :I
(...) is parsed strictly before [...] which makes the callexpr valid before the subexpr ಠ_ಠ
...oh
I need to move the thing that turns a(...) into call(a, (...)) AFTER the thing that makes the (...) in the first place ಠ_ಠ i'm dumb
more bugs (ノ°Д°)ノ︵ ┻━┻ I'll have to fix them tomorrow. o/
 
0
A: Sandbox for Proposed Challenges

fireflame241Round Me, Help Me code-golfnumber Given an input n, your program or function must output the smallest positive integer k such that n rounded to the nearest multiple of k is greater than n. Example. Given an input 18, the return value should be 4: The nearest multiple of 1 is 18, which is ...

 
3:37 AM
@Everyone I'm trying to reimplement brotli in Python for short string compression
it's a really bad idea right
 
I'm thinking about how DRY my planned implementation for something is even though my code quality sucks anyway
 
@DestructibleLemon Charcoal is very WET (Write Everything Twice) :P
 
Charcoal doesn't work when it is wet...
I think
 
@DestructibleLemon Are you sure you don't mean paper :P
@HyperNeutrino :||||||||||||||
 
@HyperNeutrino do not flip the tables
 
since when does any character have a codepoint of -1?
 
@DestructibleLemon wait what
 
 n=s and ord(s[0])+1 or 0
what is that even supposed to do
 
@DestructibleLemon because 0 is empty string
 
3:48 AM
also 010 shouldn't equal 10 so i made it 110 basically
 
yeah the chained short circuit things confuse me
 
Oh yeah I should probably do it that way in Charcoal too lol
 
what
please no
 
@DestructibleLemon No >_> I meant in Charcoal I just prepend a 1 which is usually one character longer in compressed strings
= bad because it means SOGL will win by more
@HyperNeutrino Because you're probably doing it recursively = exponential runtime
 
4:23 AM
for some reason express allow POST request with JSON but blows up on GET request with JSON
speaking of JSON, I was writing an email to someone the other day named jason and I kelt spelling their name as JSON :P
is anyone here familar with mxnet?
 
5:09 AM
My code keeps throwing an error and setting the pointer I'm working with to 0xBAADF00D I think my code is talking smack about my junk food addiction.
5
Upon further investigation, "BadFood" is where Microsoft points unallocated pointers.
Neat.
 
@ATaco so it points at tacos?
(burned)
 
(ノ°Д°)ノ︵ qauueq
 
(It's banned, being tableflipped)
 
you only flipped two thirds of the letters and you flipped them separately
1
A: Everything you need to know about Synthesis Golf

NotEvans.What is synthesis-golf? Chemistry.SE has the same problems as many other communities on the Stack Exchange network, namely that the bulk of questions are at a basic level. The effect of this is that the majority of questions quickly receive answers, which rely on basic fundamental knowledge or ...

well that did not explain what synthesis golf was at all...
I would downvote if I was part of the community
huh... apparently the golfiest way to cast to float is something/1 in python
I will use this trick in the future possibly
 
6:11 AM
@DestructibleLemon *python 3
 
6:26 AM
Yay I fixed bug
@DestructibleLemon Also note that the shortest way in Python 2 is *1.
The dot is part of the code btw
Hey I thought of an idea. Since Proton is a semi decently working language that's easily extendable and maintainable, I could theoretically add new features fairly quickly. It was originally meant to be a remake of Positron but what if I make it a language designed by the community? Like, anyone can suggest features which I implement if I'm good enough and if not, they can implement it :P
 
6:47 AM
@ATaco Is that the same as nullptr?
 
@HyperNeutrino I don't see why not :P
 
@HyperNeutrino I thought of this feature 5 minutes ago, it's stupid but I have an excuse to share it now. The ability to index into numeric types to access and set specific bits.
Like a = 4; a[1] = 1 makes it so a is 6.
 
Interesting. Let me see what I can do.
Should it work on floats?
Actually no that wouldn't really work because imprecision ._.
 
Why wouldn't it
It would be a stupid idea to actually do it in real code, but floats are made of bits too.
 
Yeah not in sympy
 
6:53 AM
Oh, yeah, not in sympy.
 

« first day (2389 days earlier)      last day (2470 days later) »