« first day (4154 days earlier)      last day (986 days later) » 
00:00 - 11:0011:00 - 00:00

11:00
yes indeed. gotta go o/
hello
bye
0
A: Sandbox for Proposed Challenges

emanresu AFill a matrix with another Given two multidimensional, rectangular arrays such as: [ [1, 2], [3, 4] ] [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] Your challenge is to repeat the smaller matrix to fill the larger. For example, with the above, we expand it infinitely: 1 2 1 2 ... 3 4 3 4 ... 1 2 ...

@Bubbler I would agree :P
nah the future is wellscripted
once i figure out parsing
11:33
a ha ha
11:44
This chat room is abandonned. The real chat room is here:

 The Sand Trap

Room for discussions off-topic to CGCC (on-topic discussions s...
12:03
CMC: Given some black box function f : Z × Z → Z, output the Fibonacci sequence, but using f instead of +. Standard rules
I have 3 bytes in Jelly, taking n and outputting the nth (0-indexed) element
@NobodyNeedsNames I've thought of that but that seems too typical. I want to get the most use out of it :P maybe it should do something variable, like time dependant? :PP
@cairdcoinheringaahing like f=lambda z:z**2?
@mathcat No, a function that takes in two integers and outputs one
that is, a single integer, not the literal 1 lol
it'd be a tad easy if it always returned 1 :p
12:26
@cairdcoinheringaahing APL, 17: {1≥⍵:⍵⋄⍺⍺/∇¨⍵-⍳2} Try it online!
12:56
@cairdcoinheringaahing js, 63 bytes
not fantastic but it's functional :P
@emanresuA clicks on link, sees 16 flags. oh boy
while(b){x} can be while(b)x;
i keep forgetting :P thats -1 ty
ah, and you can switch to a for loop and put the e initialisation at the start to save another
13:05
ah i had a feeling i could use a for loop somehow but it wasnt clear to me how
oops i ah'd your ah
but yeah i keep forgetting basic js stuff im rusty
a for loop is always equivalent or shorter than a while loop
@pxeger Ok here's my records for the n <= 10. Brownie points for anyone who can beat them.
00 00: []
01 01: [0]
02 02: [1,0]
03 03: [1,1,0]
04 06: [2,0,1,3]
05 08: [4,0,1,3,2]
06 10: [5,2,0,1,4,4]
07 12: [6,4,0,1,4,2,5]
08 14: [7,5,2,0,1,5,4,6], [4,6,1,4,2,0,1,7]
09 19: [8,0,1,5,2,5,1,7,4]
10 23: [9,4,0,1,5,2,6,1,8,8]
@cairdcoinheringaahing how do you input functions in jelly.
13:20
CMC: do irreparable damage to the user's computer
@thejonymyster VTC as off topic
fair enough :P
@thejonymyster * user angry noises *
@thejonymyster lyxal's probably the closest to me, i'll grab my hammer and start walking
see you in a few hours
or days
13:23
what have i set into motion...
@lyxal but LDW is tomorrow
🔨o
8
idk how fast you walk and if you'd give up on walking and just get an uber
so yeah see you soon
13:23
almost overwrote some work data with "o/"
like yeah goodbye data
@thejonymyster yikes
probably would have been fine but let this be a lesson to you multitaskers: Ensure you know where your cursor lies...
(before you order extra fries?)
@PyGamer0 Put the function kn the previous line, and use ç/Ç
@cairdcoinheringaahing oh yeah... but is that allowed?
that's how functions work in jelly yea
p sure you can access more than just the previous line too so its not like a hack its just like
every line defines a function, the main link gets ran
... wait hm
i totally missed the point of your question :P
that seems potentially like it could be construed as not being a function input
(im guessing thats what you meant to get at )
anyways i'm done
i wish i ran for RO :p
and gotta go o/
@lyxal thanks
13:37
@PyGamer0 get 10k rep first :P
@NobodyNeedsNames never do that again
@mathcat ez just do bounties
@cairdcoinheringaahing if i understood it correctly then this in flax
@thejonymyster oh yeah
13:38
ive got 3 500 bounties up rn :P go do these
CMC: given two positive integers, output their greatest common multiple
@PyGamer0 Yes. One accepted way to take functions is as a named function
wait really? can i use that to golf my js or is that not an option since i can take the function as a direct input
Either is acceptable I believe
13:46
@thejonymyster Vyxal, 1 byte: ġ
@mathcat bzzt
bzzt what
read it again :P
oh lol
can't delete it now
ok no more joke cmcs i promise
is it ever good practice to not write up a code breakdown? (besides for like cnr or whatever)
14:09
@thejonymyster Jelly, 1 byte: Try it online!
Takes input via stdin, but works even if you don't provide any
wow psychic programming
it'll find it at some point im sure of it
hopefully
challenge inspired by me struggling to remember what "GCF, LCM, LCD, GCD" all mean
sadly i couldnt just send "GCM" since that apparently means "greatest common measure" which apparently means the same thing as greatest common divisor (??)
pondering alternate ways of thinking about talk interpreter, was trying to see if any logic gate could be repeatedly applied on each successive bit
dont think there could be, but the resulting table was interesting
top * left

    0 1 A B C

0   A C 0 0 1
1   B A 1 0 1
quality of a code golf question can be defined as "how many 0 or 1 byte answers it receives" where more is better
What do you mean thejonymyster

And sorry for posting a question for that, I didn't know this existed.
@TKirishima i just meant it is possible that someone has asked it, so before you ask in meta, try searching for it
but it is also possible that it hasnt been asked
I meant, what do you mean by "quality of a code golf question can be defined as \"how many 0 or 1 byte answers it receives\" where more is better"
14:32
oh sorry that was a joke :P
the opposite is more likely to be true
oh okk
@thejonymyster except the challenge is from 2008 or earlier :P
off the top of my head id probably say "adheres to standards well, not trivial, provides lots of possible strategies" but also that last one is very hard to do intentionally lol
and also i personally am biased to trivial challenges :P becausei am bad
Yes, it's better to have challenges where several solutions are possible at first sight. After the thing is that it's not necessarily easy to do this intentionally even it can be quite hard, I think. But thanks :)!
ok i think i remember, in meta theres a question saying what not to do
14:37
Thank you !!! :D
some of these are kind of specific, but trying to think of what the opposite would be helps lol
like "Multipart challenges with unrelated sub-tasks" being bad makes me think "a well focused challenge" is good
so if anyone's making a list, jot that down :P
@DLosc Is there a pip chatroom?
@thejonymyster More is worse, IMO
whaaaaaat :P
yeah i was goofing, don't worry :)
@TKirishima I'd recommend reading through our Welcome page, that has a lot of good info for new users
14:48
I can't lie though, I really love seeing the retina 0 byte get used :P
feel like a marvel nerd when heroman shows up in the avenger credits. its like
omg the retina 0 byte program <3_<3
i mean i guess its cause like, it's not the same as some random "oh this lang has a builtin", its a logical feature of the language and it just happens to be useful based on how certain problems are defined lol
you all knew this though
@thejonymyster APL: ∨
that's greatest common divisor :P sorry i was a prankster back then, i've changed my ways
15:05
> greatest common multiple
> back then
it really feels like so long ago
alright let's see whether you're lying
0:) <- innocent
@thejonymyster APL: ⌊/⍬
15:08
when you see dQw do you immediately (a) run away screaming! (b) feel a sense of kinship with the poster and click it out of respect
i'm actually not sure it's a rickroll until i hear the chorus
unclear answer
@lyxal i used vyxal to explain math to my brother :P
congrats!
15:22
I'm coming for you, lyxal
just 1391 more rep :p
anyone remember how to disable scrolling when switching between virtual desktops?
15:44
Hi guys it's Radvylf, the inventor of math. I'm introducing lcd today, short for least common divisor, which gives you the smallest number that's a divisor of both its inputs. Also is that the syntax for multiplication and division has switched, so putting 2 on top of a horizontal line and 3 under it means 6, and 2x means 2 divided by x.
@PyGamer0 what exactly is this
@RadvylfPrograms at least tell me you used semantic versioning and made this a new major version :P
No no no, this is just a minor patch, 2.21.1. In 2.22.0, we'll see long-awaited changes like the removal of trigonometry, and a new integer that breaks the fundamental theorem of arithmetic.
at least the british people will be ok because they don't use math :P
yeah, maths was forked from math somewhere around version 2.8.0
15:57
I reckon I'm a fork too.
I just don't remember my version anymore
16:46
0
A: Sandbox for Proposed Challenges

thejonymysterSeeing the queen's lasers In chess, the queen piece can see arbitrarily far in each cardinal and intercardinal. What does this mean? Well, I'll show you with an ASCII drawing: \..|../ .\.|./. ..\|/.. ---Q--- ../|\.. ./.|.\. /..|..\ It means the queen (notated as Q) can see along these lines (not...

 
1 hour later…
17:47
Is there a depth-sort of thing for numbers? eg. 1,4 => 0; 2, 3=>1 or 1,6 => 0; 2,5 => 1; 3,4 => 3;
oh wait nvm
actually do mind
minus the half and absolute doesn't work
what does that have to do with sorting?
depth
it's like when n=4, how close the numbers are to 1.5
2 and 3 are the closest, then 1 and 4
@mathcat I mean 2.5
I guess i could just add 0.5 to the half of n and then to the absolute value thing
no that wouldn't work too
the closer, the bigger the number should be
18:26
@RadvylfPrograms do you have a 2.22.0 alpha build?
i want that removal of trigonometry
lmao @RadvylfPrograms i just noticed you half shilling as well :P good show
seriously though i cant wait for LDW this is gonna be soooo crazaaay (talking about it like its a house party)
^
only 3 quarters of a day left
im so sad it starts like exactly when i start working :'D
19:27
@cairdcoinheringaahing Vyxal, 2 bytes
woah, that output is pretty
I think we stole that from BQN?
19:44
@Bubbler Even better, write Rust in Vyxal/<your favorite esolang> and say "Why use Rust? Go down to the basics? Use Jelly/<your favorite esolang>"
37
Q: Addition on Elliptic Curves

flawrDisclaimer: This does not do any justice on the rich topic of elliptic curves. It is simplified a lot. As elliptic curves recently got a lot of media attention in the context of encryption, I wanted to provide some small insight how "calculating" on an elliptic curve actually works. Introduction ...

16
Q: Knit me an ASCII-Sock

izlinIntroduction Long story short: a few days ago i accidentally started knitting a sock and the pretty logical structure of the plain stitches lead me to the idea: Why don't we just ASCII-knit a sock? Input The input is an even integer N in the range [2,30]. Output The output is a sock, obviously. S...

Neat.
Huh, interesting
i hope nobody does that to me right now
i keep my processor's "Turbo Boost" off anyways because it makes my laptop overheat, but I doubt my personal laptop is a very high-value target for this sort of hack either
20:21
@des54321 So do I, but for different reasons. But it's still fascinating.
how do i know if it is on
or not on (i.e. off)
Honestly, if someone manages this, they almost deserve to get away with it :P
@thejonymyster check what task manager says is your cpu speed
Could probably be mitigated fairly easily on Linux by having software frequency adjustments.
Keep in mind this is a side-channel attack against very specific things, it's probably not ever going to be useful against ordinary laptops
20:23
@des54321 base speed: 3.41 ghz?
> We know some of you don’t really like vulnerability logos, and we hear you. However, we really like our logo (and hope you do too!).
@RadvylfPrograms I'd wager it could be done with a JIT-based side-channel attack in the browser.
Yeah, but it seems much more limited than Spectre in its capabilities
@thejonymyster task manager should show something like this:
thats the right image
I wouldn't imagine you could get much useful information from running it in someone's browser, even if it's exploitable in browsers which it might not be
20:25
if the green number is higher than the red number its probably on
@RadvylfPrograms Spectre itself is a wide range of attack types.
@des54321 but theyre both brown its fluctuating quite a lot but it doesnt seem steadily above it lol
ty
So more limited in some ways, less in others. Also a different attack vector.
Well yeah, but there were implementations of Spectre which could run in browsers. I don't think there are for this yet, and more effective side channel attacks isn't nearly as bad as a lot of what Spectre could do
@thejonymyster thats probably fine, on my computer if i let it turbo-boost the processor my clock speed jumps to about 3.5-4 GHz constantly, and my laptop quickly hits about 200 degrees fahrenheight
20:28
The difference is that Spectre requires access to the same virtual memory region.
This, on the other hand, works cross-process. It's basically power side-channel, in software and over the network.
Tbh it doesn't look like a particularly powerful attack, but against servers it might be relevant.
Spectre is cross-process, no?
It's not.
The only way it can be sorta cross-process is if one process can cause another process to access its memory.
E.g. to attack the kernel you have to find "spectre gadgets", attacking the kernel from the inside out.
Everything I'm reading is saying Spectre's cross-process, and can potentially even access kernel memory
Look up if it's cross-VMA.
Because it's only cross-process if the other process has spectre gadgets, but that's not "really" cross-process because it's one process exploiting another.
And to access kernel memory it has to cause the kernel to attempt speculative memory access, e.g. using eBPF.
@forest Yeah, that's mostly what I'm saying
20:34
Ah
It just means that you can't attack an arbitrary process unless you can somehow interact with it in a specific way.
As opposed to, say, rowhammer which is truly cross-process because it attacks physical memory.
in Vyxal, Jun 10 at 13:52, by Wezl oOvOo
user: first response: Nice
wezl: first response: Expoitable :P
21:29
@mathcat There is now :)
I didn't want to create one until there was interest.
22:28
PSA: I will likely be less active here in the coming months, so if you ping me or something I might take a few days to get back to you.
00:00 - 11:0011:00 - 00:00

« first day (4154 days earlier)      last day (986 days later) »