« first day (4024 days earlier)      last day (1115 days later) » 

08:00
@hyper-neutrino I must say I notice an unusual vote distribution between Vyxal-related nominations vs all other nominations...
in Vyxal, 1 hour ago, by lyxal
in The Nineteenth Byte, 11 mins ago, by hyper-neutrino
Voting for the Best of CGCC 2021 is now open! Go cast your votes there - you can vote via the comments where I've added one under each category for each nomination.
We have an army on our side
(shh it’s “community blah blah blah” not voting fraud)
I am going to launch an anti-Vyxal voting campaign against any answers with flags
brachylog is actually an easy golflang to learn because it has simple left-to-right evaluation, a relatively small number of builtins, promotes direct use of conditionals, and supports long variable names ;)
in Vyxal, Dec 20 '21 at 3:16, by lyxal
gamers I've been flag downvoted:
It’s not voting fraud, it’s systemic quality rating correction
Also I forgot I don’t have GRT on mobile
in flax, 1 min ago, by PyGamer0
Here is why you should learn flax ..... err .... because its Jelly and a WIP and ..... may have better documentation in the future ...... and ..... it has a shorter name (totally implying more golfiness) .... and it is actively developed!
there are literally no reasons as to why people should use flax over jelly
08:11
Create reasons
oh wait flax has comments, jelly doesnt
Jelly’s old and unmantained
although i am planning on a website (gh paages powered) for flax
How? Isn’t it python?
nah the website will be for docs and tutorials
08:13
Hm ok
and for searching the atoms / quicks easily
@emanresuA some of the stuff in interpreter.py goes a bit further than that
98% of the language is in that one file, with function definitions in alphabetical order, parsing is done mostly with regexes at the bottom of the file, some other bits of code are just really thick
flax just has the parsin and lexin separate
08:15
i se
e
True. Does make it easier to run though, and it’s got perfect code quality according to litmus
*lgtm
the entire parser was made by @lyxal
@emanresuA lmao
took me two seconds not to read that as language of the month
@PyGamer0 meanwhile, Vyxal is a 6 on the pH scale.
If you got the joke you’re a true chemistry nerd
08:21
lmao
@emanresuA i got 25/40 in chemistry though
but 40/40 in maths :D
0
A: Tag proposal: [self-scoring]

BubblerLet's make both self-scoring and self-validating self-scoring as a scoring criterion tag The description of self-scoring as proposed is IMO well-defined enough to be a scoring criterion tag on its own, and I agree that there is a good potential for more interesting challenges of this type. As a r...

@PyGamer0 how cld u
chem is fun
The Q was voted high but got no answers, so I tried to write one
You have my +1
Thanks
08:25
and my +1
@DialFrost what
chemistry is fun pygamer
although stoichiometry is actually not that hard
@UnrelatedString Oh you
@DialFrost ok?
08:29
:)
I am only 2 upvotes away from 1k rep
let's go
hey look its StackMeter
also i have an idea for a very hard question
Physics: The fun one, Chemistry: The dangerous one, Biology: The weird one
08:34
haha
i'd prefer:
Physics: the boring one, Chesmistry: the fun and awesome one, Bio: the weird one
@PyGamer0 the question I am going to post in the sandbox is in fact related to one of them
@DialFrost but .. but physics is fun
@StackMeterPlus which one?
physics boring sry mate
@PyGamer0 Agreed
@PyGamer0 guess
08:38
Practical chemistry is interesting, theoretical chemistry is boring
But physics is good either way
but...
Another chemistry gang here
theoretical chem being???
haha
@Bubbler I am also in the chem gang
im in computer gang
08:40
i like both pratical and theortical chem
Everything’s just applied maths
7
or im in the axe gang, ill chop you down with my axe
@emanresuA including axes?
I'll chop you down with my X and Y-axes
4
08:42
oh no
but i have X,Y,Z axes muhahaha
and dont forget my Time axes
how do u get a positive qns record?
@DialFrost get upvotes
dont get downvotes
and be happy
but.. i did!
and i still cant the badge "curious"
did you ask it on 5 separate days?
you fool
I have all THREE AXES
08:47
ye
it says 5/5
@StackMeterPlus i have all 10
but no positive qns record
x, y AND z
@PyGamer0 you're too powerful now
@StackMeterPlus dont worry im about to get another 16
does bounty cross over the daily rep ?
like if u awarded 500
08:53
now i have 26 axes, ⎕A
@DialFrost i don't think it does
so if ur awarded 500 u waste 300?
@DialFrost no
oh ic
bounties are outside the daily rep cap
CMC: Distact lycanthropy long enough for me to steal his fridge
*lyxal
08:55
I declare that when I, PyGamer0, get 1k Reputation, I shall bounty all of it to others /s
That has to be one of the best autocorrects
lol
@DialFrost ill bounty all my rep /s
wo
wow
ur insane lol
08:56
@PyGamer0 could i get precisely 20 of it
ill bounty all my rep /s
@StackMeterPlus no.
i'm within inches of 1k
create another qns lor
@PyGamer0 r u certain i cannot get exactly 20 of ur rep
08:57
@StackMeterPlus well ur already at 1k
YES
I DID IT
TYSM
@StackMeterPlus why me i didnt do anything
i got the exact same achievement yst
i just watched the rep count go up
08:58
haha
and i am still here with 844 rep D:
@DialFrost /s means sarcastically
lmao
how to have 1 rep: delete your account
How To eat a dinosaur: 1. Cook the dinosaur, 2. ???? 3. Eat it.
i just realized something
What online chatting really is: Talking and listening to a bunch of named pictures.
09:46
@PyGamer0 How to make bear stew: Step 1: capture a large bear
10:07
can anyone check my two posts in the sandbox
thx
@DialFrost sure
Both of them look good, but i'd allow a string representation of the output for your "Bracket Depth" challenge
i did wat
"output it in the form of a list/array/string representation"
if anyone else has feedback pls say thx
i want to try to post 1 of them tdy
else tmr
@DialFrost oops
10:39
CMP: What should we call the new apl.chat event where we solve at one easy competition problem every Friday?
10:50
theres a problem every friday???
Yes, we're planning on running this event starting today and continuing for 100 weeks.
wowwwww
wr can i find the problem tho
issit on this website or on another
Here is the first one, then we'll continue in order.
11:12
@Adám I would say "an APL a day" if it were daily
sadly not
An APL a Friday
0
A: Sandbox for Proposed Challenges

DialFrostCubax Folding Your task is to solve a new puzzle called Cubax. This toy is actually a Chinese puzzle whose expected “final” state is a simple cube. During the festivities, Cubax unfolded, because it cannot move when folded. Cubax is composed of N³ smaller cubes (elements) linked together in a kin...

does crediting another website for the challenge affect the way the public views it
i have an idea for a challenge
11:16
predict the next digit of pi, given all the preceding ones
err wat does tat mean "predict the next digit"
wats the input
the input is a list, containing the digits of pi up to a certain threshold
ah ic
might be duped
idk
i'll check
12:07
Does anybody have any feedback for:
0
A: Sandbox for Proposed Challenges

ThisFieldIsRequiredIs it an action? abstract-algebra decision-problem code-golf Today, you will solve an abstract algebra challenge. Consider a set \$G\$, which, to simplify things, is a finite subset of \$\mathbb{Z}\$ containing \$0\$. It has a binary operation \$*\$, which for our example will be \$+\$, but your...

12:28
I don't think I can be beat in Python 3 with this answer: codegolf.stackexchange.com/a/242352/100887
ヾ(•ω•`)o
@GingerIndustries 🪓-(©_®🪓-)
4 hours ago, by Bubbler
I'll chop you down with my X and Y-axes
posted on February 04, 2022 by Lundin‭

Many programming languages have the concept of keywords, special syntax items that are not just identifiers reserved by some library, but words reserved by the language itself. ...

@PyGamer0 (⊙x⊙;)
@CodidactPosts this is pretty cool
13:23
damn what kinda supercomputer they runnin over at ATO
4 approaches, the recursive one is the fastest
the list comprehension one is the second fastest
the builtin high order functions are third fastest
and imperative one is the slowest
alright I've found me a stupid issue w/ PXLCODE
it seems that function calls execute in the same context as the function itself
so for all intents and purposes, the function call is essentially inside the function it's calling
this means you can't access nonlocal variables from within a function call instruction, even though it's not visually within the function itself
conclusion: (╯°□°)╯︵ ┻━┻
update: I may have fixed it
@PyGamer0 try much bigger numbers
and more different cases.
functools.cache may also change the results by a lot
I have successfully made the EXP function cause the interpreter to hang
which is not what I want
figured it out, apparently my POW function dislikes floats
13:32
@Razetime example test cases?
just use random man
@GingerIndustries that's what it should do
EXiT Program
@mathcat ಠ_ಠ
problem: I need to figure out how to implement trigonometry with just +-*/ and basic logic control
@GingerIndustries good luck
hi guys
anyone willing to comment/upvote/downvote/reject my sandbox posts?
thx
13:37
@GingerIndustries but doesn't python have a built-in sin function?
@mathcat I'd say that python did it but they didn't, they're just using the C standard library
@mathcat it does, but I want to implement this in PXLCODE itself
I remember seeing an infinite formula for sin somewhere
taylor series?
this looks promising
@Razetime ninja'd
13:39
oh, i've seen that one
@GingerIndustries do you really don't want to implement expon and factorial before trigonometry?
@GingerIndustries Probably uses flOor Well
you know ... the function floor ... that only outputs whole numbers ... never mind
@mathcat I have implemented the POW and EXP functions, working on factorial, floor is ez
anyone?
14:12
Cutie Mark Crusaders: Input a permutation, output the count of its cycle.
14:23
@null Did you get that from my latest answer?
I have decied that implementing trig in PXLCODE is too hard, so presenting CAN HAS SNEK?, a way for PXLCODE programs to import Python programs.
14:38
how do i make a table
i mean when writing a question
you take a spoon away from a tablespoon and you're left with a table.
@StackMeterPlus you can use mathjax
one sec
ok
how do i use mathjax
$$
\begin{array}
{|r|r|}\hline
1 & 1 & 1 & 0 \
\hline
0 & 1 & 0 & 0 \
\hline
0 & 0 & 20 & 1 \
\hline
1 & 1 & 1 & 1 \
\hline
\end{array}
$$
try this
oh wait no
$$
\begin{array}
{|r|r|}\hline
1 & 1 & 1 & 0 \\
\hline
0 & 1 & 0 & 0 \\
\hline
0 & 0 & 20 & 1 \\
\hline
1 & 1 & 1 & 1 \\
\hline
\end{array}
$$
that works I think
14:52
@taRadvylfsriksushilani For the ACE CnR, how long must cops be posted before they're safe?
@AaroneousMiller what does ACE stand for?
Arbitrary Code Execution
Referring to this CnR
15:29
i hope that an interpreter for this gets written, this lang is a work of art
@lyxal nearly all of my chat has been in this room, although my very first message was over 10 years ago in an unrelated room
how to find first message?
9
A: Output a Steiner quadruple system

Anders KaseorgPython, 85 bytes print({(*sorted((i*3**j+j)%14for i in[1,5,j%5^22,9910>>j%5*4]),)for j in range(210)}) Try it online! Outputs {(0, 1, 4, 5), (6, 8, 11, 12), (1, 7, 9, 11), (2, 3, 12, 13), (2, 4, 9, 11), (0, 6, 7, 13), (4, 5, 11, 12), (4, 8, 10, 12), (8, 9, 10, 11), (2, 6, 9, 13), (1, 2, 5, 7), ...

To be fair, even I don't know how this answer generates my SQS, even though Python is my native lang
@AaroneousMiller Umm, I guess a week
what is a golfed python way of doing bpa.st/IBQQ or in other words this adventofcode.com/2021/day/1
with a more flexible I/O format: ato.pxeger.com/…
my attempt with flexible io:
@BgilMidol I like open("input1").read()
[*map(int,open(0))] maybe?
lambda L:sum(L[-i]>L[~i]for i in range(1,len(L)))
but what does open(0) do?
15:48
@BgilMidol lambda n:sum(1for i in n if n[i]<n[i-1])
opens STDIN
@Anush Opens stdin as a file
@BgilMidol (n is a list of nums)
thanks
or just
15:48
@pxeger part of the annoyance is reading the thing in and converting to ints
sorted
@taRadvylfsriksushilani thanks
@Anush then print(sorted(map(int,open(0).readlines().split())))
@BgilMidol that doesn't output the right thing
For the voting, can I vote for multiple selections on the same topic?
15:54
@BgilMidol that's not solving the same problem any more
@Anush for the best of 2021
16:09
@ParclyTaxel so you speak python irl? o_O
@pxeger so open(1) opens STDOUT? and open(2) opens STDERR?
yes
although you have to pass ,'w' I think
otherwise it's opened for reading, and you can't read from stdout obviously
If I write QoSlIj DatIvjaj can everyone here understand it?
:(
@pxeger well so i type a random number like open(5738292) it will open the file with the descriptor 5738292 if it exists?
16:22
IIRC you can't have more than 1024 file descriptors on linux
but in principle, yes
python just copied the c's stdio open function?
No?
there is no open function in stdio
there is fopen and fdopen, if that's what you mean, though
@PyGamer0 if you google it it will be clear :)
@PyGamer0 In the sense of "language of choice"
Python drives most of the code I write for other specialised mathematical programming languages. Sometimes it writes the code for me
alphacode?
17:24
Anyone here know a bit of C?
If so, on a scale of 1 to code golf, how cursed is this?
I'm not sure if char c[1] makes sense or if char* would be better.
Also not sure if mixing stdio.h and unistd.h is a good idea or not
(All it does is read up to 256 chars of unbuffered STDIN and print the bytes as ints)
declaring char *c wouldn't give you any memory behind the (uninitialized) pointer to work with, but i think the third option that would be most idiomatic is just char c
then pass &c to read
but for reading individual characters isn't there... getchar
Yeah, but I ran into issues with arbitrary data, since EOF and \xff look the same
Why do you need it unbuffered completely, can't you have a 256-byte buffer with exactly the same effect?
17:29
also you could just do dd bs=1
("exactly the same effect" in the sense of probably more performant but otherwise identical)
@pxeger No, if you're outputting one character every 10s for example, I want those to be stdout'd live rather than after half an hour
@taRadvylfsriksushilani ...getchar returns int
oh lol
I was storing it in a char
pretty sure EOF is distinguishable from \xff so long as you don't cast to char too early yeah
17:32
All the ice is melting here
Dunno why they canceled school for today too
it's been like two weeks since it snowed here and the ice on the sidewalk on one side of a bridge just melted like two days ago
still hasn't come close to snowing here :/
just cold rain
Is there a way to do stuff while waiting for stdin other than multithreading?
I was gonna provide a substantiated account of the weather here based on my weather logging dashboard, but
@taRadvylfsriksushilani there are various OS-dependent async I/O interfaces
17:39
Your forecast for today is batman
looks like a toddler scribbled on the page
I need to check some connections lol
The temperature was just a complex number during those parts of the week
6
@pxeger according to my analysis you're living in a negative zip code
I don't have a zip code
@pxeger according to my updated analysis you have broken space and time
17:50
@pxeger It's a reference to a really great xkcd
oh
@GingerIndustries by living in the UK?
Heh ​
18:06
@pxeger Wait, we're allowed to do that here? Why did no one tell me :P
No, you're not allowed to live. You just admitted that you aren't a zombie, so I'm calling the police immediately
Did nobody tell you you have to be a zombie?
Jealous (My golfing language) is now Beta!
@pxeger Ah, so Shaun of the Dead is a documentary, that explains it
18:28
1
A: "Hello, World!"

FmbalbuenaJealous, 14 bytes ᐗHello, World!

18:57
I've done it
you can now use Python's `math` module in PXLCODE programs
all you have to do is put CAN HAS SNEK {math}? at the top of your program
Lol
update: importing socket fails bc it exceeds the maximum recursion depth
:/
when you import a module it generates a .snek file for it
and that takes a while
it's been like 2m i'm scared
good lord how big is socket
it's still goin
._.
5m
jesus christ
segfault :/
try tkinter :P
are you sure it's not in an infinite loop?
@cairdcoinheringaahing no
19:18
> Distact lycanthropy
I think I've found my new username
@DLosc You get a prize for replying to me just as I got online.
\o_
_o/
19:38
@pxeger one sec, lemme check
yea it is
it switches between processing __class__ and __base__
Okay what are the chances lol...I was googling stuff related to async I/O stuff in Linux, and less than an hour later the cloudflare blog posts about async I/O in Linux
@taRadvylfsriksushilani clearly you write for cloudflare
io_uring sounds like a very well designed feature actually
if only it had been introduced 10 years ago so I wouldn't have to worry about backwards compatibility
@BgilMidol seems to be here
> sockets [...] can be polled for readiness to read
I know "readiness" means "preparedness", but I can't help seeing it as "the property of being 'read'" lol
19:45
okay I fixed
what else shall I try generating a snekfile for
Hi I'm AShelly, you may know me from such classics as Code Troll sorting and Quicksort in Brainfuck. Looking for feedback on codegolf.meta.stackexchange.com/a/24426/152.
yay, I significantly reduced disk space usage during installation on ATO
more languages here we come
imagine using disk space
19:53
hmm, yes, DSO just uses too much network bandwidth instead
Not really...
Most interpreters are going to be tens of kilobytes at most I'd imagine
And they're lazily loaded, so it only loads the ones it needs

« first day (4024 days earlier)      last day (1115 days later) »