« first day (4006 days earlier)      last day (837 days later) » 

9:00 PM
No, only and and can natively execute code.
 
@Adám How to transpile APL code with ⎕R to QR
@taRadvylfsriksushilani Is there a way to inspire commands for golfing languages?
 
Yes, you give them a little pep talk first
 
@Adám Can even do it?
 
@Fmbalbuena Each regex of the left operand becomes a line of code, and each regex of the right operand becomes a a line of code. If the right operand is a function, write it as a dfn body (without braces) and use ⍵X where X is the initial of the member, e.g. ⍵.Match becomes ⍵M
 
@pxeger I mean, all you need is (⍎⍨∘#), right?
Or something like that
 
9:07 PM
@Adám then ⎕←'Hello, World!'⋄⋄ prints Hello, world!, right?
 
@Adám how this works?
transpiled APL code?
 
@Fmbalbuena Try it online!
 
9:47 PM
0
A: What is our consensus for fractional byte functions?

ta Radvylf srik su shilaniFractional byte counts are always allowed It seems like one very simple solution to this problem is to allow fractional byte counts, for functions and full programs. WW's answer implies that some sort of custom designed file system would need to be written, after which point this would be the cas...

(Couldn't write this up until now because mobile)
@Fmbalbuena Well, I'd start by going through a few languages you like, and keeping any built-ins from those that seem useful. After that, you can start writing pseudocode with those operators, and see if there's anything you feel like you're missing.
E.g., if you keep using two built-ins together, it might be a good idea to add a build-in that does both of those in one byte. If you try to do something simple and it takes way too many bytes, think of some good general purpose built-ins that would make that task simpler.
 
Time to write FractionOS
 
Well, the point of my proposal is that we don't need the weird file system simulator :p
 
Doesn't mean we shouldn't make one for the memes
 
I've always wanted to make an OS
 
9:51 PM
Hang on, my family's calling my cat rude names
 
Turn them into cats
 
@emanresuA Ooh I love that, I used to mess around with it and do stuff like rm -rf /var
 
My computer uses NTFS. I doubt you really want me to change most of my complete program scores to 1024 bytes (the size of a NTFS base record). — Nitrodon Jan 6 at 19:19
 
@taRadvylfsriksushilani The nice thing is, your cat probably doesn't understand what your family is calling it, just like your family doesn't understand the rude names your cat calls them.
4
 
A while ago, I posted this mostly as a meme, but it ended up being kinda fun. It'd be interesting to see how fast other golflangs could get.
 
10:01 PM
Feels nice not having any pins
I'm so used to skipping the first like, two messages lol
 
Kinda sad how we have 13 new users who've actually done something (+2 who suggested an edit).
 
@mathcat I can't remember the last time I've seen someone talk with their hands that much X^D
@emanresuA It's actually more: there 24 others who don't have an association bonus (currently on page 6).
And that's assuming that everyone with 101 rep has the association bonus rather than having received exactly 10 upvotes.
 
Oh true, didn't see/think of that
 
10:22 PM
@emanresuA I'm afraid to try it :P
 
Pip's probably faster than Vyxal
 
No prime builtins, though
 
Oh. Idk then
Output buffering is still the hard part
 
I guess I could port Neil's answer--it looks reasonably understandable.
 
Vyxal is very different from the rest in that it has completely optimised prime builtins but is very slow in general as everything gets pushed to a stack
 
10:36 PM
Pushing to a stack shouldn't make it that inefficient, honestly
For math stuff, sympy does most of the heavy lifting
 
I just realised, my one would be twice as fast if ∆Ṗ skipped even numbers
Actually maybe not twice as fast but still faster
 
...why don't we skip even numbers? ಠ_ಠ
And why isn't sympy skipping even numbers?
 
Because ∆Ṗ is next prime
 
Oh ok
 
Oh I mean in 2.4.1
In 2.6 sympy does it
 
10:40 PM
@taRadvylfsriksushilani give me some examples
 
Of languages to take from?
Jelly, APL, Vyxal, Husk, Python, etc.
 
No, challenges
 
   factor = 1
    while not is_prime(item + factor):
        factor += 1
 
@emanresuA item?
is item argument?
 
yes
 
10:41 PM
then i will recreate
(I have to put Prime checking, i will put to my lang)
 
It's Vyxal 2.4.1's source code for the next prime builtin, and it doesn't skip even numbers
@Fmbalbuena What are you writing it in?
 
@emanresuA tacit
 
I think what emanresu meant is what programming language you're writing it in
 
@user Python
@emanresuA Python 3
@emanresuA Ok, another challenge
 
Use sympy's prime stuff then
I'd highly recommend using sympy's rationals as well, it makes type handling a lot simpler.
 
10:49 PM
@emanresuA sympy?
 
@emanresuA I don't know how much of this slowdown is due to testing on Replit, but on Replit my (not terribly optimized) first attempt took almost 6 seconds to do primes up to 1000. And it didn't print them, just looped over them. :P
 
@Fmbalbuena sympy
 
@emanresuA I don't like Import
@emanresuA Check if the number is prime in sympy?
 
sympy.isprime(...)
 
py -m pip install sympy
 
10:53 PM
There are docs, use those
 
@emanresuA i don't see any.
 
Weird, I'm trying to redirect my output to a file so I can measure how much there is, and the file is blank afterwards.
 
Is your output to stderr or something?
 
I don't think so, because it doesn't show up in the console either when I have the redirection in there. Something weird with timeout, maybe? Let me try it without timeout.
 
11:02 PM
←F1
⌹F|←F@-+1∇
@emanresuA ^ (I will choose which char does the loop and variables later)
 
I don't understand APL
@DLosc Are you taking implicit input? (I was having the same problem and that was why but idk if pip does that)
 
@emanresuA pseudocode, I will implement later.
= F 1
F + ARG, F PRIME NOT LOOP
 
@emanresuA Not quite sure what you mean--I am using a command-line argument at the moment
But it's definitely timeout.
When it doesn't hit the timeout, all is well; when it does hit the timeout, there's no output to the file (even though it outputs to stdout as normal if I don't do a redirect).
 
@DLosc Vyxal online takes implicit input and zeroes if there's no input, but Vyxal offline prompts for input
 
I would copy the command from the OP, but Replit doesn't have pv installed apparently
@emanresuA Oh, okay. Yeah, nothing like that.
 
11:07 PM
@emanresuA Which i'm missing? another challenge?
 
What do you mean?
 
@emanresuA which commands i need?
 
@DLosc I just went gtimeout 1m Vyxal.py file > e
 
@emanresuA Trying that... aaaand Replit doesn't have gtimeout either. I'll try on a Linux VM later.
 
timeout should also work, I just used gtimeout 'cos macos
 
11:10 PM
It's possible it has something to do with how timeout halts the program. I'm not sure if Pip always responds "nicely" to being force-halted.
(Although, again, it looks fine when I don't have a redirect... hmm)
Maybe I can try tee
Same result--no output to stdout or the file.
I'm almost wondering if it's something weird with Replit...
> ./pip.py primes.pip 100 | wc
     26      26      77
> timeout 1s ./pip.py primes.pip 100 | wc
     26      26      77
> timeout 1s ./pip.py primes.pip 1000 | wc
Terminated
 
If you'd like I can try with gtimeout?
 
If you want to, but I can try it on a Linux VM in a bit. Replit isn't the best place to run timing tests anyway, I'm sure.
 
Like TIO, it's not consistent enough
 
@emanresuA A trash challenge for my golflang?
 
Wdym?
 
11:20 PM
Huh--somebody just upvoted seven of my questions in rapid succession. Wonder if it'll get reverted. :P
 
@emanresuA You gave me a challenge
 
@DLosc gotta get that strategic vote cap
Because I gotta overtake gnat on the voting leaderboard
 
@lyxal ... That is a user with very surprising statistics.
 
gnat votes like crazy across the entire network
 
0
Q: Mirror an integer... in NDos' way

Dannyu NDosNDos' Numeral System NDos' numeral system is a numeral system invented by me. It represents every nonnegative integer by a binary tree. Given a nonnegative integer \$n\$: If \$n=0\$, it is represented as the empty tree. Otherwise, the tree has a root. With the binary expansion of \$n\$: The le...

 
11:27 PM
@cairdcoinheringaahing Their CGCC account isn't even tied to their other accounts (in which case, something's weird because how does they have an association bonus?)
 
@DLosc Hidden communities
 
:o
 
@DLosc by my calculations, I won't actually achieve the overtake until next year - if I consistently hit 40-vote vote caps this year, I estimate I'll be within a few thousand votes by year's end
 
20
Q: How do I hide my accounts on a specific Stack Exchange site?

YCF_LCan I hide my accounts that I already participate in, for a specific site? For example, I'm in one where I don't want to make my accounts visible for others: Or is this not possible?

 
@lyxal I can subscribe to your channel?
 
11:30 PM
@lyxal You haven't this year, you have 677/720 votes. You'll probably be able to quite easily get electorate afterwards
 
@Fmbalbuena Only 21% of viewers subscribe to lyxal's channel, so if you like this video, please go ahead and subscribe, it'd really help lyxal out
 
@cairdcoinheringaahing done
 
@emanresuA a few close votes should help fix that, and the maximum would be 680 because vote cap hasn't reset yet
Also, answers being deleted probably subtract from my total
 
@cairdcoinheringaahing That's the second new thing about StackExchange I've learned here today. 2TIL.
 
@emanresuA Because I know I've vote capped every day this year
 
11:34 PM
@lyxal Oh
Oops I miscounted
 
@DLosc What was the first?
 
6 hours ago, by pxeger
you can also press Ctrl+K, which doesn't require you to have entered multiple lines
(for fixed font in chat)
... Which suddenly makes me wonder why the fixed font button isn't available unless you enter multiple lines, since fixed font is possible with one line. Hrm.
 
spaghetti code ¯\_(ツ)_/¯
 
@DLosc Because backticks exist for "fixed font" on single lines
 
@lyxal Oh, do close votes count as well?
 
11:38 PM
so I guess it's to encourage not using the block formatting for single lines?
 
(In that case, I'd recommend using some delete votes)
@UnrelatedString Unless you're on mobile, then you kinda have to
 
You can't include replies (in the :<message-id> format) in fixed-font, but you can with backticks
 
@UnrelatedString Hmm, I guess it does take up more space.
 
@lyxal commented your video
 
backticks are also really cursed when you're trying to put backslashes or backticks in things but I suppose that's relatively niche
 
11:39 PM
As with language design, it's corner cases all the way down :P
 
@emanresuA in what way
 
At least, I can't type backticks on mobile
 
(typed on my iphone btw)
 
@emanresuA wait, really?
 
typing three backticks is a pain in the ass on ios but single backticks are fine
don't know about android keyboards but i highly doubt it's impossible
 
11:40 PM
If you'er on iphone, press-hold on '
 
@emanresuA I think so
 
sent from my iPhone
 
i actually have one of those replacement suggestion things set up for triple backticks
 
11:41 PM
Thank you razetime
Very cool.
 
Yhat reminds me I have a draft typed up on mobile
 
@lyxal Fricking savage
 
@UnrelatedString prnt.sc/26ex3iq it's right there on the second page of symbols
 
@hyper-neutrino ...you have suit symbols available on your English keyboard?
 
apparently :P
 
11:43 PM
for some reason the page is loading as unstyled html with a broken image
 
@hyper-neutrino lol Samsung user probably
 
@UnrelatedString my first time using this utility so ig it sucks maybe
 
@hyper-neutrino I have to use my emoji keyboard: ♠️♣️♥️♦️
 
11:44 PM
reminds me i need to get an ipa keyboard on my phone because it's come up surprisingly often
 
I wonder if my windows phone would still be able to access SE chat if I charged it
 
0
A: Sandbox for Proposed Challenges

emanresu AFrom code to golf You can change the word “code” into “golf” by changing a letter at a time in five steps: CODE MODE MOLE MOLD GOLD GOLF Note: tell me if there’s a better way to do this Today, we’ll be doing the same thing with programs. Cops thread Your challenge is to: choose a programming la...

 
One moment, I need to edit formatting into ^
 
11:46 PM
@lyxal Ask that on WindowsPhone.SE
 
@lyxal Ask on Windows Phone SE :p
What a ninja D:
 
I'm just that good :D
 
@lyxal Yes, but not SE because ES2020
 
Wait, SE uses ES2020 stuff?
Seems like they'd have more compatibility in mind
 
They upgraded their javascript recently
Idk why
What's the cutoff date for nominations to best of CGCC?
 
11:47 PM
They might do what YT and other sites do, and send different JS depending on user agent
 
Is it before the nominations started or in 2021?
 
I've placed it on its charger so I'll check in to see if I can use chat on Windows phone a bit later
 
@emanresuA As in, for posts to nominate for categories? Anything posted between Jan 1st 2021 00UTC and Dec 31st 2021 23:59UTC
 
11:48 PM
@cairdcoinheringaahing Ok
@Fmbalbuena Nice intro, could use a few testcases.
 
Looks fine but give it a day or two
 
seems like it's almost certainly a dupe of codegolf.meta.stackexchange.c…
 
@taRadvylfsriksushilani ...
 
11:52 PM
@emanresuA Another five-step sequence: CODE -> CODS -> COOS -> GOOS -> GOOF -> GOLF
 
@taRadvylfsriksushilani Nice :P
 
@taRadvylfsriksushilani You sort of got me, except that I always open links in a new tab and so I saw what that was before it started playing
 
Chat opens all links in a new tab anyway
 
@DLosc Nice :P
 
CMC: 1 or 2 only one is not rickroll
 
11:54 PM
@taRadvylfsriksushilani You got me good there
 
@taRadvylfsriksushilani But that focuses the new tab, whereas what I do keeps the focus on the current tab.
 
ah
I've noticed an advantage of having a slow computer/slow wifi is rickrolls take longer to load :p
3
On my chromebook I've got some time to react, but on my other laptop I have to act super fast or I'm out of luck
 
@taRadvylfsriksushilani this discovery may save alot of people across the internet
 
An update on using chat from a Windows phone: one of them seems to look like it'll charge properly. The other one doesn't seem to be reacting to having a charger in it
 
@taRadvylfsriksushilani The other thing is, when I clicked on it directly (For Science), I got an ad first.
 
11:57 PM
@DLosc adblocker is a double sided blade i suppose, ad was meant to protect you from being rickrolled
 
@Niko Truthfully, I'd rather watch 15 seconds of Never Gonna Give You Up than 15 seconds of most ads
 
Ok, finally went and made a rickroll blocker
 
Idea: ad blocker program that replaces ads with Rickrolls :P
 
Lemme guess...it's a rickroll?
Nope, it's a security error :p
 

« first day (4006 days earlier)      last day (837 days later) »