« first day (2708 days earlier)      last day (2128 days later) » 

1:08 AM
0
Q: Roulette wheel spin

Amit ShindeObjective is to bet on an even number if odd numbers appear on a Roulette table four times in sequence or bet on an odd number if even numbers appear four times in sequence. Every time you loose a bet, you lose $10; and every time you won a bet, you win $10. Starting balance is $50. Stop playing ...

 
1:52 AM
Me, after reinstalling Linux: echo 'alias chmod="chmod --preserve-root"' >> .zshrc
(jk, pressed control-c in time and I don't think anything was damaged)
The real question is why --preserve-root isn't the default behaviour.
 
2:08 AM
ok so I made a neural network to determine sentiment of a sentence
it worked perfectly ^_^
 
2:25 AM
is anyone here familiar with blender?
 
@Pavel Careful: that's a solution in the same way alias rm='rm -i' is a solution. If you're at a computer (or in a shell) that doesn't have the alias but got used to -i being the default...
 
2:47 AM
Hey
@ConorO'Brien no, but there is a room for it I think
Invite sent
(feels weird pointing a 27k user to a place.)
 
41
Q: Turing-Complete Language Interpreter

arodebaughA challenge I thought that would be very cool is to make an interpreter for a Turing-complete language of your choosing. The rules are simple: You may use any language to create this interpreter even if it is newer than this challenge. You may use any Turing-complete language as long as it is ...

Why was this question closed? it seems very specific what it's asking for me
2
and it is IMO the best question anywhere on Stack Exchange (in terms of what answers it elicits, not in terms of how well it's written), so having it closed is a bit of a problem
would it help if I edited the question to make it clearer what it's asking for? (the idea is to choose a Turing-complete language so that you can implement it as tersely as possible)
 
I'm not sure what your pointing at
 
the question I just linked before my comments, "Turing-Complete Language Interpreter"
 
I am well aware of the link.
 
3:02 AM
@ais523 The only reason I can think of is "it allows for too many possible answers" but...
 
I'm not sure what you mean by saying you're not sure, though
 
in my opinion it's not a problem.
 
You will find many such questions on SE. Closed, yet with a positive score.
 
@user202729 …but the aim is to find the best answer, that's not broad
 
As long as there is an objective validity criteria, it's OK.
 
3:03 AM
@FreezePhoenix yes, rulesbreaking questions often get upvoted, however that question is IMO not rules-breaking
although it could be worded a bit better
 
The no eval is a bit subjective... but I think it's not a problem here.
 
Well so are you saying non-rule-breaking questions should get downvoted?
 
@user202729 every question can have many many possible answers so I don't see how that could be a problem at all
 
@dzaima But they do essentially the same thing [...]
(note that I'm saying that "there may be somebody who think so" not "I think so", so don't convince me otherwise)
 
@FreezePhoenix I'm arguing that the question should be open; it's currently closed
 
3:05 AM
@user202729 Well so does every person: they attempt to achieve e their life goals
 
Just what I guess.
 
@ais523 vote to reopen then if you think it should be open.
 
I don't have the rep; I can only start a vote to reopen by editing the question
 
Anyway, about the challenge...
 
I could do something like create a new account, get it to 200 rep within a few hours, vote to reopen, and then delete the account, but that seems excessive and would likely make the site worse, not better
 
3:08 AM
Peter Taylor won't respond.
@CatWizard may.
 
@ais523 how do you get 200 rep in a few hours
 
posting clickbait
 
Do we have any guideline for closing questions as "too broad"?
 
and posting the first answer on it
 
I don't think so.
 
3:09 AM
it's not hard to do if you want to, and leads to an influx of votes from HNQ
make sure that the question is easy so that it gets hundreds of answers
you want all the HNQ visitors to think "I can solve that too!"
 
For people who closed it as too broad:
 
hot network questions
 
Having too many possible answers doesn't make it too broad.
 
here, here's an example:
101
Q: I'm a palindrome. Are you?

user62131 There have been a couple of previous attempts to ask this question, but neither conforms to modern standards on this site. Per discussion on Meta, I'm reposting it in a way that allows for fair competition under our modern rulesets. Background A palindrome is a string that "reads the same f...

I knew before I even posted that that it would rep-cap me; I actually got two gold badges from it
 
3:10 AM
(random note: fortunately SE chat allows you to hide user's post)
As long as it has an objective validity criteria.
 
OTOH I'd consider it fairly bad as questions go; it's good-quality enough to post, and it doesn't break any rules, but it's not really all that interesting
 
Otherwise, Moby Dick challenge and Starry Night challenge would be closed already.
 
@user202729 who are you hiding?
 
@ais523 You know how to get rep with HNQ and you avoid it. :)
 
I pointed out to Stack Exchange back when I deleted my PPCG account that I'd demonstrated that the reputation system was completely broken via intentionally repcapping every day for a week
3
 
3:12 AM
So...
 
but they clearly didn't even read my comments
 
Well, I'm certainly not using that in the next week
 
I think that the question can be reopened, and I have the privilege to reopen it,
but I think just do that is not good for the close voters.
Ideally we should have a consensus with the close-voters first.
 
right, presumably it was closed for a reason, you want to figure out what that was first
 
@ais523 By asking such questions every day?
 
3:14 AM
@user202729 it was a mix of things, the clickbait was my last resort if I couldn't get the rep off answers
back at the time, a) we were getting new questions fairly quickly, b) there were still a lot of people impressed by Jelly answers for some reason (Jelly's a fun language, but many people would upvote anything written in it regardless of quality), so I just aimed to quickly post a Jelly answer to each question almost as soon as it was asked
 
@ais523 Because it's still "reasonably new"?
 
sometimes I got outgolfed by a couple of characters, but the way the voting system works, FGITW means you'll get a decent amount of rep (and be first on the answer list for a day or two) if your answer is reasonable and posted quickly
@user202729 the thing about Jelly is that there are some very boring, rote answers in it, and some really clever and insightful answers in it, but the majority of voters coming in from HNQ can't distinguish them from each other (and indeed, can't distinguish Jelly from line noise), so why put the effort in if you're going to get upvoted regardless?
people who hang round here know the difference (or at least, know that they should wait for an explanation before voting), but they're not going to downvote a legitimate answer
so the worst that can happen is that you languish at zero
and you can just try again on the next question
 
What am I pinged?
 
S/what/why
 
@CatWizard we were wondering why this question was closed
 
3:27 AM
@CatWizard About why you closed the ... ninja'd.
 
Right now I don't remember. I'll read through the comments, but my suspicion is that I thought it was too broad.
 
What is "too broad"?
We don't even have a consensus "when to close a challenge as too broad", do we?
 
@CatWizard what needs to be changed to make it not too broad? I'd really like to get that question to a state where it can remain open
 
3:30 AM
JavaScript isn't a very good good language
 
Usually too broad is not something to be fixed.
 
@CatWizard Anyway... why do you think it's too broad?
 
Implement any turing complete language is a broad task.
 
@CatWizard ???
I still can't understand.
There are too many valid answers?
 
It's like print any string.
 
3:31 AM
@CatWizard it's a question, the aim is to find a language which can be implemented as tersely as possible
 
28 mins ago, by user202729
As long as there is an objective validity criteria, it's OK.
 
@Dennis that is not too broad, although it might be trivially easy
in most languages the null string will be the easiest to print
 
20 mins ago, by user202729
Otherwise, Moby Dick challenge and Starry Night challenge would be closed already.
 
@ais523 We'll have to disagree on that.
 
@Dennis ok that would be stupid
 
3:32 AM
"there are too many valid answers" != "too broad".
 
That's exactly what too broad means.
 
in this case, the challenge of finding which language is tersest to implement is a) nontrivial and b) the whole point
 
@user202729 // false
 
What do you think about the Moby Dick challenge?
There are ∞ ways you can implement an answer...
 
@Dennis would you argue that "print the null string" is also too broad? if not, what's the difference? all that's been excluded is a number of suboptimal answers
 
3:33 AM
and the easier one often get worse score.
 
@user202729 off topic for this conversation. Stop changing topic.
 
TToo broad is a rather subjective term. I don't believe I will be voting to reopen because I do think it is too broad. If you would like to vote to reopen you are free to do so.
 
In my opinion: Moby Dick challenge is not too broad, and neither is this one.
 
IMO the moby dick question is also too broad.
 
@ais523 Apparently 0 is easier to print than "" in most languages. (but ignore it.)
 
3:35 AM
But that is neither here nor there
 
@user202729 many languages will print the null string if given a minimum-length program
the second-most common behaviour for a minimum-length program is either an infinite loop or cat
 
@ais523 Any language that errors for an empty program will simply use that error message. So while print the empty string is bad, print any string is even worse.
 
oh, I've been away from PPCG for so long that I forgot erroring programs were allowed by default
 
@CatWizard What do you want to say?
 
I don't want to say anything (other than this)
 
3:37 AM
anyway, I very much think that PPCG needs a competition for "design a TC language that is as terse to implement as possible"
this is a competition that existed before PPCG did, and here is the obvious place to post it
 
Why are we harasing @CatWizard? Can we stop doing that please?
 
you mean, implement a TC language in the fewest bytes?
 
I don't think PPCG needs to be a repository, if other places have done it before that's a decent reason to not host it again.
 
so if that is disallowed, despite being very complex and nontrivial and having years of effort spent on it, either the rules need to be changed to make it allowable, or else some way needs to be found to word the challenge to sneak it around the rules
@CatWizard well Esolang's version was specific to x86 asm
rather than allowing any language
but it's an ongoing thing
like, this isn't something you run once and then it stops
I was still finding improved answers to the challenge over a year after it was posted
 
@FreezePhoenix I don't feel like I am being harassed. Thanks for saying something, but I can handle it myself in the future.
 
3:40 AM
Someone make a meta post "Is a challenge with many possible answer behaviors and objective validity criteria too broad?"
 
@ConorO'Brien yes, that's what we've been talking about; it's been closed as too broad, despite some people believing it's easily specific enough
 
(why do I like long title? I don't know)
 
I despise this community's definition of valid challenges with more than I can express in words
10
 
@user202729 TBH I don't think we need a consensus on everything I like that there is a good deal of human judgement as far as too broad.
 
@CatWizard But there is currently disagreement.
 
3:41 AM
@CatWizard ok. I was just seeing several questions asked of you that are self explanatory.
 
@user202729 actually I think the heart of the matter is to determine whether it's OK to have a challenge where you're aiming to find a solution technique that falls within specific parameters, rather than implementing to a specific situation
 
@user202729 Then vote?
 
Not making a consensus and just silently reopen it is more likely to cause close voters unhappy than making a consensus.
 
@user202729 Too broad is a judgement call. That's why there's a voting system.
 
60
Q: Three-Three-Three!

darrylyeoWrite a program that produces an output such that: At least three distinct characters appear. The number of occurrences of each character is a multiple of 3. For example, A TEA AT TEE is a valid output since each of the 4 distinct characters, A, E, T and (space), occurs 3 times. Of course, a...

 
3:41 AM
I say screw it, make it (implementation) language specific
 
there's another example of that sort of question
 
@ais523 Which would definitely not be too broad.
 
What is "Esolang's version"?
 
huh, there are multiple people arguing that a closeable question becomes noncloseable by restricting the languages that can compete
 
5
A: I'm a palindrome. Are you?

Prasanth BendraJavascript, 64 bytes f=s=>s==[...s].reverse().join``//``nioj.)(esrever.]s...[==s>=s=f Call function f with string f("abba") // returns true f("abab") // returns false

 
3:42 AM
 
@ais523 That..... definitely doesn't make sense.
 
I upvoted codegolf.stackexchange.com/questions/111278/… but the answers are boring when high-level are allowed
 
I can see the logic behind it but it's more or less contradictory to established PPCG consensus
 
I don't think it's invalid but requiring a low level language is a good filter for more interesting answers.
 
@feersum even the 4-byte Jelly answer? the language it implements was subsequently named The Waterfall Model and turned out to be fairly theoretically interesting, in addition to being very useful for Turing-completeness proofs
 
3:44 AM
@feersum People can filter those themselves.
 
@ais523 I don't know, I wouldn't have read that far.
 
apparently SE doesn't like spaces in URLs, I URL-encoded them
 
Generally...
if you think an answer is more interesting, just upvote it.
 
@feersum this is more an argument that SE's "the best answers rise to the top" is flawed!
 
If there are sufficient people do this (and the question is not on HNQ), it will rise to the top.
 
3:45 AM
Obviously that's completely false on this site.
 
Then just sort by votes.
@feersum SE doesn't care if it's PPCG specific.
 
but it's the second answer
so it looks like people have been voting by terseness/elegance on this occasion
 
I usually have sort by "active" on
 
What can I say about this:
Jelly is not the language which have builtin for everything.
If you see something being short in Jelly, it's probably short in other languages.
 
I actually tried to learn MATL in the hope that I could get a shorter answer there
but I think it's too verbose
 
3:47 AM
Looking around...
 
Jelly is only winning due to its syntax, though, not its builtin set
(on this particular question)
 
Well, good ight people.
 
@ais523 A bit off topic, but since you were here, I've been trying to make a Lost answer to this, but have been having quite a difficult time. I was wondering if you might be interested in giving it a whirl.
 
In my opinion the top 2 voted answers are much more interesting than the classic "interpret BF/GoL" ones.
And those are, obviously, longer.
 
😴🔥💤
 
3:49 AM
ais523 used Jelly and not, say, ASM, is only a minor details.
 
@CatWizard I can't think of an obvious way to do that, it seems really hard
 
The nice thing about machine code is that you know each instruction is O(1) work.
 
@feersum not true, e.g. REP STOSB is O(n) work
 
Is that really one instruction and not two?
 
it's two, but at least one of them has to be O(n), because O(1)+O(1) = O(1)
and they tend to be written on the same line in a disassembly, so arguably it's one
 
3:51 AM
I would argue REP is a flow control instruction like JMP.
 
so they get executed multiple times?
 
I don't know ASM but that seems like saying label: goto label is one instruction
 
Right.
 
What's special with O(1) per instruction?
No, REP is special handled by the CPU. (right? I'm not sure)
 
@ConorO'Brien in machine code, it is; machine code doesn't have labels, and asm would let you hardcode the jump destination if you like
jump destinations are often relative to the IP, so it'd look like GOTO %eip
or maybe GOTO (%eip)
 
3:53 AM
@ConorO'Brien But it's indeed 1 instruction.
 
indirection in ASM is a pain, the rules for it are pretty arbitrary
 
Just that executing it will cause it to be executed multiple times.
... Ok?
So about the challenge, should somebody make a meta post, or just VTRO?
The former is more likely to success, and also take care of future similar cases.
 
@user202729 anyway, if I were asking the "implement a TC language as tersely as possible" and requiring a specific language, I'd do it in a very low-level language, such as counter machines
 
If you write such a loop you will generally notice the CPU heating up... so it seems to be doing something over and over again :)
 
minimum number of states+counters, probably
 
3:54 AM
Oh right, sometimes we forgot x86 is a high level language
 
actually I've been designing a challenge to implement a golfing language which "compiles" to a pseudo assembly language
 
what's the scoring based on?
I think you'd need to combine the terseness of the programs and the terseness of the compiler, otherwise the fact that it's compiled is pointless
in theory you can write a compiler for anything
err, that you can implement some other way
 
@ais523 (unrelated, but while you're here) What do you think about challenges such as this one?
 
Is that the case? I was just reading that parsing perl5 is undecidable.
I think C++ has similar issues
 
@ais523 sum(bytes for challenges) + sum(bytes for compiled)
 
3:57 AM
Then "you can write a compiler for anything computable".
 
Not every input to the compiler is a valid one, what's special about that?
 
I guess parsing is not actually required to compile
 
@user202729 the amount of explanation you need to make the question one that people can start solving in a language which doesn't have builtins for it is so high that it's probably best not to ask the question in the first place
@CatWizard right, you'd need to compile it into something that parsed as it ran
 
I mean worst case you write an interpreter and hardcode the input.
Language idea: Write a language that is as difficult to compile as possible.
 
@CatWizard Befunge
 
4:00 AM
@CatWizard Befunge was intentionally created as that
 
How do you define "compile"?
1 min ago, by Cat Wizard
I mean worst case you write an interpreter and hardcode the input.
 
that is a (degenerate) form of compilation
basically you're just taking a program as input, and producing a program as output, such that the input and output programs do the same thing
it's most useful if the output program is a) in a low-level language or b) optimised compared to the input program
 
@ais523 That is... which choice? Neither?
 
@user202729 which of which choices?
 
7 mins ago, by user202729
So about the challenge, should somebody make a meta post, or just VTRO?
 
4:02 AM
oh, I wasn't answering that question (in part because I don't know the answer!), I was talking about how I'd write a followup challenge if consensus is that it needs to be limited to one language
 
I feel like befunge was a good start but could be built upon.
A 2D language with undecidable parsing for example.
 
well, the only real issue with compiling Befunge is that it's self-modifying
 
What is "undecidable parsing"?
 
so you'd want something that was very self-modifying
 
4:04 AM
@user202729 in general there's no algorithm to determine whether some particular part of the program is a particular syntactic element, e.g. in Perl, you can write a program such that there's no algorithm that can determine whether a particular / is part of a regexp literal or whether it's the division operator
 
So if the Perl interpreter is not such a program... what does it do?
 
however, the known examples are cheating, in that the reason you can't tell is that the parser might go into an infinite loop before it reaches the character in question; if it doesn't, you can just run it through the parser to find out
and if the parser does go into an infinite loop, it doesn't make sense to talk about how the character parses
 
@feersum It parses and interprets at the same time.
 
so I'm not really sure I like the terminology much
 
4:06 AM
Somewhat unrelated but I'm a big fan of turning on UndecidableInstances for Haskell.
 
Perl lets you define parser extensions in the program itself, and use them to parse the rest of the program, and those parser extensions can do anything
so in that way, it's kind-of "trivially" undecidable to parse
 
Is it still whacked somehow without parser extensions?
 
well, it depends on what you define as a parser extension
use (which is used to import other modules) runs at parse time just in case the code you're importing wants to change the parsing rules (e.g. by defining a subroutine, whose name will then have to parse differently)
if you ensure that the parse time only runs trivial code, though, there's nothing beyond that that's preventing you parsing Perl
 
So it's "have multiple ways to parse depends on the runtime values"?
 
I just think it's a bad way of saying "you can run arbitrary code during the parse"
 
4:14 AM
I mean undecidable is just another way of saying there is a computable surjections from the turing machines to the space.
I think it is a pretty reasobable way to say it.
 
 
2 hours later…
6:19 AM
how do I write a footnote in a question?
 
Is the reason Quantum Computers has a design despite not being graduated due to its sponsorship?
 
Help guys I'm failing at my life goal today
How old is the x => x+1 JS syntax
If I get a syntax error does that mean I'm probably typing it wrong or I'm using some old engine?
The engine is not in a browser.
 
second attempt at posting my challenge to main... fingers crossed
 
@feersum It's ES2015 standard, so it's at least 3 years old
 
OK so that doesn't seem very old then
I'm going to blame the cloud for being old instead of my code.
 
6:29 AM
@feersum became mainstream late 2016
So probably just yeah blame the cloud
 
0
Q: A fast algorithm for the spike distance

AnushIntroduction Given two sorted arrays of integers X and Y, we can define the spike distance as follows. Both X and Y can have duplicates. The distance is defined as the minimum cost associated with the transformation of one sorted array X into a sorted array Y by deleting, adding, and moving int...

 
6:46 AM
0
Q: How to create 1 billion secure GUIDs as fast as possible

Lance PollardA quick test in creating GUIDs is like this: function guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } var i = 1000000 var start ...

 
 
1 hour later…
8:01 AM
@ais523 About the rep system...
SE designs it so that it's normal for people to want to get rep.
So they think it's normal for you to repcap every day.
(assume you have "valuable content")
You post "FGITW answers" or "HNQ challenges"...
SE cannot determine if the answers getting upvoted because they're FGITW or because they're good...
Because they don't know Jelly.
Because it's PPCG specific.
Somebody just created the tag.
 
8:22 AM
@user202729 How in the world did that pass peer review‽
There should be some kind of clean-up system. If a tag is not used a second time within a year (or some other period) from its creation, it is removed.
 
0
Q: King of the Hill - Outsnake the game!

AJFaradaySo, I wrote a simple Javascript game (as yet unnamed) and naturally I wanted to write an API so I could write a bot to play it for me, and naturally I wanted to let the PPCG community have a go for themselves. It's a 'snake' game with the simple goal of collecting as many blue squares as possibl...

 
9:13 AM
@CatWizard Oof, that's a hard challenge to attempt. There's a number of problems; duplicating characters, wrapping string literals, newlines and then the ol problem of writing code that still functions while missing characters. I'll give it a try when I can
Though I wonder how long the verification program would take lol
 
9:29 AM
@Adám I'm pretty sure that it didn't even have to be peer-reviewed, unless the user has got all that rep simply from suggested edits
and it looks like this isn't the case
 
@EriktheOutgolfer Meta to remove?
 
@Adám actually, I don't know if we should just remove a tag just a little bit after it's created
but yeah, it seems too burninate-able to me
and so does
 
You have to kill them before they grow too strong.
 
well, if Adám or I or somebody else edits it out, I won't complain :P
btw, IIRC, it takes 24 hours for the tag to be killed
 
@EriktheOutgolfer Is editing it out enough to kill it (after 24 h)?
 
9:37 AM
@Adám I think that's the only way to do so
"burninating" is really just editing the tag out of every question
 
@EriktheOutgolfer Done,
 
@Adám phew thanks, I'm currently a bit slow :P
 
@EriktheOutgolfer NP, with rep comes re(s)p(onisbility).
 
@Adám that's what happens with close votes...
 
10:03 AM
@user202729 that's why I would like there to be an option to hide rep and votes in axtell
 
@Adám Because 150 is too low for tag creation...
@EriktheOutgolfer I think there is also "blacklist by moderator".
 
0
Q: How to increment IP address

Lance PollardIt feels mind-bending trying to do this. Basically, how to increment an IP address. 0.0.0.0 0.0.0.1 ... 0.0.0.255 0.0.1.0 0.0.1.1 ... 0.0.255.0 0.1.0.0 0.1.0.1 ... 0.1.0.255 0.1.1.0 ... 0.1.255.0 0.1.255.1 0.1.255.2 ... 0.2.0.0 ... My attempt gets me the first two tail nodes correctly, but any...

 
I don't think blacklisting removes the tag completely though, does it?
 
@EriktheOutgolfer Yes, first somebody has to remove the tag, then blacklist it.
 
burnination takes time though, and it's not guaranteed it will be less than 24 hours
 
10:07 AM
@NewMainPosts How can that happen? Obviously OP know that this site is for programming challenges.
That feels weird.
@NewMainPosts And is created.
SE doesn't warn you when you create a new tag? Does it?
 
(btw, why does the inline tag editor exist >_>)
 
10:23 AM
@NewMainPosts cmc: do this challenge
 
@Cowsquack Can we take input as 4-element list?
 
posts answer as question so that NMP catches it and posts it on his behalf
Jelly, 5 bytes: ḅ⁹‘b⁹
 
@EriktheOutgolfer Without dots, I presume. from-base 256, increment, to-base 256. Right?
 
@Adám you have it reversed
 
@EriktheOutgolfer Duh.
@Cowsquack What should it give on 255.255.255.255?
 
10:31 AM
@Adám well, of course, it would be longer if we should prepend 0s in the output
 
@EriktheOutgolfer Yeah, and I think you'd have to, otherwise it isn't a real IP.
 
in this case
Jelly, 13 bytes: ḅ⁹‘b⁹0ẋ3¤;ṫ-3
(note: might be very golfable)
Jelly, 11 bytes: ḅ⁹‘b⁹Ṛ+0ṁ$Ṛ
Dyalog, 15 bytes: (4⍴256)⊤1+256∘⊥
that built-in makes it almost tie Jelly
 
@EriktheOutgolfer Sure, but imho, it was still designed wrong.
 
@Adám it's actually pretty good for multi-base numbers, no?
 
@EriktheOutgolfer Yes, but early APL was silly about treating 1-element arrays and scalars the same. scalar⊤ should have been today's scalar⊥⍣¯1.
 
10:50 AM
0
Q: Bounty on a challenge?

AJFaradayI'm considering adding a bounty to this question, once it qualifies: Bot: Outsnake the game! I just wondered what the etiquette is for bounties on code challenges: Should it be awarded in a given time-scale? Would it be seen as self-promotion? Is it not the 'done thing'? What's a good amount ...

 
ngn
@Cowsquack k, 29 bytes: {"."/$(4#256)\1+256/.:'"."\x}
 
@ngn K's / and \ are pretty darn versatile.
 
ngn
@Adám yes, in this case: \ split, / join, \ encode, / decode
 
@ngn Why can't { and x} not be removed?
 
ngn
@Adám bugs in my ever-changing parser
 
11:04 AM
@Cowsquack K, 26 bytes: "."/$(4#256)\1+256/.:'"."\
 
ngn
@Adám nice :D
 
@ngn If K isn't good enough, use K. 'K?
 
@Adám alright so that's a built-in over there
 
@EriktheOutgolfer What is a built-in?
 
@Adám ⎕VFI
I looked the docs up...
 
11:09 AM
@EriktheOutgolfer Yup, Verify and Fix Input. Clearly made for business applications to process records. Like a CSV before CSV even existed…
 
@Adám wait how old is it
also, true CSVs store strings, not numbers
 
@Cowsquack Retina, 29 bytes
 
@EriktheOutgolfer I don't know how old Dyalog's ⎕VFI is, but it appears to be a combination (for performance reasons) of two ancient system functions that I know from old-school APL, ⎕VI and ⎕FI. They couldn't be combined in the old days, as that required nested arrays.
 
@Adám oh so ⎕VFI is the result of what would have been ⎕VI{⍺⍵}⎕FI as a Dyalog train back then?
 
@EriktheOutgolfer Yes. The old APL+ I grew up with had them as separate functions. It had neither trains nor nested arrays (nor heterogeneous arrays).
 
11:15 AM
@Adám ah, couldn't know, since I don't have enough €€€ to pay for APL+
 
@EriktheOutgolfer Ancient APL+ is actually free and available. Anyhow, you can see ⎕VI and ⎕FI by APLX. Notice how the documentation is identical; combining them was an obvious thing to do once nested arrays were allowed.
 
@Adám I assume that I will have to include -"Asia Prayer Link Plus" while Google-searching for that download...
 
(hint: it doesn't return anything meaningful)
> Fortunately, web surfers, you do not have to dial up a BBS to get APL SE.
lol what an unmaintained server over there
 
@EriktheOutgolfer Sometimes, I'm amazed that old websites stay up. Is someone paying monthly hosting?
 
11:29 AM
ugh, did the latest Firefox start opening about:newtab in new private tabs rather than about:privatebrowsing?
 
@Adám I think the overall site is pretty updated, that's just an old webpage
(btw it's because of luck that I heard your ping, because DOSBox)
 
ngn
11:42 AM
@Adám -1 byte: ' '⎕R'.'{4/256}(⍕⊣⊤1+⊥)2⊃'.'∘⎕VFI
 
@ngn um, why not just (4/256)?
 
ngn
@EriktheOutgolfer to prevent stranding with '.'
 
@ngn oh right
 
@ngn nice :D
 
@Adám um, that webpage seems to only contain a demo version of APL*PLUS
 
12:08 PM
@Adám yes
@Adám undefined behaviour
@Adám what does ⎕vfi do?
wait ninja'd
but it;s nice that you handle strings
@Neil how does the $.(*__ work?
 
12:37 PM
* means "multiply right token by left token" right token defaults to _ and left to $& (which is the match) so you get $& _s. I however want one more, so I have to explicitly specify the right token (because it's golfer than explicitly specifying the left token), plus the one more _, which is joined using the $(, but the . then makes it take the length.
(Retina doesn't actually multiply $& by _; it knows that it's taking the length so it just calculates $&*1+1 directly.)
 
Lua developers should not be allowed to name libraries.
 
-2
Q: Can anyone explain why we used num/counter_var in "finding prime factor by using recursion"?

Verkiyaint func(int); #include <stdio.h> int main() { int number; printf("Enter Number\n"); scanf("%d",&number); func(number); return 0; } int func(int num) { int counter_var; for(counter_var=2;counter_var<=num;counter_var++) { if(num%counter_var==0) { printf("%d\n",counter_v...

 
@NewMainPosts so...bolding your code can be a real problem
Jun 21 at 20:11, by Conor O'Brien
holy asdf I can stop bolding my variable names
s/an/an't
 
1:03 PM
0
Q: Consecutive 1-Bits are Incremented

Luis felipe De jesus MunozGiven a pattern (string or array format) of Bits : [0,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1] The tasks is to replace any number of consecutive 1-Bits with an ascending number sequence starting at 1. Input Pattern (can be received as an string or array) Example: String: 1001011010110101001 Array: [...

 
 
2 hours later…
2:54 PM
Any last comments on this before it goes live?
 
> If I have a sequence of numbers how many of them do I have to provide before it is clear what sequence I am talking about?
:P
 

« first day (2708 days earlier)      last day (2128 days later) »