« first day (2958 days earlier)      last day (1889 days later) » 

12:00 AM
But it's extremely math heavy
 
12:27 AM
-1
Q: Error while installing angular-router.js using npm

Gourav Kumar burnwalC:\Users\gourav\Desktop\AngularJS\js>npm install --save angular-route 1.7.7 'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file. npm ERR! code E404 npm ER...

 
12:58 AM
oh yeah @ConorO'Brien a big problem is that functions in AtFunctions.rb don't store their own name :/ so Attache can't say "Ruby function <name>" when doing A> Print or whatever
 
 
1 hour later…
2:01 AM
@ThePlasmaRailgun isn't kotlin functional
@ThePlasmaRailgun ... you do know BLC is literally just math right
The intuitive meaning of these rules of execution is to consider the symbols
λx,(, x of λ-calculus as elementary instructions :
• “λx” is : “pop” in x and increment the instruction pointer.
• “(” is : “push” the address of the corresponding “)” and increment the
instruction pointer.
• “x” is : go to the address which is contained in x.
@ThePlasmaRailgun ^ is that not enough (page 4, halfway down)
 
2:33 AM
@ConorO'Brien also i think we really need unit tests (maybe in Attache), with changes this major something's bound to go wrong
 
2:49 AM
anyone know what things other than ranges you could use enumerators (lazy lists basically) for in a standard library?
maps I guess? as in the functional map(f, array)
 
3:04 AM
T_T Ruby's Range has a lot of functionality to reproduce
 
3:45 AM
Wait... does Code Jam still accept languages not on the list
 
@Mego Okay
@EriktheOutgolfer I actually just stumbled upon it, but yeah, I'd like to learn Jelly
 
4:11 AM
,
4
 
 
1 hour later…
5:38 AM
@ASCII-only If you want a list of useful transformations on lazy lists, try the documentation for Rust's Iterator trait.
 
5:51 AM
oh shit
new what if book?
how long ago was this announced
how late am i
 
6:23 AM
All of it.
 
Ok, I've got my mandelbrot renderer down to 193 bytes
And the version of it formatted into my email signature is here: tio.run/##VdDbToQwEAbge5@iickGhkI5qKuWUeMmGp/…
If anyone's got any golfing tips that'd be appreciated.
 
6:50 AM
Try it online! 192 chars. I'm 99% sure it's the same behaviour but I'm on my phone so maybe not.
 
 
4 hours later…
10:44 AM
it's the same
@ThePlasmaRailgun ew globals
put the floats inside the function pls :(
@ThePlasmaRailgun in addition to ourous' golf, 2e3 -> 99 gives the exact same output
@ThePlasmaRailgun cleaned up useless vars, 176
 
wouldn't be surprised if using a string function would make it shorter
@EsolangingFruit what do you think is the most important/most used
 
:P running out of things to remove without a completely different approach :P
if anything, the complex number calculation is probably the best bet for golfing
 
11:21 AM
If numbers instead of letters is okay (tbh I prefer this look) 160
 
11:40 AM
0
Q: Create chunks from an array

chau giangYour task is to write a program which given an array and a number, you need to split the array into chunks with size is number. Rules Your program will receive an array A , as well as a positive integer n. The array should then be split into chunks of length n, if the length of the string isn'...

 
@ASCII-only ^ nice relatively easy problem for you. Look into the dyadic primitive.
 
T_T now i'm stuck on the other parts
 
@ASCII-only Don't cry. I'm here to guide. What seems to be the problem?
 
11:55 AM
mostly i'm bad at finding things
i've resorted to searching in langbar.js
 
@ASCII-only Uh, try scalar and mixed functions.
 
ok so now i have something that works: {((⍴⍵)⍴1≥⍳⍺)⊂⍵}
 
@ASCII-only That's very good.
@ASCII-only For some funny reason, a lot of APL beginners have a very hard time accepting that = is just another vectorising comparison function, just like <≤≥>≠.
 
@Adám oh in my case i was just an idiot, just went straight to a comparison since this was a range
 
12:11 PM
@ASCII-only Here is a trick: APL has a sophisticated system of prototypes in arrays. It has the effect that if you coerce elements out of an array that isn't large enough, APL will fill with values that are appropriate to that array. For character arrays, that's spaces. For numeric arrays, that's zeros. So if you take the first 4 elements of 5 (4↑5) you get 5 0 0 0.
 
@ASCII-only Another trick, especially useful for golfing: A f⍨ B is the same as B f A. This can often save you a paren.
 
@Adám Yeah, done that to remove one pair of parens, trying to remove the second pair
 
@ASCII-only You can't, as both sides or the middle are compound statements.
 
so {⍵⊂⍨(⍴⍵)⍴⍺↑1} is (basically) as far as it can go without using a tacit function?
 
12:25 PM
@ASCII-only Right. You can save one byte by going tacit. (I will show how in the Orchard.)
 
12:36 PM
@MilkyWay90 alright, I'll let you in, although please mind that you can't undo access requests in general
 
 
2 hours later…
2:39 PM
16
Q: Determine the Base where a Given Equation is True

erdekhayserGiven 3 integers, determine the lowest possible base for the first two integers to multiply into the third. If you think of the Answer to the Ultimate Question of Life, The Universe, and Everything, 6 * 9 == 42, is true in Base 13. The inputs can include any numbers whose digits use the characte...

 
 
2 hours later…
4:28 PM
0
Q: Is it a valid penalty shoot-out prefix?

Erik the OutgolferIn association football (also known as soccer), a penalty shoot-out is the second tie-breaker measure that may be used in a match which can't end in a tie, after extra time (i.e. association football overtime). In a penalty shoot-out, the main referee tosses a coin to determine at which goal the...

 
oh hey, that was quick!
 
4:44 PM
Man, I hate dealing with MIBs still
 
 
1 hour later…
5:55 PM
@ASCII-only The ones I use the most are map, filter, filter_map, zip, and chain, probably.
 
0
A: Sandbox for Proposed Challenges

l4m2Venn of \$n\$ number of sets Given positive integer \$n\$, output \$n\$ 2D bool images with same width and height such that: each image should be 4-connected, i.e. for each two pixels that are true, you can start from one and go up, down, left and right for some times to the other pixel, only ...

 
 
2 hours later…
8:28 PM
@ASCII-only I've already got it down to 154 bytes
But it has differences in the rendering
To be fair though, they make it have a bit more detail
I want to hit 140 bytes, but I don't think that's gonna happen
Unless I change the math
 
8:47 PM
If anyone has any ideas for further golfing I'm all ears
I really want to hit that magic 140 chars mark
 
@ThePlasmaRailgun Switch to a golfier language ;-)
 
Nah, C is more easily recognizable and thus is better as a signature block
And it has comments, which is required for making it a good looking signature block
 
@ThePlasmaRailgun I didn't say golfing language, just a golfier one.
 
Yeah, but what would be as recognizable, formattable, and universally compileable
Because I want to be able to do this: tio.run/…
 
@ThePlasmaRailgun Javascript.
 
8:52 PM
NEIN
NO JAVASCRIPT IN MY GOOD CHRISTIAN EMAIL SIG
Also its only option for character output is document.write or console.log which has a HUGE byte cost
 
@ThePlasmaRailgun Could be an => function.
@ThePlasmaRailgun I should make myself a cool APL signature like that.
 
Though with APL you'd have unprintable characters and that could make it less viable as a signature
 
@ThePlasmaRailgun Unprintable? You mean non-ASCII?
 
@ThePlasmaRailgun I have non-ASCII in my name, so…
 
8:58 PM
To a lot of email clients though they'll be unprintable, beyond the latin accent characters
 
@ThePlasmaRailgun [citation needed]
CMC : Coolest APL expression using only ASCII chars.
 
I'm pretty sure legacy versions of Outlook and Thunderbird don't have UTF-8 support, and most terminal email clients don't either
At least in my experience
 
Wonders if it is possible to find primes in APL using only ASCII chars…
 
@AdmBorkBork ha!
 
9:05 PM
It is! If N is set to a number, then 2=+/0=(N?N)|N
As a function: 2=(+/0=(+?+)|+)
 
9:28 PM
@ThePlasmaRailgun Try it online! 153
 
Wait, how does that map to [-1, 1]?
I only see y / 20
Which would map to [0, 2]
Oh, I see
I just had a massive blank out and thought the 1 was an l
 
@ThePlasmaRailgun all versions of Thunderbird support UTF-8, but only the new ones default to it
 
The thing I don't understand though is why the y at the far left disappears
@Οurous Any idea why that is?
 
@ThePlasmaRailgun floating point shenanigans. Sorry I missed that it did that, on my phone again.
 
Oh, no problem. It doesn't change it enough that the extra byte isn't worth it
If anyone has any ideas for minifying the math, that's what I think is really keeping it at ~150 bytes
My implementation is basically this:
while (x*x + y*y <= 2*2 && iteration < max_iteration) {
    y = 2*x*y + y0
    x =  x*x - y*y + x0
    iteration = iteration + 1
}
The Mandelbrot set is the set of complex numbers c {\displaystyle c} for which the function f c ( z ) = z 2 + c {\displaystyle f_{c}(z)=z^{2}+c} does not diverge when iterated from z = 0 {\displaystyle z=0} , i.e., for which the sequence f ...
From there
But I thought I had hit the limit of size for the algorithm at around 200 characters, I never thought I'd get it down to anywhere near 150
 
9:46 PM
@ThePlasmaRailgun Do not underestimate the power of PPCG.
 
Yeah, I know
 
Try it online! got rid of w
147 bytes
 
Wowza
My attempt to get rid of z resulted in a broken fractal
 
@ThePlasmaRailgun 153...
@ThePlasmaRailgun yeah that's not how you update u to fix it :|
 
Yeah, I remembered that u has to be updated last
 
9:51 PM
146 using ourous' golf
 
Wow, you guys are geniuses
If you somehow manage 140 chars I think my head will explode, I keep thinking we've hit the limit and there's nowhere else to go
My goal was originally to get this under 140 chars so it would fit into an original tweet, and I gave up once my first rendition was 220 bytes
 
also i'd change to 122 not 124 so it starts at a
 
Ok, that works
 
then maybe 121 and 26 instead of 122 and 27 to make sure you only get letters
 
122 works as is
No non-letters
 
10:00 PM
yeah, of course, but if you change them it'd never output a non-letter :P
 
122->90 for uppercase letters (121->89). it looks different though so up to you
 
@ThePlasmaRailgun shouldn't you use a temporary variable in there?
 
In where?
 
10:04 PM
@ThePlasmaRailgun click on the reply link
 
well you're using y for computing the new x after you've updated it.
 
True
That isn't exactly my implementation though
 
143 if you don't mind extended ASCII.
 
for that 143: set k to 36 if you don't want P to be replaced with divides as well
 
140 with plain ASCII!
4
 
HE'S DONE IT
HOLY SHIT
 
it doesn't use letters though :P
 
PLAIN ASCII IS FINE
And tbh the arithmetic operators make it look more fractal-y at the edges of the set
 
WE DID IT
 
10:10 PM
@ASCII-only Those are not the same set.
 
of course :P but similar enough imo
 
@EriktheOutgolfer Okay! I will try learning Jelly again then will go to that chatroom when I run into any problems
 
i mean, they did have 2k iterations instead before
 
It loses some detail though
I think I'm gonna stick with the numerical one, especially since the symbols around the edges make it look more like a fractal
 
k=27 at 139 looks good too, and it is kind of nice that it goes all the way to 9.
 
10:16 PM
Wow
 
😮
 
if you had to decode the number of ways a number could be decoded into Letters, wouldn't this be a permutation problem?
assuming A=1 etc..
 
a much less legible 135
 
I am assuming it would be a binomial coefficient
 
10:30 PM
@dzaima try 80 not 73
 
@ASCII-only eh imo 73 is better
 
oh wait, so it is
 
@Adám yeah, thought of that, but it was too horrible and it starts to lose too many iterations
 
96?
 
10:34 PM
81
@ASCII-only Yeah.
 
@ASCII-only yeah, i wrote pretty much that but didn't bother to look after finding · :p
 
@ConorO'Brien you here?
 
11:11 PM
2
Q: Deal the cards to the players

aloisdgTonight is card game night! You are the dealer and your task is to write a program to deal the cards to the players. Given an array of card and a number of player, you need to split the array into hand with size is number. Rules Your program will receive an non-empty array A , as well as a po...

 

« first day (2958 days earlier)      last day (1889 days later) »