« first day (4319 days earlier)      last day (518 days later) » 

12:29 AM
sometimes i wonder if people scroll through golf answers and think "hey it's that guy that does it in go" at all
 
12:42 AM
@bigyihsuan replace go with IPA and yes :p
 
12:56 AM
lol, i don't use that esolang anymore
maybe i should revisit it and make it even more pronouncable
 
1:45 AM
@DLosc I am either the first dude, or you, as far as I reckon, but I won't know until my exams :P
 
Me who's still doing calc:
 
Technically, I'm still doing calc :P
 
@bigyihsuan I do :b
 
2:02 AM
@RadvylfPrograms Remind me what's in US Calc III?
 
2:34 AM
@bigyihsuan id like to think that ppl think the same way about me when they see my answers, replacing "go" with "desmos"
@emanresuA yoo im still doing calc too
 
language feature idea: a way to call a function multiple times and assign the result to multiple variables
like let a, b, c <some symbol> new Thing() would create 3 new Things and assign each one to a, b, and c
 
ehhh
seems situational enough that it might just encourage over-use
 
0
Q: Render numeric string/date/time using unicode block drawing characters

reportamanAm looking for a way to render numeric string/date/time using unicode block drawing characters like in example below. Ideally this could have been solved with a figlet font but couldn't find one. Height is 3 characters, width is as tight as in example below. $ echo "\n█▀▀▀█▀▀▀███▀█▀▀▀███▀▀▀█▀███\...

 
but as part of a general pattern of being able to invoke something multiple times into a sequence, and destructure that? that's good
like let a, b, c, *_ = ($()) <$> cycle Thing::new
in the worst mix of python, haskell, and rust syntax i've ever seen
 
I thought that was valid haskell lol
 
2:43 AM
@bigyihsuan yeah i always think that
 
@emanresuA it can't parse the *, needs brackets for the list destructure, and interprets ::new as a type annotation
not to mention it's kinda meaningless for something to take an argument of the unit type considering everything about how haskell works
like if you have some kind of state monad that you're initializing the objects in then the way you'd do that in actual haskell would be like uh
[a, b, c] <- sequence $ take 3 $ repeat newThing
in a do block
probably
 
3:16 AM
@cairdcoinheringaahing So far we've covered basic linear algebra and vector valued functions (a second time, we also did that in calc II, but minus cross products and some other things), no clue what's in the rest of the class, but it's also called "multivariable calculus" if that's of any use
@emanresuA Aren't you like 15? "Still doing calc" is hardly something to be ashamed of :p
 
14, and aiden's 13
So I guess yeah
 
At least in the US, most people either never learn it, or don't until college. If you're a year ahead you might finish calc II in high school.
 
What's the content of calc II?
All I know is that I've done nz scholarship calculus
Idk what that translates to
 
@emanresuA wait you're 14
i always thought you were at least like 17
 
I'm taking what I suspect would be a below average list of classes anywhere else in the west, and my school counselor called it "the most rigorous course load [she's] ever seen"
 
3:27 AM
lmao
 
wow
 
@emanresuA Integration by parts, taylor stuff, infinite sums/series and convergence and stuff
 
Ah okay, done that
 
wait then wats calc 3? multivariate?
 
3:29 AM
^
 
ah ok, i might self study that, i already did calc 2 stuff
 
@RadvylfPrograms And I'm in a fairly nice school, with the largest list of advanced classes, and some of the best teachers, within like an hour of here
 
@UnrelatedString lmfao i thought the same about emanresu
 
We young people these days
 
Woah I feel old now
 
3:33 AM
@RadvylfPrograms how do you think I feel? :p
 
I was y'all's age-ish when I joined and now I'm 17 and being used as the "I thought you were at least ____ old" age
 
lmfao
 
and i think i was 17 when i first became an active part of the community
 
I remember browsing CGCC meta in my school computer lab in 4th grade
 
3:34 AM
holy shit
 
@RadvylfPrograms bruh wow
 
That would've been... 2014???
 
2015 or 2016
I was born in 2005, and 4th grade is around age 10
 
incidentally i actually browsed esolangs wiki in like middle school but never heard of cgcc until i started having things to look up on so :P
 
I remember CGCC's graduation (or something similar) was in the HMQs at the time
 
3:35 AM
Ah okay (year 4 is around 9 here)
 
It might actually be around 9 here too, I'm usually one of the older people in my class
 
@UnrelatedString opposite for me, i heard of cgcc first before i even knew about esolangs
got introduced to esolangs through cgcc actually
 
I made my first esolang sitting on the floor in an airport. It was very bad.
 
lol what
 
3:37 AM
all i ever did was try to write a text adventure in a /// derivative
by hand
3
 
It was called "pipe". The "pipe" was just an accumulator, but I didn't know that word yet, so the analogy I used was that all of the operators were like a "pipe" that the data travelled through, being transformed by each operator
 
How old were you?
 
@RadvylfPrograms interesting analogy!
 
@emanresuA Esolangs says it was 2019, but that doesn't seem right at all
 
i mean is that not roughly what shell pipelines are
 
3:38 AM
> Pipe is a language designed by Programming Puzzles and Code-Golf user RedwolfPrograms
The fact that I used "PPCG" indicates that it probably wasn't 2019 :p
 
github.com/radvylf/pipe is mid-august 2019
 
wait have we been cg&cc for that long???
it can't have been more than like a year and a half
 
A year and a half ago was 2021
aka yesterday
it had to have been like 2018
 
Nov 1, 2021 at 22:36, by user
@DLosc You're stuck in a time loop, DLosc, wake up!
 
Oh god it's almost '23
 
3:41 AM
When is it going to start being called the "twenties"?
 
I still haven't recovered my sense of time. A dangerous mix of COVID lockdowns and getting older.
@emanresuA I already try to call it that. I'd guess probably as we approach the 30s we'll actually need a name for the decade
Right now we've gotten into the habit of using generations instead of decades, but since 2020 is kind of a defining year in our perception of time and culture, it's a great time to switch back to decades
 
@RadvylfPrograms joke's on you, i never had one to begin with :P
@UnrelatedString come to think of it maybe this was the trauma that sealed off my creative writing abilities forevermore
 
One of the first thoughts I can remember having was "I'm going to be three forever"
 
I swear, I felt like I was three years old for literally like a whole lifetime
 
3:44 AM
@UnrelatedString neither do I
 
@UnrelatedString This reminds me of one of my first JS projects, a really simple text adventure game where every choice you made was an if-else block. The width of the jsfiddle text box was what limited the complexity lol
 
lmaooooooooooooooooooo
nice
 
that sounds basically like my first JS project as well
except it was with buttons and was a in-school guided code tutorial thing
 
I think the topic of mine was an alien invasion. Your initial choices were "run", "hide", or "fight" and I think at one point you boarded their ship
 
mine was just a straight ccc/zork ripoff
i don't even remember which i just know i'd tried one of them
*cca
 
3:48 AM
Prolly zork, every time I play it I feel an immense urge to write a text adventure game lol
 
i don't know what i thought that third c stood for
lmao
 
I wonder if Pipe is TC
 
@AidenChow same here
I discovered esolangs.org from cgcc, and liked esolangs so much I got a phone case with limes on the back
 
My intuition is that is is, via some really annoying BF reimplementation
Actually I think it's almost trivial. You could easily have three stacks within easy access using scopes. Use the first stack as the tape to the left, the second as the tape to the right, and the third as the current tape item and any intermediate state necessary for things like -
 
CMC: Work out why toString() in JS does what it does
 
4:03 AM
wdym does what it does?
like commaifying arrays and stuff?
 
As in just toString()
As a code snippet on its own
 
It just stringifies
Oh
x=>x+'' as a code snippet
 
Try running console.log(toString())
 
@emanresuA window.toString
 
Have you tried running it?
 
4:05 AM
@emanresuA just prints [object undefined]
 
That's part of the puzzle, yes, but window.toString() gives [object Window]
 
Because it's no longer bound to window, just like how saving "abc".replace to a varaiable makes it not work
So without a constructor it defaults to some symbol whose name I forgot, which is undefined here
 
Correct
JS is weird
 
what - lol
 
Yeah, but toString.bind(window)() should work
 
4:08 AM
 
Yeah
 
what does this refer to?
 
window.length
 
Okay TIL
That's real weird
 
4:10 AM
It won't work in Node
 
Node has no window
 
length has so many different purposes lo
 
It does have a globalThis, but with significantly fewer things
 
I think there's either global or self as well
 
Honestly window being imported by default is so dumb
Just make Math and document their own things instead of everything having to inherit from one global variable whose properties are always in scope
Ooh I just came up with the most cursed thing ever: a Proxyd window
So you could add barewords to JS, among other things
 
4:13 AM
Oh no
 
Fortunately I don't think JS allows you to override window or globalThis with a different object
 
Phew
 
Okay so for backwards compat you can overwrite globalThis but it doesn't actually use what you write to it as the global scope, just shadows the identifier
Whoa, chrome bug
xyz is undefined but still shows up in autocomplete
It appears that the autocompletion is based on globalThis instead of window, overwriting globalThis removes all window autocompletions:
 
weird
 
4:28 AM
The dream is alive
user image
8
There are so many insanely cool possible applications of this
I'm going to have to play around with it tomorrow
 
wha
i assume proxies are some kind of namespace object?
 
They're sorta like wildcard getters/setters
You can define a function that gets called any time a property of the object is used in any way
You can even make non-functions callable
or constructable
 
oh so the proxy is what gives it the wildcard getter and with is what puts that all in scope
 
yeah
Okay weird, you can't make something that was never callable in the first place callable with a proxy, but you can override what calling does if it was callable
And since you csn completely mimic a second object using any other object with a proxy, which is pretty much what they're for, you can just use () => {} as the proxied object and make calling do whatever you want
...which I realize is actually extremely useless since you can already make calling a function do whatever you want since that's the whole point of a function
Well, useless for making cursed objects with Proxy, but useful for its intended purpose of making certain modifications to existing objects
You could fairly completely change JS's syntax with the with (proxy) trick, since getters can be impure
E.g., do_x, do_y, do_z would be a series of function calls, despite having no ()s
And if you use stored state, you could even make a sort of assembly language syntax: add, x, y; jmp, x; mov, y, $20
 
 
3 hours later…
7:19 AM
CMC compute the Buchstab function en.m.wikipedia.org/wiki/Buchstab_function for input x
 
holy shit
 
@UnrelatedString go on?
 
regarding mdn having the proxy namespaces
looks like you can do it in python within an exec but probably not in any kind of "real" code
 
 
4 hours later…
11:39 AM
0
A: Sandbox for Proposed Challenges

The ThonnuASCII Range code-challenge string Your task Given a string, output the range of ASCII values. Example Let's say we have the string Hello. We get the ASCII values: H = 72 e = 101 l = 108 l = 108 o = 111 Now, we get the range (max - min): 111 - 72 = 39 Our answer is 39. Test cases Input ...

 
12:15 PM
@RadvylfPrograms wtf
 
 
1 hour later…
1:20 PM
presenting a Programmer Art™ Klein logo idea:
it's a Klein Stein
 
1:44 PM
should I use symbolic (black & white line-art) icons for Klein's toolbar or colored ones?
 
2:10 PM
0
Q: Fastest code: Does a list of string contains %s, %d, %f, or %r?

JyloThe aim is to create an algorithm to detect that one the string in a list of string contains %s, %d, %f, or %r. All sub-string will start by '%' and be 2 characters longs. Input string will be from 1 to 500 characters with a median of around 20 characters and contain zero to multiple of the poss...

 
 
3 hours later…
5:27 PM
@mousetail 4 actually; normal complex numbers already have 2 square roots of -1, i and -i
 
@Neil You are very correct my bad
 
 
2 hours later…
7:36 PM
34
Q: Help me sell day-old bagels

Wheat WizardYou work at a bakery and every day you make exactly 100 bagels. However your customers are not as reliable and every day a random number of bagels will be ordered. So sometimes you will run out of bagels and sometimes you will have leftovers. Now leftover bagels will still be good for 1 more da...

9
Q: UNIX Uniq Uknow?

Beta DecayChallenge You must write a program which takes a string and a flag as input and performs one of the following functions. Input If your language does not support command line arguments, you may take the arguments as input via STDIN. The flag will be two characters: a dash and an ASCII characte...

 

« first day (4319 days earlier)      last day (518 days later) »