« first day (2368 days earlier)      last day (2473 days later) » 

2:00 AM
@musicman523 I'm going to email the prof because the PDF is like $5
 
@ASCII-only dcode.fr/frequency-analysis it's not wokring :(
 
And I'll need it for at least a year so I'll probably buy it over renting it
 
Can I have feedback / votes on this?
3
A: Sandbox for Proposed Challenges

programmer5000code-golf cops-and-robbers Will it halt? Cops: This is the cops' thread. The robbers' thread is here. Your challenge is to make a program that runs forever without halting1, unless it gets a particular input or inputs2. If it receives that input, it must terminate in a finite amount of time3....

 
@Downgoat I told you it's not straight substitution :P
 
yea doens't seem like it, no letter is comon enough
> J'a
 
2:01 AM
@StepHen makes sense. if you have older friends who have already taken the courses (I'm guessing calc 1/2?) you can buy or borrow their book. But if you are not obligated to bring the book to class then you don't need to buy the physical book (and that's something you can ask the prof)
 
maybe this is bad french :P
 
um sure xD
 
@musicman523 Thanks for the info
 
@programmer5000 index functions aren't allowed by your definition because all functions have to be bijective.
 
@HyperNeutrino How I ban hashing / crypto while allowing that?
 
2:02 AM
you... can't really...
they belong to the same class of function
though you could say that all functions have to be injective (surjective?) because index -> char is injective (surjective?) but hashing isn't (i.e. hashing has collisions)
 
@StepHen is decoded text englihs or in czehc
 
@Downgoat not czech, I dunno czech
 
¬_¬ are you saying may not be englihs
 
I'm saying there's not reason to think it shouldn't be English (aka it's English)
nothing goes too crazy here
 
@StepHen ¬_______¬ is this chat message suppose to be red herring or is real hint
 
2:08 AM
@Downgoat It's in English don't worry
or at least it is once you decipher it completely
 
is deciphering it case sensitive?
 
@Downgoat why would I tell you :P
 
because I am not sheep and if sheep finds out before me they will use info for evil
 
I'll be giving hints each day, although some of my hints are fairly public and could be discovered
editing it in ~15 minutes or so
 
¬_¬ why 'NE' the only repeated wored
 
2:12 AM
@Downgoat I dunno
 
:O is your username "Knee"?
 
@Downgoat no
 
@Downgoat it's coming it's coming
@Downgoat Added, dunno if you'll like it or not
 
value.h:21:32: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from value.c:1:0:
value.h:21:32: warning: 'struct Stac' declared inside parameter list
 typedef void (*sopadic)(struct Stac);
funny error
 
2:21 AM
@ASCII-only are you there I have VSL question
@StepHen if not solved by tomorrow, pls ping when u add next hint
 
@Downgoat will do
 
if you are doing what I think you did I am too lazy to try to decrypt
 
@Downgoat what do you think I did? :P
(I won't confirm or deny)
 
did you hash/encode plain the text in any way at any time in cipher
wait
 
it can be decoded, if that's what you're asking
I have an encoder.py and a decoder.py
 
2:23 AM
brb hacking ur computer to get decoder
 
or just hack my flash drive
or my browsing history
 
totally irrelevant, can you visit my website: vihan.org ;P
 
@Downgoat xD
lemme open a VM real quick...
 
Then spin up another VM inside that one..?
 
@ATaco Even better, automate it - can VMs stack overflow? We may learn
 
2:25 AM
@StepHen can you visit again because stupid crawler is on website atm
 
@Downgoat I think that was me :P
Also, your website doesn't render correctly at exceptionally wide Aspect Ratios.
Although it is incredibly good looking.
 
@Downgoat Your website looks very nice but : if I move the cursor to the edge of the GitHub link circle and twitch it around along the edge, it will twitch around and not fully turn over xD
 
(That's scrolled all the way to the bottom)
 
same with the SE link circle actually
 
@Downgoat Looks good on mobile
 
2:28 AM
@HyperNeutrino that is because bounding box of bubble changes so 50% of the way as it turns the bounding box is smaller and suddenly you're not actually hovering over it which causes the problem
I could fix it using hidden div and sibling transitions but too lazy
 
oh I see. interesting. ok makes sense :P
 
@Downgoat I don't want to keep learning CSS
 
Do you plan to do professional Graphics design work in the future..? @Downgoat
 
¬_¬ are any of you visiting with VPN
 
@Downgoat Not me, but why does Number.js's Integer class support rationals ಠ_ಠ
 
2:30 AM
@ATaco I'll probably tack it on at the end of resumé but I'll probably never work just as designer :P
@HyperNeutrino it does O_o
 
I think
 
@Downgoat That's me, work forces it on me.
 
I should really update those projects they're reaaalllly old
 
unless I misread docs
Integer does but not Int
 
yea Int is the faster one and is properly supported
@StepHen do you use comcast by any chance
 
2:31 AM
just use jQuery, jQuery has BigInteg64
@Downgoat um yes, but I haven't gone onto your website with any device connected to the wifi
so that's someone else
 
:(
 
it looks nice on mobile though
 
really ._.
> hai i am gaot
 
ok... looks like python test is not working :P
@StepHen jQuery is evil
 
2:35 AM
Sounds boring, I parse an XML document, modify it using JSDom, then re-compile and send it to the client.
 
sounds boring, I just give the client HTML and whatever the rest does I have no idea xD
 
I'm pumped.
 
@ATaco He's Russian (I think) give him some slack :P
 
@StepHen uhhh, may I ask why your boss would rather wear a duck costume than be a duck?
(meaning why make a web app that mimicks a native app rather than make a native app)
 
@Downgoat Because I don't know Java and Swift/Obj-C, and I'm the app making team
and the framework's quite useful for what we're trying to do
 
2:38 AM
why not use Xamarin or react native
 
I dunno about that
I do what I'm told :P
 
(btw have you visited my website from ur wifi yet)
 
I highly recommend learning at least 1 highly OOP language.
 
^ just make sure that language isn't Java because Java is crap with lots of bad design
 
@ATaco Me? I know Java and VB, and a bit of Python
 
2:39 AM
(It was Java, it was always Java)
 
xD
 
RProgN2 is where OOP goes to die.
That's the start of the builtins.
 
@ATaco A file for each builtin? 0.o
Why do you need a file, to multiply
 
It seemed to help for readability.
Also, that file is 2kb.
 
why so big 0.o
These are my binary operators:
binary_ops = {
    PLUS: lambda x, y: x + y,
    MINUS: lambda x, y: x - y,
    MUL: lambda x, y: x * y,
    DIV: lambda x, y: x / y,
    INT_DIV: lambda x, y: x // y,
    EXPONENT: lambda x, y: x ** y,
    MOD: lambda x, y: x % y
}
 
2:43 AM
Well you see, I had to reimplement types
 
@ATaco Oh, that makes more sense
but why
 
So that I could store more than 1 type of variable.
Java and ducky aren't friends.
Walks like a duck, quacks like a duck, swims like a duck, but you better call it a Mallard or enjoy compile errors.
 
So you decided writing an any-data-type-Stack in Java? :P
 
Well, it uses 4 different var types which all use the interface Var
The plus side of all this is I can use BigDecimal and things.
 
3:01 AM
What's wrong with using Object?
 
love seeing [Object object]
thanks atom
 
@totallyhuman O_o how does atom cause [Object object]
 
iunno
 
i dunno
 
3:17 AM
Why is SymPy so slow? I'm trying to compute the 1,000,000,000-th Fibonacci number in Jelly, and it's still going after 58 hours...
 
overhead from BigInts? (are you doing recursively or using binots formula)
 
Neither. I'm using sympy.functions.combinatorial.numbers.fibonacci.
 
@Dennis probably because you are trying to compute the 1,000,000,000-th Fibonacci number
3
 
3:36 AM
Other languages finish in an hour, mine is at 58 and counting...
 
maybe you accidentally made an infinite loop
 
@DestructibleLemon How could sympy.functions.combinatorial.numbers.fibonacci(1000000000) result in an infinite loop?
 
magic
bad programming
integer overflow somehow
 
3:53 AM
just do what those clever answers on that question are doing :P
 
Integer overflow in symbolic math. Sounds legit.
 
maybe it's procrastinating
 
.oO(Why do I ask serious questions in TNB?)
 
because you secretly like the responses
 
4:31 AM
0
Q: Divisibility of numbers

Mickey JackChallenge HP is doing research in mathematics . After doing lots of research, she struck in a problem . She found four numbers n,a, b and c .Now, She wants to know how many number exists which are less than or equal to n and are divisible by a ,b or c . Input : 4 integers denoting n,a,b and c ...

 
5:28 AM
@StepHen BigNum/BigInt/BigDecimal is the best for JS (unless you want to use asm.js/typed arrays)
@Dennis Maybe you're trying to print it? :P (probably not)
wait wrong phi
@Dennis Maybe it's running out of memory?
 
Memory usage is under 2% atm.
 
2% would be how many MB?
 
330
 
So it's probably working, just insanely slowly?
@Downgoat ok
 
5:47 AM
0
Q: Do I have a prime twin?

TheIOSCoderAn Integer is prime if and only if it is positive and has exactly 2 distinct divisors: 1 and itself. A twin prime pair is made of two elements: p and p+2, that are both prime. You will be given a positive integer as input. Your task is to return a truthy / falsy depending on whether the given in...

 
Profiling (probably won't help), 1m takes .2s, 10m takes <7s, 100m takes forever
wait yes it didn't help >_> all the time was spent in ifib
@Dennis Here's the implementation if it helps at all
 
@Dennis Can you help me golf a Pyth thing?
 
@ASCII-only Does SymPy use mpmath internally?
 
@Dennis Yeah, when you pip install sympy it should install mpmath for you as a dependency
 
@Mr.Xcoder I can try. I've never been really good at Pyth golfing.
 
5:56 AM
100m took 5 minutes
 
@Dennis This bool chain feels insanely long &|P_ttQP_hhQP_ (for the new challenge on Main), I wonder If I can reduce it (especially the first part, | feels very ungolfy)
 
I'm not really sure how to shorten that.
Struggling even with Jelly.
 
Yeah, that feels like an unnecessary boilerplate
And I have no idea how to golf it
Guess I'll post it like that and golf it afterwards
 
6:35 AM
1
Q: Making octogonal words

Carlos AlejoLast Thursday user @SpookyGengar delighted us with his/her first challenge about Making Squared Words. What if we double the number of sides? The challenge Take a string as input in any reasonable format you need (string, char array...) and output an octogonal representation of the input (also ...

 
6:58 AM
@Mr.Xcoder My algorithm should save 3 bytes.
(The one from my Jelly answer.)
 
7:39 AM
Do we have a challenge to generate combinations of size k from n elements, i.e. {0,1,2,3} choose 2 -> {(0,1),(0,2),(0,3),(1,2),(1,3),(2,3)}
Closest I've found is this old challenge
 
8:08 AM
Could I get you guys taking a look at these sandboxed posts please?
 
8:30 AM
4
A: Sandbox for Proposed Challenges

TheLethalCoderCreate a binary wall code-golf binary ascii-art Given an array of positive integers, n > 0, output their representation of a binary wall. How does this work? Convert each number to it's binary representation. Pad the representation with leading zeroes to the length of the longest one i.e. 1,...

Should I allow empty inputs? Anyone got any preference on a test case?
 
I'd say no to empty inputs
 
Was my thought too
 
@TheLethalCoder maybe have a testcase with a 0 in the input
nvm
 
"positive integers" missed that
testcase suggestion: [14, 4, 6, 2]
14 is the only 4-bit number here
also they all have a zero as their last bit
 
8:40 AM
@Dennis I'll try to implement that in Pyth too a bit later, thanks a lot!
 
@Cowsquack I'll add that when I get time later on then :)
Do you think I should force input to be in base 10?
Or let languages that allow other bases but it must still be in "number" form? i.e. no string representations.
 
@TheLethalCoder I'd say yes, because you can otherwise "abuse" the rules by taking the input in a more convenient base, like base-4
 
Okay I'll add that in too :)
 
@TheLethalCoder "number" form is going to be a bit hard to enforce in string-based languages like Retina or sed
 
@Cowsquack Yeah I couldn't think of a different way to word it.
 
8:52 AM
I should make a website in Pyth
or some other golfing language
 
@Mayube But... it will be kind of long to load :0
 
yeah but it'd be funny
 
@Mayube unless you golf+optimize
^^
 
I'm all for that as long as you keep the byte count down!
 
end of the day they can take input from STDIN and give output to STDOUT, so I can have PHP receive the request, and pass the important stuff via STDIN to a golf-lang script, then echo the output of the script
 
8:59 AM
@Cowsquack When you're doing (or next doing) the new Carrot parser will you be adding error messages or the like?
Not that important was just wondering...
 
I have been wondering a bit about that. You know how arguments appear to the right of operators (like in +5 or /'/regex/flags')? I have been wondering what the parser should do if the argument appears before the operator, like in 9^5+3.
There are few options: throw a syntax error, pretend that never happens, or have both the 5 and the 3 as arguments to the + operator
 
So which golflang should I use for this website? (No jelly pls)
 
@Mayube jelly is by far the best
 
jelly's too slow, and ideally I need one that's designed for string manipulation, most golflangs are all about number manipulation
maybe I'll just use cjam
 
@TheLethalCoder so what do you think about ^^^^^?
 
9:12 AM
@Cowsquack Unless you're changing the way the language works I don't think using both is the best way yet. At the moment it appears they just get ignored so I'd stay stick with that or throw an error. But to be honest I think more features is a better thing at the moment than proper error throwing. I was just wondering.
 
> ŒV Evaluate Python code z.
 
Though I wouldn't add to many features before you add it in, if you're going to, because it will make it a ball ache.
 
@Mayube just use that :P
 
okay then, so I will leave the error handling until Carrot gets more features and commands
 
that defeats the point
 
9:14 AM
@Mayube Its the only way to do Jelly without your head exploding :D
 
@Cowsquack Well it's more your call, I haven't looked into the compiler/parser/whatever it's called so I don't know how awkward it would be to add, especially with more features, commands etc... later on.
 
@Downgoat i want to, but i dont know what to
 
ah right, I should first finish the basic interpreter/parser and upload to GH before deciding anything much :P
 
@Cowsquack haha! Probably best. How's it coming along?
 
I just finished adding node objects. Now I have to convert the tokens returned by the lexer into an AST
 
9:19 AM
Nice :)
 
@Mr.Xcoder check hypertraining :P
 
@cairdcoinheringaahing SUre
 
10:05 AM
4
A: Sandbox for Proposed Challenges

TheLethalCoderCreate a binary wall code-golf binary ascii-art Given an array of positive integers in base 10, where n > 0, output their representation of a binary wall. How does this work? Convert each number to it's binary representation. Pad the representation with leading zeroes to the length of the lo...

Anyone got any comments before I post it?
Or any test case suggestions?
 
0
A: Sandbox for Proposed Challenges

V. CourtoisOutput execution time of your code code-golfquine Don't mistake this challenge for what it is not: it is quine-related. Your goal To output the execution time of your code. Input Nothing. Output The time your code took to execute. Your code can take as much time as you want. For example, ...

 
@TheLethalCoder is the 16 8 4 2 1 supposed to be a testcase?
 
@Cowsquack Yeah, should I remove it? I'm not the best with test cases...
 
the reason I asked is that it appears dangling by itself
there's nothing underneath it
 
Oh ignore me I know what you mean now....
no it wasn't supposed to be there, I added that in notepad when I was working out the binary form
 
10:20 AM
one last suggestion: 11 10 9 8 there is an empty column in the middle
 
added
 
0
Q: Create a binary wall

TheLethalCoderGiven an array of positive integers in base 10, where n > 0, output their representation of a binary wall. How does this work? Convert each number to it's binary representation. Pad the representation with leading zeroes to the length of the longest one i.e. 1, 2 -> 1, 10 -> 01, 10. Create a w...

 
Dam that was quick
Less that 30 seconds I think.
 
 
1 hour later…
11:47 AM
hi
 
hmm
Out of things to do
 
why is your pfp blank
 
why not
 
ok so we have languages for string manipulation, number manipulation, list manipulation
what's missing
 
language manipulation?
 
11:58 AM
o.o
 
mind manipulation?
 
matter manipulation?
 
energy manipulation?
 
force manipulation?
 
11:59 AM
( )___( )
 
0
Q: Should we close challenges as dupes of closed challenges?

GryphonSo, the question here is, if we find a challenge that is a duplicate, but the challenge it is a duplicate of has been closed as unclear or off-topic, should we still close the new challenge as a duplicate? For example, my question here, was closed as a dupe of a question that was closed as uncle...

 
Did someone just upvote every answer in the OEIS challenge? Can anyone confirm/infirm that? I suddenly got +20 for 2 OEIS answers
 
@Mr.Xcoder maybe somebody just upvoted both of your answers?
 
@Mayube Strangely, they aren't even close to each other... Both in a range of ~5 seconds :)
I cannot complain though :P
 
I almost freaked out on seeing -95 rep o0
Then I realized I had put a bounty
 
12:21 PM
@Mr.Xcoder yeah that just happened to me. Don't complain though
@Mr.Xcoder for the binary wall challenge, I got lazy
 
Why is it not allowed?
 
@totallyhuman what is what not allowed?
 
Your answer
I didn't read the challenge though
 
@totallyhuman because the challenge is about converting to binary, then padding. You can't take input that is already converted to binary then padded. Its like taking Hello, World! as input for the hello world challenge
 
12:30 PM
@cairdcoinheringaahing I edited your message answer, it was felt creepy
 
@Mr.Xcoder creepy?
 
@cairdcoinheringaahing unconventional is a better term, sorry
 
@Mr.Xcoder ok, that makes sense. I just got bored and annoyed at Jelly for not having the one builtin I needed
 
CMC: Given a list (of even length), return all its sublists longer than length(list)/2.
 
@Mr.Xcoder the length of a permutation is always the same as the list's length
 
12:34 PM
@EriktheOutgolfer I meant sublists, sorry
 
@Mr.Xcoder I got +10 and I have two answers so I dunno
 
@StepHen I have +20 and 3 answers
Forget about the CMC above
 
CMC: [-1, 2, -3, 4, -5, 6, ...], first n terms (n ≥ 1)
 
@Mr.Xcoder APL, 9 bytes: ⍳ׯ1 1⍴⍨⊢
 
12:42 PM
I can't find the OEIS sequence
 
@Mr.Xcoder cQuents, 7 bytes: ::-1^$$
gotta love those order of operations
 
@totallyhuman ≥_≤
 
Stupid oeis search
It just ignores the sign of a number
 
@Mr.Xcoder Jelly, 5 bytes: -*×µ€
 
@EriktheOutgolfer I had more...
 
12:43 PM
cQuents is competitive yay
 
Wait wat
-1^input * input ??
 
@totallyhuman order of operations, so (-1^$)$ ($ is the current index, 1-based)
and I have implicit multiplication, but it's a lower priority than exponentation, so the second $ implicitly multiplies with the first term
 
I'm talking about the jelly one
 
@totallyhuman oh ignore me then
 
Although I don't understand the cquents one either
Lol
 
12:46 PM
they are probably exactly the same
(-1 ^ index) * index
with a 1-based index
 
Ah
Right
€ automatically makes a range too
 
cQuents is weird because that is expressed as -1^$$ :P
 
@Mr.Xcoder SOGL, 6 bytes: ∫∆F^*T
 
@dzaima Interesting symbols
 
@dzaima Looks like you're trying to do integrals :P
 
12:49 PM
@StepHen = loop, pushing 1-indexed index :p
 
@dzaima aw, why can't SOGL do my Calc homework :P
 
@EriktheOutgolfer I now have 5 too: ḶNḤ¦Ḋ, but unfortunately that gets the first n-1 terms , I have to add increment for it to work.
 
@EriktheOutgolfer Why?
 
I think you don't need an increment...especially after an lol
 
12:53 PM
@EriktheOutgolfer I need to increment at the very beginning if I want to get the first n terms. This computes the first n-1
 
maybe something's a bit istracting or something?
 
NVM, yours is better
 
I can do it in 4 bytes (maybe) using your method
 
@EriktheOutgolfer Can you explain me what µ is and how it works? I couldn't find it in the docs
 
oh wait nvm
 
12:55 PM
@EriktheOutgolfer I don't think you can, R wouldn't work
 
@Mr.Xcoder ^^^
 
@cairdcoinheringaahing Thanks
 
@Mr.Xcoder basically it's a chain separator
 
@EriktheOutgolfer I give up on the binary wall problem, Jelly just doesn't have the builtin
You can post yours if you want
 
12:56 PM
@cairdcoinheringaahing I don't know Jelly, so I don't get your joke. What's the joke?
 
@StepHen Its not a joke, but also Jelly has all the builtins
 
it's not a joke
also jelly doesn't have ascii art builtins in general
 
@StepHen It is about this challenge (not a joke)
 
@cairdcoinheringaahing I know, I meant this answer (codegolf.stackexchange.com/a/135339/65836)
 
@StepHen It gets the numbers in binary
 
12:58 PM
@StepHen all it does is convert to stars
 
And it doesn't do the padding
 
oh, gotcha
 
OK, as much as I like code golf, I have actual work to get to. See y'all later! @EriktheOutgolfer I might have a go at it later though
 
ok I posted the answer
 
@EriktheOutgolfer I already upvoted... 9 bytes
@EriktheOutgolfer Do you have time for hypertraining?
 
1:00 PM
sure
 
1:10 PM
Python 3 + oeis:
from oeis import*
s=oeis.Sequence(38608)
s.fetch_sequence()
print(s[:int(input())])
only goes up to 1000 :P
 
1:30 PM
@totallyhuman Nice :) but most questions will ban it for going to the internet anyway :P
 
Yes
I figured it's not possible to make it suitable for golfing
 
@totallyhuman Does it break on A000017, for example?
 
Why would it?
 
Anybody here know Mathematica?
 
It doesn't try to compute the sequence
 
1:41 PM
Because this is pretty weird
 
It just fetches stuff
 
@LegionMammal978 ask Martin
 
@MartinEnder You know what's up with the results I'm getting in that picture?
 
precedence
 
1:45 PM
? has higher precedence than []
 
I... don't even
How would that ever be useful
 
well, curried functions are a very recent feature and before that, a?b[c] probably never really made much sense
 
Ah, curried functions make sense
Yup, added some parentheses, now it works, thx for the help
 

« first day (2368 days earlier)      last day (2473 days later) »