« first day (2676 days earlier)      last day (2154 days later) » 
00:00 - 09:0009:00 - 00:00

12:13 AM
lemme test it real quick...
function(arrayOfChars2){
     var arrayOfChars1 = this.split(""),
     Vector0 = [],
     Vector1 = [],
     deletionCost, insertionCost, substitutionCost
     for(var i = 0; i < arrayOfChars2.length; i++){
       Vector0[i] = i
     }
     for(var i = 0; i < arrayOfChars1.length-1; i++){
         Vector1[0] = i + 1
         for(var j = 0; j < arrayOfChars2.length-1; j++){
             deletionCost = Vector0[j+1] +1
             insertionCost = Vector1[j] +1
             if( arrayOfChars1[j] == arrayOfChars2[j]){
in Coding Projects and Factorio Heaven, 16 mins ago, by Duga
[FreezePhoenix/XtraUtils] 44 commits. 117276 additions. 117116 deletions.
sigh counters...
 
re: sqrt, JS has power operator now. so it's kinda unneeded
 
@ASCII-only Wut?
 
number ** .5 works now
@FreezePhoenix wait. why 100kb added then deleted
 
Oh... I just use Math.sqrt.apply(null,number) behind the scenes.
 
@FreezePhoenix what... why not just Math.sqrt(this)...
Math.pow.apply(Math, [this, n]);
why apply everything...
 
12:21 AM
@ASCII-only Local commits still show up when you push them to a remote
 
why not just Math.pow(this, n)
@FreezePhoenix what did you do though
 
@FreezePhoenix also guess what? they're in the commit history too
 
@ASCII-only Oh I bet they are.
@ASCII-only I wrote it in 5 different languages :P
 
:|
babel is a thing...
you can transpile to all five languages
 
12:23 AM
@ASCII-only Yeh I know...
 
@FreezePhoenix yes. but why... it's so slow
 
check out .build.sh
 
@FreezePhoenix what about it
 
It is using babel
@ASCII-only I'm in the proccess of merging it into one branch
 
@FreezePhoenix wait. why write it in 5 different languages in the first place?
 
12:26 AM
@ASCII-only I'm a bit rusty in them all, and I wanted to see which one I liked the most.
 
clearly Dart is the best
and you're not using JS properly
5 mins ago, by ASCII-only
why not just Math.pow(this, n)
 
@ASCII-only Yes I am...
var numbers = [5, 6, 2, 3, 7];

var start1 = performance.now()
var max = Math.max.apply(null, numbers);
var stop1 = performance.now()
console.log(`Apply: ${stop1-start1}ms`)
console.log(max);
// expected output: 7
var start2 = performance.now()
var min = Math.max(5,6,2,3,7);
var stop2 = performance.now()
console.log(`Call: ${stop2-start2}ms`)
console.log(min);
// expected output: 2
Or...
NVM I'm doing it wrong for the numbers.
It's the right thing for the arrays however
 
@FreezePhoenix var min = Math.max(...numbers);...
performance is almost identical
@FreezePhoenix also yeah. you say min but use max...
 
facepalm this is what I get for attempting to set up a quick example
 
@FreezePhoenix also if you haven't already you should add a bunch of stuff from here :P
 
What the heck...
 
@FreezePhoenix ?
 
Ok I'll see If I can add some stuff from there.
Is that your repo?
 
yes it is
 
12:54 AM
Hi kitty @Riker
@ASCII-only why would you use .empty when you can just use []
 
@FreezePhoenix when there are so many cats in the room you need to call them by name
3
@FreezePhoenix to modify the array in-place
so the array object points to the same place but is now empty. i.e. you can modify a function argument
 
Ah...
so:
var j = [1,2,3]
j.empty() // []
j // []
 
@ASCII-only Literally only Riker and Dj
 
@Pavel and Hat Wizard
 
He's not here though
 
12:57 AM
3/30 is a pretty significant fraction
 
could be better
 
@Pavel true. but he's still a regular :P
@Riker hmm. how do to ASCII cat
 
@ASCII-only ^w^
 
@FreezePhoenix yeah.
 
>^..^<
 
12:59 AM
@Pavel that is not ASCII
 
Oh sorry
You're right
 
@ASCII-only uh... wow. thats a lot of string stuff.
 
@FreezePhoenix well actually it's mostly casing >_>
 
~-===^w^
  ^ ^
There it's beautiful
 
in Coding Projects and Factorio Heaven, 20 secs ago, by Duga
[FreezePhoenix/XtraUtils] FreezePhoenix pushed commit 4919bc85 to JavaScript: All I need is in js... cue romantic music
 
1:03 AM
@ASCII-only f
 
@Pavel Looks like a minecraft kitty
 
Could you not post those
 
Sure.
I'll just assume you meant "Please don't post those"
 
@FreezePhoenix Your username seems oddly familiar
 
1:18 AM
@Zacharý Where do you think you have seen it?
 
Dunno. Might just be the "Phoenix".
 
@Zacharý I've also gone by Pheo
 
@Riker is this better
 
No, that's not it.
 
@Zacharý they appear on TNB occasionally (and apparently on CR lounge as well?)
 
1:21 AM
Why is it ^w^ @ASCII-only ?
 
@Zacharý why not :P
 
@ASCII-only As I've said ... must just be the Phoenix?
 
@Zacharý 0/10 that must mean you don't read enough mythology if "phoenix" is a rare word
2
 
@Zacharý tell me about him tommorow around this time. Earlier preferebly.,
 
1:23 AM
I mean must just be the "Phoenix" in the username.
 
night!
 
'night!
 
@Zacharý this maybe? :P
 
No ...
 
1:55 AM
@ASCII-only I'm very proudof you
 
2:13 AM
Shakespeare Programming Language is easier to learn than Homespring and Mornington Crescent.
 
@user202729 mornington crescent isn't hard to learn
 
@ASCII-only "If you didn't memorize all the lines and special stations, you didn't learn Mornington Crescent."
 
@user202729 this is true for every language
 
@ASCII-only And that's the problem. There are too many lines and stations.
 
@user202729 in that case the only easy languages to learn are turing tarpits?
 
2:17 AM
... probably yes.
 
2:29 AM
There is really no way to check if the stack is empty without error out? ...
 
@user202729 ?
 
SPL specific thing.
 
@user202729 just push 0 to every stack and check for that
 
Exactly what operators are supported? Why is there "square root"?
Also what is "art"? "are" or "are not"?
 
2:44 AM
@user202729 are... pls learn archaic english
 
It... even have more builtins than Hexagony.
 
@user202729 hmm? it only has add and a bunch of unary ops though?
 
There are also sub (difference), mod, mul, div.
Yes, most esolangs don't have factorial.
 
oh yeah it does
 
and "twice".
 
2:49 AM
@user202729 less control flow though
 
I guess I have to figure out the syntax myself.
Writing warningless SPL is even longer.
 
@user202729 it's not
@user202729 see hello, world or the numerous other programs on PPCG
 
Is there a better way to terminate the program than cause an error?
 
@user202729 jump to end :P
 
But then I have to place something at the end.
So...
What's the shortest statement in SPL?
You zero!
Anything else?
 
3:04 AM
@user202729 why do you need a statement there at all
 
It doesn't work without.
 
it does
Scene <scene number>:a.[Exeunt]
 
[Exeunt] is shoreter. Still you need something.
 
@user202729 it's not a statement, but fair enough
I'd use exeunt personally because it doesn't require two characters
 
@Mego so. some kind of weird language based around iterable transformations?
 
Anonymous
@ASCII-only Yes. I call it IBMF (Infinite Byte Matrix Filtering) - you get an infinite stream of range(256)s, and apply filters in sequence to (hopefully) reduce each element in the stream to a single choice.
 
@Mego ah. so it ends if there is more than one choice (or zero choices)?
 
Anonymous
Yep
 
Anonymous
Also if a filter returns None, that's interpreted as meaning to keep the previous set of options
 
Anonymous
3:29 AM
Which is how g in prog.py works
 
now you just need to find some interesting things to do :P
or decide on a syntax
 
Anonymous
Yeah, I intend to make it into its own language, with custom syntax and stuff
 
Anonymous
This was just a proof of concept to test how it would work
 
brb doing random thing
5
 
@ASCII-only lol your pic
 
3:36 AM
@Mego also +1 for fluent interface
 
Anonymous
@ASCII-only Well naturally. I'm not a savage :P
 
@ASCII-only did you see the block letters on the README.md?
 
@FreezePhoenix what about them
 
I was wondering when c they pass your ascii-only test
 
@FreezePhoenix ?
 
3:39 AM
@Mego they all start with no documentation. Don't worry.
Good grief my auto correct is out of wack.
 
4:14 AM
@Mego :| this is surprisingly hard to use
 
Anonymous
Good :D
 
Anonymous
I considered making an even more difficult variant where you operate on bits instead of bytes
 
Lol
LOLOL
 
Anonymous
It's actually not that difficult to use when you realize you can use stuff like STDIN and globals
 
Anonymous
But trying to write pure filter functions for useful tasks is tricky without just hardcoding
 
4:17 AM
Like typing binary in chat on mobil
 
@Mego wouldn't that be simpler because only two possible values
 
Anonymous
@ASCII-only It would be simpler in concept, but harder to use, because you'd have to be able to write out raw bytes one bit at a time with appropriate filters
 
good point
I guess my point was it wouldn't be as much of a matrix anymore?
 
Anonymous
It would be a much shorter matrix - 2xInf instead of 256xInf
 
4:25 AM
But it's still infinite so far re not shorter.
 
@FreezePhoenix so technically it's the same size :P
 
But a or harder to use.
 
A riddle that has nothing to do with how I spent most of my Sunday afternoon: What can, all of the sudden and without any apparent trigger, make your Linux kernel write ~ 60 MB/s of data to its root partition, for hours (if not days) and without interruptions, without opening any files, without reading any data, and even when booting in recovery mode (init 1)?
 
Anonymous
@Dennis New privacy policy? :P
 
Anonymous
4:28 AM
A stray yes > /somewhere in a startup script?
 
@Dennis uh... A while statement that installs privacy policies.
 
@Dennis paging to disk?
 
Those would be userland processes and they would open files.
 
Anonymous
Hmm... Dunno
 
Hm...
 
4:30 AM
@quartata I don't have swap.
 
DO NOT RUN THIS SCRIPT:
 
Hm
 
$ cd /
 
@Dennis what FS
 
$ sudo rm -rf *
 
4:31 AM
@quartata btrfs
 
@FreezePhoenix th?
@Dennis npm
 
Doesn't autorun with init 1. Almost nothing does.
 
(wasn't a serious answer) on a side note, I am horrified that other software as horrible as npm exists
 
0
A: Sandbox for Proposed Challenges

l4m2Link the pairs of points Given some pairs of points on a plane, link each pair. You can link them with non-intersect fold line. These points don't necessary be integer. Samples: [{(0,1.2),(1,2)}] -> [{(0,1.2),(2.6,1),(1,2)}] # Output needn't be optimized [{(0,0),(1,1)},{(1,0),(0,1)}] -> [{(0,0...

0
A: Sandbox for Proposed Challenges

Jonathan AllanMake A Full Dobbleâ„¢ Deck Dobble (A.K.A. Spot It!) is a deck of (55) cards each of which has a set of (8) distinct symbols, such that every pair of cards matches on exactly one symbol and all symbols are members of pairs. The base aim of any of the games one plays with a Dobble deck is to find...

 
@ASCII-only oi.
 
4:34 AM
@FreezePhoenix ?
 
@Dennis mm... is it mounted with autodefrag?
 
No.
 
I think that needs another write to trigger anyways
 
Probably.
 
possibly some kind of circular referencing
 
4:35 AM
@ASCII-only nvm. Why insult npm?
 
(Did you manage to figure it out with your afternoon?)
 
I did.
 
@FreezePhoenix Because npm is shit
 
@FreezePhoenix npm is the #1 worst package manager ever. how do you not know
 
@Dennis What was it?
 
4:36 AM
there was even a star earlier related to how bad it is
zoom out a bit to see it
 
I'm zoomed out as far as I can and I see... 1 star.
Brb doing random thing
 
Apr 1 at 15:06, by Pavel
> For April Fool's Day 2018, NPM releases a stable build of its package manager and is forced to explain to distressed developers that their software working is only a temporary joke
 
@FreezePhoenix how small must your resolution be >_>
 
Anonymous
4:37 AM
@ASCII-only It's a telescope
 
@Mego the IoT must be getting out of control
 
@Dennis don't leave me hanging here :P
 
Anonymous
@ASCII-only Internet of Telescopes?
 
Solution: A severely unbalanced btrfs file system. Although the actual data only occupied 34% of it, the file system was "full". Why this causes enough writes to void my SSD's warranty in 60 days is beyond me.
 
@Dennis your SSD died/is dying?
 
4:39 AM
No, my SSD is fine.
It was only going on for a day or two.
 
So it's fixed now
 
My guess: the /var/log subvolume ran out of space, and trying to write the out of space message in the log sent the machine into an error loop.
@Pavel Yes. Once I knew what was going on, it was trivially fixable.
 
Deadly..
And writing an error... Errored.
 
The data being written to the disk was probably metadata, since there was no space left for actual data.
 
If I even noticed something like that happening in the first place my response probably would have been more like "Ah fuck, I suppose it's been a while since I've reinstalled my OS"
 
4:46 AM
Combine that with the fact that both my Raspberry Pi 3 and my OSMC Vero 4K stopped updating their system clocks after I reset my potentially hacked router to stock firmware. Lovely Sunday.
 
@Dennis Think you still have time to convert VB to use msbuild?
 
Ooh pi 3
 
@Pavel Currently rebooting the Vero for the n-th time.
 
vero?
 
Pi-like computer with hw accelerated x265 codec.
Alright. I set up the router with nameserver 1.1.1.1 instead of the 8.8.8.8 I used before, which seems to cause this issue. How these things are related is, once more, beyond me.
 
Anonymous
4:55 AM
8.8.8.8 is Google's public DNS, right?
 
Yes. 1.1.1.1 is Cloudflare's.
 
According to the website, the vero is a fancy TV remote?
 
@Pavel it's the TV box
 
the remote is just the remote for the Vero >_>
 
4:56 AM
oic
 
@Pavel also that doesn't count as fancy :P
way to run IBMF on TIO if anyone wants to kill their brain:
https://tio.run/##hVNLb9swDD5Xv4LILlIXGH2gOxTIZYcBPayn3bLAcGyqYaFIhsSuza/PpFjx7NlFeLH5@vhRJNsD75y9Px61d3uonTFYMzkbgPat8wxPjL7aGhSnAIoaO2d6NyMKIWpThQBP33/@eBQQpUENZUmWuCxlQKNVZ0@S1IJgBTdjkyYTwUN0rDdiiBKtU5T3HRmEX/4N/9mSuLZjvwJf2ReUdw/f1ChAOw8ayI6KjjGStB7/lBlsOUCN/cqsqUkS@8MUacxKy67/HnOKgh81tjwP5JHfvJ24SPclKMCzs3iJx7C/OTjrOEKRDVzZum952a@DulRgnX830/5MuEjPUOD5d87r83UFt2LMWRq0fY6CVYyYljkQmuZcaH0zZjfPrPVk@fOh55H0G1s1TZnX6jTrJVxn9f8jyOYCPxhtI/swMYY@BQ8vIvDMQeTYxaJ4dWTl9sAY5LreqKLB2jUo1Wn16/PqqyGix/ZzyOSUsWbnjnm03es4o3TuUhXDfsXVl9Q/nG95hx6
 
I figured if a TV remote cares about your router it's gotta be pretty fancy.
 
Anonymous
@ASCII-only s/d\(\*f/d(f/
 
oops, edited:
https://tio.run/##hVM9b9swEJ3LX3FwFrIxhCRFMhTwkiFAhnTq5hqCLB3rK2hSIC9p/Otd0qJVKVJgLtJ9vXtHvmsPvHP22/GovdtD7YzBmsnZALRvnWd4ZvTV1qA4JVC02DnThxlRCFGbKgR4fnx5@i4gngY1lCVZ4rKUAY1WnT@dZBYEK7gZuzSZCB5iYL0RQ5TonaL83ZFB@Olf8b8vHdd27FfgK/sb5d39gxolaOdBA9lR0zFGOq3HtzKDLQeocV6ZLTUpYn@YIo1ZadnN32NOUfC9xpbngTzyq7eTEOm@BQX44Sxe4jGcbw7OOo5QZANXtu5HXvZyUJcarPPvZjqfCRfpGQo8f89ZPtcruBVjztKg7WsUrGLGtM2B0DTnRuubMbt5ZvnOe0lWTVNm3Zwecwlfs/lR5dld4DujbeQ5S4yRT7lDxQeeEXzOXSyKP46s3B4Yg1zXG1U0WLsGpTpJuz5LWw0RPbafQ6agjD27cKyj7V7HN0jrLFUxHFd8uUrjw3lXd@hRKJFWNBakj0zFSrSeLMvFL850E7yN1yBTjuqololqt6X3t3cqdj4e/wE
 
Anonymous
More true to original implementation:
https://tio.run/##hZNLT8MwDMfP5FNYcElgqngIDki7cEDiACdu01R1rcOMsqRKzGOffqRdVlpaNJ8aP362k3/rLa@dvdnttHcbKJ0xWDI5G4A2tfMMT4y@WBkUbQLFEztnujAjCiFKU4QATw/Pj/cColWoIc/JEue5DGi02vsba44ZwRwuhy5NJsJDDCyWok@J3jHla00G4dV/4K@vMVfvp5@DL@wbyuvbOzVI0M6DBrKDpkNGY7XHzzzBZj1q3FemkxoVsd@OScOptNzv3zHHFPwuseZpkEf@8HYUIt21oAAvzuKxOfr7TeGs44giG7iwZbfyrJODOtZgkT6X4/1MODqeocDT95zkczGHKzGcWRq0XY2CecwYt9kSmurQaHE5nG56snTnnSSLqsqTbtrHnMF5Ov5VeXJn@M1oK3nIEkNym9tXfOAJwafc09Ps3ZGVqy1jkItyqbIKS1ehVK20y4O0VZ/osf4f2QRl7LkPxzpabXR8g@Z3lirrrytOzpr14fCvrtGjUKL2ZLlFNKURsdv9AA
 
5:03 AM
@Mego Can we get an example please
 
Anonymous
Even better:
https://tio.run/##hZPBbtswDIbvego2l0qbYXQrtkMAX3YY1sN6KtCDFxi2Ra0cFMmQ1DV5@kx2FNeeDYQnk6I@/lT@dMfwYs396aSc3UNrtcY2kDUeaN9ZF@AhoKsbjWxooJgFa/V4HBAZY62uvYeHbz@/bxnEkKigqshQqCruUStxrvfRpzlBAXfzkiId4T4elDs2pcTqkvL2Qhrhyb3ie60P253VF@Bq8xv55y9fxaxBWQcKyMyGzhl9dA7/VgmWTahxX54ysbgU3HFJmqtS/Lz/yFxS8NBiF9ZBDsOrM4sjUuMI8vBoDV7TMd1vDWdsiCgyPtSmHVfORjuIawPK9Llb7qf9VXmafFh/52SfjwV8YnPNXKMZ7wgoYsdyzJFQy8ug8m6ubl1ZevPRkrWUVfLN8GNm8CGl/7s8lXM8BDSSX7rYnDz0Th3vw4rhU@9mk/@xZHhzDOh52e5ELrG1ErkYrN1erC3OxKpy2EVcfNMEZoyavYp5/3flIp@uM1zR9b6RNUSLHrbQbH6g1jaDZ@u0vPllNiXtmGCdIxN4T8og7lbc3gp2Ov0D
 
Anonymous
5:49 AM
Almost-pure IBMF filter for printing out primes under 256 (with excessive spacing):
https://tio.run/##hZRNj9MwEIbv/hXWSqj2bhS1IPawInvggLQHOHELVZSPMTvItY3tQvLri5O4ISFB9aWd8etn3nEmMZ1/1erdRVh9orWWEmqPWjmKJ6Otpy8ebFlJIIMAQ@S1ltO2ByCE1LJ0jr58/PzpidCwGhC0KFChLwrmQAo@5vvVhynSjO6XKYEywF3YyI9kTgnZNeX3K0qgX@0Z/ub6pc3oPqO2VN@BvX3/yBcCoS0VFNWi6JLRL2PhVxFhyYwa@mUx4qtD3nZr0tKVYGP/E3NNgbYG47dBFvzZqtUWiqkEOvpFK7jlY97fFk5pH1ConC9VPbWcTOPAbxXI49/juj/pbtqT6Pz2PcfxecjogSw9MwlqOsNpFhTrMh2CbK6F8v3S3bazeOfTSJZNU8S5GR5mQu9j@O@Ux3QKrQfVsKuKLMmDdj7xzm8MfNTe3aU/NCpWdR4cy@sjTxuodQOMD6NdX0ebj8SisGACLtxpBBMism8XWZ6qpqS
 
So when is this becoming a language?
 
Anonymous
Probably tomorrow
 
Cool
 
Anonymous
I had to do a few hacks to make things evaluate in order for side effects to happen to get primes to work
 
5:56 AM
@ASCII-only Here's my shitty solution: ^[a-z][^lh][^rlx][^na][^k]($|[^dk])
A bit better: ^[a-z].[^rlx][^na][^k]($|[^dk])
 
@Pavel to the first one? foo
the thing is, i can't get the balancing angle brackets one
hang on. it's just annoying hacks
 
6:33 AM
If I do a "git push", will the file in .gitignore be deleted if they're already present or they're just ignored?
 
@user202729 ignored
well, run git status to check
 
I just added .gitignore to .gitignore.
 
Now I run git status it shows that .gitignore is modified.
But obviously I say that it's ignored. Why?
Should I git add .gitignore?
 
because git doesn't remove existing files. as i said.
@user202729 why
 
6:36 AM
So how am I supposed to "update" .gitignore now?
 
@user202729 git add? like normal?
 
Doesn't seem to work. git add what?
obviously I don't know how to use .gitignore
The man page just say "add file names and globs here and files will be ignored".
I don't think so.
git update-index?
 
@user202729 what.
@user202729 yes.
 
Already. It's still not ignored.
 
@user202729 do you want to ignore it
 
6:41 AM
... I think I figured it out.
> The purpose of gitignore files is to ensure that certain files not tracked by Git remain
untracked.
 
@user202729 exactly?
 
Well, no problem.
 
@user202729 git never deletes files...
(so I thought you meant removed from repo vs ignored)
 
So if it's currently tracked, git rm --cached it first, then add it to .gitignore.
All comes from not reading the man page carefully. Blame myself.
 
@user202729 *git blame
 
6:43 AM
:/
I don't mess up source code, I mess up git.
Now i need to reset it.
Actually, I never learnt git carefully. I would not be surprised if I mess up something.
 
7:02 AM
Still doesn't work as I expected.
So, for example. I have a test file test locally that I don't want to commit, I add it to .gitignore, done.
However, if I want to test as modifying a file to add some content, but I don't want to commit. What should I do?
 
7:38 AM
Is it OK to restrict a challenge to a few languages (or one)? I couldn't find a question on this on meta so I'm asking here to see if there's already an answer before posting a meta question.
 
@workoverflow Unless it's for a good reason, no.
(what's your specific question?)
 
8:06 AM
hi
can anyone suggest how I can ask codegolf.meta.stackexchange.com/a/16441/9207 without having to run everyone's code on my own PC?
 
@Anush I don't know that there is a solution to performance challenges for PPCG. I have a potential challenge while I don't know how to compare the submissions.
 
@Adám I gave up and said I would time it
@Adám but surely TIO could fix it all
 
@Anush How?
 
the only thing stopping us from using it seems to be some oddity about servers with different speeds
why not just say it has to run in under 30 seconds on TIO?
 
@Anush And what if someone writes a solution using a language you don't have installed?
 
8:14 AM
@Adám well that's less likely on TIO than it is on my PC
 
@Anush Not just the server speed, how about load?
 
But removing servers will only make performance worse, not better.
 
which is the current solution
@Adám why does load matter? You use CPU time
 
Because TIO is Try it online, not Time it online.
 
why can't we just use CPU time on TIO?
 
8:15 AM
@Anush Maybe the solution requires idle sleep for concurrency.
 
@Adám ah... concurrency always makes life hard :)
 
@Anush And how about overhead in compilation or start-up of the interpreter?
 
@Adám Do we have any control over TIO?
I mean, does someone from ppcg run it?
or can configure it?
 
@Anush Dennis runs it.
 
ok so I feel Dennis could handle separating the compilation time
 
8:17 AM

 talk.tryitonline.net

For general discussion and feature requests regarding tryitonl...
@Anush TIO supports Bash. It's possible to do it without special intervention.
(something like gcc something; time ./bin)
 
I commented in the room you just linked to
but I feel with a little thought and good will it would make a better solution than we have now
@user202729 Good point!
so I don't really see the problem
except that no one is doing it currently
 
6 mins ago, by Anush
the only thing stopping us from using it seems to be some oddity about servers with different speeds
 
right... so that is surely fixable
 
0
Q: Beginners 10x10 multiplication matrix

Comann SilvanI was looking for a very easy task to look how short of a code can be produced on a beginners exercise. The goal is to produce a simple table that looks like this common java/c# code is about 4 lines. So get your golfing-languages ready ;) 1 2 3 .. 10 2 4 6 .. 20 3 6 9 .. 30 .. 10 20 30 .....

0
Q: Delete some bits and count

AnushConsider all 2^n different binary strings of length n and assume n > 2. You are allowed to delete exactly b < n/2 bits from each of the binary strings, leaving strings of length n-b remaining. The number of distinct strings remaining depends on which bits you delete. Assuming your aim is to leav...

 
Hi folks! I'm not sure if this is a right place to ask, but I'm about to find out. Are there some popular string substitution esolangs?
 
8:28 AM
@AreWojciechowski ///. Retina.
 
That's what I was thinking of, but apart from Retina and ///?
 
I only know those two.
 
I want to compare them to a thing that I'm working on
More like looking for an inspiration/some point of reference
 
@AreWojciechowski QuadR.
 
What I'm most concerned about is that most string substitution esolangs seem to focus on manipulating strings
 
8:35 AM
@AreWojciechowski Doesn't the label string substitution esolang kind of imply that?
@AreWojciechowski QuadR is a superset of Dyalog APL, so it has a full repertoire of functionalities.
 
It does, but it worries me because mine is focused on manipulating numbers
It feels weird but insofar I managed to solve some codegolfs quite ok
 
@AreWojciechowski Retina can manipulate numbers... using unary.
@AreWojciechowski Then don't call it "string substitution esolang"?
 
That's what I'm trying to figure out!
It works by finding patterns in the program and replacing them with other things
So I may be confused on the part where string substitution comes in
 
@AreWojciechowski That sounds interesting. I've occasionally needed regex for numbers. I used it here by converting the numbers (luckily all positive integers) to characters, doing the regex, and converting back.
@AreWojciechowski pattern substitution?
 
Maybe an example would let me explain better?
pastebin.com/ScDiGxCY this is an algorithm that prints least common multiple.
 
8:41 AM
What is B!a?
 
first it tries to find all patters <number><op><number> - like a*b
input is a list of numbers represented by letters from a to z
capital letters represent lines, so capital B is a second line
B!a is basically an equivalent of a function call
the first line is the main of the program and is executed automatically
B!a takes the second line, and passes whatever a is in the first line to B line
executes the line and replaces B!a with the result
so basically line B is GCD algorithm
Now when I try to explain all of this, it occurs to me that it all sounded much better in my head.
oh, forgot to correct - its not B!a but B!a;b where a and b are arguments to B
 
00:00 - 09:0009:00 - 00:00

« first day (2676 days earlier)      last day (2154 days later) »