« first day (2359 days earlier)      last day (2478 days later) » 

8:00 PM
Now, I must find a way to map them with the input, written them both.
@LeakyNun Woud yMQ work, since it is a monad, having the arg b?
 
@Mr.Xcoder it isn't an error
 
It is not benefficial either, I think
 
@Mr.Xcoder I don't understand what you mean
@Mr.Xcoder it is beneficial
 
Is it? It feels un-golfy :/
 
er
I completely broke paintbrush
rip it was working last I checked without modifications in between then and now, so maybe I didn't test the new feature fully. but apparently - is an illegal character in a string because it becomes an operator ><
 
8:09 PM
@BruceForte why did you delete this? It seems like an interesting challenge
 
@LeakyNun Still around?
 
@cairdcoinheringaahing Posted. Let me go find it and edit it down.
 
@Mr.Xcoder won't be around soon
 
@LeakyNun I currently have 28 bytes (still golfing): L&b-b'y-b1L?b-by'-b1 1'MQyMQ
Wait, I think the Q is implicit, so L&b-b'y-b1L?b-by'-b1 1'MQyM (27)
 
well obviously -b1 is tb
 
8:13 PM
I know there is h for increment, is there also a decrement (-blahblah 1 feels ungolfy)
Oh, right
I now have 25: L&b-b'ytbL?b-by'tb1'MQyMQ
Hooray!
 
> (pe31 <- function(n,coins) if(length(coins)) sum(sapply(n-seq(0,n,coins[1]),pe31,coins[-1])) else n==0)(200,c(200,100,50,20,10,5,2,1))
[1] 73682
I wonder if I can optimize it, since it's too slow
 
May I look at your solution now?
 
@Mr.Xcoder sure
 
Yeah, I forgot to remove Q at the end although I said it is implicit.
I'm quite surprised I got that close :P
 
bye
 
8:16 PM
Bye
 
Can I get some feedback on this?
0
A: Sandbox for Proposed Challenges

HyperNeutrinoKoTH: Last Bot Standing king-of-the-hill python For this KoTH challenge, you are to write a Python bot that will try to crash or terminate the other bots. The bots will all be started from separate terminal instances in the same directory. There will be a file called signal.txt. It will be empty...

 
Looks interesting
 
Can I also have some feedback on this?
0
A: Sandbox for Proposed Challenges

Mr. XcoderHow fast does the ball hit the cushion? Background Consider you have two (unconventional) pool tables without pockets, that both have the same width, but different lengths. You and your friend launch two balls from the corresponding cushions of both the tables, under the same angle Ω (relative ...

 
My bot of course would wait until the computer shutdown while all the other bots kill themselves off
 
lol that works
@Mr.Xcoder Seems a bit trivial, though I wouldn't downvote or close it for that.
 
8:22 PM
@HyperNeutrino BTW Look on Main Again
 
Challenges being trivial isn't usually a bad thing
It just means the character count will be shorter
 
@JohnHathwood It is for Jelly. Other languages get closer if the task is easy.
@HyperNeutrino You have an extraneous bracket
 
Look on Main :)
That answer was invalid :P
 
8:27 PM
:(
*sees new challenge
*time to answer! :D
 
Me too
Assembly
 
*oh wait except it's bad D:
 
I might have ninja'd you xD
 
?
maybe :P
4 view, 3 CVs... rip
 
@HyperNeutrino Downvote such that we can VTD
 
8:30 PM
no wait for OP to see comment
 
-1
Q: using assembly code to create a menu

chris Using assembly code create a menu system program that: (i) takes two numbers from the user; (ii) either adds, subtracts or multiples them depending on the user’s choice.

 
@HyperNeutrino You forgot to take the tab trick into consideration
 
what is the tab trick?
 
In other words, look on main.
 
oh :P
 
8:32 PM
You have 4spaces if instead of ` if`
Trying to golf further
 
Nice
@HyperNeutrino 181 bytes, keeping in mind that you always receive a sorted list as input.
 
Just about to try sth similar
 
I mean 173
 
8:43 PM
yes, 173
 
I've just realized I haven't done any difficult Jelly in 3 days
 
@cairdcoinheringaahing Jelly hyper-training?
 
Lack of practice brings loss of familiarity.
 
My last message is "I've taken a break, Project Euler and Jelly hurt"
 
8:45 PM
That's why I haven't been able to golf in Jelly as well. I haven't practiced in too long.
 
@HyperNeutrino I got stuck on operator precedence and I'm revising for end of year exams so I haven't had a lot of time to do any
 
@cairdcoinheringaahing PE is not that hardcore
 
Ah, okay.
 
@Mr.Xcoder I had sports day yesterday and climbing comp today though and my legs are killing me
 
Someone is active :)
 
8:48 PM
On PPCG
 
:o a PPCG-er that did something physically active
 
@HyperNeutrino aside from one answer yesterday, I haven't actually posted on SE for about a week
 
@HyperNeutrino Your algorithm is extremely slow for [22,24,26,30]
 
@Mr.Xcoder Not surprised :P it checks too many things
Fortunately it's a golf not a fast-code :D
 
You should mention that, it did not finish in ~2 mins on my device
 
8:49 PM
Ah. Okay. I will acknowledge that fact.
 
You don't need range(1,1+a[-1]), 169 bytes, you can have range(a[-1]) instead
 
oh hm. thanks
 
I think
 
I am not completely sure
@cairdcoinheringaahing Look at mine
10 hours ago, by Mr. Xcoder
user image
 
8:52 PM
@Mr.Xcoder The peaks in the middle of mine are the craze
 
Mine are the craze
 
programmer5000 is back!
 
Suspension period ended?
 
Yeah but don't talk about it
 
He had a self-voting sock or sth?
 
8:55 PM
Tetris now runs on my camera
Lovely
 
._. what did caird just say
 
@HyperNeutrino 168 bytes, print is a statement in Python 2.
 
whoops I made that mistake earlier :I thanks
That huge peak is when I got my information reassociated after deletion :P
 
@HyperNeutrino +6000 odd?
 
@HyperNeutrino Still good to have you back
 
8:59 PM
:)
@cairdcoinheringaahing what?
oh you meant that incident
no that was getting the bonus at an awkward time
 
It's 00:00 here :P
 
its 22:00 here
and you shouldn't share information of yourself on the internet. Didn't you pay attention in school online safety messages? :P
 
@cairdcoinheringaahing There are no such things in my school
 
no +6000 didn't actually show up in my inbox lol
Was I supposed to pay attention to anything in school?
 
I was in the mountain side with my parents for ~1 week: +40, +65, +10, sth like that. First day I arrived home: +170
 
9:01 PM
@HyperNeutrino computer science?
 
Nope. There's no Grade 9 CS course.
I'm taking Grade 11 CS online though next year.
 
@cairdcoinheringaahing We have a subject called "Informatics", and you are supposed to write good C++ code :?
I've been programming in C++ ever since the 5th grade!! That's awful
 
We're just learning Python because no-one in my school (bar a few people) know how to code
 
@cairdcoinheringaahing Lucky you!
 
its why all these are in Python
 
9:04 PM
And the NATIONAL OLYMPIAD only accepts C++, C or Pascal!
 
In my grade 11 CS we used C++ but we only did simple stuff, never had to deal with pointers much and didn't use classes
 
wait not even java
 
@BusinessCat Seems like the same thing I've been doing in school for 3 years
@HyperNeutrino No, not even Java
 
@HyperNeutrino no-one likes/uses Java
 
hey I use it
 
9:05 PM
ONLY C++, C and PASCAL
 
and it's fine
not my favorite language though
Wait WHAT PASCAL of all things
 
But who prefers C over Java
 
welp rip gtg now. o/
 
Exactly!
 
I'm trying to think of the best way to show my disgust
 
9:06 PM
I'd rather write verbose code than have to struggle to not get a seg fault every time I want to do something
 
How about: "WHAT!! How dare they! storms off in anger"
 
@HyperNeutrino Python and Java have built-ins, and they make the students think less... the professors say.
 
@BusinessCat I'd rather write user friendly, easy to use, clear code in Python than OOP from day one with Java/C#
2
 
Even Python OOP is clearer than Java/C# imo
 
And the task in the national olympiad are far too hard.
 
9:08 PM
class IAgree: def __init__(self): print('I agree with @musicman523')
Finally! My star bait got a star! (jk, it wasn't starbait)
 
The only think I like better about Java OOP is overloaded constructors
 
Actually I like Java for larger OOP projects
I don't see what's wrong with it. I mean, interfaces are weird, but you don't really have to use them
 
We once had to make a tic-tac-toe game with N lines and M rows, in C++
That's sad ^
 
@Mr.Xcoder we had to do that in Processing
(user friendlier Java)
 
@cairdcoinheringaahing You're much happier
 
9:10 PM
@Mr.Xcoder why?
 
@cairdcoinheringaahing Java is easier than C++
 
I've had to do C++ OOP in one class and it was painful
 
@BusinessCat Welcome to my world!
 
@Mr.Xcoder I tried learning C++ and failed miserably. I can't even make a Hello World! program without warnings and/or errors
 
It's annoying to have to implement copy/move constructors/assignment operators in every class you write
 
9:12 PM
I remember on one assignment it was all done except for this one bug. It took me literally hours to find the problem: I forgot a &
 
@cairdcoinheringaahing I used this tutorial since I learned Java first, it may help you
 
#include <iostream>
using namespace std;
int main(){
    cout<<"Hello World";
    return 0;
}
@cairdcoinheringaahing ^
 
and that took me 3 corrections
 
@Mr.Xcoder Plssssss don't teach people who dont know C++ to use namespace
 
@musicman523 True
 
9:13 PM
This was my original
 
@BusinessCat I was writing code that interfaces with a hardware device over I2C protocol and it was NACKing and returning garbage data. I realized I used a & that I shouldn't have
 
@cairdcoinheringaahing golfed, 59 bytes !!!
 
@Mr.Xcoder it doesn't work
 
@cairdcoinheringaahing it does
 
@musicman523 So you were getting the pointer when you wanted the value?
 
9:15 PM
@cairdcoinheringaahing New challenge
 
@Mr.Xcoder golfed, 52 bytes, adds a trailing newline :P
 
I don't use cstudio :)
 
@BusinessCat I was passing in a pointer to a pointer instead of a pointer to a character
So the data was just going into undefined memory on the stack instead of into the array
 
Heh. Mine was a bit different, I needed the & for a reference
 
@Mr.Xcoder I tried to beat the other "is it a __ number" challenge in the sandbox
 
9:16 PM
References are really bizarre
 
What actually are pointers?
 
@cairdcoinheringaahing I won't solve it :(
 
@BusinessCat They're really nice in avoiding pointer nonsense
 
@Mr.Xcoder why not? Very long if statement in C++
 
@cairdcoinheringaahing Some bizzare, obscure, obfuscated and dark creatures
 
9:17 PM
A pointer holds a memory address
 
is there a Python equivilent?
 
Not really
 
Python does pointers implicitly
 
In python, everything is an object
So if you have a dictionary object for example
 
gtg learn some Jelly pounds head on keyboard Hey I made a perl program!
 
9:18 PM
And you pass it into a function as an argument
 
Basically the idea of pointers is to instead of holding values themselves, you just hold the addresses of where they're stored
 
You don't pass the value of the dictionary (AKA make a fresh copy of the dictionary)
You pass in the reference to the dictionary object
Python does this all implicitly
 
@DJMcMayhem I was about to up-vote your Vim answer, but I reached the daily vote limit :/
 
Haha
I guess you'll just have to go unvote something else </sarcasm>
 
@DJMcMayhem Or just wait until it's 00:00 UTC
 
9:26 PM
TBH, right now I'm just trying to get to the repcap since I'm like 6 votes away.
 
@DJMcMayhem I just realised I have 170 as well... damn
 
0
Q: Is this any number?

caird coinheringaahingInspired (like 2 others) by this chat message. (and to some extent, my CMC) Given a string as an input, your task is to check whether or not that string is a number. What is a number? This is a list of all input formats that are "numbers": Integers: An integer is a string made entirely of ch...

 
Hmm no one's done it BF yet
 
@BusinessCat Which challenge?
 
Yours
 
9:32 PM
Ah. there was an answer: +
But that got rejected
I think that's impossible in Brain-Flak too :/
 
@NewMainPosts somebody designs a master regex and everybody follows
 
Ok, gtg now, it's nearly 1 AM... Bye
 
0
A: Sandbox for Proposed Challenges

S.G. HarmoniaRock Paper Scissors, but it's a huge, custom tournament We all know "Rock, Paper, Scissors", and it's pretty variated. A world tournament is held every year, and it's dang popular. However, the contestants are able to bring their own ways of play to the plate, and they play with them. The tou...

 
9:53 PM
 
@dzaima @notjagan @Mr.Xcoder @cairdcoinheringaahing I think I've fixed it.
 
-73e-7L
should be falsy
 
oh hm
 
why was it deleted
i was workin on a regex
 
^ me too
 
10:05 PM
 
@HyperNeutrino Still failed for .3
 
oh that's invalid? hm. will fix
 
Anyway, the challenge was deleted.
 
@HyperNeutrino I think I fixed your answer, but the challenge was deleted after all
although I haven't tested it thoroughly since I don't have the cases
 
Unfortunately, not quite.
 
10:07 PM
@notjagan Fails for .3
 
but thanks
 
wait why is ab1 truthy
 
hex
ah that's a shame
whatever, the challenge is gone anyway
 
Give up! The challenge is gone
 
@cairdcoinheringaahing Why did you delete the challenge?
 
10:10 PM
idk if -1.e1 should be valid
 
@HyperNeutrino Gives None for 1LL
 
none is falsey
 
😐
Really, gotta go... Way past 1 AM
 
this gets it a fair bit shorter
 
another edge case: 0.+.0j
 
10:14 PM
I'm gonna redo it tomorrow, it's almost midnight here and I didn't want to have an edit flurry instead of going to sleep. Bye.
 
@Dennis ah cool
 
ah okay. So I can keep working on it (and I can get sleep!)
 
mm i'm no close to getting a working one though
 
@cairdcoinheringaahing Sorry just saw it now.. I guess you figured it out by now, if not: I posted it already (here)
 
10:22 PM
*whispers* regex is the waaay toooo goooooo
 
I don't do regex very well though :P
 
@totallyhuman yes. Trough I don't know regex very well too :p
@cairdcoinheringaahing more test-cases for tomorrow: -1.e1 0.+.0j -05AB1E abc+5j (space separated)
 
+1 for -05AB1E
 
@cairdcoinheringaahing and PLEASE replace the horrible unicode with -
unfortunately I don't know any language with compressed regex so SOGL will have to do..
 
:o did you finish the regex?
@dzaima ohhh that's why mine was breaking ><
 
10:34 PM
@dzaima V does
Kinda
 
@DJMcMayhem the probem is I don't know V
 
What are you trying to do? Would you be interested in learning it?
 
That is a fantastic challenge for V, although the spec isn't too great
 
@DJMcMayhem Yeah, it's pretty bad (and it's the reason it's deleted :p)
 
10:41 PM
Although, that reminds me of a feature I've been wanting to add to V. I'm gonna go do that now
 
I barely know Vim so V ir really out of my learning ability anyway
 
Not really.
If you learn vim, then you can then try to learn V :P
 
sadly SOGL doesn't have a matches regex function, all regex it has is replace x with y (which wastes 5 bytes)
 
11:03 PM
Well... Implement it..?
 
it doesn't help much in challenges what SOGL was made for (and I doubt that in any challenge where that would be useful SOGL would have a chance at winning :p)
 
11:18 PM
CMC: Most expensive url with least stuff on the page. e.g. x.com
 
11:30 PM
0
A: Sandbox for Proposed Challenges

pudilityChallenge Take a number and output it as a less than 4 digit number using letters and numbers. For example; 270,030 would turn into 2.7K. Key Billion -> B Million -> M Thousand -> K Rules Your code may accept input numbers that include commas, but does not have to. Numbers will only go up...

 
Anyone want to teach me the ways of writing a quine?
Those who say Python 2 > Python 3 are just wrong. Do the math
 
11:45 PM
I'm looking for a golflang on TIO where a numeric literal prints something, I don't care what
 
@programmer5000 welcome back
 
@programmer5000 Other than itself? Like 1 prints blahblah?
 
I'd prefer if it is an obscure language
@Mr.Xcoder it dosen't matter, as long it prints something
@Christopher thanks!
 
@programmer5000 i got a week long suspension for the same reason :P
 
@programmer5000 any number?
 
11:49 PM
Yes, I don't care which
Does anyone want to make a bot for this:
22
Q: Team of The Hill!

programmer5000Note: if you would like to participate, you need to register. This challenge was inspired by @HelkaHomba's excellent challenge Red vs. Blue - Pixel Team Battlebots. That challenge was probably the best one I've seen on this site. Ever. My challenge is still a lot different, but HelkaHomba dese...

 
maybe
 
CMC: Generate the SHA256 round constants. These are (in hex) the first 32 bits of the fractional parts of the cube roots of the first 64 primes (2..311).
 
My cmc parser just crashed
 
@programmer5000 i reposted a bot
 
@programmer5000 doesn't almost any golfing language do that?
but if you want obscure, go with 7
 
11:53 PM
@Christopher what reason?
 
@musicman523 Uhh forgot to fix a sockpuppet upvote * 11
 
Ah :P
@programmer5000 Your Sandboxed question says The first time it is run, it must connect to google.com (a fairly popular site), and a site with an Alexa rank of greater than 1 million, like google.com. You listed google.com twice, which is why I wrote the comment that I did. Your changes haven't answered my question: Should it contact Google twice? Should it contact Google and a different popular website? Or should it contact any two popular websites?
 
Oops!
Is tio down, or is it just me?
 
@programmer5000 About to say that also
@Dennis tio is broken
 
It is. You have to try it a couple of times to get it working
 
11:56 PM
server is down but webpage is up
 
@Christopher He already knows
We've had a discussion on this a couple of hours ago
Back-end stuff
 
Ah. Anyone want to teach me how to python quine?
 
@musicman523 fixed.
 
I can't quine at all
(but don't want to wine)
 
I can't quine either.
 
11:58 PM
Nor do I
Bye!
 
Only Dennis can quine. Everyone else just copies him.
 
@programmer5000 Nice try starbait :P
 
@Christopher Fixed.
 
@Dennis That was fast
 

« first day (2359 days earlier)      last day (2478 days later) »