« first day (3814 days earlier)      last day (1324 days later) » 

20:09
in Jelly Hypertraining, 2 mins ago, by caird coinheringaahing
CMC: Write a program which produces an output containing a symbolic number
Specifically a Jelly program, but I'm also interested in seeing solutions in langs that shouldn't have support for symbolic numbers
What is a symbolic number?
Basically a number with infinite precision. Mathematica's the most common user, but other langs use them as well
sympy numbers in Python
this works but I suppose it's kinda boring
I have 7 bytes in Jelly :P
20:13
There's no way to compress atoms or call or lambda or sympy or sqrt?!
gonna bet it's some weird bug/UB
@RedwolfPrograms There is, I'm guessing hyper cba :P
actually wait no. ® can't be in compressed strings, so it gets weird
or i just join two strings :p
20:14
Is there a way to represent it in three bytes with unicode?
I suppose “atoms["0"].call=lambda:sympy.sqrt(5)”ŒV0 would also work, and be compressible
@cairdcoinheringaahing keyerror
also i don't think 0 can get parsed into an atom
“atoms["S"].call=lambda _:sympy.sqrt(5)”ŒVS works
oh what
i tried that with "A" and it didn't seem to work
Because it operates on the [] returned by ŒV
Here's 7 bytes if you want a spoiler :P
does this rely on digging through source code to find weird interactions :p
I didn't find it by source code digging :P
Is "jsym" a good name for a JS symbolic number library, or is it to easy to mispronounce in an...unfortunate way?
I'd pronounce that as "J-sim"
If the y and s were swapped, it'd be bad. Otherwise, it's probably fine
20:23
same, and I'm also not quite sure what the unfortunate pronunciation is
Try pronouncing "jysm"
oh, i see
No, that's "oic" :P
ಠ_ಠ
important windows security update apparently
as in like, apparently windows has some random ACE exploit that lets ppl run arbitrary code at system-level privs????
That's probably why my laptop restarted overnight, I was wondering about that
20:27
My only laptop that is capable of running windows is currently waterlogged and broken in half so I guess I don't need to worry
> broken in half
F
@RedwolfPrograms But what if hackers get sys-level privs???
> Why has PrintNightmare been so damaging? Because it was an accident.
Well...yeah
> Security researchers accidentally published their proof-of-concept (PoC) exploit online which meant Microsoft was caught completely off guard and hackers were spoonfed all the information required to start taking advantage of Windows computers around the world.
ಠ_ಠ
@RedwolfPrograms In other news, Microsoft claims they haven't intentionally added a major security flaw to their laptops
20:30
Major security flaw: We trust all of our money, communications, and military technology to bricks of sand
Luckily they mostly do what we want
I don;t know how sympy calculates matrix power for rational powers, but it seems to have bricked my Python :/
I got that and saw this
15
A: r flag my Vyxal

ovs05AB1E, 15 12 10 bytes This could be 9 bytes without the l, but why would I remove that? SvyxaliŠìì Try it online! S # split the input into a list of characters v # for each character y: y # push y x # duplicate TOS and double the copy ...

:O
Hey there
welcome back o/
its been a while lol
20:38
How're you doing?
good, collage is being a bitch though
My C++ won't write to a file like it should
@Christopher Too much glue? :P
How about you?
@cairdcoinheringaahing need to drink more of it and it would be fine
Good. Just got my first dose of the vaccine today :D
noice
Was able to get that a month or so ago
20:39
I'm now 50% immortal :P
Just wait till the Covid 1.2 patch comes out, bug fixes and patches the vaccine exploit
@Christopher The way the US has rolled it out is crazy tbh
Yeah it was pretty nuts, i got an alert of my phone and was able to get it the next day. And i am not in any of the high priority groups
@Ausername I love that ovs went through the hassle of using <pre> tags in order to bold the Vyxal :P
Ux.....
Excuse me....
20:48
Nice ratio
It also has a nice color scheme
They all do
Although they're colors that don't exist in the real world
Yes they do, on screens!
20:50
Not the physical colors, the ones I see from synesthesia :p
1 is whitish, 8 is dark grayish, and 6 is a sort of wood colored brownish
Oh
@lyxal Can we have a flag for rational numbers in internal computing?
Don't encourage the flagssss
@Ausername Probably best to ask about this in Vyxal, but +1
This is an actually useful flag
Like O
Putting useful stuff in flags is what's problematic though
2
If the flags were like "make the stack flip all of the numbers upside down and feed them through an AI trained on roman numerals" I'd be fine with them
20:55
@cairdcoinheringaahing wait, which one of these is a symbolic number lol
@RedwolfPrograms don't give lyxal ideas xD
@hyper-neutrino The *I is sympy's I, not Python's j
oh
lol, nice.
My secret is that I do not understand stack based languages
You can change the matrix and the power to try and get square roots, that just looks to be the shortest
@hyper-neutrino Too late, I'm gonna pass that one on :p
20:56
@N3buchadnezzar Good luck with tacit then :p
Stack based is super simple though, if you find it tough you're probably overcomplicating it :p
stack paradigm is easy even if individual stack languages aren't always
sshhhhhhhh
tbh whenever i'm looking at documentation for a stack language's builtins i can never keep straight what order the parameters are taken in
21:05
Ooh, I just stumbled across a feature on MDN that was just implemented in the latest chrome version
Time to use it to yell at people with out-of-date versions :p
i can never remember if it makes more sense for TOS to be left arg or right
Terms of service?
The Oldest Son?
(can't tell if y'all're joking but if not - top of stack)
21:07
I was close
(I was joking that it was terms of service, but I didn't know what it meant :p)
lol :p
i should just stop saying TOS. it seems like every time i use it someone doesn't know what it means so i end up spending more bytes to explain it than i would've saved :p
@hyper-neutrino You should add that to the top of the stack of your TODO list
Not sure if 4 2 - should be 4 - 2 or 2 - 4
They both sort of make sense I guess
i want to say that when you're stating arguments left being top makes more sense because you can think of it as, like, pop a then pop b then push a+b or what have you
but if you're writing out the stack itself then obviously top is right, because that would be the order in which the items were pushed
21:11
Following reverse polish notation it should be 4 - 2
0
Q: Shortest code to take the longest to run

K-Dub1234Write a program (in any language) that takes a really long time to run. wait or sleep blocks designed to take a specific amount of time to run are not permitted. Answers must be as follows: # language, bytes, time (secs) ## code ### machine running the code and other notes.

@NewPosts Uh oh... This needs to be severely clearified
Heya Lynn =)
just take the factorial of like 3 million in python lmao
@hyper-neutrino Or try to do anything in Python. <- Joke about Python being slow
just do like 9!9¡9¡9¡9¡9¡9¡ in jelly and now this takes a few orders of magnitude longer than the lifespan of the universe to run
21:18
An answer chaining challenge where each answer has to take longer than the previous one with a limited growth in size could be cool
@N3buchadnezzar ಠ_ಠ
@hyper-neutrino Fibonacci takes a really long time to run done recursively
fibonacci grows exponentially i think
factorial is faster isn't it? (as in, grows faster)
in any case, OP hasn't specified why while 1:0 isn't allowed
Nah, a bad implementation of Fibonacci grows as O(n!)
21:26
@N3buchadnezzar isn't it 2^n?
Ackermanns is even worse, but we already had one of those
2 branches for every n, 2^n
@rak1507 O(2^n) yes, sorry
ah. so exponentially :p (i think?)
21:30
No way
I managed to inject code into a running Text instance
I can change the styling, at least temporarily!
@RedwolfPrograms Wait we talked about this earlier
Did we not mention css-tricks.com/… this in chat? scratches head
Unfortunately I don't think I can permanently impact the code, so it'll be a bit annoying, but I can now write a custom theme
I just have to do a few minutes of work manually to set it up
Honestly 100% fricking worth it
And if I like it enough, I might be able to download the compiled extension directly, instead of building it myself, then apply the changes there and install it normally
I've fixed the main issue I have with Text now. This is probably one of the best days of my life lol.
Really like this video youtube.com/watch?v=seVSlKazsNk. Have much more appreciation for Haskel now
21:48
@hyper-neutrino None of us are joking, joking isn't here
:P
Text's default dark theme is truly something
ha, I see what you did there, that was very clever and original
Never have I seen such a horrible mix of colors
I just love the vomit green mixed with the very unnatural orange, it makes my JS look as bad as it should
Looks just like Molokai / Monokai
I think I'm just going to steal Github's dark theme and port it over to work with Text/CM lol
22:12
CMC take in a list (of not necessarily numbers and assert whether all elements are equal. One byte solutions / builtins that are written explicitly for doing this is banned :p
i feel like there's probably a jelly 2 byter but i can only think of several 3 byters
Four bytes in Ash is all I can come up with :/
QḊ if we can return a truthy/falsy value inverted
oh yeah if course
i was thinking of something with Q but i completely failed to think of how to compare its length to 1
mu two other three byters were ṙƑ1 and Ṗ⁼Ḋ
Thought of an Ash two byter, something like Ṙz
(Check if length of unique items is one)
22:23
@hyper-neutrino I dont know why but this APL presentation is helping me a lot understanding Jelly better youtube.com/watch?v=seVSlKazsNk
Well because Jelly is tacit like APL :p
...debatable how much like
but conceptually similar yeah
"(Jelly is tacit) like APL" not "Jelly is (tacit like APL)"
@N3buchadnezzar Scala: _.toSet.size<2
jelly's fixed adicity probably came up as sort of a hybrid of trains and whatever the non-train syntax is called come to think of it
22:25
@N3buchadnezzar x=>new Set(x).size<2, or x=>x.some(n=>n!=x[0]) (reversed T/F)
oh yeah another fun jelly 3 byter is ḷ\Ƒ
@RedwolfPrograms Heh Scala good JS bad /s
@RedwolfPrograms For numbers only, - instead of != saves a byte
@RedwolfPrograms Please watch it when you have time =)
@N3buchadnezzar Python, 20 bytes: lambda a:len({*a})<2
22:31
@LeakyNun I think I got 19 with a==a[::-1]
fails for [1,2,3,2,1]
that is literally just a palindrome check
CMC: Output n! (factorial) with all trailing zeroes removed, so 7 -> 504 and 10 -> 36288
22:41
obligatory Brachylog, 3 bytes: ḟ↔↔
I assume the f is factorial, but what's ?
Ooh, that's smart
@LeakyNun I got 71 64 in Pyhon =/
so far the best i can think of for jelly is the very straightforward 5 byter with the one dyad i usually forget exists
22:49
57 Could golf this 1 byte switching to python 2
@N3buchadnezzar 55
@user Clever!
I think it is funny this is a struggle in Python because it is so expensive importing the factorial function bitwise :p
Jelly be like, what is this guys problem
22:53
[here's a funny 7 byter in jelly](tio.run/##y0rNyan8/9/K9PD0R41brRwU////bw4A
i cannot type a right parenthesis to save my life holy fuck
@UnrelatedString I cant read this
floor-div by 5, multiply by 10, floor-div factorial by that
@UnrelatedString gives 181440 for 10 instead of 36288
...
and it doesn't work
yep
i literally thought to try that as you pinged me
cursed idea: a fixed-arity tacit lang where there are prefix and postfix monads and chaining structure depends on which way monads face
@LeakyNun Jelly, 6 bytes: !DUḌƊ⁺
22:56
because it multiplies instead of exponentiating lmao
@hyper-neutrino Not enough D's
@hyper-neutrino i got halfway through writing that when i remembered t exists
oh i forgot about that :p
then !Dt0Ḍ :p
it is a very forgettable atom
@UnrelatedString outputs 155112100433309859840 for 25 instead of 15511210043330985984
22:58
welp
looks like it manages to get two trailing zeros by 50
...
that is obvious in retrospect
whoops
counted multiples of 5 to count total factors of 5
stackoverflow.com/a/27631052/8037731 is probably the worst answer I've stumbled across on SO lol
And the worst part is it has three times more votes than the real answer
CMC: Given a positive integer n, output the n-by-n matrix formed by filling in 1...n^2 in ascending order. e.g. 3 -> [[1,2,3],[4,5,6],[7,8,9]]
23:14
@LeakyNun easy 2-byter in Jelly lol
(spoiler in case anyone new to jelly wants to give it a shot)
@LeakyNun Scala: n=>1 to n*n grouped n
56 Cant really be bothered golfing it
I parsed HTML with regex and this is what happened
No way, I can actually Text look nice by changing the CSS
23:27
i'm not sure i can text look to begin with
My brain is much from trying to understand Text's HTML layout lol
* mush
@Ausername yes
That shall be added later today

« first day (3814 days earlier)      last day (1324 days later) »