« first day (2692 days earlier)      last day (2138 days later) » 
00:00 - 15:0015:00 - 00:00

12:36 AM
@HyperNeutrino Special cases, doesn't count...
(too bad that there is no "anti-star" in chat.)
@LeakyNun Example input please.
The code looks very correct.
(although the *[...] looks redundant)
Lists are probably copied by ref.
CMC Deep copy a list.
 
1:04 AM
@user202729 python: import copy;copy.deepcopy
 
1:22 AM
@user202729 Haskell 2 bytes id.
 
@HatWizard :|
 
@ASCII-only Depends on what he means by "deep copy"
 
that's true
 
@user202729 What should a=[1,2];b=[a,a];b[0][0]=2;print(a) print?
@user202729 RAD, 1 byte:
@ASCII-only One of my commit messages is "DEEPCOPY IS A LIE" because of that
 
@Zacharý deepcopy is not a lie though. it's just easily misunderstood
 
1:34 AM
@ASCII-only it is.
@ASCII-only They didn't think too deep about the potential misunderstandings
 
@Zacharý it's not like there's a better way to say it
 
@ASCII-only deepscalarcopy? :P
 
@Zacharý that doesn't make sense though?
deep scalar copy -> deepcopying a scalar -> doesn't make sense because all scalar copies are deep copies :P
 
deepcopynoniterables
AKA copying things that aren't arrays
 
@Zacharý so don't deep copy dicts
or user-defined classes
or sets, or tuples
 
1:42 AM
Tuples ... they're immutable!
@ASCII-only deepcopynonlist
 
@Zacharý yeah so it will only deep copy lists :/
 
@ASCII-only deepcopylist
 
wait. what
 
I dunno, maybe if they made it reasonable in the first place /s
 
@Zacharý but it is reasonable?
 
1:44 AM
@ASCII-only IDK. I just implemented deepcopy to keep my sanity
 
copy = depth 0, deepcopy = depth 1
 
@ASCII-only It's not deep enough
 
i'd go with "fullydeepcopy" for infinite depth maybe
 
Why would you only need to go depth 1?
 
i.e. you'd have to deep copy everything, other than primitives (str, int, float)
@Zacharý because you want containers to hold the same items?
 
1:45 AM
I don't see much use of that.
 
@Zacharý ... that's the main use of copying though?
@Zacharý the only exception is APL-likes...
since in those, arrays are essentially primitives too
 
@ASCII-only ._.
 
For languages with immutable types it does not make sense.
 
how does it not make sense
immutable just means every copy is a deep copy
 
@ASCII-only If every type is immutable, copying in general doesn't really make sense
 
1:52 AM
@Zacharý fair enough. it's not the same as "a language with immutable types" though :P
 
:b
 
ngn
@Zacharý are you familiar with the concept of refcounting?
 
@ngn Not really
 
ngn
@Zacharý every object in the language has an associated "reference count" - the number of objects that point to it
 
@ASCII-only Implementation specific. Most implementations will decide to not copy.
And it's unobservable too...
 
ngn
1:55 AM
when it drops to 0, it means that modifications such as a[i]:b or a+:b (I'll use k as an example) can reuse the already allocated memory without deep copying
 
@ASCII-only How is inf depth possible... symbolic?
 
ngn
in Dyalog it works the same way except that their namespaces (i.e. dictionaries) don't get copied on modification
 
@user202729 *arbitrary depth. and kinda (through circular references)
 
ngn
@user202729 it's observable if you care about performance
 
@user202729 ah. that's true
 
 
11 hours later…
12:52 PM
CMC: Make a Smart Teapot. if the input is "Tea", return 200. If the input is "Coffee", return 418. Anything else, Return 502.
 
@ATaco why 200
 
Operation completed successfully.
 
@ATaco well this is a boring cmc :/
 
I never said it was good.
 
@ATaco JS, s=>({Tea:200,Coffee:418})[s]||502
 
12:57 PM
You can save a whole 2 bytes by using Funky.
 
3?
@ATaco but funky has no standalone code blocks, so clearly JS is superior
 
What do you mean by standalone code blocks?
 
{foo(); bar();}
20 bytes if returning a string for one of them is allowed
 
That seems like a horrifying concept.
What is the purpose of these code blocks?
 
@ATaco lexical scope mostly
 
1:02 PM
Actually, it's probably used alongside things like if(a){foo();}
I'd legit need to add like, 7 bytes to Funky in order to allow Standalone code blocks
 
0
Q: Find what is in the picture... Would you solve it?

Joey Arco Hint : Elmer Your mission is : try to solve and say what is in the picture and how you solved it

 
@NewMainPosts wat.
 
I think it should be on Puzzling.
But it kind of looks like a Piet or similar script
 
Question to native English speakers: which of "monolithicity" or "monolithicness" is more common/sounds better to you?
 
1:20 PM
@Fatalize IANANES, but what's wrong with being monolithic?
 
I need to title a section "Non-monolithicity"
can't really fit "being" in a title
 
@Fatalize former
 
@Fatalize "Not monolithic" or "Isn't monolithic".
 
@Adám …I can't use those as titles, that sounds weird
 
@Adám That doesn't sound like it belongs in a title either IMO
 
1:22 PM
@ASCII-only Ok thanks
 
the latter isn't a word
 
@Fatalize "Modularity", "Module-based", "Microkernel-based"…
 
@Adám 1. that's probably not the only meaning of monolithic 2. modularity isn't an exact antonym
 
oh no, I made a new language
 
1:25 PM
f( {print} "Screw you ASCII-only :D" )
 
0
A: Sandbox for Proposed Challenges

l4m2Most times a loop Given an array of length n, each two element of which are different, rearrange it in a same method of swapping (the destination is only effected by the source place, not the value, e.g. [a1, a2, a3] => [a3, a1, a2]) till it's the same as original. How many times it swap at most...

 
@Mayube does this actually work
 
At Dyalog we're worried about about glyph proliferation. In TNB we're worried about language proliferation.
 
I can make this work in Funky.
 
@ASCII-only yes, but it can only print, I'm still working on.. y'know, anything useful
 
1:28 PM
lol
 
that's basically me with the QBasic interpreter before I gave up
 
@Adám You're worried about glyph proliferation in APL? Even though there are a lot of APL-specific glyphs?
 
(I need to fix that)
 
@ATaco that's funky ;)
 
1:31 PM
What does the f() do in this language?
 
everything has to be in "functions", f() is the entry-point function
if you don't actually define any functions, all of your code gets thrown in f(), so {print} "Screw you ASCII-only :D" would work too
 
@Mayube this sounds really hacky for some reason
like how in js everything is an object
 
{} is a function call, print is a builtin function
@ASCII-only which I abuse rigorously
 
Why does the arguments come after {}, is it only ever one argument?
 
nah, {} just grabs however many args it needs from the next X statements
 
1:34 PM
@Mayube how do you abuse
@Mayube is there no multi-arg print :/
 
{print} needs 1 arg, so it uses the next statement
 
That sound heavily Abusable. I like it.
 
Your own defined functions always have 0 arg count though, and any defined variables are defined int he global scope
so arguments are only actually used for bultins
 
You should check out Funky! It's terrible! But if you can write JS, you can basically write this.
 
@ASCII-only no cos there's no way to tell print how many args to take
 
1:36 PM
@Mayube :|
 
This is a good example of it being both those things.
 
@ASCII-only I couldn't come up with a clean way to define arg counts so I didn't bother
 
In uh, in most languages we put brackets around them.
 
@Mayube it's called having an arglist
 
bleh
 
1:38 PM
You could probably also shove it in your {}
So you'd have Lisp style calls.
f( {print "Hello, World!"} )
 
eh, I kinda like the naivety of the symbol parser
it starts with 1 char, then it keeps adding chars until the symbol parser says "yup this is a symbol"
 
Oh my word.
That's slightly worse than Funky's
 
which for function calls is when it starts with { and ends with }, then everything inside is the function name
 
Alternatively: What happens if I do: f( {print} {some_func} )
 
good question, let's try
 
1:40 PM
(Can functions return?)
 
it prints undefined
 
@Mayube :| this sounds super slow
@Mayube :|
 
oh right yeah cos it'll pass the function object as an argument, but the print builtin will try to find the value property
functions don't have a value
 
@ATaco :/ a-ta.co is still down
 
Found a bug.
@ASCII-only I am still broke.
 
1:41 PM
how much could it cost though
 
Like, 20 a month.
 
0
A: Sandbox for Proposed Challenges

Jonathan FrechFinite Group Synonyms code-golfdecision-problem Task Given a finite group represented by a finite non-empty array of natural numbers and a black-box-function as its operation, write a program in a language of your choice with a minimal byte count which decides whether or not there exist equa...

 
But I have now lost the code, so I'll need to write a lot (I think all) of it again.
 
@ASCII-only of course it is, speed is overrated
 
@ATaco ...
what kind of crappy hosting is this
@ATaco what kind of overpricing ripoff is this
 
1:42 PM
It's a VPS.
@Mayube {print} "abc\\" does not parse.
 
@ATaco :/
 
A $20 VPS isn't a ripoff.
 
DigitalOcean VPS starts at 5 dollars per month, which was enough for TIO v1.
 
Probably a good time to change host anyway.
Now that i have to start from scratch.
Even better, I can stop using some terrible practices I was using.
 
@ATaco oi, you stop that
 
1:44 PM
Do you have a DO account? If not, this would be a good time to use TIO's referral link. ;)
 
and IIRC current TIO costs $45/month. which is basically double that of a-ta.co's
 
I do not have an account and would be happy to support TIO any way I can.
 
which is pretty amazing(ly low) considering what i use TIO for >_> let alone everyone else
 
TIO is an incredibly useful tool that I keep coming back to.
When I want to test a bit of code or whatever without launching my setups
 
i can't even imagine the amount of processing power TIO uses every month
 
1:45 PM
oh yeah the main reason I didn't do arglists on functions is because the parser uses regex to find all the functionsin the code :D
 
Anonymous
I showed TIO to the interns at work, and they absolutely love it
 
I believe Adám did a speech on it for APL
 
yeah I use it a ton for little things at work like "Hey how does this php function handle this?"
 
@Mayube ...
.........................
 
1:46 PM
@ASCII-only I knew you'd like that
 
Apparently I do already have an account.
 
@Mayube yes. this especially
 
@ASCII-only Funky's parser is entirely Regex.
 
Ah, like Jelly's.
 
Good news, I can still use your referral
 
1:47 PM
@ATaco that's fine for tokens. if you mean you have a regex that matches the entire program then i'd have to see that to believe it
 
@ASCII-only Alas, It's only tokens. Sequentially tries to grab the next token based on context.
 
Funcsational uses /[a-zA-Z-_]+\((.|[\r\n])*?\)/gm to find a list of functions in the source
if none are found it throws everything in f()
 
@Fatalize K is limited to printable non-alphanumeric ASCII. J is limited to those plus all printable ASCII followed by . or :. APL is limited to things that can be typed on a keyboard with two additional shift states per key.
 
Jun 8 at 9:21, by ASCII-only
:::::::OOOOOOOOOOOOOO
https://tio.run/##7T3tcts4kr/tp0CUHevDkj@S7M6sZDtlx3LGVY6ctZydmY0zKlqibF4kUkdSsb1Z/7ln2J/3dPsgN9fdAAiABCnJsSa5uq1UxRSIbjTQje5GA2j2J5PGVb//229PPb8/mg5ctuMFURy6znhvVS8bO7430YvGjvEzip3@R73gMgA8myP31us7o17fieKN68kkW2MaeyMvvtuERj3/qhe6Q3s9Z3QVhF58PRY1NwGl2@sH/id7fdmNaBPq9N1JHM2qx//2LqfDoRvKysOBO2Q/HXcOT3/qarA/ef4guAGUUMf1B95w9enUx6qddycnq0/hyfNd9u5t5bbKonjQbHKiK9RmsxkHvelk4oZA/@RuR6uwV9Fr31ar1dXVzU12fnp42mSXTuT1GXQHBtuP2TAYDaAWq0RBGN7VmR/EjB6rCmQQsGMG3RqN7pjvugMWB2waufB885IBjQMWTGPm@Sy@xsLbmLkTLwqgi8GQDULnKvCh2dFIYRx6t1B/4PXdqM7caLKB0O7tJFRVojs/dm6ZG4ZBKN6ql@3OIdsZBsEem15dr
 
@ATaco Although you already have an account? o_O
 
1:49 PM
I never added a card, so it wasn't finalized.
Referral done, whatever that gives to TIO.
I know it just gave me a free $10 credit, which is awesome.
 
@ATaco challenge: Make a Funcsational parser in Funky :D
 
You know Funky is closely related to JS right?
 
@ATaco i just realized i forgot backslashes need to be escaped >_> i'm very smart
 
At this point, nothing. But as soon as you spend the minimum amount on their products, I'll get $25 in DO credit.
 
I can copy paste most of this.
 
1:51 PM
@Mayube why did you make funcsational in the first place >_>
 
Nawww, No Aus Hosts.
 
also how to have multiple statements in a function
 
@ASCII-only cos I was bored
@ASCII-only you just put multiple in the function
 
how do you separate statements
 
@ASCII-only you don't
 
1:56 PM
you don't need to
statements know how big they need to be
 
ah
:| no varargs
this seems really disappointing
 
Do you have a list datatype?
Taking input as lists is an acceptable replacement
If you're feeling really rebellious, add , as a joining operator.
So then you could do {print} "Hello,", "World"
 
@ATaco this is what i do
 
Jelly has a similar function
 
@ASCII-only I'll make it better, don't worry
I'll add arguments, and statement terminators, and all the other good stuff
 
2:00 PM
Good news, I have a webhost for a couple of months.
By then I should have an income.
 
@ATaco :D
@Mayube and then there's me: i still need to add builtins for operator and precedence before i can even think about adding even basic arithmetic operators
rip
 
I'll spend some time setting up some features.
Like re-creating I am Typing and CMC back-ends.
 
@ASCII-only how's f(arg, list)(function contents)?
 
Tacoscripts are also all backed up on Github
 
@ATaco nope!
 
2:02 PM
@Mayube looks fine. except that looks really different from how it currently is :P
 
@ASCII-only well it's currently just f(function contents)
not sure how else I could define the arg lists tbh
 
f( (arg, list) foo(); )
 
@Mayube more syntax
 
f=(arg, list)({foo}) bar({baz})
 
@ATaco what?
@ATaco so this is a definition for f and a call of bar?
 
2:04 PM
I'm just offering random syntax formats.
= would entirely be fluff
Perhaps f $(arg, list) ({foo}) bar({baz})would look better.
(I forgot the function calling syntax)
Oh wow, I will have even lost the blog.
It really just clicked that i should back up more.
 
2:27 PM
TeX accounts for nearly 10% of all packages on my system.
$ (dnf list | grep ^tex | wc --lines) / (dnf list | wc --lines) 2>/dev/null
0.0937685274752707
I don't think I've ever used TeX on this machine.
 
@Pavel :|
@Pavel not even LaTeX?
 
Nope
 
@Pavel Same thing on TIO. TeX is very modular and everything is its own package.
There's grep -c btw. No need to pipe to wc -l.
 
oh neat
 
I'm keeping the lazy argument grabbing because, as taco pointed out, it sounds entertainingly abusable
 
2:33 PM
@Mayube :||||||||||||||||||||||||||||||||||||||||
 
look, it's an esoteric language, it's not supposed to be the next python/lisp/js
 
I have no idea how to setup SFTP on the server.
 
SFTP is SSH. It's already set up.
 
What's the difference between SFTP and SSHFS?
 
SFTP is just FTP over SSH, SSHFS actually creates a networked symlink over SSH
 
2:36 PM
Although SFTP is supposedly setup, I'm unable to connect.
 
sshfs is a virtual filesystem. It uses SFTP to communicate with the remote host.
 
Nevermind, it randomly worked.
 
@Mayube No, SFTP and FTP are unrelated protocols.
 
might be thinking of ftps
lulz
it's a little humorous and a little sad that there's sftp, ftps, ftpes, and others
 
And ftp.
 
2:39 PM
yes
 
Let's not forget about SFTP, the Simple File Transfer Protocol.
Not to be confused with SFTP, the SSH File Transfer Protocol.
 
:D
 
gah, acronymized acronyms
 
And FTP over SSH is, of course, also a thing.
 
don't forget FTPS
which is FTP over SSL
 
2:40 PM
@Mayube nah. it's just toeing the line between esoteric and practical
 
Now I've got nodeJS installed, I'm halfway to bad practices.
 
@ATaco didn't you use JS already
 
@ASCII-only look, if you wanna try and do something practical with it, that's your probelm
 
Yep, and a-ta.co was 90% bad practices
 
@ATaco at least it's not perl
@Mayube :P
 
2:41 PM
Including at least 2 exploits that allowed users to gain root access.
 
I just use git instead of anything like sshfs or or whatever
 
Security through obscurity and all that
Naww. .jsd is also gone.
 
Which distro are you using? Fedora's SELinux saved TIO on multiple occasions.
 
Fedora 28
And those exploits were 100% my own fault.
 
Great! DO still enables SELinux but default, no?
 
2:44 PM
Maybe, I've no idea.
 
getenforce
 
@Mayube gopher is better than ftp
 
@Dennis multiple occasions O_o
@Pavel what do those two even have in common >_>
 
Oh god, I could use express
Enforcing
 
+1
 
2:45 PM
just telling the damn truth like it is, everytime
@ATaco wait, are you actually using stock Node createServer
 
@ASCII-only Some programming languages leave world-writable files on the server. One of them left one in /etc, and it got run by root on system startup.
 
Not yet
 
i didn't even know anyone knew how to use that
 
@Dennis oh yeah. that's always fun >_>
 
Good News! I have a Website
 
2:46 PM
\o/
 
@Dennis what the hell, what language
 
Mathematica
 
@ATaco nice +1
@quartata look in talk.tryitonline.net yeah that
 
oh, I guess that makes sense
still bad but
 
@ATaco :( no console.log('%cHello, World!', 'font-size: 72pt')
 
2:48 PM
These things happen. dotnet/nuget's making everything world-writable instead of world-executable is a bit more surprising.
 
@ASCII-only They let me copy files from one computer to another.
 
Thankfully, SELinux doesn't care about world-writable in an unprivileged context.
 
@Pavel git???
 
do the programmers even have the basic skill of using chmod confidently
 
@ASCII-only Yes. git push on my computer, git pull on the remote.
 
2:50 PM
@EriktheOutgolfer i do don't
@Pavel 1. git push to where 2. so hg/svn/ dat would work too
 
Sure it would
But I use git
And to wherever. Gitlab or github
 
doesn't let you share massive files though :P
and it's not convenient because it's not a filesystem :P
 
@Dennis Says Enforcing on my machine, so I think it's just enabled by default on all fedora systems.
 
The website has been greatly improved.
 
On Fedora, definitely. But some VPS providers disable it by default.
 
2:53 PM
@Dennis usually via customized images, yes.
straight installs would default-on even on a VPS provider.
(most providers use prebuilt images that self-extract onto the VPS rather than a from-scratch installation)
 
Linode, e.g., runs a customized kernel, which doesn't come with SELinux support. You can change it manually.
vultr chose to disable SELinux, because they got too many issues from customers unable to understand it.
 
I'll be sure to re-implement things in the morrow.
But for now, It's nearly 1AM.
Good night, fellow golfers.
 
looks out of the window Good morning!
 
afternoon
 
grumbles, then turns to the coffee maker, and yells at it until coffee is done brewing
 
2:56 PM
Error 418: I am a Teapot
 
'tis an hour from lunchtime here and I still haven't had my morning coffee >.<
 
grumbles, then wishes there was a coffee maker here
 
i think i'm one of the only employees here who has his own coffee maker at his desk :P
 
Actually, there is a coffee maker, but we're out of actual coffee.
 
00:00 - 15:0015:00 - 00:00

« first day (2692 days earlier)      last day (2138 days later) »