« first day (2886 days earlier)      last day (1961 days later) » 

12:00 AM
@dzaima kinda like this?
 
@ASCII-only wait what why does reordering matter there
also no, ÷arr worked fine, if the arr was squeezed to a DoubleArr, it's the default case of falling back to the Num implementation
 
@dzaima nah the AST just always said div is intdiv and intdiv is div before this commit
 
hmm i should really implement a f/ b.. but not doing that is easier D:
 
@dzaima :|
 
i've bound my calculator keyboard button to open a dzaima/APL repl, so not being able to do a quick difference check is pretty annoying
 
12:07 AM
@dzaima :|
 
@ASCII-only well, I was assuming it did the same as EvaluateVariable("HCF", [AtIndex(k, 0), AtIndex(k, 1)])
 
@Neil :/ pretty sure that's not how it works, iirc it's more like just a function call [] is arglist
<_< when you don't even remember your own language clearly
 
@ASCII-only bah, well, I tried explicit arguments with ≔HCF«⎇κ▷HCF⟦κ﹪ικ⟧ι»⊞υ±¹FEN×⁺²ι⁺³ιF⮌υ⊞υ±÷×ικ▷HCF⟦ικ⟧⎚IΣ∕¹✂υ¹ but that then divides by zero for some reason
 
@ASCII-only hmm, looks like it changes i which is a shame as I'm trying to use it as a loop variable
 
12:26 AM
Using (Slice(Reverse(u), 0, Length(u), 1)) might work? idk
 
oh, the for loop variable also changes because it sees k is in use
no, that's not it, because if I assign to i and k before the loops, the loop variable still changes
 
:/ maybe Charcoal needs a debugger
 
12:44 AM
Is there any way I can capture a temporary file as it's written? Because I need to read something that's getting deleted instantly.
 
@Οurous what kind of file is deleted instantly
 
@ASCII-only a file containing options in a format I need to decipher, being created by mkstemp in /tmp
 
@Οurous but what kind of OS deletes /tmp files instantly...
@Οurous ez, you just need the filename from mkstemp
 
@ASCII-only Clean obsessively deletes temporary files when it's done with them
 
@Οurous If you sudo chattr +a directory, you can create and modify files, but not delete them. I haven't tested doing that on /tmp though.
And just to be clear, it might not be a good idea to do it on /tmp.
 
12:51 AM
@Dennis *is not
well, i guess it depends what permissions tmpreaper has?
 
Oh so it turns out if I replace the linker with a garbage file clm crashes and doesn't delete the file. Seems like it is probably the safer option.
 
1:03 AM
Ah good that just give me empty files instead of no files ._.
 
oh wait @Neil should MapAssign take up two variables too
 
@Οurous Does Clean respect $TMPDIR?
 
@Dennis Doesn't seem to in this case.
I think I've found where the default options are in the wrapper though.
So I should be able to build a clm that just spits out options files.
 
1:29 AM
SUCCESS! It prints "Hello, world!" and then segfaults
 
2:06 AM
No apparently it's doing both and sometimes one happens before the other.
 
CMP: How would you (like to) print "Hello, World!" in a language whose only entities are points, infinite straight lines and circles on a 2D plane?
 
@Bubbler Code points
Y-axis is the code point, x-axis for the order to print the points in, if that's how it works
 
The language is in definition phase, so anything you imagine is OK
Btw, a point is defined by two floating point numbers (x,y) or (r,theta)
 
@Bubbler define line segments and curves bounded by the shapes you have and be able to draw the shape of the program
 
Also, each entity will likely have an associated label (any string)
@Quintec Something similar to pixel art?
 
2:35 AM
@Pavel ew. then it's just a 2d language
a waste of program space
possibly lines could be execution paths, and points and circles used to indicate control structures/literals. possibly
 
I'm actually thinking about this: for each point requested, print its label at its (x,y) coords
 
@Bubbler wait it has labels?
wat
@Bubbler pls elaborate
 
@ASCII-only Interesting, but not for that language. It is mainly for compass-and-straightedge, with a few extra commands to make it Turing-complete or sort
 
21 mins ago, by Bubbler
Also, each entity will likely have an associated label (any string)
 
@Bubbler hmm?
 
2:44 AM
So the "Hello World" program will work like this:

Declare a point labelled "Hello World" at coords (0,0)
Print it
 
@Bubbler wdym by printing at x, y coords though???
 
If the point is at (4,0), prepend four spaces
For (0,1), print on the second line
 
What if the point is (0.5,0) or is that invalid?
 
> Btw, a point is defined by two floating point numbers (x,y) or (r,theta)
@Bubbler :/ what use would that be
@Bubbler what about conditional printing
(foo ? "H" : "G") + "ello, World!"
rounding, I guess? so (0.1, 0) prints to (0, 0) too
 
3:10 AM
@ASCII-only All printed points share the same coordinate system, so it's similar to ascii-art printing
 
@Bubbler yeah, but your program would be arranged based on print location, not control flow :/
 
@ASCII-only It's just a random thought after all
I'm leaning back to simple codepoints
Not having a number or string, the printing commands would be printX, printY etc.
 
 
2 hours later…
5:01 AM
@Bubbler ????
 
> a language whose only entities are points, infinite straight lines and circles on a 2D plane
 
@Bubbler what is printX
X and Y are two points?
 
print a point's x coordinate
 
????
 
5:26 AM
Probably I just need to allow numbers as entities and do IO with it
 
 
1 hour later…
6:39 AM
Merry Christmas and one happy new year... Thank you for all
 
 
1 hour later…
7:41 AM
@ASCII-only I don’t think that works because in Google sheets pixels can only be whole numbers. 133 pixels for example is just under 100pt .
 
 
2 hours later…
9:34 AM
0
A: Sandbox for Proposed Challenges

NeilPiano Scale Fingering There are 12 different major scales on the piano, which have similar, but not identical, fingering. Furthermore, the fingering for each hand is slightly different. The fingers of each hand are numbererd starting at 1 for the thumb. Each note usually takes the next finger i...

 
10:00 AM
@ETHproductions @primo I don't actually feel like posting a Julia tip right now, especially since my "big" tip is less useful than I thought. So here are some tips (which you may already know):
Use @. (this was my big tip, but now I only use it in one answer)
You can use . for regular multi-argument functions, e.g. cld.(24,5:10) (I embarrassingly learnt this quite a while after using @. for the same purpose)
|> allows you to save on parenthesis, especially when combined with . or when using ∘s to combine functions on the right of |>
 
10:10 AM
@ASCII-only that doesn't make sense, MapAssign takes an operator, an optional operand, and an array; it doesn't actually evaluate anything itself.
 
ngn
10:27 AM
@Bubbler a circle and a line for hello: o/ and another circle for earth: o :)
 
very nice
 
ngn
(assuming the earth is round)
 
o/ o/|
 
also compare java vs C# vs C speeds:
https://tio.run/##NY3BDoIwEETvfMUcSxoJ8ap8gieOhkMFJYulJdtCYky/vdYqe9jJvJ3JTmpTh2l4xrisN009eq2cw0WRwbsA/tR55ZNslgbM6SZaz2TGawfFoytzFNDWjGA0qE/ZPyyLzCizJGcc632Sl3KvAiwb0K8X8m5fzt/nyq6@WtIzr43g8hsIRYjxAw
https://tio.run/##NYw9C8IwEIb3/op3bClKca2dXBUKDg7iEGIsB20O7qIgkt8eY6Q33PF@PGd1Y1lcSk8lP@H81uCWvrKzUcUoPIlZ8KkADSaQxYvpjpMhX2uQTFxvMDJpUzrAzPmJYEDXF/1gqYtHxctnj123TtZtu6KAtAPoz8WyD@yVZ7e9CAV3JO9qaX55rGJKXw
https://tio.run/##RY1NDsIgEIX3PcWkRkODNY0ubb2CZyAgOMk4GKgr06uLBFJ9i/nLe9/oXpNil9IGWdPL3GCMs0F/uF8a5BkeCll08G4gizw7CDDBcP7vVOeoFVvRbsm0e9hRV6/WB1FcWFK5jTkA
(and yes C is cheating, but that's part of the point)
 
11:01 AM
@H.PWiz a lot of great tips, thanks!
two of those tips together just saved me 9 on pascal's triangle
 
Which of those tricks is new to you?
 
for regular multi-argument functions, e.g. cld.(24,5:10)
i knew that worked for operators, but not for functions
If you have (expr1)*(expr2), it can be shorter as *(expr1,expr2)
this i actually already knew, but didn't recognize any potential to save bytes
 
Is there anything shorter than repr in Julia?
 
repr(i)
"$(i)"
in fact, if it's a single variable reference, you can just use "$i"
 
Nice, unfortunately not .able
 
11:15 AM
no, i don't think it is ;)
 
Now I don't use @. at all
 
neither do i
.|> frequently, though
woah
FizzBuzz
1st HPWiz 59
 
(It's not that special)
My 60 byte one was better
 
does it use "$i" ? :p
 
59 byte one does. 60 byte one used repr
I have a habit of saying bytes, when it really should be characters
 
11:27 AM
same
 
 
2 hours later…
1:26 PM
The funny thing about my score here is that all I did was apply a standard (to multiple languages) golfing trick to my 41 char answer.
 
@H.PWiz Bytes is shorter. B is even shorter.
 
1:46 PM
@wizzwizz4 characters can be golfed down to chars. and you can just not have a postfix/anything some of the time
 
 
2 hours later…
3:22 PM
@H.PWiz your 41 must be different than mine :P
i've got a different 41 now
 
4:02 PM
cmp: this, this, both, or none & force factories/static genetators
 
4:47 PM
@dzaima I have no idea what you’re trying to do, is B supposed to extend A?
 
@Quintec oh, yep ._.
i can't write code if there's nothing to tell me that it doesn't work :p
 
5:09 PM
@primo That's funny, because I think I stole mine from somewhere else. Mine only works in py3 though
 
same
 
I'm looking forward to finding out what I'm missing on emirp and happy (for JS)
 
it must be a silly mistake
you'll likely kick yourself after
 
presumably
 
5:42 PM
@primo Apologies, but I should have written x_n=f(x_{n+1})
 
i had assumed that
 
6:05 PM
hi all
does anyone understand how to get the domain I paid google for to point to the site I have edited using google sites?
more specifically.. I pay Google for the domain stringipedia.com every year. I have made a website using Google sites which you can be found at sites.google.com/a/stringipedia.com/stringipedia . But how do I forward www.stringipedia.com to this site?
 
whats that thing that called when you do a=1; b=a+1; a=2;, b becomes 3
some langs have it
 
@betseg what langs have that as the default =?
 
i dont remember, if i knew i wouldnt be asking :P
but im sure at least one language has it as default
 
in k you could have b be a "view" and it'd work like that, but that's a separate syntax from assignment
 
6:33 PM
Linux 4.20 is out
 
@betseg Right-to-left evaluation ;-)
 
6:46 PM
have i gone a bit too far not wanting to have straight-up c code in my code?
https://tio.run/##ZZHPTsMwDMbvfQqrJwdGpF2ZQIq6Tao0bRMdIHHLurB1tGmVuIw/4soL8Ia8SEnTlSFxy/fZ/tmOU6mfpW2a6E4aWOdSP612mYUr0OoArYkVmdVrpQYQkouEbBQARNNad9l9pjOQXBqyARCv57JQGPqMEM6BKr5V5M027tVtPEbmlDCGq6KiVzyKPLOErkk/wVilOf6ONoBIzGaLiKcyzzGJHyaLafcu1/uETJ2S4/jaeV1MXiqDQ@b69EBht7ql99KY8nCiO5IlYZG4o6mU7o2seLeXX@yPm@bS2qUpK88G8DrWlqROVc/xPZZlpkkZ/F@@6sjMAU4T3ihKiE4zsYC5TydeKNqVG8vlZtMFnRt8f37BVmllJCl7GQSiO4tABu8OKIC6c2L7RWWKNntT5SOKxK0zZP6YiIv1ngG2mYxdXPvJ2pLWj7w4c2Hhn3FXYxTVRh9rRsFH0/wA
 
7:16 PM
@betseg personally I'd call that super lazy evaluation, but even using the word evaluation there feels wrong
 
@betseg using a pointer to a instead of the real a in a+1... ;-)
 
@betseg ;-)
 
conclusion: that thing is called ";-)"
 
8:25 PM
@dzaima The funny thing is that TIO is giving you the exact error... were you just not looking at it? xD
 
@Quintec I just used tio as a pastebin. i knew that neither should compile so i just didn't look at the output
 
Ah
Always read error logs :P
@dzaima reminds me of tensorflow for python... everything is symbolic until you call the evaluate
 
9:24 PM
@Pavel It's been (almost) three hours and no one has made a "lol blaze it" joke. Huh. Are we all secretly more mature than we realize?
 
@El'endiaStarman Oh I didn't even notice the joke, I was too blazed
 
9:44 PM
@El'endiaStarman Look at how many upvotes it has on HN. Linux point releases don't normally get that many.
 
@Pavel Ah yes, there we go: second top-level comment is "Wake and make, dudes".
 
@betseg In mathematica it's called "Delayed assignment" through the := operator.
 
10:05 PM
so... when was the last time a challenge was posted?
 
¯\_(ツ)_/¯
 
@EriktheOutgolfer Yesterday.
 
(that wasn't really a question...)
 
How was I supposed to tell?
 
guess the message failed to go through... :P
I meant that the rate in which challenges are posted has dropped again
 
10:10 PM
Well...yes...it's the holidays...
Look at the number of challenges posted on Dec 19 and 20.
 
I think that's the reason too, yeah
 
 
1 hour later…
11:22 PM
0
Q: Encode a date in Christmas Eve format

PyRulezThe day this post was published was Christmas Eve. Tomorrow will be Christmas. Yesterday was Christmas Eve Eve. In two days it will be Christmas Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve ...

 
@Neil oh yeah :/
@NewMainPosts wow this was pretty fast, NMP
 
11:47 PM
@Neil Oops :/ turns out :| is up, then down. will it break much if I change it to the correct order?
 
@ASCII-only I can't imagine it
it's no use in a polygon anyway, and I don't see it making any difference in a multiprint
 

« first day (2886 days earlier)      last day (1961 days later) »