« first day (2612 days earlier)      last day (2235 days later) » 

12:06 AM
@LeakyNun 18 bytes: lambda p:p-p%3*p/3
 
nice
 
I dont' know any python 2 precedence rules, but I think that one is exactly the same as my first one
 
@H.PWiz :|
 
Should I know the rules?
 
12:44 AM
@Neil MapAssign(Left|Right) should be fixed now
> I think
 
Well, I'm pretty sure, but I didn't test all possible bracketings.
 
1:03 AM
@H.PWiz yes
 
@LuisMendo I was looking at the MATL repo, and noticed that the majority of code is "written in TeX" -- perhaps you may want to look into language overrides for your repo?
 
1:45 AM
That doesn't surprise me. MATL has production-level documentation.
 
@ConorO'Brien :|
you forgot to put things in the header/footer
@ConorO'Brien also Java doesn't have type aliases :/
 
2:36 AM
Is J compiled or interpreted, and does it affect its performance?
 
@user202729 A language isn't compiled or interpreted, an implementation is
 
On PPCG, a language is defined by its implementations.
 
well, that's for challenge purposes
 
Anyway... how are the implementations?
 
it's interpreted
 
2:44 AM
How do you know?
 
let me amend: from what I've looked at the source code, it seems to be interpreted
 
ngn
@user202729 interpreted; performance penalty is negligible (unless you write grossly non-vectorised code)
 
3:12 AM
@ConorO'Brien Thanks! I didn't know that that could be done. Nos it says "100% Matlab" :-)
 
fantastic! :D
 
@Dennis :-)
^^^ *Now
 
3:32 AM
@quartata you should really change your chat bio
 
3:59 AM
no
4
 
 
2 hours later…
5:32 AM
Hi everyone
Sorry I've been away
I've mainly focused on work and stuff
What'd I mis?
 
5:54 AM
@Sherlock9 hi
 
Hi Kenny o/
*miss
 
6:16 AM
Can anyone try to decode this: LqH+VQrhv&oUALKFCCV!
 
@Downgoat :| it's a bit short to decode if you don't know that it's encoded with
 
 
2 hours later…
8:24 AM
@Mego what is n here>
 
@Cowsquack "In a finite fileld GF(p^ n ), .."
 
 
1 hour later…
9:41 AM
oh, n is taken to be 1
 
 
2 hours later…
11:52 AM
CMC: given a year output if it's a leap year according to the Gregorian calendar
 
welp
 
bash, 18 bytes, cal Feb $1|grep 29
would this be a valid solution? (outputs non-empty string/empty string for true/false)
 
what would've happened if the UK switched to gregorian after 13 colonies left
would they stick with julian or would they get metric with gregorian
 
@Cowsquack it also outputs with error code so it's valid
 
12:08 PM
@Cowsquack invalid for 2029
 
my solution fails when the year has 29 in it
 
ninja'd
 
Also Feb -> 2 for -2 bytes
 
I am trying to find a shorter alternative to the sed bit
cal 2 $1|sed '/\<29/e' will give an error/no error (still exit code 0)
is ^ allowed?
if not, then cal 2 $1|sed '/\<29/q1' works for one more byte
 
12:30 PM
how does the \< work?
 
that indicates the start of a word boundary
however this will fail for 29XX, but we are not required to handle such years
date might be shorter, date -d $1/2/29
 
1
Q: Print a number that number of times

NoobExample Input -> 5 Output -> 55555 Input -> 12 Output -> 121212121212121212121212 Criteria Least number of bytes wins!

 
[text](link)
 
always forget that
@Cowsquack ^^ works for 29 AD too
 
doesn't work for 2032
because 29 is at the beginning of the line
 
oh yeah
 
...except that this question is better since it does not ban built-in functions ;p — Jonathan Allan 34 mins ago
 
1:18 PM
@betseg Doesn't grep use regex? Does that mean you can have grep " ?29 "?
 
Banning built-ins are banned nowadays. <why can't I post this, it's not a dupe of the last message>
 
@cairdcoinheringaahing but 29 could also be at the end of a line
 
Which can leads to confusing dupe-or-not-dupe situations.
 
@user202729 The SE chat system doesn't recognise edits to a message, annoyingly
 
1:21 PM
@betseg nice
 
now do my cmc with maths not string manipulation :P
 
1:38 PM
In the J program echo stdin, what is the memory used? (assume stdin is huge)
 
0
Q: Minimize Least Used Binary Bits in Reduced Fractions

Weijun ZhouIntroduction For a given rational number r, find a pair of integers p,q so that p/q=r and the number of less used bits in p and q are minimized (details below). Challenge A positive rational number r can be expressed as the ratio of two positive integers, r=p/q. The representation is not uniqu...

 
1:53 PM
thats my chat bio
except the period
 
2:31 PM
I need some inspiration. Out of this list of icons, I need one which represents "data exploration" (contains search, custom queries etc.).
 
magnifying glass?
 
Except that.
So far, compass is my favorite.
 
3:34 PM
-1
A: Sandbox for Proposed Challenges

goodguy10PRINT Write a program to print a randomized 10PRINT pattern. A 10PRINT pattern is a randomized string consisting of forwards and backwards slashes only. Example: A video demonstrating the original 10PRINT. This is a code-golf, shortest code wins.

 
3:49 PM
@mınxomaτ search-for
arrow-split, trending-up
zmdi-directions-*
 
Hi everyone o/
Does anyone here use the language Reason?
 
4:04 PM
ReasonML?
 
4:14 PM
Oh is that the correct name
Then yes
My office is planning to start using it in projects
 
We evaluated it, but the debugging experience was painful.
 
Oh dear
 
That was a few months ago though, haven't touched it since.
 
Well, we just finished building one project in it and the engineers on that project seemed to like it
So I think our office might adopt it, but we'll see
What was wrong with the debugging?
 
IDEs don't support it naively for debugging or refactoring. In contrast to e.g. CoffeeScript or TypeScript in something like WebStorm.
YMMV
 
4:26 PM
4
Q: Golf A Free Lunch

Jonathan AllanFind a maximally profitable sequence of exchanges given an exchange rate table. As an example consider the currencies Ariary (your home currency), Baht, Cedi, and Denar where the rate from one to another (after any transaction rate has been levied) is given by the (row, column) entry in the ex...

 
have you tried Elm?
 
I've never heard of it
 
What's your target? Native or web? Do you have any OCaml devs?
 
Web and Native
Ah yes no support is going to suck
 
Oh boy
 
4:31 PM
I don't think we have OCaml devs
But again, the engineers and the boss like it
And we have built stuff in it
It's a matter of getting the other engineers (including me) on board
By contrast, our starting point is JS, React, and React Native
 
First step would be to find out whether you like OCaml and it's libraries (and community). If you don't have existing devs, you need someone to ask.
Our stack at time of evaluation was React, TypeScript, GraphQL. And one OCaml dev who has since left.
 
 
2 hours later…
6:14 PM
Belated thanks @mınxomaτ. I'll ask at work who our OCaml devs are (if we have any)
Or at least who I can ask for help
Goodnight all
 
6:46 PM
 
7:18 PM
I want to add the leaderboard snippet to my question
I copied the info section. What else should I copy to the question to get it up and running?
Um, I copied the stack snippet, and it shows leaderboards now, for the wrong question
 
@eaglgenes101 change the first constant in the snippets JS to your question ID
 
Okay got it
Now it shows correctly
 
 
2 hours later…
9:30 PM
@ASCII-only You caused me to lose a lot of time on code-golf.io :-)
 
O_o all of the ones you've done you've gotten first
@TonHospel well, it's not that different from PPCG :P
 
I didn't actually golf very much, mostly reused existing stuff. And fooled the automatic judge several times
 
and somehow you have an insane score for (at least) four of the challenges
also: oh :/ i assume some of those times was you fooling the automatic judge
 
I fooled the judge by 4 bytes on pangram grep (though for a reasonable interpretation of the specs it is va;id)
And by 1 byte for brainfuck (but again I could argue my solution is valid and it's really a perl bug)
The rest are honest.
 
Hmm, I guess it could be partly that people there just don't golf in Perl 5
 
9:42 PM
I'm having trouble calculating tau though (2 pi). Strangley enough my method for pi doesn't generalize.
@ASCII-only Yes, they definitely need more good perlers. For some reason they have a very good set of perl6 golfers though.
Mm, 91 for tau. I could submit but it's so ugly with losts of spurios characters
 
10:25 PM
 
@flawr tha'ts glorious
@betseg if i can scrounge $5 I will join teh quest
but 10/10 otherwise
 
10:45 PM
0
Q: The Gambler Puzzle

firephilJohn gambles at the casino, he always uses a special system of tactics that he devised himself, it's based on always betting in one of two ways in each game: betting exactly one chip (to test his luck) betting all-in Wins in the casino are paid equal to the wager, so if he bets X chips and w...

 
11:01 PM
@TonHospel :| does perl have no string subscript
 
11:17 PM
string subscript ? you mean like python str[pos] ?
you do that with substr$str,$pos,1. But you'll almost never see it in golf since it is too long
 
yeah :/
 
11:37 PM
0
Q: Drunkard's Journey Home

fəˈnɛtɪkDrunkard's Journey Home In this challenge you are to write a program which simulates a drunkard stumbling his way home from the bar. Input: The input will be an adjacency matrix (representing a directed graph) which represents paths the drunkard can take. At each location, the drunkard will ch...

 
11:55 PM
0
Q: Find out if this a valid Stack Cats program, in Stack Cats style!

BubblerBackground Stack Cats is a reversible esoteric language made by Martin Ender. Each command in Stack Cats is either the inverse of itself (represented as a symmetric character, such as -_:T|), or has its inverse command (represented as the mirror image, such as (){}[]<>). Stack Cats has a strong ...

 

« first day (2612 days earlier)      last day (2235 days later) »