« first day (2355 days earlier)      last day (2474 days later) » 

4:00 PM
E.g. In the imaginary language Stencil, GoL would be just:
3∊(+/,⍵)-0,5⊃,⍵
3 3
 
oh wow nice
 
Hi guys o/ haven't been here in a while
 
where bytes control a screen
 
@thepiercingarrow That sounds evil...
 
4:09 PM
oops
anyway I was wondering if this exists already
Cuz I was thinking about how people are always trying to get normal people interested in coding
BF is the simplest/highest level popular programming language
And I hear a lot of new people like graphics
 
processing
good for graphics
 
CMC: Given a String containing letters and spaces, get the endings of the words (runs of letters) and return them in reverse order
"Programming Puzzles and Code Golf" -> "fedsg"
 
CJam, 8 bytes: qS/Wf>W%
 
"JAVA IS FUN" -> "NSA"
5
@BusinessCat That was very fast
 
@Mr.Xcoder Pyth, 5 bytes: s_eMc
 
4:14 PM
Must it return a string, or is a list of characters fine?
 
@LeakyNun Ooh, +1 for using Pyth.
@musicman523 Both are fine
 
@Mr.Xcoder then take away the s :)
 
Python, 40 bytes: lambda s:[w[-1]for w in s.split()][::-1] TIO
 
@LeakyNun What does e do? I believe it's the main piece in this program because I have trouble understanding it.
 
@Mr.Xcoder end of a string/array
 
4:16 PM
Yep, the magic
 
@LeakyNun Can I try to do it in Jelly before you ninja me? :) :P
 
@HyperNeutrino sure
 
@LeakyNun rip
 
yay thanks :D
Jelly, 4 bytes: ḲṪ€U
 
4:18 PM
@Mr.Xcoder Pyth, 4 bytes: hCc_
 
Tied
Nice
 
you know you screwed up when
  File "/home/totallyhuman/Downloads/Workspace/commata/commata.py", line 85, in run
    'stk_no': stk_no
  File "/home/totallyhuman/Downloads/Workspace/commata/commata.py", line 85, in run
    'stk_no': stk_no
  File "/home/totallyhuman/Downloads/Workspace/commata/commata.py", line 85, in run
    'stk_no': stk_no
  File "/home/totallyhuman/Downloads/Workspace/commata/commata.py", line 85, in run
    'stk_no': stk_no
  File "/home/totallyhuman/Downloads/Workspace/commata/commata.py", line 85, in run
 
... lol
 
@totallyhuman With that I agree. Happended to me ~1 week ago
 
4:21 PM
@totallyhuman The worst part is that your workspace is inside your Downloads folder.
2
 
Didn't solve it yet because I don't have the laptop
 
@musicman523 that's something i can't avoid on chrome os
i hate it too :P
 
I think the other day I saw somebody running something crazy stupid, like a Windows program inside Wine inside something inside Chrome OS
 
@Mr.Xcoder Braingolf, 17 bytes :( # l[.# e$_M|>]v&@
 
@Mr.Xcoder APL: ⊃¨⌽⊆⍨' '≠⌽
 
4:22 PM
@musicman523 possible yes
basically you run linux in a chroot
and then on linux you can use wine and then etc.
 
furthest I go is WSL in Windows, and a few weeks ago I managed to get WINE running in WSL
 
♬🎝⌼≡⌼🎜♫ ← Unicode music system
3
 
@totallyhuman Yes that's what the missing piece was - linux inside chroot
@Mayube I run League of Legends inside Wine (I run Linux as my main OS) and it's so so so slow
Okay that wasn't star-worthy :P
 
@musicman523 It was
 
No it wasn't
 
4:28 PM
To each their own. Methinks we're all tired of the star spamming
 
Anyone willing to explain how IN THE WORLD M works (Pyth of course)?
 
@Mr.Xcoder eM is equivalent to med
 
No, not in your cmc answer
 
@Mr.Xcoder that also works in general
yM is equivalent to myd
 
let me test
 
4:30 PM
so wait ?M is equivalent to m?d?
 
Jim
That works only with functions of arity one though
 
@HyperNeutrino ? is not a monad
 
@LeakyNun I think they meant ? as a replacement for any monad
 
well I meant ? being any function (but apparently only monads)
 
@HyperNeutrino yes, for monads.
 
4:31 PM
ah ok
pyth looks interesting
 
Jim
@HyperNeutrino I like it for being a functional language
 
ah i see
 
Solved my own CMC in 4 bytes after you explained map to me @LeakyNun, then realised it was equivalent to your first solution removing s: _eMc :P
Anyway, I tried to write it like _Mec thinking that it works like most of the other functions, but...
 
Jim
Yeah, the <pf1> is tricky in the description
 
Yeah
 
4:35 PM
i used pyth yesterday
couldn't work a for loop o0
what's wrong with FN[1 2 3 4)yN
 
Jim
Well it works
 
@totallyhuman what is it supposed to do
 
the python code i was intending is for n in [1, 2, 3, 4]: y(n)
 
@totallyhuman but that doesn't do anything
 
@totallyhuman It works unless you have a space in front of F.
 
4:39 PM
hold up lemme get a TIO link
 
But not on TIO though
 
it errors
 
@totallyhuman because a newline is automatically inserted between the code and the footer
this works
 
oh yeah newlines do something in pyth
i forgot that
 
@totallyhuman Exactly the reason I toldya: No space in front of F
 
4:42 PM
but i solved it with yM[1 2 3 4]
so whatever
 
@totallyhuman nice
 
Of course, map-monad abuse :)
Ok, gotta go now. I really want to watch a tennis match :)
 
abuse? that's not intended behaviour?
bye
 
@ETHproductions have you proposed !<op> stuff yet for JS?
 
5:12 PM
Oh my god, can't believe I beat Adám!
 
@Zacharý ?
 
2
A: The Crow vs The Taxicab

AdámAPL (Dyalog), 14 bytes Takes argument in the form xJy, e.g. 3J4 ||-2+/∘|9 11○⊢ Try it online! | the magnitude ofDoc | the argument's magnitude - minus 2+/ the pair-wise sum ∘ of | the magnitudes of 9 11.○⊢ the the argument's real and the imaginary parts.Doc Special trick for golfing...

3
A: The Crow vs The Taxicab

ZacharýDyalog APL, 13 bytes +/∘|-.5*⍨+.×⍨ Try it online! Explanation (input X): +/∘| - Sum of the element-wise absolute value of X - - Minus .5*⍨+.×⍨ - Euclidean distance = sqrt(X . X)

(Of course, he did beat me with J)
 
Thanks.
2 messages moved to Trash
 
@Downgoat No, I don't really know how
Do you have experience with proposing JS things?
 
Hey, are any of those "hidden features" the undocument inverses you spoke about? @Adám
 
5:19 PM
@Zacharý Actually, I beat you with j.
 
What I was referring to was beating your Dyalog APL answer.
 
@Adám eheheheh, I see what you did there
 
@Zacharý No, the "undocumented" inverses are just logically there. No, it can do all kinds of stuff and access all kinds of settings. One I can tell you about is the ability to adjust character spacing and line spacing in the IDE.
 
>.< I somehow remember the spacing one from somewhere ... no idea why.
Does Linux have that ability?
 
linux has all abilities
3
 
5:22 PM
@Zacharý In a terminal, of course not. RIDE: it is just CSS!
@Zacharý Are you on Linux?
 
Yep. I'm on Linux right now: Dyalog v15.0.29488
 
@ETHproductions are you on esdiscuss?
 
No
I've never been on a mailing list before, haha
 
@Zacharý Did you know about the built-in to calculate a checksum (I can't recall which one it is right now) of any file? Try it online!
 
No ... I did not.
 
5:29 PM
Yay I started a new language github.com/alexander-liao/paintbrush
I think I should slow down on making new languages
 
...another one?
 
because they all don't work very well lol
 
mm well i can relate with one language
because i keep getting recursion o0
 
@ETHproductions you can subscribe here: mail.mozilla.org/listinfo/es-discuss and then send an email with your porpoisal
 
5:30 PM
oh my god
could it possible i just fixed it with
gah
 
@totallyhuman could it possible i just fixed it with excuse me sir
 
look
i'm tryna speak english and python at the same time
2
it doesn't work very well
 
So ... ⎕NQ ... does all the "hidden" stuff?
 
5:34 PM
and i didn't end up fixing it so...
i'm one step closer to rage quitting
 
does anyone here use windows?
 
Not me.
 
a response i'd expect to that question: "ew"
 
@totallyhuman link?
 
@HyperNeutrino to what?
 
5:36 PM
the thing you're trying to fix
 
@HyperNeutrino it probably hasn't made it to the internets yet
 
i'm not committing broken stuff :P
 
5:37 PM
ah ok :P
 
@totallyhuman wish any of my group project members had said that
 
although i should get into the habit of making a master and dev branch
 
I'm assuming that silence = yes.
 
i want to try to fix :P but i will probably fail
 
ok but you first have to understand the mess of my code
that's a big step
 
5:39 PM
ah ok :P
 
language writing is usually a horrible mess
for my compilers construction class I think all our code put together was like 5,000 lines and we got a 34% on the final portion
 
:o rip
 
ouch
 
jeez
 
it's okay because the professor was like "i'm gonna call this out of 67 instead of out of 100" (for the whole class)
and we did well on all the other parts
 
5:42 PM
ok i'm gonna stop tryna fix this for a while
# TODO
 
prettify doesn't think it's python
hmm
 
@Zacharý No, I-beams provide most secrets, that for obvious reasons I cannot show. Exception: Localisation shadows identically named objects further away in the calling stack. A secret I-beam (don't use!) allows executing anywhere in the stack: Try it online!
 
just checked - it was 4485 lines
sad out of 10
 
0
A: Sandbox for Proposed Challenges

GryphonMultiply a String and an Integer! code-golf string arithmetic There was a challenge up a while ago about multiplying strings. It showed us how we can multiply not only numbers, but also strings. However, we still can't multiply a number and a string. We need to fix that! Your Task: Write a ...

 
5:46 PM
CMP (chat mini poll): What's the largest project (by LOC) that you've written at least 90% of by yourself?
 
@DJMcMayhem Bad unit.
 
lines of code?
 
@DJMcMayhem VSL. 13K lines
 
why not bytes?
 
5:47 PM
@HyperNeutrino Also bad unit.
 
which is weird because 1y of cheddar only made 7K LoC, but 2mo of VSL made 13K LoC
 
it's 7 hours until the release of my HKDSE results...
 
What about formatted-exectuted-LoC
 
1 LOC APL ≠ 1 LOC C. 1 byte APL ≠ 1 byte C.
 
@Adám then what is good unit
 
5:47 PM
@DJMcMayhem Python/Standard ML, around 700 lines I think. 100% myself. My bigger projects (3-5k lines) have been group projects where I've contributed more than half, but not 90%
 
@LeakyNun is HKDSE like SAT of Hong Kong?
 
Positron, 1027. I think that's the largest.
 
@Downgoat I suppose so
 
or no, Anyfix, 1976 lines
but that's including the arities and the functions files, which are each 256+ lines just because formatting
 
@HyperNeutrino Dunno. Very hard to measure. When GitHub reports 90% C and 10% APL is it then not a 90% APL project?
 
5:49 PM
hm ok
 
@HyperNeutrino Cyclomatic complexity?
 
@DJMcMayhem Dyalog APL's ]CopyReg 494 LOC APL. That's a lot! Imagine 300 lines of Jelly?
 
CMC: Given two strings, x and y, return the indices of x in y e.g "Hello", "WoHrled" => [2, 5, 4, 4, 1]. len(x) < len(y) and all characters of x are in y.
 
though bad algorithms can result in that being disproportionally inflated
 
@cairdcoinheringaahing APL: Try it online!
 
5:52 PM
@cairdcoinheringaahing cheddar: (=>)+@.find
 
I'm honestly not sure what mine is. I've done 1k of Python, 1k of C++ and who knows how many lines of vimscript
I don't know how long V is
 
Is 1-indexing fine?
@DJMcMayhem cat * | wc
 
yeah why not?
 
ah ok. then i@€
 
5:54 PM
good question
 
@HyperNeutrino Not at laptop
 
ah ok
 
@Zacharý Oh, that's just . However, proceed at your own risk. APL will eventually crash, and may destroy data with it.
 
Um ... that's the protection mechanism, right?
 
@Zacharý Eventually it'll kick in, yes. Although, TIO can't get hurt, so…
 
5:57 PM
@cairdcoinheringaahing Python 2: lambda x,y:map(y.index,x)
 
0
A: Sandbox for Proposed Challenges

BlexCyclic strings, hidden programs code-golf popularity-context (quine?) Write 3 programs that do the following task: Let A, B, C source codes of those three programs; if A runs BC is produced as output, if B runs CA is produced, if C runs AB is produced; so each program writes a string (cy...

 
But the dyalog on TIO might ...
 
@HyperNeutrino Also, Windows. Would that work on git bash?
 
@DJMcMayhem How do you measure LOC across multiple files?
@Zacharý No. New image every time you press Run.
 
Welp, I have gained even more respect for Dennis.
 

« first day (2355 days earlier)      last day (2474 days later) »